:root {
  color-scheme: light;
  --ink: #211c1b;
  --muted: #6f6662;
  --line: rgba(57, 40, 36, 0.14);
  --surface: #fffaf7;
  --surface-strong: #ffffff;
  --rose: #d96b70;
  --rose-dark: #8f3540;
  --coral: #f0a38f;
  --cream: #f8eee8;
  --shadow: 0 24px 70px rgba(94, 56, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fffaf7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(74, 45, 40, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #28201e, #a84550);
  font-size: 11px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover {
  background: rgba(217, 107, 112, 0.1);
  color: var(--rose-dark);
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px max(24px, calc((100vw - 1120px) / 2)) 72px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.96) 0%, rgba(255, 250, 247, 0.88) 30%, rgba(255, 250, 247, 0.28) 62%, rgba(255, 250, 247, 0.12) 100%),
    linear-gradient(0deg, rgba(255, 250, 247, 0.92) 0%, rgba(255, 250, 247, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

.hero-copy {
  width: min(520px, 100%);
  color: #493f3b;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 22px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  color: white;
  background: #211c1b;
  box-shadow: 0 16px 38px rgba(33, 28, 27, 0.2);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(143, 53, 64, 0.12);
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}

section:not(.hero) {
  padding: 86px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 34px;
}

.section-heading h2,
.privacy-section h2 {
  margin-bottom: 12px;
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p:not(.eyebrow),
.privacy-section p {
  color: var(--muted);
  line-height: 1.8;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.upload-card,
.preview-card,
.tips-panel,
.profile-card,
.annotated-photo,
.feature-advice,
.report-cards article,
.reference-grid article,
.faq-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.upload-card {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}

.upload-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: white;
  background: var(--rose);
  font-size: 32px;
  line-height: 1;
}

.upload-card small,
.tips-panel li {
  color: var(--muted);
}

.preview-card {
  padding: 16px;
}

.preview-frame {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6e6de, #fff);
  color: var(--muted);
}

.preview-frame img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.analysis-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdbfba;
}

.analysis-status.done .status-dot {
  background: #2e9d6f;
}

.tips-panel {
  padding: 22px;
}

.tips-panel ul {
  padding-left: 20px;
  margin-bottom: 0;
  line-height: 1.9;
}

.photo-analysis-section,
.flow-section,
.reference-section,
.creator-section {
  background: #fff;
}

.analysis-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.annotated-photo {
  padding: 18px;
}

.analysis-image-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6e6de, #fff);
}

.analysis-image-frame img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.landmark-canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.analysis-empty {
  display: grid;
  gap: 8px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.analysis-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.marker {
  position: absolute;
  display: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(217, 107, 112, 0.22), 0 12px 30px rgba(33, 28, 27, 0.22);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.analysis-ready .marker {
  display: block;
}

.analysis-ready .landmark-canvas {
  display: block;
}

.marker span {
  position: absolute;
  left: 18px;
  top: 50%;
  min-width: 44px;
  transform: translateY(-50%);
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: rgba(33, 28, 27, 0.82);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.marker.active {
  background: #211c1b;
  box-shadow: 0 0 0 8px rgba(33, 28, 27, 0.18), 0 14px 34px rgba(33, 28, 27, 0.28);
}

.marker-eye {
  left: 50%;
  top: 36%;
}

.marker-nose {
  left: 52%;
  top: 50%;
}

.marker-mouth {
  left: 52%;
  top: 66%;
}

.marker-contour {
  left: 30%;
  top: 58%;
}

.marker-ear {
  right: 24%;
  top: 46%;
}

.analysis-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 600;
}

.feature-advice-list {
  display: grid;
  gap: 12px;
}

.dynamic-advice {
  display: grid;
  gap: 12px;
}

.feature-advice {
  padding: 20px;
  box-shadow: none;
}

.feature-advice.active {
  border-color: rgba(143, 53, 64, 0.42);
  background: #fff;
  box-shadow: 0 18px 48px rgba(94, 56, 49, 0.1);
}

.feature-advice span {
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-advice h3 {
  margin: 10px 0;
}

.feature-advice p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-advice strong {
  color: var(--rose-dark);
  line-height: 1.6;
}

.metric-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 28, 27, 0.94);
  color: white;
}

.metric-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-panel-head strong {
  color: white;
  letter-spacing: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #211c1b;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.metric-grid strong {
  color: white;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow-list article {
  min-height: 230px;
  padding: 24px;
  background: #fffaf7;
}

.flow-list span {
  color: var(--rose);
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
}

.flow-list h3,
.report-cards h3,
.reference-grid h3 {
  margin: 18px 0 10px;
}

.flow-list p,
.report-cards p,
.reference-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.report-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
}

.profile-card {
  padding: 24px;
}

.face-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #f2d9d2 100%);
}

.face-line {
  position: absolute;
  inset: 18% 26% 14%;
  border: 2px solid rgba(143, 53, 64, 0.36);
  border-radius: 44% 44% 48% 48%;
}

.eye,
.nose,
.mouth {
  position: absolute;
  background: var(--rose-dark);
}

.eye {
  top: 42%;
  width: 32px;
  height: 8px;
  border-radius: 50%;
}

.eye.left {
  left: 34%;
}

.eye.right {
  right: 34%;
}

.nose {
  top: 49%;
  left: 50%;
  width: 2px;
  height: 36px;
  transform: translateX(-50%);
  opacity: 0.55;
}

.mouth {
  bottom: 28%;
  left: 50%;
  width: 54px;
  height: 11px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.report-cards article {
  min-height: 180px;
  padding: 24px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reference-grid article {
  padding: 24px;
}

.face-match-list {
  display: grid;
  gap: 16px;
}

.face-match-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf7;
  box-shadow: 0 18px 48px rgba(94, 56, 49, 0.08);
}

.face-match-card[hidden] {
  display: none;
}

.face-summary,
.video-links {
  padding: 22px;
}

.face-summary {
  border-right: 1px solid var(--line);
}

.face-summary h3 {
  margin: 16px 0 10px;
}

.face-summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.video-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.video-links a {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(143, 53, 64, 0.13);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.video-links a::after {
  content: "跳转视频";
  width: fit-content;
  margin-top: 16px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
}

.video-links a:hover {
  border-color: rgba(143, 53, 64, 0.34);
  transform: translateY(-2px);
  transition: 180ms ease;
}

.video-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
}

.platform {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(217, 107, 112, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.color-stack {
  display: flex;
  gap: 8px;
}

.color-stack span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(52, 31, 28, 0.12);
}

.reference-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--rose-dark);
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: center;
  background: #211c1b;
  color: white;
}

.privacy-section .eyebrow {
  color: #f5c2b6;
}

.privacy-section p {
  color: rgba(255, 255, 255, 0.72);
}

.faq-section details {
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: none;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-section details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  color: white;
  background: #151211;
  font-weight: 700;
}

.site-footer a {
  color: #f6c5bc;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 250, 247, 0.82) 55%, rgba(255, 250, 247, 0.42) 100%),
      linear-gradient(0deg, rgba(255, 250, 247, 0.94) 0%, rgba(255, 250, 247, 0) 35%);
  }

  .upload-grid,
  .analysis-board,
  .flow-list,
  .report-layout,
  .report-cards,
  .reference-grid,
  .face-match-card,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .face-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .video-links {
    grid-template-columns: 1fr;
  }

  .flow-list {
    gap: 12px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
  }

  .hero {
    padding-top: 96px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  section:not(.hero) {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }
}
