/* 美查查医美 CRM 官网 */
:root {
  --gold: #b8956c;
  --gold-dark: #9a7a52;
  --gold-light: #d4b896;
  --ink: #1a1512;
  --ink-muted: #5c534c;
  --ink-light: #8a8178;
  --cream: #faf8f5;
  --white: #ffffff;
  --rose: #e8d5c8;
  --border: rgba(184, 149, 108, 0.22);
  --shadow: 0 20px 60px rgba(26, 21, 18, 0.08);
  --shadow-lg: 0 32px 80px rgba(26, 21, 18, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", Georgia, serif;
  --max: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(26, 21, 18, 0.06); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-light);
}
.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav-desktop a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(184, 149, 108, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(184, 149, 108, 0.45); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-mobile.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}
.nav-mobile { display: none; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(212, 184, 150, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 213, 200, 0.4), transparent),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(184, 149, 108, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 32rem;
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-light);
}
.hero-trust strong { color: var(--ink); display: block; font-size: 1.1rem; }

.phone-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  max-width: 320px;
  margin-left: auto;
}
.phone-mock .bar {
  height: 8px;
  width: 40%;
  background: var(--rose);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.mock-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.mock-card h4 { font-size: 0.9rem; margin-bottom: 0.35rem; }
.mock-card p { font-size: 0.75rem; color: var(--ink-light); }
.mock-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(184, 149, 108, 0.2);
  color: var(--gold-dark);
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Sections */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
}
.section-head p { margin-top: 0.75rem; color: var(--ink-muted); font-size: 1.02rem; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.pain-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 149, 108, 0.15), rgba(232, 213, 200, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.pain-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pain-card p { font-size: 0.9rem; color: var(--ink-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-card .num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.88rem; color: var(--ink-muted); }

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }
.role-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--white), var(--cream));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.role-card .role-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.role-card h3 { font-size: 1.1rem; }
.role-card p { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.5rem; }

.advantage-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .advantage-strip { grid-template-columns: repeat(2, 1fr); } }
.adv-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.adv-item .val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.adv-item .lbl { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.25rem; }

.custom-block {
  background: linear-gradient(135deg, #2a2520 0%, #1a1512 100%);
  color: #f5f0eb;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .custom-block { grid-template-columns: 1fr; padding: 2rem; }
}
.custom-block h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.custom-block p { color: rgba(245, 240, 235, 0.78); font-size: 0.95rem; }
.custom-block ul { margin-top: 1rem; list-style: none; }
.custom-block li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.9);
}
.custom-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* Contact */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 1rem;
}
.contact-info > p { color: var(--ink-muted); margin-bottom: 1.5rem; }
.contact-channels { display: flex; flex-direction: column; gap: 1rem; }
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.channel .ch-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.channel strong { display: block; font-size: 0.95rem; }
.channel span { font-size: 0.85rem; color: var(--ink-muted); }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.contact-form .hint { font-size: 0.82rem; color: var(--ink-light); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.15);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row.half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row.half { grid-template-columns: 1fr; } }
.form-submit { width: 100%; margin-top: 0.5rem; padding: 1rem; }
.form-privacy { font-size: 0.75rem; color: var(--ink-light); margin-top: 0.75rem; text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success .ok { font-size: 3rem; margin-bottom: 1rem; }
.contact-form.hidden,
#lead-form.hidden { display: none !important; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item button::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item.open button::after { content: "−"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 280px; }
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255, 255, 255, 0.65); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* SEO content block (readable, keyword-rich) */
.seo-article {
  padding: 3rem 0;
  background: var(--cream);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.seo-article h2 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.seo-article p { margin-bottom: 0.75rem; max-width: 72ch; }

/* AI 赋能区块 */
#ai { background: var(--white); }
.ai-hero-block {
  background: linear-gradient(145deg, #1e2a42 0%, #2a3550 40%, #1a2438 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: #f0f4fa;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.ai-hero-block::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(124, 107, 207, 0.35), transparent 70%);
  pointer-events: none;
}
.ai-hero-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.ai-hero-block p {
  font-size: 0.95rem;
  color: rgba(240, 244, 250, 0.82);
  max-width: 52rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ai-card .ai-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5b4bb8;
  background: rgba(124, 107, 207, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.ai-card h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--ink); }
.ai-card p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.65; }
.ai-card .before-after {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
}
.ai-card .before-after em {
  font-style: normal;
  font-weight: 600;
  color: var(--seed-dark);
}
.ai-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ai-flow span {
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  background: var(--cream);
  border-radius: 8px;
  color: var(--ink-muted);
}
.ai-flow .arrow { color: var(--gold); background: none; padding: 0 0.15rem; }

.case-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.case-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .case-card { flex-direction: column; } }
.case-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  background: rgba(184, 149, 108, 0.15);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-link {
  display: block;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.insight-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  color: inherit;
}
.insight-link h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.35rem; }
.insight-link p { font-size: 0.85rem; color: var(--ink-muted); }
.insight-link .read { font-size: 0.8rem; color: var(--seed); font-weight: 600; margin-top: 0.65rem; display: inline-block; }

/* 内容页（GEO 文章） */
.article-page { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; }
.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.article-meta { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 2rem; }
.article-body h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
}
.article-body p, .article-body li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  max-width: 68ch;
}
.article-body ul { margin-left: 1.25rem; margin-bottom: 1rem; }
.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.08), rgba(184, 149, 108, 0.1));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* App 下载区 */
.app-download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.app-download-bar .btn { font-size: 0.95rem; }
.app-download-bar small { opacity: 0.85; font-weight: 400; }
.app-hint, .app-loading {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  width: 100%;
}
.app-screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.app-shot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-shot img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}
.app-shot figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}
.insight-link .tag-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(184, 149, 108, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
