/* --- 全局重置与变量 --- */
:root {
    --primary-color: #009B9B; /* 主色：青色 */
    --secondary-color: #6CC24A;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #F8FBFB; /* 极浅的青灰底色 */
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    font-weight: bold;
}

/* 表单控件默认用系统字体，统一继承 body 字体栈 */
button, input, select, textarea { font-family: inherit; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light-gray { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.text-center { text-align: center; }

/* --- 顶部导航 --- */
.navbar {
    background: #fff;
    height: 120px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 配合 app.js 的滚动方向检测：下滑移出视口收起，上滑滑回展开 */
    transition: transform 0.35s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* --- 下拉菜单样式 --- */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 0; /* 间距统一由链接 padding 控制，避免竖线分隔两侧不对称 */
}

/* 隐藏下拉内容，设置过渡动画 */
.dropdown-content {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #fff;
    width: max-content; /* 面板宽度随最长项自适应，避免折行 */
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 居中对齐并往下移一点 */
    transition: all 0.3s ease;
    padding: 8px 0;
}

/* 鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 下拉菜单里的链接样式 */
.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    margin-left: 0; /* 覆盖原来 nav-links a 的 margin-left */
    font-size: 16px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f4fbfb;
    color: var(--primary-color);
    font-weight: bold;
}

/* 覆盖原有 nav-links a 的间距，防止下拉按钮和普通按钮间距不一致 */
.nav-links .dropbtn {
    margin-left: 0;
    cursor: pointer;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    position: absolute;
    left: 100px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 汉堡按钮仅手机端显示，桌面端隐藏 */
.mobile-menu-btn { display: none; }

/* 首屏科室标签与介绍段落 */
.hero-eyebrow {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #0F7C7C;
    background: rgba(0, 155, 155, 0.1);
    border: 1px solid rgba(0, 155, 155, 0.35);
    padding: 8px 20px;
    border-radius: 24px;
    margin: 0 0 18px;
}

.hero-para {
    max-width: 700px;
    font-size: 23px;
    line-height: 1.9;
    color: #555;
    margin: 18px 0 32px;
}

/* 文字店招：书法感字体，参照丽馨诊所导航的毛笔字版式（配色沿用本站青绿） */
.navbar .logo .brand-wordmark {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    font-size: 46px;
    font-weight: bold;
    color: #0F7C7C;
    letter-spacing: 9px;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 店招左侧的叶形图形标 */
.navbar .logo .brand-mark {
    height: 84px;
    width: auto;
    display: block;
}

/* --- 诊疗项目分类面板（版式参照丽馨诊所主治项目） --- */
/* 该区块单独放宽版心，让面板在宽屏下更大 */
#services > .container {
    max-width: 1760px;
}

#services h2 { font-size: 37px; }

.cat-sub {
    color: #666;
    font-size: 20px;
    margin: -24px 0 48px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 520px));
    justify-content: center;
    gap: 40px 28px;
    padding-top: 16px;
}

.cat-panel {
    position: relative;
    display: block;
    border: 1px solid rgba(0, 155, 155, 0.45);
    border-radius: 14px;
    background: var(--bg-white);
    padding: 52px 26px 30px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

.cat-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 120, 120, 0.12);
}

/* 标题骑在面板上边框上：边框线穿过文字垂直中心 */
.cat-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0 14px;
    background: var(--bg-light);
    font-size: 32px;
    color: #0F7C7C;
    white-space: nowrap;
}

.cat-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 46px;
}

.cat-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 155, 155, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.cat-list {
    margin: 0;
    font-size: 21px;
    color: #555;
    line-height: 1.9;
    text-align: left;
}

@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .cat-grid { grid-template-columns: 1fr; }
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    margin-left: 0;
    padding: 0 22px;
    font-size: 25px;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}

/* 菜单项之间的竖线分隔（仅顶层项，子菜单项不加） */
.nav-links > a:not(:first-child)::before,
.nav-links > .dropdown:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5px;
    height: 26px;
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-50%);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 通用标题 --- */
.section { padding: 70px 0; }
h2 {
    font-size: 30px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: bold;
}
.title-underline {
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 40px;
}
.center-line { margin: 10px auto 40px; }

/* --- 1. 主视觉 Banner --- */
.hero-banner {
    /* 【核心修改】把青绿色半透明遮罩和你的背景图叠在一起 */
    background-image:
            linear-gradient(90deg, rgba(248, 251, 251, 0.92), rgba(248, 251, 251, 0.5) 45%, rgba(248, 251, 251, 0) 75%),
            linear-gradient(rgba(77, 179, 179, 0.15), rgba(77, 179, 179, 0.15)), /* 25%透明度的青绿色 */
            url('assets/bg-clean.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 170px 0;
    position: relative;
    overflow: hidden;
}

/* 把原来那个右侧融合的 DNA 伪元素直接干死 */
.hero-banner::before {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

/* 【核心修改】因为新背景图偏白偏亮，所有文字改为深色 */
.hero-text h1 {
    font-size: 48px;
    margin-bottom: 0;
    white-space: nowrap;
    text-wrap: nowrap;
    font-weight: bold;
    letter-spacing: 1px;
    color: #0F7C7C; /* 深青色标题，跟图二一致 */
}


.hero-desc {
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555555; /* 深灰色 */
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* 【按钮反转】主按钮：青底白字 */
.btn-primary {
    background-color: #009B9B;
    color: #ffffff;
    padding: 15px 42px;
    border-radius: 34px;
    font-size: 21px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid #009B9B;
}
.btn-primary:hover {
    background-color: #007a7a;
    border-color: #007a7a;
}

/* 【按钮反转】次要按钮：白底深灰字 */
.btn-outline {
    background-color: #ffffff;
    color: #333333;
    padding: 15px 42px;
    border-radius: 34px;
    font-size: 21px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}
.btn-outline:hover {
    background-color: #f5f5f5;
}

/* 手机端适配 */
@media (max-width: 900px) {
    .hero-banner {
        padding: 90px 0 110px;
    }

    .hero-text h1 {
        font-size: 32px;
    }


    .hero-desc {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
}


/* --- 2. 诊所介绍 --- */
/* --- 2. 诊所介绍 --- */
.intro-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-image {
    flex: 0 0 50%;
}

.intro-image img {
    width: 100%;
    height: 380px; /* 【核心】固定一个较扁的高度，比如 380px，你可以根据喜好微调 */
    object-fit: cover; /* 【核心】保证图片填满这个框，多出的部分自动裁掉，不会变形 */
    object-position: center; /* 默认居中裁剪，如果你想多看点左边或上边，可以改成 top center */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.intro-text {
    flex: 1;
}

.intro-desc {
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px; /* 增加与下方图标的距离 */
}

/* --- 核心部分：2x2 图标网格 --- */
.intro-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 分两列 */
    gap: 25px 20px; /* 上下间距 25px，左右间距 20px */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 青色圆底带小勾的图标 */
.feature-icon {
    width: 26px;
    height: 26px;
    background-color: var(--primary-color); /* 使用你的品牌青色 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0; /* 防止图标被挤压变形 */
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: bold;
}

.feature-text p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* 响应式适配：手机端变成单列 */
@media (max-width: 768px) {
    .intro-layout {
        flex-direction: column;
    }
    .intro-features-grid {
        grid-template-columns: 1fr; /* 手机端只显示一列 */
    }
}

/* ==========================================
   4. 诊疗项目 (完美全屏贴边版)
   ========================================== */
.services-section {
    padding: 0; /* 清除默认留白,让青色块撑满上下 */
    /* 取首图 bg-clean.png 的浅青背景色做渐变晕染,不用纯实色 */
    background-color: #fff;
    background-image:
        radial-gradient(1000px 340px at 8% 0%, rgba(119, 209, 210, 0.14), rgba(119, 209, 210, 0) 70%),
        radial-gradient(1200px 420px at 92% 100%, rgba(172, 228, 227, 0.18), rgba(172, 228, 227, 0) 70%),
        linear-gradient(180deg, rgba(202, 236, 235, 0.28), rgba(202, 236, 235, 0) 42%, rgba(202, 236, 235, 0.16) 100%);
    width: 100%;
}

.services-layout {
    display: flex;
    width: 100%;
    align-items: stretch; /* 确保左右两边一样高 */
}

/* 左侧青色区域：贴死最左侧，占 25% */
/* 左侧青色区域 */
.services-title-box {
    width: 25%;
    /* 换成图二那种从左到右的平滑青色渐变 */
    background: radial-gradient(circle at 80% 80%, #69dfdf 0%, #39c1c1 50%, #2aa1a1 100%);

    color: #fff;
    margin-left: calc(-50vw + 50%);

    /* 整体完美居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* 左右留白稍微大一点点，保持呼吸感 */
    padding: 40px 30px;
    box-sizing: border-box;
}

/* 标题包装器（限制宽度，让标题和正文对齐） */
.services-title-wrap {
    width: 100%;
    max-width: 300px; /* 限制最大宽度，文字就不会散得太开 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 内部靠左对齐 */
}

/* 标题：左边竖线 + 右边长横线 */
.services-title-box h2 {
    position: relative;
    color: #fff;
    font-size: 39px; /* 字号调小一点点，显得更精致 */
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 标题左侧的竖线也要跟着变长 */
.services-title-box h2::before {
    content: '';
    width: 3px; /* 线条稍微加粗 */
    height: 30px; /* 线条高度从 22px 加到 30px，跟大字号匹配 */
    background-color: #fff;
    margin-right: 15px;
    opacity: 0.8;
}

/* 标题右侧的长横线 */
.services-title-box h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgb(255 255 255 / 0.4);
    margin-left: 15px;
}

/* 副标题文字：放大字号 */
.services-title-box p {
    font-size: 18px; /* 【核心修改】从 13px 加大到 16px */
    line-height: 1.9; /* 行高稍微加大，字变大后看起来才不挤 */
    opacity: 0.95;
    text-align: left;
    margin: 0;
    letter-spacing: 1px;
}

/* 隐藏掉之前 HTML 里多余的横线 div */
.services-title-box .title-line {
    display: none;
}

/* 右侧卡片区：占 75% */
.services-cards-wrapper {
    width: 75%;
    display: flex;
    align-items: center;
    background: #fff;
}

/* 用一个内部的 container 限制卡片最大宽度，防止大屏被拉得太散 */
.services-cards-inner {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 7 个项目统一走一个 4 列网格，自动换行 */
.services-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* ==========================================
   第二排：3 个横向卡片 (终极修复版)
   ========================================== */
.services-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 横向卡片整体 */
.s-card-horizontal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: transform 0.3s;
    height: 180px; /* 卡片总高度 */
}

.s-card-horizontal:hover {
    transform: translateY(-5px);
}

/* 左侧文字区域 */
.s-card-h-content {
    flex: 1; /* 占据剩余的所有空间 */
    padding: 15px 20px; /* 给左右留一点点呼吸空间即可 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0; /* 防止文字撑破盒子 */
}

/* 右侧图片区域 */
/* 右侧图片区域 */
.s-card-h-img {
    width: 60%; /* 【核心修改】把图片宽度直接拉到 45%！立刻把红框的留白挤没！ */
    flex-shrink: 0;
    background: #f0f0f0;
}

.s-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题：限制最多显示 2 行，多出的变成省略号 */
.s-card-h-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: bold;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal; /* 允许换行 */
}

/* 描述：限制最多显示 2 行，多出的变成省略号 */
.s-card-h-content p {
    font-size: 15px;
    color: #888;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 单个卡片样式 */
.s-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #edf4f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0, 120, 120, 0.12);
}

/* 整卡为链接：点击图片或文字均进入详情页，外观保持不变 */
a.s-card,
a.s-card-horizontal {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.s-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
}

.s-card-img img {
    width: 100%;
    height: 100%;
    /* 图标类素材完整显示，不裁切 */
    object-fit: contain;
    padding: 2%;
    box-sizing: border-box;
    display: block;
    transition: transform 0.5s ease;
}

.s-card:hover .s-card-img img {
    transform: scale(1.05);
}

/* 卡片下方的文字白底区域 */
.s-card-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* 卡片标题 */
.s-card-content h3 {
    font-size: 23px;
    color: #000;
    margin: 0;
    font-weight: bold;
    line-height: 1.4;
}

/* 卡片描述文字 */
.s-card-content p {
    font-size: 15px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}



/* 手机端适配 */
@media (max-width: 1024px) {
    .services-cards { grid-template-columns: repeat(2, 1fr); }
    .services-cards-inner { padding: 40px 20px; }
}

@media (max-width: 768px) {
    .services-layout { flex-direction: column; }
    .services-title-box {
        width: 100%;
        margin-left: 0; /* 手机端取消左贴边 */
        padding: 40px 20px;
    }
    .services-cards-wrapper { width: 100%; }
    .services-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    /* 调整诊疗项目卡片的图片，防止被过度裁剪 */
    .s-card-img {
        height: auto !important; /* 高度不再固定，让图片按比例自适应 */
    }

    .s-card-img img {
        height: auto !important;
        /* 关键：把 cover 改成 contain，就能完整显示整张图了 */
        object-fit: contain !important;
        background-color: #f8f8f8; /* 给图片加个浅色底，防止有空隙显得突兀 */
    }
}
/* ==========================================
   手机端修复：横向卡片
   ========================================== */
@media (max-width: 768px) {
    /* 1. 调整横向卡片在手机上的高度，防止过高或过低 */
    .s-card-horizontal {
        height: 130px !important;
        display: flex !important;
        flex-direction: row !important; /* 保持左文右图 */
    }

    /* 3. 给文字区域留出足够的空间 */
    .s-card-h-content {
        flex: 1 !important;
        padding: 15px 15px !important;
    }

    /* 4. 给图片区域固定一个合理的宽度 */
    .s-card-h-img {
        width: 180px !important;
        flex-shrink: 0 !important;
    }

    /* 5. 确保文字正常显示，不被截断成一点点 */
    .s-card-h-content h3 {
        font-size: 17px !important;
        margin-bottom: 4px !important;
        display: block !important; /* 手机端可以不限制行数，或者限制2行 */
    }

    .s-card-h-content p {
        font-size: 14px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important; /* 手机端描述只显示1行 */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* --- 5. 专家团队 (沉浸式背景卡片) --- */
.experts-grid {
    display: flex;
    justify-content: center;     /* 居中 */
    gap: 100px;                   /* 卡片间距 */
    max-width: 900px;
    margin: 0 auto;
}

.experts-bg {
    /* 如果没有加载出图片，备用底色 */
    background-color: var(--bg-light);

    /* 【核心魔法】上层用半透明的浅灰色渐变，下层铺你的图片。
       这相当于给图片蒙了一层 85% 不透明的浅灰玻璃，融合度极高，不抢戏。 */
    background-image:
            linear-gradient(rgba(248, 251, 251, 0.30), rgba(248, 251, 251, 0.30)),
            url('assets/dt-bg.png');

    background-size: cover;      /* 图片铺满 */
    background-position: center; /* 图片居中 */
    background-repeat: no-repeat;
}

/* 专家团队下方的副标题样式 */
.section-subtitle {
    font-size: 17px; /* 字号适中 */
    color: #666;     /* 灰色，符合图二 */
    font-weight: bold;
    margin-top: -25px; /* 核心：往上提！因为原来的 .title-underline 下面有 40px 的边距，这里用负边距抵消掉，让文字紧贴下划线 */
    margin-bottom: 40px; /* 给下方卡片留出距离 */
    line-height: 1.6;
}

.expert-card {
    position: relative;
    width: 400px;                /* 卡片宽度 */
    height: 500px;               /* 卡片高度，决定了整体比例 */
    border-radius: 12px;         /* 圆角 */
    overflow: hidden;            /* 保证溢出的图片不超出圆角 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px); /* 鼠标悬停微微上浮 */
}

/* 背景大图 */
.expert-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* 保证图片铺满且不变形 */
    object-position: center top; /* 优先显示头部 */
    display: block;
    transition: transform 0.5s ease;
}

/* 鼠标悬停时，背景图微微放大，高级感拉满 */
.expert-card:hover .expert-bg-img {
    transform: scale(1.03);
}

/* 底部信息框（扁平化透明玻璃） */
.expert-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15); /* 淡淡的白色透明层 */


    /* 【核心修改】把罩子弄扁：大幅缩减上下内边距 */
    padding: 15px 20px 15px;

    color: #fff;
    box-sizing: border-box;
}

/* 名字 */
.expert-overlay h3 {
    /* 稍微缩小一点字号，减少占用空间 */
    font-size: 23px;
    margin-bottom: 6px; /* 缩减名字下方的间距 */
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 青色标签 */
.expert-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    /* 把标签也弄扁一点 */
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px; /* 缩减标签下方的间距 */
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 简介文字 */
.expert-desc {
    font-size: 15px; /* 字号稍微减小 */
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5; /* 行距收紧，不那么占地方 */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 只显示两行，想要三行就改回 3 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    padding-bottom: 8px; /* 距离底线的空间 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 手机端适配 */
@media (max-width: 850px) {
    .experts-grid {
        flex-direction: column;
        align-items: center;
    }
    .expert-card {
        width: 100%;
        max-width: 400px;
    }
    /* 手机端没有鼠标悬停，直接让文字一直显示 */
    .expert-overlay {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.7);
    }
}

/* --- 7. 联系我们 --- */
.contact-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-details { flex: 1; }

/* 联系信息不使用分割线，靠行距区分 */
.contact-details p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #000;
    font-weight: bold;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong { color: #000; margin-right: 10px; }

.contact-map { flex: 0 0 50%; }
.contact-map img {
    width: 100%;
    border-radius: 8px;
}

/* --- 页脚 --- */
.site-footer {
    background-color: #519397; /* 深青色底 */
    color: #fff;
    padding: 24px 0;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
    background-color: #ffffff; /* 加一个白色底座，让 Logo 在深色背景上非常清晰 */
    padding: 6px 12px; /* 给白底留一点内边距 */
    border-radius: 8px; /* 圆角，看起来像个精致的小牌子 */
    display: inline-block;
    /* 删掉了 filter: brightness(0) invert(1); 这样就不会变成白块了 */
}

.site-footer p {
    font-size: 17px;
    opacity: 0.7;
}

/* --- 响应式 --- */
@media (max-width: 900px) {
    .intro-layout, .experts-grid, .contact-layout {
        flex-direction: column;
    }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .env-grid { grid-template-columns: 1fr; }
    .main-env img { height: 300px; }
    .contact-details, .contact-map { width: 100%; }
}

/* 动画相关 CSS (保持 app.js 的效果) */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================
   首页：健康动态极简卡片 (图一效果)
   ========================================== */
.news-preview-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.news-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* 左侧文字 */
.news-preview-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-tag {
    background: #e4f6f6;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 15px;
    align-self: flex-start;
    margin-bottom: 15px;
    font-weight: bold;
}

.news-preview-text h3 {
    font-size: 25px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-preview-text p {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 16px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.arrow {
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s;
}

.news-preview-card:hover .arrow {
    transform: translateX(5px);
}

/* 右侧图片 */
.news-preview-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-preview-card:hover .news-preview-image img {
    transform: scale(1.05); /* 鼠标悬停图片微放大 */
}

/* ==========================================
   健康动态模块 手机端强制适配
   ========================================== */
@media (max-width: 900px) {
    /* 1. 强制外框的每一行变成上下排列 */
    .news-preview-card > a {
        flex-direction: column-reverse !important; /* 让图片在上，文字在下 */
        padding: 20px !important;
    }

    /* 2. 强制文字区域占满全宽，解决文字挤成竖条的问题 */
    .news-preview-text {
        width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        padding-right: 0 !important; /* 去掉电脑端预留的右侧边距 */
        padding-top: 15px !important;
    }

    /* 3. 强制图片区域占满全宽，并固定高度 */
    .news-preview-image {
        flex: none !important;
        width: 100% !important;
        height: 180px !important; /* 手机端图片不要太高，180px刚好 */
        border-radius: 8px !important;
    }

    /* 4. 调整文字排版细节 */
    .news-preview-text h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .news-preview-text p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        /* 限制显示两行，超出省略号 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 调整日期和标签 */
    .news-tag {
        padding: 3px 8px !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .news-date {
        font-size: 14px !important;
    }
}
/* --- 模块之间的粗分割线 --- */
.section-divider {
    width: 80%; /* 宽度占屏幕的 80%，两边留白更美观 */
    max-width: 800px; /* 最大宽度限制 */
    height: 4px; /* 线的粗细，4px 看起来有分量但不笨重 */
    background: linear-gradient(to right, transparent, var(--primary-color), transparent); /* 两端透明，中间青色的渐变 */
    margin: 0 auto; /* 居中对齐 */
    opacity: 0.6; /* 稍微降低透明度，显得更柔和高级 */
}
@media (max-width: 900px) {
    /* 1. 汉堡按钮样式 */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-dark);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* 2. 菜单主容器 */
    .nav-links {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        display: none;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 0;
    }

    .nav-links.show {
        display: flex;
    }

    /* 3. 一级菜单链接 */
    .nav-links > a,
    .nav-links .dropdown {
        margin: 15px 0 !important;
        width: 100%;
        text-align: center;
    }

    .nav-links .dropbtn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    /* 4. 重点修复：手机端二级菜单 */
    .dropdown-content {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8fbfb !important;

        /* 核心修复：宽度和居中 */
        width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        text-align: center !important;

        /* 默认隐藏，只有当父级有点击激活时才显示 */
        display: none;
        padding: 10px 0 !important;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        font-size: 17px;
        color: var(--text-dark);
    }

    .dropdown-content a:hover {
        background-color: #e4f6f6 !important;
        color: var(--primary-color) !important;
    }

    /* 5. 汉堡按钮变 X 的动画 */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* 仅主视觉占满导航栏下方的一屏，其余板块按内容高度排列，避免大片留白。 */
:root {
    --site-header-height: 120px;
}

:is(#home, #clinic-intro, #services, #experts, #news) {
    scroll-margin-top: var(--site-header-height);
}

/* 联系信息内容少，不再撑满一屏，按内容高度收窄排列 */
#contact {
    min-height: 0;
    scroll-margin-top: var(--site-header-height);
    padding: clamp(48px, 5vw, 72px) 0;
}

:is(#home, #clinic-intro, #experts, #news, #contact) > .container {
    width: 100%;
}

#home {
    min-height: calc(100vh - var(--site-header-height));
    min-height: calc(100svh - var(--site-header-height));
    display: flex;
    align-items: center;
    padding-block: clamp(60px, 8vh, 100px);
}

#services > .services-layout {
    width: 100%;
    min-height: inherit;
}

/* 诊疗项目采用左上角标题和下方通栏卡片。 */
#services {
    padding: 70px 0;
    align-items: flex-start;
}

#services > .services-layout {
    width: calc(100% - 40px);
    max-width: min(1480px, 90vw);
    min-height: 0;
    margin: 0 auto;
    flex-direction: column;
    gap: 40px;
}

#services .services-title-box {
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--text-dark);
    align-items: flex-start;
}

#services .services-title-wrap { max-width: none; }
#services .services-title-box h2 {
    display: block;
    width: auto;
    color: var(--text-dark);
    font-size: clamp(30px, 2.1vw, 46px);
    margin-bottom: 10px;
    letter-spacing: normal;
}
#services .services-title-box h2::before,
#services .services-title-box h2::after { display: none; }
#services .title-underline { margin-bottom: 24px; }
#services .services-title-box p {
    color: var(--text-gray);
    font-size: clamp(17px, 1.1vw, 23px);
    letter-spacing: normal;
    opacity: 1;
}
#services .services-cards-wrapper { width: 100%; }
#services .services-cards-inner { max-width: none; padding: 0; }

@media (min-width: 901px) {
    /* 卡片图片统一 1:1 比例，竖向展示更充分 */
    #services .s-card-img { height: auto; aspect-ratio: 1 / 1; }
}

/* 电脑端的内容与字号随满屏板块一起放大，手机保留紧凑排版。 */
@media (min-width: 1100px) {
    :is(#home, #clinic-intro, #experts, #news) > .container {
        max-width: min(1480px, 90vw);
    }

    /* 联系信息是短文本，版心贴合最长一行文字（地址一行放下），虚线不再多出一大截 */
    #contact > .container {
        max-width: min(1000px, 90vw);
    }

    :is(#clinic-intro, #experts, #news) h2 {
        font-size: clamp(34px, 2.1vw, 46px);
        line-height: 1.4;
    }

    .title-underline { width: 56px; margin-bottom: 42px; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: clamp(41px, 2.8vw, 67px); line-height: 1.4; }
    .hero-desc { font-size: clamp(20px, 1.1vw, 24px); }

    #clinic-intro .intro-layout { gap: clamp(40px, 4vw, 80px); }
    #clinic-intro .intro-image { flex: 0 0 46%; min-width: 0; }
    #clinic-intro .intro-image img {
        display: block;
        height: clamp(420px, 56vh, 620px);
    }
    #clinic-intro .intro-text { min-width: 0; }
    #clinic-intro .intro-desc {
        font-size: clamp(21px, 1.15vw, 25px);
        line-height: 1.95;
        margin-bottom: clamp(30px, 4vh, 48px);
    }
    #clinic-intro .intro-features-grid { gap: 32px 24px; }
    #clinic-intro .feature-text h4 { font-size: clamp(20px, 1.05vw, 23px); }
    #clinic-intro .feature-text p { font-size: clamp(17px, .9vw, 20px); line-height: 1.7; }
    #clinic-intro .feature-icon { width: 32px; height: 32px; font-size: 21px; }
    #experts .section-subtitle { font-size: 23px; line-height: 1.8; }
    #experts .expert-desc { font-size: 18px; line-height: 1.8; }
    #contact .contact-details p { font-size: clamp(17px, .85vw, 20px); line-height: 1.6; }
}

/* 专家资料采用可阅读的图文卡片，详细履历可展开。 */
.doctor-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}
.doctor-profile {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfeceb;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 90, 90, .06);
}
.doctor-profile-header {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
    align-items: center;
    background: #f1f9f8;
}
.doctor-portrait {
    display: block;
    width: 150px;
    height: 190px;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
}
.doctor-profile-header h3 { font-size: clamp(29px, 1.7vw, 37px); color: #165e60; margin-bottom: 10px; }
.doctor-credential { font-size: 20px; color: #007b7b; margin-bottom: 8px; font-weight: bold; }
.doctor-education { font-size: 18px; color: #555; }
.doctor-focus { font-size: 17px; color: #555; line-height: 1.8; margin-top: 16px; }
.doctor-profile-body { padding: 28px; }
.doctor-profile h4 { font-size: 21px; color: #333; margin-bottom: 14px; }
.doctor-list { list-style: disc; padding-left: 21px; color: #555; font-size: 18px; line-height: 1.9; margin: 0; }
.doctor-details h4 + .doctor-list { margin-top: 14px; }
.doctor-list li + li { margin-top: 9px; }
.doctor-details { margin-top: 24px; border-top: 1px solid #e1eceb; padding-top: 16px; }
.doctor-details summary { color: #007d7d; font-size: 18px; cursor: pointer; padding: 8px 0; }
.doctor-details summary:focus-visible { outline: 2px solid #009b9b; outline-offset: 4px; }
.doctor-details[open] summary { margin-bottom: 18px; }
.doctor-details h4:not(:first-child) { margin-top: 28px; }
.doctor-details p { font-size: 18px; line-height: 1.9; color: #555; margin-bottom: 15px; }
/* 专家列表卡片：仅照片+姓名，点进详情页看完整履历 */
.doctor-card {
    display: block;
    background: #f1f9f8;
    border: 1px solid #dfeceb;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 90, 90, .06);
    padding: 30px 30px 26px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 90, 90, .14); }
.doctor-card img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: 65% center;
    border-radius: 8px;
}
.doctor-card h3 { margin: 18px 0 0; font-size: 28px; color: #165e60; letter-spacing: 1px; }
/* 专家详情页：大照片、完整履历展开 */
.doctor-detail-header { grid-template-columns: 240px minmax(0, 1fr); }
.doctor-detail-header .doctor-portrait { width: 240px; height: 300px; }
@media (max-width: 1100px) {
    .doctor-profile-header { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 22px; }
    .doctor-portrait { width: 100px; height: 140px; }
    .doctor-profile-body { padding: 22px; }
    .doctor-detail-header { grid-template-columns: 150px minmax(0, 1fr); }
    .doctor-detail-header .doctor-portrait { width: 150px; height: 190px; }
}
@media (max-width: 760px) {
    .doctor-profiles { grid-template-columns: 1fr; gap: 24px; }
    .doctor-list, .doctor-details p { font-size: 17px; }
    .doctor-credential, .doctor-education { font-size: 17px; }
    .doctor-focus { font-size: 16px; }
}

/* 参考图首屏：左侧文字、右侧医生插画，不设置操作按钮。 */
#home .hero-content-wrapper {
    max-width: min(1480px, 90vw);
    transform: translateY(-5vh);
}

#home .hero-text {
    max-width: 820px;
}

#home .hero-text h1 {
    font-size: clamp(48px, 4.6vw, 106px);
    line-height: 1.4;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.55);
}


#home .hero-desc {
    max-width: 860px;
    font-size: clamp(25px, 2vw, 44px);
    line-height: 1.8;
    margin-top: 12px;
    margin-bottom: 0;
    letter-spacing: 4px;
    color: #0F7C7C;
    opacity: 0.85;
}

@media (min-width: 601px) and (max-width: 1500px) {
    #home { background-position: 75% center; }
    #home .hero-text { max-width: 70%; }
    #home .hero-desc { max-width: 620px; }
}

@media (max-width: 1099px) {
    #home .hero-text h1 { font-size: clamp(28px, 4.6vw, 55px); }
    #home .hero-text { max-width: 75%; }
}

@media (max-width: 600px) {
    #home {
        background-position: 62% center;
        background-image:
            linear-gradient(90deg, rgba(239, 250, 250, .94), rgba(239, 250, 250, .72) 65%, rgba(239, 250, 250, .15)),
            url('assets/bg-clean.png');
    }
    #home .hero-content-wrapper {
        max-width: 100%;
        transform: none;
    }
    #home .hero-text { max-width: 100%; }
    #home .hero-text h1 {
        font-size: clamp(28px, 6.5vw, 39px);
        margin-bottom: 10px;
    }
    #home .hero-desc { font-size: 18px; line-height: 1.9; letter-spacing: 2px; margin-top: 8px; }
}

/* ==========================================================================
   诊疗项目：横向自动滑动（跑马灯）
   ========================================================================== */

#services .services-layout {
    display: block;
    width: 100%;
    padding: 0;
}

/* 标题区：与全站版心对齐 */
#services .services-title-box {
    width: min(1480px, 90vw);
    max-width: none;
    margin: 0 auto 40px;
    padding: 0;
    background: none;
    color: var(--text-dark);
}

#services .services-title-wrap { max-width: none; }

/* 跑马灯外层：占满整宽，两侧渐隐 */
.services-cards-wrapper {
    width: 100%;
    display: block;
    background: transparent;
    padding-bottom: 4px;
}

.services-marquee {
    position: relative;
    width: 100%;
}

/* 静态展示：四卡居中网格，不再自动滚动 */
.services-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 440px));
    justify-content: center;
    gap: 22px;
}

.services-run { display: contents; }

/* 轮播用的重复组在静态布局下隐藏 */
.services-run-dup { display: none; }

/* 轨道内的卡片：等宽、等高 */
#services .services-run .s-card {
    width: 100%;
    /* 整卡拉高为宽的两倍，图标区自适应、名字条自然高度 */
    aspect-ratio: 1 / 2;
    display: flex;
    flex-direction: column;
}

#services .services-run .s-card-img {
    flex: 1 1 auto;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
}

#services .services-run .s-card-content {
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 760px) {
    #services .services-title-box { width: calc(100% - 32px); margin-bottom: 28px; }
    .services-track {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }
    #services .services-run .s-card {
        /* 手机端不按 1:2 拉那么高 */
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .services-track { grid-template-columns: 1fr; }
}

/* --- 底部固定展示区：标准化制备与质控平台（所有子页面统一，内容源自企业展板结构化梳理） --- */
.company-profile {
    background-color: var(--bg-light);
    border-top: 1px solid #dcecec;
    padding: 56px 0;
}

/* 公司简介区块放宽版心，减少两侧留白 */
#company-profile > .container {
    max-width: 1760px;
}

.company-profile .cp-head { text-align: center; }

.company-profile .cp-head h2 {
    font-size: clamp(32px, 2.8vw, 46px);
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.company-profile .cp-plus {
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1;
}

.company-profile .cp-sub {
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 20px;
    letter-spacing: 2px;
}

.company-profile .cp-gallery {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* contain：保证每张照片完整显示、不裁切；白底+阴影让留白成为装裱相框 */
.company-profile .cp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-white);
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 124, 124, 0.10);
    display: block;
}

.company-profile .cp-g2 { grid-column: span 3; }
.company-profile .cp-g3 { grid-column: span 2; }
.company-profile .cp-gallery img.cp-g2 { height: 460px; }
.company-profile .cp-gallery img.cp-g3 { height: 340px; }

.company-profile .cp-center-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 32px 0 16px;
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
}

.company-profile .cp-center-title::before,
.company-profile .cp-center-title::after {
    content: "";
    height: 2px;
    width: 56px;
    background-color: var(--primary-color);
    opacity: 0.45;
}

.company-profile .cp-quality-text {
    max-width: 1240px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 20px;
    line-height: 1.9;
    text-align: justify;
}

.company-profile .cp-scope-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.company-profile .cp-scope-tags span {
    padding: 10px 28px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    color: var(--primary-color);
    background-color: var(--bg-white);
    font-size: 18px;
}

@media (max-width: 900px) {
    .company-profile { padding: 44px 0; }
    .company-profile .cp-gallery { grid-template-columns: repeat(2, 1fr); }
    .company-profile .cp-g2,
    .company-profile .cp-g3 { grid-column: span 1; }
    .company-profile .cp-gallery img.cp-g2,
    .company-profile .cp-gallery img.cp-g3 { height: 220px; }
    .company-profile .cp-gallery img:last-child { grid-column: 1 / -1; height: 300px; }
    .company-profile .cp-center-title::before,
    .company-profile .cp-center-title::after { width: 32px; }
}

@media (max-width: 520px) {
    .company-profile .cp-gallery { grid-template-columns: 1fr; }
    .company-profile .cp-g2,
    .company-profile .cp-g3,
    .company-profile .cp-gallery img:last-child { grid-column: auto; }
    .company-profile .cp-gallery img.cp-g2,
    .company-profile .cp-gallery img.cp-g3,
    .company-profile .cp-gallery img:last-child { height: auto; }
}

/* 中等屏宽：店招与菜单同时收窄，避免两者挤在一起 */
@media (min-width: 901px) and (max-width: 1400px) {
    .navbar .logo .brand-wordmark {
        font-size: 34px;
        letter-spacing: 4px;
        gap: 10px;
    }
    .navbar .logo .brand-mark { height: 56px; }
    .nav-links a {
        font-size: 21px;
        padding: 0 14px;
    }
}

/* 手机端：竖排菜单不需要斜线分隔，店招相应缩小 */
@media (max-width: 900px) {
    .navbar .logo { left: 24px; }
    .navbar .logo .brand-wordmark {
        font-size: 34px;
        letter-spacing: 5px;
        gap: 10px;
    }
    .navbar .logo .brand-mark { height: 50px; }
    .nav-links a { padding: 12px 22px; }
    .nav-links > a:not(:first-child)::before,
    .nav-links > .dropdown:not(:first-child)::before { display: none; }
}


/* 首页底部绿色背景条 */
.footer-bar {
    height: 50px;
    background-color: var(--primary-color);
}

/* --- 产品页三大板块样式：卡片化 + 标题色条 + 禁忌警示色调 --- */
.service-page .detail-main > section {
    background: #fff;
    border: 1px solid #e3efee;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.service-page .detail-main > section:last-child { margin-bottom: 0; }

.service-page .detail-main h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    color: #0F7C7C;
    margin-bottom: 18px;
}

.service-page .detail-main h2::before {
    content: "";
    width: 6px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(180deg, #13DBD7, #0F7C7C);
}

.service-page .detail-main p {
    color: #3a4a48;
    font-size: 17px;
    line-height: 2.1;
    text-align: justify;
    margin: 0;
}

/* 禁忌板块：暖色警示底 */
.service-page .detail-main > section#safety {
    background: #FDF7F0;
    border-color: #EBD8C4;
}

.service-page .detail-main > section#safety h2 { color: #A65A2E; }

.service-page .detail-main > section#safety h2::before {
    background: linear-gradient(180deg, #E8A15C, #A65A2E);
}

.service-page .detail-main > section#safety p { color: #6b4a33; }

@media (max-width: 760px) {
    .service-page .detail-main > section { padding: 24px 20px; }
}

/* 诊疗项目区块底色：淡青绿，与白色面板形成层次 */
#services {
    background: #E4F3F0;
}

/* 骑线标题遮罩：边框线以上跟区块底色、以下跟面板白底，消除色块感 */
.cat-title {
    background: linear-gradient(180deg, #E4F3F0 0, #E4F3F0 50%, #fff 50%, #fff 100%);
}

