:root {
  --ink: #17202a;
  --muted: #667078;
  --paper: #fffdfb;
  --warm: #f7f1ec;
  --coral: #ff3f75;
  --coral-dark: #d92b5d;
  --pink-wash: #fff0f4;
  --blue: #2867e8;
  --green: #16795f;
  --line: #e7e1dc;
  --shadow: 0 18px 50px rgba(58, 42, 40, 0.14);
  --page: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 82px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 68px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 251, 0.9);
  border-bottom: 1px solid rgba(231, 225, 220, 0.7);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand-mark { position: relative; width: 34px; height: 30px; display: inline-block; }
.brand-mark span { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 5px; background: var(--coral); transform: rotate(-8deg); }
.brand-mark span:last-child { right: 0; bottom: 0; background: var(--blue); transform: rotate(172deg); }
.desktop-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 700; }
.desktop-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.desktop-nav a:hover { border-color: var(--coral); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-download { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; color: #fff; background: var(--ink); border-radius: 6px; font-size: 14px; font-weight: 750; }
.header-download img, .header-actions img { width: 18px; height: 18px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.mobile-nav { display: none; }

.hero {
  min-height: 680px;
  height: min(780px, calc(100svh - 26px));
  max-height: 780px;
  padding-top: 68px;
  background-color: #211a24;
  background-image: url("output/imagegen/tuhu-hero-v2-web.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-inner { width: var(--page); height: 100%; margin: 0 auto; position: relative; display: flex; align-items: center; }
.hero-copy { width: 55%; max-width: 650px; position: relative; z-index: 2; }
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60px -130px -60px -100vw;
  background: rgba(255, 253, 251, 0.86);
  backdrop-filter: blur(5px);
}
.eyebrow { margin: 0 0 14px; color: var(--coral-dark); font-size: 13px; font-weight: 850; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: 76px; line-height: 1; letter-spacing: 0; }
.hero-lede { margin: 24px 0 10px; font-size: 28px; line-height: 1.35; font-weight: 800; }
.hero-body { max-width: 590px; margin: 0; color: #4e565b; font-size: 17px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.download-button { min-width: 188px; height: 58px; padding: 0 18px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.download-button:hover { transform: translateY(-2px); }
.download-button img { width: 23px; height: 23px; flex: 0 0 auto; }
.download-button span { display: grid; line-height: 1.15; }
.download-button small { margin-bottom: 4px; font-size: 10px; font-weight: 700; opacity: 0.72; }
.download-button.primary { color: #fff; background: var(--coral); box-shadow: 0 10px 24px rgba(222, 49, 86, 0.28); }
.download-button.primary:hover { background: var(--coral-dark); }
.download-button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.download-button.dark { color: #fff; background: var(--ink); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; color: #5c6268; font-size: 12px; font-weight: 700; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes img { width: 16px; height: 16px; }

.call-preview {
  position: absolute;
  right: 8px;
  bottom: 54px;
  width: 220px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #101214;
  box-shadow: var(--shadow);
}
.caller-photo { width: 100%; height: 100%; object-fit: cover; }
.call-preview-top, .call-preview-bottom { position: absolute; z-index: 1; left: 0; right: 0; display: flex; align-items: center; color: #fff; background: rgba(18, 20, 22, 0.68); }
.call-preview-top { top: 0; height: 42px; padding: 0 10px; gap: 7px; font-size: 11px; }
.call-preview-top button { margin-left: auto; width: 30px; height: 30px; padding: 7px; border: 0; background: transparent; }
.call-preview-top img, .call-preview-bottom img { filter: brightness(0) invert(1); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #56df9e; box-shadow: 0 0 0 4px rgba(86, 223, 158, 0.16); }
.call-preview-bottom { bottom: 0; height: 64px; justify-content: center; gap: 14px; }
.call-preview-bottom button { width: 40px; height: 40px; padding: 11px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.call-preview-bottom .hangup { background: var(--coral); }

.signal-strip { width: var(--page); min-height: 110px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.signal-strip div { padding: 26px 22px; display: flex; align-items: baseline; gap: 10px; border-right: 1px solid var(--line); }
.signal-strip div:first-child { border-left: 1px solid var(--line); }
.signal-strip strong { font-size: 17px; }
.signal-strip span { color: var(--muted); font-size: 13px; }

.section { width: var(--page); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 670px; margin-bottom: 42px; }
.section-heading h2, .how-copy h2, .safety-copy h2, .download-copy h2 { margin: 0 0 14px; font-size: 42px; line-height: 1.2; letter-spacing: 0; }
.section-heading > p:last-child, .download-copy > p, .safety-copy > p { margin: 0; color: var(--muted); font-size: 16px; }
.section-heading.compact { margin-bottom: 24px; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.profile-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: transform 180ms ease, box-shadow 180ms ease; }
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.profile-card.featured { transform: translateY(-16px); }
.profile-card.featured:hover { transform: translateY(-21px); }
.profile-photo-wrap { position: relative; aspect-ratio: 1 / 0.96; overflow: hidden; background: var(--warm); }
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.online-status { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; color: #fff; background: var(--green); border: 2px solid #fff; border-radius: 999px; font-size: 11px; font-weight: 800; }
.profile-info { padding: 21px; }
.profile-info > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.profile-info h3 { margin: 0; font-size: 20px; }
.profile-info > div:first-child > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.profile-info p { min-height: 52px; margin: 10px 0 16px; color: #5c646a; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 9px; color: #49535b; background: var(--warm); border-radius: 4px; font-size: 11px; }
.fiction-note { margin: 16px 0 0; color: #8c9296; font-size: 11px; text-align: right; }

.keyword-band {
  margin: 0;
  padding: 62px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: center;
  color: #fff;
  background: var(--ink);
}
.keyword-band .eyebrow { color: #ff8cab; }
.keyword-band h2 { max-width: 520px; margin: 0; font-size: 32px; line-height: 1.28; }
.keyword-band > p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 15px; }

.how-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 90px; align-items: center; }
.how-visual { position: relative; min-height: 630px; background: var(--pink-wash); overflow: hidden; }
.how-visual::before { content: ""; position: absolute; width: 250px; height: 250px; top: 46px; left: 40px; background: #ffc8d4; border-radius: 50%; opacity: 0.68; }
.portrait-stack img { position: absolute; width: 270px; aspect-ratio: 1; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow); }
.portrait-stack img:first-child { top: 74px; left: 55px; }
.portrait-stack img:last-child { right: 42px; bottom: 76px; }
.invite-sheet { position: absolute; left: 54px; right: 54px; bottom: 39px; padding: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.invite-sheet .mini-label { color: var(--coral-dark); font-size: 11px; font-weight: 800; }
.invite-sheet strong { display: block; margin-top: 4px; font-size: 19px; }
.invite-sheet p { margin: 2px 0 14px; color: var(--muted); font-size: 12px; }
.invite-sheet > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.invite-sheet > div span { padding: 8px; background: var(--warm); border-radius: 5px; font-size: 12px; font-weight: 800; }
.invite-sheet > div .accept { color: #fff; background: var(--coral); }
.how-copy > .eyebrow { margin-bottom: 12px; }
.steps { margin-top: 32px; border-top: 1px solid var(--line); }
.steps article { padding: 21px 0; display: grid; grid-template-columns: 46px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.steps article > span { color: var(--coral-dark); font-size: 12px; font-weight: 850; }
.steps h3 { margin: 0 0 3px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.safety-section { color: #fff; background: #123f36; }
.safety-inner { width: var(--page); margin: 0 auto; padding: 100px 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: center; }
.safety-copy .eyebrow { color: #87efd0; }
.safety-copy > p { color: rgba(255, 255, 255, 0.72); }
.safety-copy a { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 800; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.safety-copy a img { width: 16px; filter: brightness(0) invert(1); }
.safety-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.safety-list article { min-height: 154px; padding: 20px; background: #fff; color: var(--ink); border-radius: 6px; display: flex; align-items: flex-start; gap: 14px; }
.safety-list > article > img { width: 25px; height: 25px; padding: 4px; background: #dff6ef; border-radius: 4px; }
.safety-list h3 { margin: 0 0 6px; font-size: 15px; }
.safety-list p { margin: 0; color: var(--muted); font-size: 12px; }

.download-section { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.download-photo { min-height: 500px; background: #211a24 url("output/imagegen/tuhu-hero-v2-web.webp") center / cover no-repeat; }
.download-copy h2 { font-size: 54px; }
.download-copy .version-note { margin-top: 15px; font-size: 11px; }

.faq-section { padding-top: 50px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 74px; padding: 19px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary img { width: 19px; height: 19px; transition: transform 180ms ease; }
.faq-list details[open] summary img { transform: rotate(45deg); }
.faq-list details p { max-width: 760px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }

footer { width: var(--page); margin: 0 auto; padding: 44px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 28px; border-top: 1px solid var(--line); }
.footer-brand p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; align-items: flex-start; gap: 24px; color: var(--muted); font-size: 12px; }
.copyright { grid-column: 1 / -1; margin: 18px 0 0; color: #969b9e; font-size: 11px; }

:focus-visible { outline: 3px solid rgba(40, 103, 232, 0.48); outline-offset: 3px; }

@media (max-width: 980px) {
  :root { --page: min(100% - 36px, 760px); }
  .desktop-nav, .header-download { display: none; }
  .menu-button { display: block; }
  .mobile-nav { position: absolute; z-index: 60; top: 68px; left: 18px; right: 18px; padding: 10px; display: grid; gap: 2px; background: #fffdfb; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(23, 32, 42, 0.22); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: 160ms ease; }
  .mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-nav a { padding: 12px 14px; font-size: 14px; font-weight: 750; }
  .hero { min-height: 700px; height: calc(100svh - 24px); max-height: 820px; background-position: 63% center; }
  .hero-copy { width: 70%; }
  .hero-copy::before { right: -70px; }
  .call-preview { width: 175px; right: -4px; bottom: 40px; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-grid { gap: 14px; }
  .keyword-band { grid-template-columns: 1fr; gap: 18px; padding: 54px max(24px, calc((100% - 760px) / 2)); }
  .profile-info > div:first-child { display: block; }
  .profile-info p { min-height: 68px; }
  .how-section { grid-template-columns: 1fr; gap: 54px; }
  .how-visual { min-height: 600px; }
  .safety-inner { grid-template-columns: 1fr; gap: 44px; }
  .download-section { grid-template-columns: 1fr; }
  .download-photo { min-height: 420px; }
}

@media (max-width: 680px) {
  :root { --page: calc(100% - 32px); }
  .site-header { height: 62px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 27px; }
  .brand-mark span { width: 20px; height: 20px; }
  .mobile-nav { top: 62px; }
  .hero { min-height: 610px; height: calc(100svh - 72px); max-height: 730px; padding-top: 62px; background-size: auto 58%; background-position: 62% 100%; background-color: #f2e8df; }
  .hero-inner { display: block; padding-top: 46px; }
  .hero-copy { width: 100%; }
  .hero-copy::before { inset: -40px -20px -48px -20px; background: rgba(255, 253, 251, 0.91); backdrop-filter: blur(4px); }
  .hero h1 { font-size: 56px; }
  .hero-lede { max-width: 330px; margin-top: 18px; font-size: 23px; }
  .hero-body { max-width: 360px; font-size: 14px; }
  .download-actions { gap: 8px; margin-top: 22px; }
  .download-button { min-width: 0; height: 54px; padding: 0 13px; flex: 1 1 calc(50% - 4px); font-size: 13px; }
  .download-button img { width: 20px; height: 20px; }
  .hero-notes { margin-top: 15px; gap: 12px; }
  .call-preview { width: 125px; right: 5px; bottom: 26px; border-width: 3px; }
  .call-preview-top { height: 31px; padding: 0 7px; font-size: 8px; }
  .call-preview-top button { width: 24px; height: 24px; }
  .call-preview-bottom { height: 45px; gap: 8px; }
  .call-preview-bottom button { width: 30px; height: 30px; padding: 8px; }
  .signal-strip { width: 100%; }
  .signal-strip div { padding: 18px 16px; display: block; }
  .signal-strip div:first-child { border-left: 0; }
  .signal-strip strong, .signal-strip span { display: block; }
  .signal-strip strong { font-size: 15px; }
  .signal-strip span { font-size: 11px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2, .how-copy h2, .safety-copy h2, .download-copy h2 { font-size: 32px; }
  .profile-grid { display: flex; overflow-x: auto; gap: 12px; padding: 0 16px 18px; margin: 0 -16px; scroll-snap-type: x mandatory; }
  .profile-card { min-width: 80%; scroll-snap-align: start; }
  .profile-card.featured, .profile-card.featured:hover { transform: none; }
  .profile-info p { min-height: auto; }
  .fiction-note { text-align: left; }
  .keyword-band { padding: 48px 16px; }
  .keyword-band h2 { font-size: 27px; }
  .keyword-band > p { font-size: 14px; }
  .how-section { gap: 40px; }
  .how-visual { min-height: 465px; }
  .how-visual::before { width: 180px; height: 180px; top: 24px; left: 20px; }
  .portrait-stack img { width: 190px; border-width: 5px; }
  .portrait-stack img:first-child { top: 42px; left: 25px; }
  .portrait-stack img:last-child { right: 20px; bottom: 70px; }
  .invite-sheet { left: 20px; right: 20px; bottom: 20px; }
  .steps article { grid-template-columns: 38px 1fr; }
  .safety-inner { width: var(--page); padding: 74px 0; }
  .safety-list { grid-template-columns: 1fr; }
  .safety-list article { min-height: 0; }
  .download-section { gap: 38px; }
  .download-photo { min-height: 350px; background-position: 64% center; }
  .download-copy h2 { font-size: 40px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
  .copyright { grid-column: 1; }
}

@media (max-width: 360px) {
  .download-button { padding: 0 9px; gap: 8px; font-size: 11px; }
  .download-button small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
