/* 九紫莲健康管理（山东）有限公司 — 官网样式 */

:root {
  --ink: #1f2328;
  --ink-2: #5a6169;
  --ink-3: #8b9299;
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --bg-soft-2: #f1f4f3;
  --brand: #6b4e9b;
  --brand-2: #9b7fc4;
  --brand-soft: #f2eefa;
  --accent: #2e9e8f;
  --accent-soft: #e8f4f2;
  --line: #e7e4e0;
  --line-soft: #f0ede9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 8px rgba(31, 35, 40, .04), 0 12px 32px rgba(31, 35, 40, .06);
  --shadow-hover: 0 4px 12px rgba(31, 35, 40, .06), 0 20px 48px rgba(31, 35, 40, .1);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center; color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(107, 78, 155, .28);
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt b { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.logo-txt span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 15px; border-radius: 9px; font-size: 15px; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-cta {
  margin-left: 10px; padding: 9px 20px !important; border-radius: 999px !important;
  background: var(--brand) !important; color: #fff !important; font-weight: 500;
  box-shadow: 0 4px 14px rgba(107, 78, 155, .24);
}
.nav-cta:hover { background: var(--brand-2) !important; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--bg-soft); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 42%, rgba(255,255,255,.35) 72%, rgba(255,255,255,.15) 100%);
}
.hero-in { position: relative; z-index: 2; padding: 96px 0; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: 46px; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 17.5px; color: var(--ink-2); line-height: 1.85; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: all .2s; font-family: var(--font);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(107, 78, 155, .26); }
.btn-primary:hover { background: #5b4188; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line-soft); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; font-weight: 600; color: var(--brand); letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Section ---------- */
.sec { padding: 96px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.c { text-align: center; margin-left: auto; margin-right: auto; }
.sec-tag { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.sec-head h2 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #dcd7d1; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 12.5px; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { color: var(--ink-2); font-size: 15px; line-height: 1.78; }
.card-points { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-points li { font-size: 14px; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.65; }
.card-points li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--ink-2); font-size: 16px; margin-bottom: 18px; }
.prose h3 { font-size: 20px; margin-bottom: 12px; }

.timeline { margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-size: 19px; font-weight: 600; color: var(--brand); }
.tl-item h4 { font-size: 16.5px; margin-bottom: 6px; font-weight: 600; }
.tl-item p { font-size: 15px; color: var(--ink-2); }

/* ---------- Cases ---------- */
.case-item {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.case-item:first-of-type { border-top: 1px solid var(--line); }
.case-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.metric { padding: 7px 14px; background: var(--accent-soft); color: #21776b; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.case-meta { font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.case-item h3 { font-size: 20px; margin-bottom: 10px; }
.case-item p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px; background: none; border: 0; cursor: pointer;
  font-size: 16.5px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between;
  align-items: center; gap: 20px; font-family: var(--font); line-height: 1.6;
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 300; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 24px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.faq-item.open .faq-a { display: block; }

/* ---------- News ---------- */
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-date { font-size: 14px; color: var(--ink-3); padding-top: 3px; }
.news-tag { display: inline-block; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.news-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-item p { color: var(--ink-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #6b4e9b 0%, #8368b0 55%, #2e9e8f 160%);
  border-radius: var(--radius-lg); padding: 64px 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { opacity: .9; font-size: 16px; }
.cta .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.info-row { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row dt { font-size: 14.5px; color: var(--ink-3); }
.info-row dd { margin: 0; font-size: 15.5px; color: var(--ink); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.7; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-msg.ok { display: block; background: var(--accent-soft); color: #21776b; }
.form-msg.err { display: block; background: #fdeeee; color: #a63d3d; }

/* ---------- Auth bar ---------- */
.authbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--brand-soft); border-radius: var(--radius);
  font-size: 14.5px; color: #5b4188; margin-bottom: 20px;
}
.authbar button {
  padding: 8px 18px; border-radius: 999px; border: 0; background: var(--brand); color: #fff;
  font-size: 14px; cursor: pointer; font-family: var(--font);
}
.authbar .btn-link { background: none; color: var(--brand); padding: 8px 10px; text-decoration: underline; }

/* ---------- Resources (云存储资料库) ---------- */
.res-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px;
}
.res-item h4 { font-size: 16px; margin-bottom: 4px; }
.res-item p { font-size: 14px; color: var(--ink-2); }
.res-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand);
  background: #fff; font-size: 14px; cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.res-btn:hover { background: var(--brand); color: #fff; }
.res-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(31, 35, 40, .42); padding: 24px;
}
.modal.show { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  padding: 34px; box-shadow: 0 24px 64px rgba(31, 35, 40, .22); max-height: 90vh; overflow-y: auto;
}
.modal-box h3 { font-size: 21px; margin-bottom: 8px; }
.modal-box > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: 9px; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-family: var(--font); color: var(--ink-2);
}
.tabs button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.modal-close { position: absolute; top: 18px; right: 18px; }

/* ---------- Footer ---------- */
.ftr { background: #1f2328; color: #c8ccd1; padding: 72px 0 32px; margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.09); }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.ftr p { font-size: 14.5px; line-height: 1.85; color: #9aa1a8; }
.ftr li { font-size: 14.5px; padding: 5px 0; }
.ftr li a { color: #9aa1a8; transition: color .18s; }
.ftr li a:hover { color: #fff; }
.ftr-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ftr-bot { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #767d85; }

/* ---------- Page hero (inner) ---------- */
.phero,
.page-hero { background: var(--bg-soft); padding: 76px 0 64px; border-bottom: 1px solid var(--line-soft); }
.phero h1,
.page-hero h1 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 14px; }
.phero p,
.page-hero p { color: var(--ink-2); font-size: 17px; max-width: 660px; }
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a:hover { color: var(--brand); }

/* ---------- Service rows ---------- */
.svc-row {
  display: grid; grid-template-columns: .88fr 1.12fr; gap: 52px; align-items: center;
  padding: 52px 0; border-bottom: 1px solid var(--line);
}
.svc-row:first-child { border-top: 1px solid var(--line); }
.svc-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-soft-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-txt h2 { font-size: 27px; margin-bottom: 12px; }
.svc-sum { font-size: 17px; color: var(--ink); margin-bottom: 14px; line-height: 1.7; }
.svc-txt > p { color: var(--ink-2); font-size: 15.5px; }
.svc-txt .card-points { margin-top: 18px; }
.svc-txt .card-points li { font-size: 14.5px; }

/* ---------- Misc ---------- */
.tagline-box {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; margin: 24px 0;
  font-size: 17px; color: var(--ink); line-height: 1.8;
}
.notice { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px; font-size: 14.5px; color: var(--ink-2); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .sec-head h2 { font-size: 28px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.open a { width: 100%; padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
  .burger { display: block; }
  .grid-3, .grid-2, .steps, .stats-in { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero-in { padding: 72px 0; }
  .hero h1 { font-size: 31px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 60%, rgba(255,255,255,.7) 100%); }
  .sec { padding: 64px 0; }
  .sec-head h2 { font-size: 25px; }
  .stat { padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .case-item, .news-item { grid-template-columns: 1fr; gap: 14px; }
  .svc-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .svc-txt h2 { font-size: 22px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .info-row { grid-template-columns: 78px 1fr; }
  .cta { padding: 40px 28px; }
  .cta h2 { font-size: 24px; }
  .form-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .phero h1, .page-hero h1 { font-size: 30px; }
  .res-item { flex-direction: column; align-items: flex-start; }
}
