/* Homepage-only art direction. Editor, authentication and export remain unchanged. */
#page-index {
  --showcase-ink: #090810;
  --showcase-white: #faf7ff;
  --showcase-body: #d5cede;
  --showcase-purple: #b78aff;
  --showcase-pink: #f29ad4;
  --showcase-line: #363040;
}
#page-index .container { max-width: 1400px; }
#page-index .site-shell-header { min-height: 76px; margin-bottom: 0; padding-inline: 4px; }
#page-index .site-shell-brand { font-size: 18px; letter-spacing: -.025em; }
#page-index .site-shell-actions button { min-height: 44px; }
#page-index .hero-section {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-content: center;
  gap: 30px;
  padding: 90px 48px 110px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--showcase-line);
}
#page-index .hero-section::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: min(48%, 620px);
  border-right: 0;
  background: linear-gradient(90deg, rgba(9, 8, 16, .94) 0%, rgba(9, 8, 16, .76) 58%, rgba(9, 8, 16, .24) 84%, transparent 100%);
  pointer-events: none;
}
#page-index .hero-copy { grid-area: 1 / 1; align-self: end; max-width: 590px; }
#page-index .hero-product-label {
  color: var(--showcase-body); font: 600 12px/1.5 "SFMono-Regular", Consolas, "PingFang SC", sans-serif;
  letter-spacing: .13em; margin-bottom: 30px;
}
#page-index .hero-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  max-width: 650px; font-size: clamp(48px, 5.4vw, 76px); font-weight: 650;
  line-height: 1.18; letter-spacing: -.045em; margin-bottom: 24px;
  color: var(--showcase-white);
}
#page-index .hero-title em {
  background-image: linear-gradient(110deg, var(--showcase-white), var(--showcase-purple) 52%, var(--showcase-pink));
}
#page-index .hero-subtitle { color: var(--showcase-body); font-size: 17px; line-height: 1.85; font-weight: 400; }
#page-index .hero-action-panel { grid-area: 2 / 1; max-width: 420px; gap: 12px; }
#page-index .upload-btn {
  height: 56px; border-radius: 8px;
  background: linear-gradient(115deg, #7524c9, #b51985);
  box-shadow: 0 8px 32px #9d2de52b, inset 0 1px 0 #ffffff30;
}
#page-index .upload-btn:hover { background: linear-gradient(115deg, #8431d9, #c42191); }
#page-index .project-import-btn { min-height: 56px; border-color: var(--showcase-line); background: #100d19e8; }
#page-index .home-drop-hint { color: var(--showcase-body); font-size: 12px; }
#page-index .hero-product-preview {
  /* Absolute backdrop uses the whole hero, not the legacy second grid column. */
  grid-area: auto;
  position: absolute; z-index: -1; inset: 28px 0 28px auto;
  width: 85%; height: calc(100% - 56px); max-width: none; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: var(--showcase-ink);
}
#page-index .hero-product-preview > img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
  filter: brightness(1.16) saturate(1.12) contrast(1.04);
}
#page-index .hero-product-preview::before {
  background: linear-gradient(90deg, rgba(9, 8, 16, .92) 0%, rgba(9, 8, 16, .75) 16%, rgba(9, 8, 16, .34) 37%, rgba(9, 8, 16, .06) 62%, transparent 82%),
    linear-gradient(0deg, rgba(9, 8, 16, .92) 0%, transparent 25%, transparent 78%, rgba(9, 8, 16, .35) 100%);
}
#page-index .hero-product-preview figcaption { left: auto; right: 28px; bottom: 25px; align-items: end; gap: 24px; }
#page-index .hero-product-preview figcaption small { display: block; color: var(--showcase-body); font-size: 12px; margin-bottom: 7px; }
#page-index .hero-product-preview figcaption strong { color: var(--showcase-white); font-size: 16px; font-weight: 500; }
#page-index .hero-preview-note { color: var(--showcase-body); font-size: 12px; }
#page-index .home-draft-card {
  max-width: 640px;
  min-height: 58px;
  margin-top: 0;
  padding: 10px 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#page-index .home-draft-thumb { width: 64px; height: 44px; border-radius: 5px; }
#page-index .home-draft-actions button { min-height: 38px; }
#page-index .home-process {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0 auto 44px;
  padding: 22px 34px;
  border-width: 1px 0;
  border-style: solid;
  border-color: rgba(196, 181, 253, .16);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, .045), rgba(15, 12, 27, .18) 50%, rgba(236, 72, 153, .045));
  box-shadow: none;
}
#page-index .home-process::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 16%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 138, 255, .38) 18%, rgba(242, 154, 212, .38) 82%, transparent);
}
#page-index .home-process li { position: relative; z-index: 1; justify-content: center; gap: 12px; font-size: 15px; font-weight: 520; color: var(--showcase-body); }
#page-index .home-process li span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(242, 154, 212, .46);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, .82), rgba(190, 24, 147, .82));
  color: #fff;
  font-size: 11px;
  box-shadow: 0 5px 16px rgba(124, 58, 237, .22);
}
#page-index .home-process li + li::before { left: -25px; color: rgba(242, 154, 212, .72); }
#page-index .home-process li > div { display: grid; gap: 4px; text-align: left; }
#page-index .home-process li strong { color: var(--showcase-white); font-size: 15px; font-weight: 600; }
#page-index .home-process li small { color: #a9a1b5; font-size: 12px; font-weight: 400; }
#page-index .footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 40px 8px 28px;
  border-top: 1px solid var(--showcase-line);
  background: transparent;
  text-align: center;
}
#page-index .footer-brand { justify-content: center; color: var(--showcase-white); font-size: 20px; letter-spacing: -.02em; }
#page-index .footer-desc { margin: 0; color: var(--showcase-body); font-size: 14px; line-height: 1.55; }
#page-index .footer-links { justify-content: center; gap: 8px 22px; margin: 6px 0 4px; }
#page-index .footer-service-link { padding: 4px 0; color: var(--showcase-body); font-size: 14px; }
#page-index .footer-copyright { margin-top: 4px; color: #aaa2b5; font-size: 12px; }
#page-index .footer-icp { margin-top: 0; }
#page-index .footer-icp a { color: #aaa2b5; font-size: 12px; }
@media (max-width: 1000px) {
  #page-index .hero-section { padding: 72px 20px 130px; min-height: 610px; }
  #page-index .hero-title { font-size: 58px; }
  #page-index .hero-product-preview { width: 100%; }
  #page-index .hero-product-preview::before { background: linear-gradient(90deg, rgba(9,8,16,.9), rgba(9,8,16,.38) 35%, rgba(9,8,16,.04) 80%), linear-gradient(0deg, rgba(9,8,16,.85), transparent 40%); }
}
@media (max-width: 640px) {
  #page-index .site-shell-header { min-height: 64px; }
  #page-index .site-shell-brand { font-size: 16px; }
  #page-index .hero-section { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding: 36px 0 0; overflow: hidden; }
  #page-index .hero-section::before { display: none; }
  #page-index .hero-copy { align-self: stretch; }
  #page-index .hero-product-label { font-size: 10px; margin-bottom: 18px; }
  #page-index .hero-title { font-size: clamp(38px, 10vw, 56px); line-height: 1.2; margin-bottom: 18px; }
  #page-index .hero-subtitle { font-size: 16px; }
  #page-index .hero-action-panel { align-self: stretch; max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  #page-index .upload-btn { font-size: 13px; padding-inline: 8px; }
  #page-index .project-import-btn { padding-inline: 8px; font-size: 12px; height: 56px; }
  #page-index .project-import-btn small { display: none; }
  #page-index .hero-action-panel .home-drop-hint { grid-column: 1 / -1; }
  #page-index .hero-product-preview { position: relative; z-index: 0; inset: auto; height: auto; width: 100%; margin: 0; border-radius: 10px 10px 0 0; }
  #page-index .hero-product-preview > img { height: auto; aspect-ratio: 16 / 10; object-position: center; }
  #page-index .hero-product-preview::before { background: linear-gradient(0deg, #090810f5, transparent 50%); }
  #page-index .hero-product-preview figcaption { inset: auto 14px 16px; }
  #page-index .hero-product-preview figcaption strong { font-size: 14px; }
  #page-index .hero-preview-note { max-width: 72px; line-height: 1.6; text-align: right; }
  #page-index .home-process { gap: 0; margin-bottom: 28px; padding: 14px 8px; border-radius: 0; }
  #page-index .home-process::before { right: 15%; left: 15%; }
  #page-index .home-process li { font-size: 13px; gap: 6px; flex-direction: column; }
  #page-index .home-process li + li::before { display: none; }
  #page-index .home-process li span { width: 30px; height: 30px; flex-basis: 30px; }
  #page-index .home-process li > div { gap: 2px; text-align: center; }
  #page-index .home-process li strong { font-size: 13px; }
  #page-index .home-process li small { font-size: 10px; }
  #page-index .home-draft-card { margin-top: -8px; padding: 12px; border-width: 1px; border-radius: 12px; background: rgba(12, 9, 23, .64); }
  #page-index .home-draft-thumb { width: 64px; height: 48px; }
  #page-index .footer-section { gap: 9px; padding: 32px 0 24px; }
  #page-index .footer-links { margin-top: 4px; gap: 6px 14px; }
  #page-index .footer-copyright { margin-top: 4px; }
}
