/* ==========================================================================
   自贡时代口腔 官网样式表
   设计方向: 医疗专业感 + 克制的东方留白
   主色: 深青 (信赖/洁净)  点缀: 暖金 (品质)  背景: 冷白
   适配: PC / 平板 / 手机 三档响应式, 移动端带固定操作栏
   ========================================================================== */

:root {
    --c-primary: #0b5c6b;
    --c-primary-dark: #08434f;
    --c-primary-light: #12808f;
    --c-accent: #b8842c;
    --c-accent-light: #d9ab52;
    --c-ink: #17262c;
    --c-text: #3d5259;
    --c-muted: #6d8189;
    --c-line: #dfe7ea;
    --c-line-soft: #eef3f5;
    --c-bg: #ffffff;
    --c-bg-alt: #f5f8f9;
    --c-bg-deep: #0b2f38;
    --c-danger: #a33a3a;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 47, 56, .06);
    --shadow-md: 0 6px 24px rgba(11, 47, 56, .08);
    --wrap: 1200px;
    --gap: 28px;
    --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
    --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--c-primary-light);
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--c-ink);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; }

address { font-style: normal; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 10px 18px;
    z-index: 999;
}

.skip-link:focus {
    left: 0;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.btn-ghost:hover {
    background: var(--c-primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--c-bg-deep);
    color: #cfe3e7;
    font-size: 13px;
    line-height: 1.6;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
}

.topbar-brand strong {
    color: #fff;
    margin-right: 10px;
    font-weight: 600;
}

.topbar-brand span {
    color: #9dbcc3;
}

.topbar-links {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-hours {
    color: #9dbcc3;
}

.topbar-tel {
    color: var(--c-accent-light);
    font-weight: 600;
}

.topbar-tel:hover {
    color: #fff;
}

/* ---------- 头部导航 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 60;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 86px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* 品牌标识: 固定高度 + 宽度自适应, 保持原始长宽比不变形。
   实际像素尺寸由后台"品牌信息 -> 品牌标识"上传的图片决定,
   模板会把真实宽高写入 img 的 width/height 属性以避免布局抖动。 */
.logo img {
    height: 58px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-text strong {
    font-size: 20px;
    color: var(--c-ink);
    letter-spacing: .02em;
}

.logo-text em {
    font-style: normal;
    font-size: 12px;
    color: var(--c-muted);
    letter-spacing: .06em;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-line);
    background: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 11px 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--c-ink);
    margin-bottom: 5px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span:last-child {
    margin-bottom: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 注意: 这里必须用 ">" 限定为直接子元素。
   若写成 .site-nav ul, 会同时匹配到下拉子菜单 .sub-menu,
   其 display: flex 会覆盖 .sub-menu 的 display: none (选择器优先级更高),
   导致所有子菜单在页面加载时就是展开状态。 */
.site-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav > ul > li {
    position: relative;
}

.site-nav > ul > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--c-ink);
    font-weight: 500;
    border-radius: var(--radius);
    white-space: nowrap;
}

.site-nav > ul > li > a:hover {
    background: var(--c-bg-alt);
    color: var(--c-primary);
}

.site-nav > ul > li.active > a {
    color: var(--c-primary);
    font-weight: 700;
}

.site-nav > ul > li.active > a::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--c-accent);
    margin-top: 6px;
    border-radius: 2px;
}

.sub-toggle {
    display: none;
}

.sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: none;
    z-index: 80;
}

/* 子菜单开合统一由 .open 类控制 (见 assets/site/js/site.js)
   不使用 :hover / :focus-within 展开: 点击链接后焦点会残留在元素上,
   导致下拉菜单无法自动收起。 */
.has-sub.open > .sub-menu {
    display: block;
}

/* 无 JavaScript 环境下的兜底: 桌面端仍可用鼠标悬停展开 */
@media (min-width: 901px) {
    .no-js .has-sub:hover > .sub-menu {
        display: block;
    }
}

.sub-menu li a {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--c-text);
    border-radius: var(--radius);
}

.sub-menu li a:hover {
    background: var(--c-bg-alt);
    color: var(--c-primary);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-line-soft);
    font-size: 13px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    color: var(--c-muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--c-line);
}

.breadcrumb a {
    color: var(--c-muted);
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.breadcrumb [aria-current] {
    color: var(--c-ink);
}

/* ---------- 首页首屏 ---------- */
.hero {
    background:
        radial-gradient(1100px 420px at 82% -10%, rgba(18, 128, 143, .12), transparent 62%),
        linear-gradient(180deg, #f2f7f8 0%, #ffffff 100%);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 64px 0 56px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: .18em;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(184, 132, 44, .35);
}

.hero h1 {
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: 16px;
    color: var(--c-text);
    max-width: 44em;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 22px 0 30px;
}

.hero-points li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--c-ink);
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--c-accent);
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-clinics {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.hero-clinics-title {
    font-size: 15px;
    letter-spacing: .08em;
    color: var(--c-muted);
    font-weight: 600;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--c-line-soft);
}

.hero-clinic {
    padding: 16px 0;
    border-bottom: 1px dashed var(--c-line);
}

.hero-clinic:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hero-clinic h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.hero-clinic address {
    display: block;
    font-size: 14px;
    color: var(--c-text);
}

.hc-row,
.cl-row,
.fc-row {
    display: block;
    margin-bottom: 4px;
    line-height: 1.6;
}

.hc-label,
.cl-label,
.fc-label {
    display: inline-block;
    min-width: 60px;
    color: var(--c-muted);
    font-size: 13px;
    margin-right: 4px;
}

.hc-links {
    margin: 10px 0 0;
    font-size: 13px;
    display: flex;
    gap: 16px;
}

.hc-links a {
    color: var(--c-primary);
}

/* ---------- 公告条 ---------- */
.notices {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 14px 0;
}

.notices-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.notices-title {
    margin: 0;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--c-accent);
    flex: 0 0 auto;
    padding-right: 18px;
    border-right: 1px solid var(--c-line);
}

.notices-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    font-size: 14px;
    flex: 1 1 auto;
}

.notices-list time {
    color: var(--c-muted);
    margin-right: 10px;
    font-variant-numeric: tabular-nums;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-line-soft);
    border-bottom: 1px solid var(--c-line-soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-eyebrow {
    font-size: 13px;
    letter-spacing: .18em;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--c-muted);
    font-size: 15px;
    margin: 0;
}

.section-foot {
    margin: 36px 0 0;
    text-align: center;
}

/* ---------- 项目网格 ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--c-line);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    counter-reset: svc;
}

.service-card {
    background: #fff;
    padding: 30px 26px 28px;
    position: relative;
    counter-increment: svc;
    transition: background .2s ease;
}

.service-card::before {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 26px;
    font-weight: 700;
    color: var(--c-line-soft);
    font-style: italic;
    letter-spacing: -.02em;
}

.service-card:hover {
    background: #fbfdfd;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.service-sub {
    font-size: 13px;
    color: var(--c-accent);
    margin-bottom: 12px;
    letter-spacing: .02em;
}

.service-summary {
    font-size: 14px;
    color: var(--c-text);
    margin-bottom: 18px;
    min-height: 66px;
}

.service-more,
.news-more,
.doctor-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-more span,
.news-more span,
.doctor-more span {
    transition: transform .2s ease;
}

.service-more:hover span,
.news-more:hover span,
.doctor-more:hover span {
    transform: translateX(4px);
}

/* ---------- 门店网格 ---------- */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.clinic-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.clinic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.clinic-cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--c-bg-alt);
    overflow: hidden;
}

.clinic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-body {
    padding: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.clinic-body h3 {
    font-size: 19px;
    margin-bottom: 4px;
}

.clinic-region {
    font-size: 13px;
    color: var(--c-accent);
    margin-bottom: 14px;
}

.clinic-body address {
    font-size: 14px;
    margin-bottom: 14px;
}

.clinic-intro {
    font-size: 14px;
    color: var(--c-muted);
    flex: 1 1 auto;
}

.clinic-actions {
    display: flex;
    gap: 10px;
    margin: 0;
}

/* ---------- 医生卡片 ---------- */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.doctor-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    transition: box-shadow .2s ease;
}

.doctor-card:hover {
    box-shadow: var(--shadow-md);
}

.doctor-photo {
    flex: 0 0 132px;
    background: var(--c-bg-alt);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.doctor-body h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.doctor-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-accent);
    margin-left: 6px;
}

.doctor-meta {
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 10px;
}

.doctor-specialty {
    font-size: 14px;
    flex: 1 1 auto;
    margin-bottom: 14px;
}

/* ---------- 新闻 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.news-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-primary);
    border-radius: var(--radius);
    padding: 24px;
}

.news-card time {
    display: block;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card p {
    font-size: 14px;
    color: var(--c-text);
    margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
    margin: 0;
    border-top: 1px solid var(--c-line);
}

.faq-item {
    border-bottom: 1px solid var(--c-line);
    padding: 22px 0;
}

.faq-item dt {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.faq-item dt::before {
    content: "问";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--c-primary);
    border-radius: 2px;
}

.faq-item dd {
    margin: 0;
    font-size: 15px;
    color: var(--c-text);
    padding-left: 30px;
}

/* ---------- 资质摘要 ---------- */
.qual-summary {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 8px 28px;
}

.qual-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px dashed var(--c-line);
    font-size: 15px;
}

.qual-row:last-child {
    border-bottom: 0;
}

.qual-label {
    min-width: 120px;
    color: var(--c-muted);
    font-size: 14px;
}

.qual-value {
    color: var(--c-ink);
    flex: 1 1 auto;
}

/* ---------- 内页页头 ---------- */
.page-head {
    background:
        radial-gradient(900px 300px at 88% -20%, rgba(18, 128, 143, .1), transparent 60%),
        var(--c-bg-alt);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 48px 0 40px;
}

.page-head h1 {
    font-size: 30px;
    margin-bottom: 12px;
}

.page-head .page-sub {
    color: var(--c-muted);
    font-size: 15px;
    max-width: 60em;
    margin: 0;
}

/* ---------- 详情双栏布局 ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
    padding: 56px 0;
}

.detail-main {
    min-width: 0;
}

.detail-side {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.side-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.side-card h2,
.side-card h3 {
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-line-soft);
    margin-bottom: 14px;
}

.side-list {
    list-style: none;
    font-size: 14px;
}

.side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--c-line-soft);
}

.side-list li:last-child {
    border-bottom: 0;
}

.side-contact {
    background: var(--c-bg-deep);
    color: #d5e6ea;
    border: 0;
}

.side-contact h2,
.side-contact h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .14);
}

.side-contact .side-tel {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--c-accent-light);
    margin-bottom: 6px;
}

.side-contact p {
    font-size: 14px;
    margin-bottom: 14px;
}

.side-contact .btn {
    width: 100%;
    margin-bottom: 10px;
}

.side-contact .btn-ghost {
    border-color: rgba(255, 255, 255, .4);
    color: #eaf4f6;
}

.side-contact .btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ---------- 富文本正文 ---------- */
.rich-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--c-text);
}

.rich-text h2 {
    font-size: 22px;
    margin: 40px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--c-accent);
}

.rich-text h3 {
    font-size: 18px;
    margin: 28px 0 10px;
}

.rich-text p {
    margin-bottom: 16px;
}

.rich-text ul,
.rich-text ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.rich-text li {
    margin-bottom: 8px;
}

.rich-text img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.rich-text th,
.rich-text td {
    border: 1px solid var(--c-line);
    padding: 10px 14px;
    text-align: left;
}

.rich-text th {
    background: var(--c-bg-alt);
    color: var(--c-ink);
}

/* ---------- 流程步骤 ---------- */
.step-list {
    list-style: none;
    counter-reset: step;
    margin: 0 0 8px;
}

.step-list li {
    position: relative;
    padding: 0 0 26px 54px;
    border-left: 1px solid var(--c-line);
    margin-left: 15px;
}

.step-list li:last-child {
    border-left-color: transparent;
    padding-bottom: 4px;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -16px;
    top: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.step-list strong {
    display: block;
    color: var(--c-ink);
    font-size: 16px;
    margin-bottom: 4px;
}

.step-list p {
    margin: 0;
    font-size: 15px;
    color: var(--c-text);
}

/* ---------- 信息表 ---------- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-bottom: 28px;
}

.info-table th,
.info-table td {
    border: 1px solid var(--c-line);
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 150px;
    background: var(--c-bg-alt);
    color: var(--c-ink);
    font-weight: 600;
}

/* ---------- 提示框 ---------- */
.notice-box {
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-primary);
    background: #f8fbfc;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}

.notice-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--c-primary-dark);
}

.notice-box p:last-child,
.notice-box ul:last-child {
    margin-bottom: 0;
}

.notice-box.warn {
    border-left-color: var(--c-danger);
    background: #fdf8f8;
}

.notice-box.warn h3 {
    color: var(--c-danger);
}

.notice-box ul {
    padding-left: 20px;
    font-size: 15px;
}

/* ---------- 项目/门店图片墙 ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.gallery figure {
    margin: 0;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-alt);
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--c-muted);
    background: #fff;
}

/* ---------- 门店对比表 ---------- */
.clinic-compare {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: 8px;
}

.compare-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}

.compare-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.compare-region {
    font-size: 13px;
    color: var(--c-accent);
    margin-bottom: 16px;
}

.compare-card address {
    font-size: 14px;
    margin-bottom: 16px;
}

.compare-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- 文章正文 ---------- */
.article-head {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--c-line);
}

.article-head h1 {
    font-size: 28px;
    margin-bottom: 14px;
}

.article-meta {
    font-size: 13px;
    color: var(--c-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
}

.article-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
}

.article-tags li a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-muted);
}

.article-list {
    list-style: none;
    border-top: 1px solid var(--c-line);
}

.article-list > li {
    padding: 24px 0;
    border-bottom: 1px solid var(--c-line);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
}

.article-list .al-date {
    font-size: 13px;
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
}

.article-list h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-list p {
    font-size: 14px;
    color: var(--c-text);
    margin: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 8px 14px;
    text-align: center;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--c-text);
}

.pagination .current {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ---------- 分类标签栏 ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-bar a {
    padding: 8px 18px;
    font-size: 14px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-text);
    background: #fff;
}

.filter-bar a:hover,
.filter-bar a.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ---------- 资质证书卡 ---------- */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.qual-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.qual-card img {
    width: 100%;
    background: var(--c-bg-alt);
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.qual-card-body {
    padding: 22px 24px;
}

.qual-card-body h2,
.qual-card-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.qual-card-body dl {
    margin: 0;
    font-size: 14px;
}

.qual-card-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--c-line-soft);
}

.qual-card-row:last-child {
    border-bottom: 0;
}

.qual-card-row dt {
    min-width: 92px;
    color: var(--c-muted);
}

.qual-card-row dd {
    margin: 0;
    color: var(--c-ink);
}

/* ---------- 医生详情 ---------- */
.doctor-profile {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding: 48px 0 8px;
}

.doctor-profile-photo {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-bg-alt);
}

.doctor-profile-meta h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.doctor-profile-title {
    font-size: 15px;
    color: var(--c-accent);
    margin-bottom: 20px;
}

/* ---------- 预约表单 ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 36px 0 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    color: var(--c-ink);
    font-weight: 600;
}

.form-field .req {
    color: var(--c-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit;
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-text);
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(11, 92, 107, .1);
}

.form-tip {
    font-size: 13px;
    color: var(--c-muted);
    margin: 14px 0 0;
}

.form-msg {
    font-size: 14px;
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
}

.form-msg.ok {
    display: block;
    background: #f1f8f4;
    border: 1px solid #cfe6d8;
    color: #2c6b4a;
}

.form-msg.err {
    display: block;
    background: #fdf4f4;
    border: 1px solid #ecd4d4;
    color: var(--c-danger);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--c-bg-deep);
    color: #a9c4ca;
    padding: 56px 0 34px;
    font-size: 14px;
}

.footer-title {
    font-size: 14px;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-clinics {
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 34px;
}

.footer-clinic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.footer-clinic h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-clinic h3 a {
    color: #fff;
}

.footer-clinic address {
    font-size: 13px;
    line-height: 1.8;
}

.footer-clinic a {
    color: var(--c-accent-light);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 28px;
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col li {
    margin-bottom: 9px;
}

.footer-nav-col a {
    color: #a9c4ca;
    font-size: 14px;
}

.footer-nav-col a:hover {
    color: #fff;
}

.footer-legal-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-legal-line a {
    color: var(--c-accent-light);
}

.footer-muted {
    color: #7fa0a7;
}

.footer-disclaimer {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.8;
    color: #6d8d94;
    max-width: 76em;
}

/* ---------- 移动端固定操作栏 ---------- */
.mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -2px 12px rgba(11, 47, 56, .08);
    padding-bottom: env(safe-area-inset-bottom);
}

.mb-item {
    flex: 1 1 33.33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px;
    font-size: 12px;
    color: var(--c-ink);
    border-right: 1px solid var(--c-line-soft);
}

.mb-item:last-child {
    border-right: 0;
}

.mb-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.mb-tel .mb-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c6b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.mb-map .mb-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c6b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.mb-book .mb-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c6b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E");
}

.mb-book {
    background: var(--c-primary);
    color: #fff;
}

.mb-book .mb-icon {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1100px) {
    :root {
        --wrap: 100%;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .service-grid,
    .clinic-grid,
    .doctor-grid,
    .clinic-compare,
    .footer-clinic-grid,
    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .detail-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .detail-side > * {
        flex: 1 1 300px;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-md);
        display: none;
        max-height: 76vh;
        overflow-y: auto;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 18px;
    }

    .site-nav > ul > li {
        border-bottom: 1px solid var(--c-line-soft);
    }

    .site-nav > ul > li > a {
        padding: 14px 4px;
        font-size: 16px;
    }

    .site-nav > ul > li.active > a::after {
        display: none;
    }

    .sub-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 6px;
        width: 44px;
        height: 40px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .sub-toggle::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin: 0 auto;
        border-right: 2px solid var(--c-muted);
        border-bottom: 2px solid var(--c-muted);
        transform: rotate(45deg);
        transition: transform .2s ease;
    }

    .sub-toggle[aria-expanded="true"]::after {
        transform: rotate(-135deg);
    }

    .sub-menu {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 10px 14px;
        min-width: 0;
    }

    /* 移动端同样只认 .open, 由子菜单箭头按钮切换 */
    .has-sub.open > .sub-menu {
        display: block;
    }

    .header-inner {
        min-height: 72px;
        position: relative;
    }

    .logo img {
        height: 44px;
        max-width: 190px;
    }

    .page-head {
        padding: 34px 0 28px;
    }

    .page-head h1,
    .hero h1 {
        font-size: 24px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .doctor-profile {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: 62px;
    }

    .footer-clinic-grid,
    .footer-nav,
    .service-grid,
    .clinic-grid,
    .doctor-grid,
    .news-grid,
    .gallery,
    .qual-grid,
    .clinic-compare,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar-hours {
        display: none;
    }

    .article-list > li {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 16px;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-brand span {
        display: none;
    }

    .logo img {
        height: 40px;
        max-width: 165px;
    }

    .doctor-card {
        flex-direction: column;
    }

    .doctor-photo {
        flex: 0 0 auto;
        aspect-ratio: 4 / 3;
    }

    .hero {
        padding: 40px 0 36px;
    }

    .section {
        padding: 40px 0;
    }

    .detail-layout {
        padding: 34px 0;
    }

    .qual-summary,
    .form-card {
        padding: 20px;
    }

    .notices-inner {
        gap: 10px;
    }

    .notices-title {
        border-right: 0;
        padding-right: 0;
    }

    .footer-legal-line {
        flex-direction: column;
        gap: 4px;
    }

    .page-head h1,
    .article-head h1 {
        font-size: 21px;
    }

    .hero h1 {
        font-size: 22px;
    }
}

/* ---------- 打印 ---------- */
@media print {
    .topbar,
    .site-header,
    .mobile-bar,
    .breadcrumb,
    .site-footer,
    .detail-side {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
