/* =========================================================================
 * 一齿嘉口腔 · 静态原型站样式
 * 设计变量对齐 dental-care-clinic 主题 tokens.json：
 *   primary #126b68 / primary_dark #0a4d4b / accent #d56b48 / ink #162323
 *   muted #617170 / background #f5f7f4 / surface #fff / soft #e8f1ef / line #dbe3df
 *   shell 1180px / radius 6px / section_spacing clamp(64px,9vw,112px)
 * ========================================================================= */

:root {
  --primary: #126b68;
  --primary-dark: #0a4d4b;
  --accent: #d56b48;
  --ink: #162323;
  --muted: #617170;
  --background: #f5f7f4;
  --surface: #ffffff;
  --soft: #e8f1ef;
  --line: #dbe3df;
  --shell: 1180px;
  --radius: 6px;
  --section: clamp(64px, 9vw, 112px);
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(16, 35, 35, 0.06);
  --shadow-lg: 0 18px 48px rgba(16, 35, 35, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; }

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

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

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section) 0; }

.muted { color: var(--muted); }

.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--primary-dark); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: 18px; box-shadow: var(--shadow);
}
.brand .en { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius); font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--soft); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.cta {
  background: var(--accent); color: #fff; font-weight: 600; padding: 9px 18px;
}
.nav-links a.cta:hover { background: #c15a39; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c15a39; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(213, 107, 72, 0.14), transparent 60%),
    linear-gradient(160deg, var(--primary-dark), var(--primary) 55%, #1b837e);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: #fff; margin-bottom: 18px; }
.hero .slogan { font-size: clamp(18px, 2.4vw, 24px); color: #d7eef0; font-family: var(--display); margin-bottom: 16px; }
.hero p.lead { color: #cfe6e4; max-width: 520px; font-size: 16px; }
.hero .hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .phone-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 10px 18px; border-radius: 999px; font-size: 15px;
}
.hero .phone-pill b { font-size: 18px; letter-spacing: .5px; }
.hero-art {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 28px; display: grid; gap: 14px;
}
.hero-art .stat { display: flex; align-items: baseline; gap: 10px; }
.hero-art .stat b { font-family: var(--display); font-size: 30px; color: #fff; }
.hero-art .stat span { color: #cfe6e4; font-size: 14px; }
.hero-art .divider { height: 1px; background: rgba(255,255,255,.16); }

/* ---------- 区块标题 ---------- */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--accent); letter-spacing: 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 12px; }
.section-head p { color: var(--muted); }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--soft); }

/* 诊疗服务卡 */
.service-card .no { font-family: var(--display); font-size: 14px; color: var(--accent); font-weight: 700; }
.service-card h3 { font-size: 20px; margin: 6px 0 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; }
.service-card { display: flex; flex-direction: column; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start;
  padding: 10px 18px; background: var(--primary); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.service-card .more::after { content: "→"; transition: transform .2s; }
.service-card .more:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.service-card .more:hover::after { transform: translateX(4px); }
.tag { font-size: 12.5px; background: var(--soft); color: var(--primary); padding: 4px 10px; border-radius: 999px; }

/* 医师卡 */
.doctor-card { text-align: center; padding: 0; overflow: hidden; }
.doctor-card .photo {
  aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--soft);
}
.doctor-card .photo-ph {
  aspect-ratio: 1/1; display: grid; place-items: center; background: var(--soft);
  color: var(--primary); font-family: var(--display); font-size: 40px;
}
.doctor-card .body { padding: 18px 20px 24px; }
.doctor-card h3 { font-size: 19px; }
.doctor-card .title { color: var(--accent); font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.doctor-card .bio { color: var(--muted); font-size: 13.5px; text-align: left; }
.doctor-card.pending { opacity: .85; }
.doctor-card.pending .title { color: var(--muted); }

/* 文章卡 */
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card .meta { padding: 20px 22px 0; }
.article-card .cat-tag { font-size: 12px; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; }
.article-card h3 { font-size: 18px; margin: 8px 0 8px; line-height: 1.4; }
.article-card .excerpt { color: var(--muted); font-size: 14px; padding: 0 22px; }
.article-card .foot { margin-top: auto; padding: 16px 22px 22px; display: flex; align-items: center; justify-content: space-between; }
.article-card .date { color: var(--muted); font-size: 13px; }
.article-card .more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* 信息提示条 */
.info-banner {
  background: linear-gradient(180deg, #fff, var(--soft));
  border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
  font-size: 14px; color: var(--muted);
}
.info-banner b { color: var(--primary); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-family: var(--display); font-size: 18px; font-weight: 600; display: flex; gap: 12px; }
.faq-item .q .dot { color: var(--accent); }
.faq-item .a { color: var(--muted); margin: 10px 0 0 32px; font-size: 15px; }

/* 主张区块 */
.statement { background: var(--surface); }
.statement .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.statement blockquote { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); line-height: 1.5; margin: 0; color: var(--ink); }
.statement blockquote .hl { color: var(--primary); }
.statement .body p { color: var(--muted); }

/* 数据/门店卡 */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.info-card .k { color: var(--muted); font-size: 13px; }
.info-card .v { font-size: 18px; font-weight: 600; margin-top: 6px; font-family: var(--display); }

/* 表单 */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--body); font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

/* 文章详情页 */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.article-wrap .cat-tag { color: var(--accent); letter-spacing: 1.5px; font-size: 13px; font-weight: 700; }
.article-wrap h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 14px; }
.article-wrap .byline { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article-wrap .prose { font-size: 16px; color: #20302f; }
.article-wrap .prose p { margin: 0 0 18px; }
.article-placeholder {
  background: var(--soft); border: 1px dashed var(--primary); border-radius: var(--radius);
  padding: 22px; color: var(--primary); font-size: 14.5px; margin: 24px 0;
}
.article-cover {
  width: 100%; border-radius: 12px; margin: 0 0 24px;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft);
}
.article-wrap .prose h2 { font-size: 22px; margin: 32px 0 12px; }
.article-wrap .prose h3 { font-size: 18px; margin: 26px 0 10px; }
.article-wrap .prose h4 { font-size: 16px; margin: 22px 0 8px; }
.article-wrap .prose ul, .article-wrap .prose ol { margin: 0 0 18px; padding-left: 22px; }
.article-wrap .prose li { margin-bottom: 8px; }
.article-wrap .prose img { max-width: 100%; border-radius: 12px; margin: 8px 0 18px; }
.article-wrap .prose blockquote {
  border-left: 3px solid var(--accent); margin: 20px 0; padding: 2px 0 2px 16px;
  color: var(--muted); font-size: 15px;
}
.article-wrap .prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.article-wrap .prose th, .article-wrap .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-wrap .prose th { background: var(--soft); font-weight: 600; }
.article-wrap .prose a { color: var(--primary); border-bottom: 1px solid var(--soft); }
.article-wrap .prose hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--primary); font-weight: 600; font-size: 14px; }

/* 文章卡片封面缩略图 */
.article-card.has-cover { display: flex; flex-direction: column; overflow: hidden; }
.article-card.has-cover .article-thumb-wrap { margin: 0; line-height: 0; }
.article-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); display: block; }

/* 文章详情页真实案例图库 */
.article-gallery { margin: 28px 0; }
.article-gallery h3 { font-size: 18px; margin: 0 0 14px; color: var(--primary-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; display: block; }
.gallery-item figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; }

/* 诊疗项目详情页 */
.svc-hero { padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.svc-hero .no { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.svc-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 12px; color: var(--primary-dark); }
.svc-hero .lede { font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.7; }
.svc-hero .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-cta { margin: 28px 0 8px; }
.tags.related { display: flex; flex-wrap: wrap; gap: 10px; }
.tags.related .tag { text-decoration: none; padding: 7px 14px; font-size: 13.5px; transition: background .15s, color .15s; }
.tags.related .tag:hover { background: var(--primary); color: #fff; }

/* 页脚 */
.site-footer { background: var(--primary-dark); color: #cfe6e4; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #cfe6e4; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #9fc3c0; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #9fc3c0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 面包屑 */
.crumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumb a:hover { color: var(--primary); }

/* 响应式 */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .statement .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--soft); border-radius: var(--radius); border: none; cursor: pointer; font-size: 18px; color: var(--primary); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- 环境照片画廊与视频 ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
  transition: transform .2s, box-shadow .2s;
}
.photo-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video-wrap video,
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-card .muted {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 900px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery img { height: 180px; }
}

/* ===== 品牌 Logo（真实图片） ===== */
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; width: auto; padding: 5px 10px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18, 107, 104, .12);
  overflow: hidden; flex: 0 0 auto;
}
.logo-badge img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }
.logo-badge.on-dark { background: #fff; box-shadow: none; }
/* 页脚里的 logo 徽章与深色底衔接 */
.site-footer .logo-badge { height: 44px; }
