/* ============================================================
   太乙中医 · 现代版设计系统
   色彩：朱砂红 / 宣纸米白 / 墨色 / 金棕 —— 中医底蕴 × 当代排版
   布局：无侧栏，1120px 容器，800px 阅读列，响应式
   ============================================================ */

:root {
    --brand: #963a3a;          /* 朱砂红 */
    --brand-deep: #6e2828;
    --brand-soft: #f6ebe8;
    --ink: #2a2723;            /* 墨色 */
    --ink-soft: #4a443d;
    --paper: #f8f5ef;          /* 宣纸 */
    --card: #ffffff;
    --line: #e7dfd3;
    --gold: #a98548;           /* 金棕 */
    --gold-soft: #f3ecdd;
    --muted: #8a8177;
    --ok-bg: #ecf5ec;  --ok-fg: #2f6b33;
    --err-bg: #f9eceb; --err-fg: #8c2f2a;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(64, 42, 22, .07);
    --shadow-lift: 0 8px 26px rgba(64, 42, 22, .12);
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.4; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ============ 天坛画卷页头（融合式） ============ */
.site-masthead {
    background: linear-gradient(180deg, #f6f1e6 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 18px 0 14px;
}
.scroll-frame {
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid #dcc99b;
    border-radius: var(--radius);
    box-shadow: var(--shadow), inset 0 0 0 3px #f8f4ea;
    padding: 5px;
}
.scroll-visual { display: block; overflow: hidden; border-radius: 6px; }
.scroll-visual img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
}
.scroll-seal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    background: var(--brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 2px;
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 2px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    pointer-events: none;
}
.scroll-seal small {
    font-size: 10.5px;
    margin-top: 4px;
    padding-top: 3px;
    border-top: 1px dashed rgba(255, 255, 255, .45);
    letter-spacing: 1px;
}
.scroll-seal.right { right: 18px; }
@media (max-width: 760px) {
    .scroll-seal { display: none; }
}

/* ============ 顶部信息条 ============ */
.topbar {
    background: var(--ink);
    color: #cfc6b8;
    font-size: 12.5px;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #e8ddc9; }
.topbar span { white-space: nowrap; }

/* ============ 主导航 ============ */
.site-nav {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.site-nav .container { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-seal {
    flex: none;
    width: 42px;
    height: 42px;
    background: var(--brand);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    color: #fff;
    font-family: var(--serif);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
}
.brand-seal i { font-style: normal; font-size: 16px; font-weight: 700; line-height: 1; }
.brand-text { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--brand-deep); letter-spacing: 2px; }
.brand-text small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); letter-spacing: 4px; font-weight: 400; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
    display: block;
    padding: 8px 13px;
    font-size: 15px;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
}
.menu > li > a:hover, .menu > li > a.active { color: var(--brand); text-decoration: none; }
.menu > li > a.active { font-weight: 600; }

/* 下拉（纯 CSS） */
.menu > li.has-sub > a::after { content: " ▾"; font-size: 11px; color: var(--muted); }
/* 下拉菜单：紧贴导航条（margin 必须为 0——留缝隙会形成 hover 死区，
   鼠标穿缝时菜单会消失；圆角只留在底部，视觉上与导航条连成一体） */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 6px;
    min-width: 190px;
    list-style: none;
    margin: 0;
    z-index: 110;
}
.menu > li.has-sub:hover .submenu,
.menu > li.has-sub:focus-within .submenu { display: block; }
.submenu a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.submenu a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* 移动端菜单开关 */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--ink);
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

/* ============ 页面标题区 ============ */
.page-head {
    background: linear-gradient(180deg, #fbf9f4 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 44px 0 34px;
    text-align: left;
}
/* 标题与正文阅读列左对齐：同样做成 800px 居中列，左缘即文章左缘 */
.page-head .container { max-width: 800px; padding: 0; }
.page-head h1 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: 3px;
    color: var(--ink);
}
.page-head h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: var(--brand);
    margin: 14px 0 0;
    border-radius: 2px;
}
@media (max-width: 840px) {
    .page-head .container { padding: 0 20px; }
}

/* ============ 正文排版（兼容旧内容结构） ============ */
.page-body { padding: 40px 0 64px; }
.page-content { max-width: 800px; margin: 0 auto; font-size: 16px; }

.page-content p { text-indent: 2em; margin: 0 0 1.1em; line-height: 1.95; color: var(--ink-soft); }
.page-content p:has(img) { text-indent: 0; }

/* 旧内容的小节标题 → 现代样式 */
.page-content h4.titlebar {
    font-size: 19px;
    color: var(--brand-deep);
    border-left: 4px solid var(--brand);
    padding: 4px 0 4px 14px;
    margin: 2em 0 1em;
    background: none;
}
/* 旧内容的强调标签（原背景图已失效，用 CSS 补上更好的） */
.page-content b.titlebar_orange {
    display: inline-block;
    background: var(--gold-soft);
    border: 1px solid #e2d3b4;
    color: #7c6231;
    font-weight: 600;
    font-size: 14.5px;
    padding: 1px 12px;
    border-radius: 999px;
    margin: 0 4px 6px 0;
}

/* 旧内容里的浮动图片 */
.page-content img[style*="float:left"] {
    float: left;
    max-width: 300px;
    width: 40%;
    margin: 4px 22px 8px 0;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 4px;
    background: var(--card);
}
.page-content img[style*="float:right"] {
    float: right;
    max-width: 300px;
    width: 40%;
    margin: 4px 0 8px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 4px;
    background: var(--card);
}
.page-content::after { content: ""; display: table; clear: both; }

/* 整幅照片（如培训回顾）：按原始尺寸（600px）独立成行居中，文字排在图片下方 */
.page-content img.px-photo {
    display: block;
    float: none;
    height: auto;
    margin: 10px auto 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 4px;
    background: var(--card);
}

/* 旧内容里的表格（成果展缩略图等） */
.page-content table {
    max-width: 100%;
    margin: 1.2em auto;
    border-collapse: collapse;
    background: var(--card);
}
.page-content td { padding: 8px; vertical-align: middle; }
.page-content td img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

.page-content ul, .page-content ol { padding-left: 1.6em; color: var(--ink-soft); }
.page-content li { margin-bottom: .4em; }

/* 旧内容里的双栏盒子（GNU 模板遗留结构）→ 现代网格 */
.page-content .rowOfBoxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; clear: both; margin: 1.4em 0; }
.page-content .half { min-width: 0; }
@media (max-width: 760px) { .page-content .rowOfBoxes { grid-template-columns: 1fr; } }

/* ============ 通用组件 ============ */
.btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    border: 1px solid var(--brand-deep);
    cursor: pointer;
    transition: background .15s;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.small { padding: 6px 16px; font-size: 13.5px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.flash { padding: 10px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; font-size: 14.5px; border: 1px solid; }
.flash.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #bcd9bd; }
.flash.err { background: var(--err-bg); color: var(--err-fg); border-color: #e0c2bf; }

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

/* ============ 留言区 ============ */
.board-form { padding: 22px 26px; margin-bottom: 26px; }
.board-form h3 { margin: 0 0 14px; font-size: 19px; color: var(--brand-deep); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input[type="text"], .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fdfcf9;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row textarea { resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.board-list h3 { margin: 0 0 14px; font-size: 19px; color: var(--brand-deep); }
.board-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.msg-item {
    border-left: 3px solid var(--brand);
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.msg-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.msg-meta strong { color: var(--brand-deep); font-size: 15px; }
.msg-body { font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
.msg-photo-link { display: inline-block; margin-top: 8px; }
.msg-photo {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}
.msg-empty { color: var(--muted); padding: 18px 0; }
.form-row input[type="file"] { font: inherit; font-size: 13px; }

.pages { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pages a, .pages span {
    min-width: 34px;
    text-align: center;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 13.5px;
    color: var(--ink-soft);
}
.pages a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pages .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pages .dots { border: none; background: none; color: var(--muted); min-width: 20px; }

.divider { border: none; border-top: 1px dashed var(--line); margin: 36px 0 24px; }
.historic-title {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 2px;
}
.historic-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

/* ============ 太乙讲堂 ============ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.video-card { overflow: hidden; transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.video-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    position: relative;
}
.video-card-body { padding: 12px 16px 14px; }
.video-card-body strong { display: block; font-size: 15.5px; color: var(--ink); font-family: var(--serif); }
.video-card-body small { color: var(--muted); font-size: 12.5px; }
.video-card:hover .video-card-body strong { color: var(--brand); }

.video-player { background: #141210; border-radius: var(--radius); overflow: hidden; }
.video-player video { display: block; width: 100%; max-height: 560px; }
/* 第三方平台嵌入播放器（B 站等）：响应式 16:9 */
.video-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; max-height: 560px; }
.video-meta { color: var(--muted); font-size: 13px; margin-top: 10px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; }

/* ============ 太乙讲堂：标签页与文章 ============ */
.jt-tabs { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.jt-tab {
    padding: 10px 24px;
    font-size: 15px;
    color: var(--muted);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    top: 1px;
}
.jt-tab:hover { color: var(--brand); text-decoration: none; }
.jt-tab.active {
    background: var(--card);
    border-color: var(--line);
    color: var(--brand);
    font-weight: 600;
}
.jt-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.jt-cat-title {
    font-size: 18px;
    color: var(--brand-deep);
    margin: 26px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
}
.jt-article-list { display: grid; gap: 14px; }
.jt-article-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    transition: transform .15s, box-shadow .15s;
}
.jt-article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none; }
.jt-article-main { flex: 1; min-width: 0; }
.jt-article-main strong { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.jt-article-card:hover .jt-article-main strong { color: var(--brand); }
.jt-article-main p {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-indent: 0;
}
.jt-article-arrow { color: var(--muted); font-size: 18px; }
.jt-article-card:hover .jt-article-arrow { color: var(--brand); }

/* 文章页内特殊元素（Word 转换生成） */
.page-content .jt-sub {
    text-align: center;
    text-indent: 0;
    color: var(--muted);
    font-size: 14px;
}
.page-content .jt-direction {
    text-align: center;
    text-indent: 0;
    color: #7c6231;
    font-size: 13.5px;
    background: var(--gold-soft);
    border: 1px solid #e0d2b2;
    border-radius: 999px;
    padding: 4px 18px;
    width: fit-content;
    margin: 1.2em auto;
}
.jt-figure { margin: 1.6em 0; text-align: center; }
.jt-figure img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.jt-table { border-collapse: collapse; margin: 1.4em auto; }
.jt-table td { border: 1px solid var(--line); padding: 8px 14px; }

/* ============ 成果展画廊与灯箱 ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.gallery-item {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform .12s, box-shadow .12s;
    aspect-ratio: 3 / 4;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20, 17, 14, .88); }
.lb-figure {
    position: relative;
    margin: 0;
    max-width: 92vw;
    text-align: center;
}
.lb-figure img {
    max-width: 92vw;
    max-height: 84vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.lb-figure figcaption { color: #cfc6b8; font-size: 13px; padding-top: 10px; letter-spacing: 2px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #f0e8d8;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 18px; right: 22px; font-size: 30px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

/* ============ 页脚（elegant 布局 · modern2 配色） ============ */
.site-footer {
    background: #221f1c;
    color: #c9c2b5;
    position: relative;
    margin-top: 48px;
    padding: 48px 0 24px;
    border-top: 3px solid var(--gold);
}

/* 三栏主网格 */
.foot-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 38px;
}
.foot-heading {
    font-family: var(--serif);
    color: #f0e8d8;
    font-size: 21px;
    margin: 0 0 14px;
    letter-spacing: 1px;
}
.foot-desc { font-size: 14px; line-height: 1.9; color: #a89f91; margin: 0 0 20px; }
.foot-meta-cards { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.meta-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(169, 133, 72, .35);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
}
.meta-label { display: block; font-size: 11px; color: #e0c48f; letter-spacing: 2px; }
.meta-val { font-family: var(--serif); font-size: 17px; color: #f0e8d8; }
.foot-contact-detail { font-size: 13.5px; color: #aba294; line-height: 1.9; margin: 0; }
.foot-contact-detail strong { color: #d8cdb6; }

.foot-title {
    font-family: var(--serif);
    color: #e8ddc9;
    font-size: 15.5px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    letter-spacing: 1px;
}
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 7px; }
.foot-links a {
    color: #a89f91;
    font-size: 14px;
    transition: color .15s, padding-left .15s;
}
.foot-links a:hover { color: #e0c48f; padding-left: 4px; text-decoration: none; }

/* 友情链接 */
.foot-partner-block {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    margin-bottom: 20px;
}
.partner-title { font-size: 12.5px; color: #8e8679; margin: 0 0 12px; letter-spacing: 2px; }
.partner-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.partner-list a { color: #8a8274; font-size: 13px; }
.partner-list a:hover { color: #e8ddc9; text-decoration: none; }

/* 版权与备案 */
.foot-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.bottom-copy { font-size: 12.5px; color: #7c7468; }
.bottom-beian a { font-size: 12.5px; color: #9a9184; }
.bottom-beian a:hover { color: #e8ddc9; }

/* ============ 首页专属 ============ */
.hero {
    background:
        radial-gradient(ellipse 900px 420px at 85% -10%, var(--brand-soft) 0%, transparent 60%),
        linear-gradient(180deg, #fbf8f1 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 56px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-kicker {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--gold);
    border: 1px solid #dcc99b;
    border-radius: 999px;
    padding: 3px 16px 3px 20px;
    margin-bottom: 18px;
    background: var(--gold-soft);
}
.hero h1 {
    font-size: 42px;
    margin: 0 0 14px;
    letter-spacing: 4px;
    color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-family: var(--serif); font-size: 18px; color: var(--brand-deep); letter-spacing: 2px; margin: 0 0 16px; }
.hero-desc { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: block;
}
.hero-figure::after {
    content: "太乙特诊 · 三位一体";
    position: absolute;
    left: 18px;
    bottom: 16px;
    background: rgba(42, 39, 35, .78);
    color: #f0e8d8;
    font-size: 12.5px;
    letter-spacing: 3px;
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(3px);
}

/* 数据条（内容宽度的悬浮横幅） */
.stats {
    background: var(--brand-deep);
    color: #f0e4dc;
    max-width: 1120px;
    margin: 30px auto 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 26px;
    padding-bottom: 26px;
}
@media (max-width: 640px) {
    .stats { margin: 20px 12px 16px; }
}
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: #fff; letter-spacing: 1px; }
.stat span { font-size: 12.5px; color: #d9bfb4; letter-spacing: 2px; }

/* 首页小节 */
.home-section { padding: 58px 0 8px; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 27px; letter-spacing: 3px; margin: 0 0 8px; }
.section-title p { margin: 0; color: var(--muted); font-size: 13.5px; letter-spacing: 3px; }
.section-title h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* 简介与教授 */
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.intro-text p { text-indent: 2em; color: var(--ink-soft); line-height: 2; margin: 0 0 1em; }
.prof-card { padding: 24px; text-align: center; }
.prof-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--card);
    box-shadow: 0 0 0 2px var(--gold), var(--shadow);
}
.prof-card h3 { margin: 14px 0 4px; font-size: 20px; }
.prof-card .muted { font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 14px; }
.chip {
    font-size: 12px;
    color: var(--brand-deep);
    background: var(--brand-soft);
    border: 1px solid #e3c6c0;
    padding: 2px 10px;
    border-radius: 999px;
}

/* 专科卡片 */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec-card { padding: 26px 24px; display: flex; gap: 16px; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.spec-seal {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-family: var(--serif);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.spec-card h3 { margin: 2px 0 6px; font-size: 18px; color: var(--ink); }
.spec-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.spec-card:hover h3 { color: var(--brand); }

/* 太乙讲堂 band */
.lecture-band { background: linear-gradient(180deg, #f3eee3 0%, var(--paper) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0 60px; margin-top: 48px; }
.lecture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lecture-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.lecture-empty b { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink-soft); margin-bottom: 6px; }

/* 患者心声 */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { padding: 24px 24px 20px; position: relative; }
.quote-card::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    left: 16px;
    font-family: var(--serif);
    font-size: 46px;
    color: var(--brand-soft);
    line-height: 1;
}
.quote-card p { margin: 14px 0 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }
.quote-card footer { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.quote-more { text-align: center; margin-top: 26px; }

/* CTA 横幅 */
.cta-band { background: var(--brand-deep); color: #f2e6de; margin-top: 56px; }
.cta-band .container { padding: 42px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; color: #fff; letter-spacing: 2px; }
.cta-band p { margin: 0; font-size: 14px; color: #dcbcae; }
.cta-band .btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.cta-band .btn:hover { background: var(--gold-soft); }

@media (max-width: 920px) {
    .hero .container { grid-template-columns: 1fr; gap: 28px; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 32px; }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .intro-grid { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .spec-grid { grid-template-columns: 1fr; }
}

/* ============ 响应式 ============ */
@media (max-width: 920px) {
    .nav-toggle-label { display: block; }
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lift);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 14px;
        gap: 2px;
    }
    .nav-toggle:checked ~ .menu { display: flex; }
    .site-nav .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .brand { margin-right: auto; }
    .submenu { display: block; position: static; border: none; box-shadow: none; border-radius: 0; padding: 0 0 0 18px; min-width: 0; }
    .menu > li.has-sub > a::after { content: ""; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-main-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .page-head h1 { font-size: 24px; }
    .page-content img[style*="float:left"],
    .page-content img[style*="float:right"] { float: none; display: block; width: 100%; max-width: 100%; margin: 10px 0; }
    .page-content p { text-indent: 2em; }
    .topbar .container { justify-content: center; }
}
