/* NiHao Desk — design system
   Warm paper background, ink text, one vermilion accent. No stock "chinoiserie". */

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --ink: #17202b;
  --muted: #5c6a73;
  --line: #e7e1d6;
  --accent: #c0432c;
  --accent-dark: #a3341f;
  --accent-soft: #f8ebe6;
  --teal: #2e6a5e;
  --teal-soft: #e8f1ed;
  --sand: #f3eee5;
  --shadow: 0 14px 40px rgba(23, 32, 43, .08);
  --shadow-sm: 0 4px 16px rgba(23, 32, 43, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .95rem; font-weight: 650; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(192, 67, 44, .22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-light { background: #fff; color: var(--accent); }
.btn svg { width: 17px; height: 17px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------- header ---------- */
.announce {
  background: var(--ink); color: #f5f1e9; text-align: center;
  font-size: .8rem; letter-spacing: .02em; padding: 9px 16px;
}
.announce strong { color: #ffcf9f; font-weight: 650; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
}
.brand span { color: var(--muted); font-weight: 450; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--muted); font-weight: 550; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 11px; cursor: pointer; font-size: 1rem; color: var(--ink);
}
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
  }
  .site-header.open .nav a { padding: 8px 0; width: 100%; }
  .site-header.open .nav a.active { border: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 82px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px;
  border-radius: 50%; background: radial-gradient(circle, #f6e7de 0%, rgba(246, 231, 222, 0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; position: relative; }
.hero h1 { margin: 22px 0 22px; max-width: 15ch; }
.hero .lede { font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-aside { position: relative; }

/* chat-card mock: the single most important visual — "a real person replies" */
.reply-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px; position: relative;
}
.reply-card::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border-radius: 22px; background: var(--sand); z-index: -1;
}
.reply-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
}
.reply-head b { display: block; font-size: .94rem; }
.reply-head small { color: var(--muted); font-size: .78rem; }
.online { margin-left: auto; font-size: .74rem; color: var(--teal); background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; font-weight: 650; }
.bubble {
  background: var(--sand); border-radius: 4px 16px 16px 16px; padding: 13px 16px;
  font-size: .92rem; margin: 18px 0 10px; max-width: 88%;
}
.bubble.mine { background: var(--accent-soft); border-radius: 16px 4px 16px 16px; margin-left: auto; color: #7a3526; }
.reply-time { font-size: .72rem; color: #97a0a6; letter-spacing: .02em; }
.reply-foot {
  display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--line); font-size: .79rem; color: var(--muted);
}
.reply-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.tint { background: var(--sand); }
.section.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 60ch; }
.section-head h2 { margin: 16px 0 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px;
}
.service-icon.teal { background: var(--teal-soft); color: var(--teal); }
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 1.55rem; }
.service-card p { color: var(--muted); margin: 12px 0 20px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .93rem; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--teal); opacity: .85;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-link { color: var(--accent); font-weight: 650; font-size: .92rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tag { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--accent); margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.trust-item b { display: block; margin-bottom: 7px; font-size: .98rem; }
.trust-item p { font-size: .87rem; color: var(--muted); margin: 0; }

/* page hero for sub-pages */
.page-hero { padding: 68px 0 60px; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 18px 0 18px; max-width: 18ch; font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.crumb { font-size: .83rem; color: var(--muted); }
.crumb a { color: var(--accent); text-decoration: none; }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
.content-block { margin-bottom: 52px; }
.content-block h2 { font-size: 1.85rem; margin-bottom: 16px; }
.content-block p { color: var(--muted); max-width: 68ch; }
.info-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.info-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.info-list b { display: block; font-size: .96rem; }
.info-list span { font-size: .88rem; color: var(--muted); }
.side-card { background: var(--ink); color: #f4f1ea; border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.side-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.side-card p { color: #c7ced3; font-size: .9rem; }
.side-card .btn { width: 100%; margin-top: 14px; }
.side-card .mini { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; color: #aeb9c0; }
.notice-band { background: var(--accent-soft); border: 1px solid #eed3c8; border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0 0; font-size: .9rem; color: #7c3b2a; }
.notice-band b { color: #6d2f1f; }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 650; font-size: .98rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--muted); font-size: .92rem; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-line .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-line .ico svg { width: 18px; height: 18px; }
.contact-line b { display: block; font-size: .94rem; }
.contact-line span, .contact-line a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.contact-line a:hover { color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .93rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form-note { font-size: .79rem; color: var(--muted); margin: 16px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 10px; background: var(--teal-soft); color: #22564b; font-size: .88rem; }
.form-status.show { display: block; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 62px 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto 16px; }
.cta-band p { color: #ffe9e1; max-width: 56ch; margin: 0 auto 26px; }
.cta-band .btn-light:hover { background: #fff4ee; }

/* footer */
.site-footer { background: var(--ink); color: #b9c2c8; padding: 54px 0 28px; font-size: .87rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { display: block; color: #b9c2c8; text-decoration: none; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 40px; padding-top: 22px; font-size: .78rem; color: #8e9aa2; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.disclaimer { font-size: .76rem; color: #7d8991; line-height: 1.6; max-width: 90ch; margin-bottom: 20px; }

@media (max-width: 940px) {
  .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; gap: 42px; }
  .grid-4, .steps, .trust-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .side-card { position: static; }
  .hero { padding: 58px 0 62px; }
  .section { padding: 60px 0; }
  .reply-card { max-width: 480px; }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .grid-2, .grid-3, .grid-4, .steps, .trust-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .service-card, .form-card { padding: 24px; }
  .section { padding: 50px 0; }
  .footer-bottom { flex-direction: column; }
}
