/* ==========================================================
   口腔门诊官网 - 全局样式（改版版）
   设计方向：专业医院 · 扁平克制 · 无动画特效
   说明：仅排版与视觉，不涉及任何数据/逻辑
   ========================================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 品牌色：临床青绿 */
    --brand-deep: #0c4a44;
    --brand: #14746a;
    --brand-light: #3aa094;

    /* 兼容旧变量名（article-detail 等内联样式引用） */
    --accent: #14746a;
    --accent-deep: #0c4a44;
    --accent-light: #3aa094;
    --gold: var(--accent);
    --gold-light: #e6f2ef;
    --teal: #14746a;
    --teal-light: #3aa094;

    /* 中性色 */
    --white: #ffffff;
    --soft: #f4f7f6;
    --cream: #fafcfb;
    --muted: #5b6b68;
    --dark: #223330;
    --line: #e2e8e6;

    /* 阴影（仅移动端菜单等必要处使用，卡片不再使用投影） */
    --shadow: 0 1px 2px rgba(12, 74, 68, 0.06);
    --shadow-lg: 0 12px 28px -12px rgba(12, 74, 68, 0.28);

    /* 圆角 */
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 间距 */
    --container-max: 1200px;
    --section-padding: 88px;

    /* 字体（标题与正文统一无衬线，专业整洁） */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--brand);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   Header（顶部信息条 + 导航，固定，纯白无毛玻璃）
   ========================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

/* 顶部信息条：静态展示，不收起、无动画 */
.top-bar {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    line-height: 1;
    padding: 9px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-bar-left span,
.top-bar-right span {
    white-space: nowrap;
}

.top-bar-left span + span::before {
    content: '|';
    margin-right: 10px;
    opacity: 0.4;
}

.top-bar a {
    color: var(--white);
    font-weight: 700;
}

.top-bar a:hover {
    color: var(--brand-light);
}

/* 主导航栏 */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 150px;
    height: 42px;
    /* background: var(--brand); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.brand strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.brand small {
    font-size: var(--font-size-xs);
    color: var(--muted);
    line-height: 1.2;
}

/* 导航：文字式，当前页下划线 */
.nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav a {
    position: relative;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #3a4a47;
}

.nav a:hover {
    color: var(--brand);
}

.nav a.active {
    color: var(--brand);
    font-weight: 700;
}

.nav a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--brand);
}

/* 电话按钮：纯文字 */
.header-call {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
}

.header-call:hover {
    color: var(--brand-deep);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================
   Hero（首页：左文右图的分栏式，浅色底、无遮罩）
   ========================================================== */
.hero {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    padding: 150px 0 84px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 20px;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.18;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.hero-lede {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
    margin: 0 0 30px;
    max-width: 620px;
}

.hero-lede p {
    margin-bottom: 10px;
}

.hero-lede p:last-child {
    margin-bottom: 0;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

/* 按钮：平角、纯色、无阴影无位移 */
.button-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.button.primary {
    background: var(--brand);
    color: var(--white);
}

.button.primary:hover {
    background: var(--brand-deep);
}

.button.secondary {
    background: var(--white);
    color: var(--brand);
    border-color: var(--brand);
}

.button.secondary:hover {
    background: var(--brand);
    color: var(--white);
}

.button.light {
    background: var(--white);
    color: var(--brand);
    border-color: var(--line);
}

.button.light:hover {
    border-color: var(--brand);
}

/* ==========================================================
   Fact Strip（数字条：页面流内、分隔线式，无悬浮卡片）
   ========================================================== */
.fact-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 36px 20px;
    text-align: center;
    border-left: 1px solid var(--line);
}

.fact:first-child {
    border-left: 0;
}

.fact strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
    margin-bottom: 6px;
}

.fact span {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ==========================================================
   Page Header（内页页头：浅色、左对齐、无渐变光斑）
   ========================================================== */
.page-header {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    padding: 150px 0 60px;
}

.page-header .eyebrow {
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.01em;
}

/* ==========================================================
   Section Base（区块：标题一律左对齐）
   ========================================================== */
.section {
    padding: var(--section-padding) 0;
}

.section.soft {
    background: var(--soft);
}

.section.compact {
    padding: 64px 0;
}

.section-head {
    margin-bottom: 48px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.section-lede {
    max-width: 760px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.9;
}

/* Split Layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.content-side {
    max-width: 640px;
}

.content-side .section-lede {
    margin-bottom: 24px;
}

/* 医院简介标题（index / about 共用） */
#profile-brand-story {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 18px;
}

/* 图片：无虚线框、无光晕 */
.media-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.media-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: block;
}

/* 可点击放大的图片（如医院地图） */
.media-frame img[title] {
    cursor: zoom-in;
}

/* 图片灯箱遮罩 */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.85);
    cursor: zoom-out;
    animation: lightbox-in 0.2s ease;
}

.image-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    cursor: default;
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Check List：无卡片，分隔线列表 */
.check-list {
    display: grid;
    gap: 0;
    margin: 28px 0;
}

.check-list li {
    position: relative;
    padding: 12px 0 12px 34px;
    color: var(--dark);
    font-size: 15px;
    border-bottom: 1px solid var(--line);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

/* Grid（默认两列，与原模板三列拉开差异） */
.grid {
    display: grid;
    gap: 26px;
    counter-reset: svc;
}

.grid.three {
    grid-template-columns: repeat(2, 1fr);
}

/* Cards：平面、细边框、无投影 */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card:hover {
    border-color: #c9d9d4;
}

.card.panel {
    padding: 26px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.45;
}

/* 卡片顶部图片（about 诊疗环境等） */
.card.panel > img {
    width: calc(100% + 52px);
    /* margin: -26px -26px 20px; */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ==========================================================
   Service Cards（诊疗项目：编号 + 纯文字，无大图）
   ========================================================== */
.service-card {
    position: relative;
    counter-increment: svc;
}

.service-card::before {
    content: "0" counter(svc);
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #d3e0dc;
    letter-spacing: 0.02em;
}

.service-img {
    display: none;
}

.service-card .eyebrow {
    margin-bottom: 8px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.35;
    margin: 0 0 12px;
    padding-right: 52px;
}

.service-card h3 a:hover {
    color: var(--brand);
}

.service-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 16px;
}

/* Tag List */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    padding: 5px 12px;
    background: #eef5f3;
    border: 1px solid #ddebe8;
    border-radius: 6px;
    font-size: 12px;
    color: #0f5c54;
}

/* ==========================================================
   Doctor Cards（医生团队：扁平卡片）
   ========================================================== */
.doctor-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.doctor-card > a {
    display: block;
}

.doctor-card img {
    width: 100%;
    /* aspect-ratio: 4 / 5;
    object-fit: cover; */
    object-position: top center;
    border-bottom: 1px solid var(--line);
}

.doctor-body {
    padding: 22px 24px 26px;
}

.doctor-body .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
}

.doctor-body h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}

.doctor-body h3 a:hover {
    color: var(--brand);
}

.doctor-body .title {
    margin: 6px 0 12px;
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
}

.doctor-body > p:not(.eyebrow):not(.title) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* ==========================================================
   Credential List（资质信息：分隔线表格样式）
   ========================================================== */
.credential-list {
    margin: 28px 0;
}

.credential-list p {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.credential-list p:last-child {
    border-bottom: 0;
}

.credential-list strong {
    flex: 0 0 130px;
    color: var(--dark);
    font-weight: 700;
    font-size: 15px;
}

.credential-list span {
    flex: 1;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

/* ==========================================================
   FAQ（单列、细边框手风琴，无卡片堆叠）
   ========================================================== */
.faq-grid {
    display: grid;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto 32px;
}

details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

details[open] {
    border-color: #bcd6d0;
}

summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef5f3;
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
}

details[open] summary::after {
    content: '−';
    background: var(--brand);
    color: #fff;
}

details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
}

.center {
    text-align: center;
    margin-top: 24px;
}

/* ==========================================================
   Media Preview（口碑反馈：箭头列表）
   ========================================================== */
.media-preview {
    margin: 28px 0;
}

.media-preview a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
}

.media-preview a:last-child {
    border-bottom: 0;
}

.media-preview a::after {
    content: '→';
    color: var(--brand);
    font-size: 16px;
    flex-shrink: 0;
}

.media-preview strong {
    color: var(--dark);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.media-preview span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    text-align: right;
}

.media-preview a:hover strong {
    color: var(--brand);
}

/* Reputation Preview */
.reputation-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.reputation-preview img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.reputation-preview img:last-child {
    aspect-ratio: 4 / 5;
}

/* ==========================================================
   Article Cards（文章）
   ========================================================== */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    line-height: 1.5;
    font-size: 1.2rem;
    font-weight: 800;
}

.article-card h3 a:hover {
    color: var(--brand);
}

.article-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
    margin-top: auto;
}

/* ==========================================================
   Price Card（价格）
   ========================================================== */
.price-card {
    text-align: center;
}

.card.panel.price-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.card.panel.price-card .price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--brand);
    margin: 12px 0 0;
}

/* ==========================================================
   Footer（深青底，无渐变彩条）
   ========================================================== */
.footer {
    background: var(--brand-deep);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr;
    gap: 56px;
    padding: 64px 0 48px;
}

.footer-brand .logo-icon {
    width: 150px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.footer-brand h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.9;
    max-width: 340px;
}

.footer-nav h3,
.footer-contact h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--brand-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-wechat-qr {
    display: block;
    width: 120px;
    height: 120px;
    margin: 10px 0 14px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    margin-bottom: 6px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--white);
}

.police-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================
   文章详情页（覆盖 article-detail.html 内联样式）
   ========================================================== */
.article-detail {
    padding-top: 170px !important;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 130px 0 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-media img {
        max-height: 340px;
        aspect-ratio: 16 / 9;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact {
        border-left: 0;
    }

    .fact:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .content-side {
        max-width: 100%;
    }

    .page-header {
        padding: 130px 0 48px;
    }

    .article-detail {
        padding-top: 130px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .brand small {
        display: none;
    }

    .header-call {
        display: none;
    }

    .hero {
        padding: 112px 0 56px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .grid.three {
        grid-template-columns: 1fr;
    }

    .fact strong {
        font-size: 1.6rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .credential-list p {
        flex-direction: column;
        gap: 4px;
    }

    .credential-list strong {
        flex: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 40px;
    }
}

@media (max-width: 480px) {
    .button-row {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reputation-preview {
        grid-template-columns: 1fr;
    }

    .brand strong {
        font-size: 1.05rem;
    }
}
