/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.hidden-clue {
    color: #999;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: #e8f4f0;
    border-bottom: 1px solid #d4e8e0;
    font-size: 12px;
    color: #555;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.emergency-hotline {
    color: #c0392b;
    font-weight: bold;
}

.notice-link {
    color: #1a7f5d;
    cursor: pointer;
    text-decoration: underline;
}

.notice-link:hover {
    color: #0e5a40;
}

/* ========== 导航栏 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav {
    flex: 1;
    margin-left: 40px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a7f5d 0%, #2d9b78 100%);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 127, 93, 0.3);
}

.logo-text h1 {
    font-size: 20px;
    color: #1a7f5d;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav ul li {
    display: block;
    flex: 0 1 auto;
}

.nav ul li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    color: #444;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: #1a7f5d;
    color: #fff;
}

/* ========== 首页横幅 ========== */
.hero {
    height: 420px;
    background:
        radial-gradient(circle at 78% 25%, rgba(255, 230, 180, 0.3) 0%, transparent 52%),
        radial-gradient(circle at 12% 78%, rgba(180, 230, 255, 0.22) 0%, transparent 48%),
        linear-gradient(135deg, rgba(26,127,93,0.87) 0%, rgba(45,155,120,0.72) 100%),
        url("../images/hero-banner.jpg") center/cover no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: 80px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #1a7f5d;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: #e8f8f2;
}

/* ========== 快捷通道 ========== */
.quick-access {
    background: #fff;
    padding: 30px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-item:hover {
    background: #e8f8f2;
    transform: translateY(-4px);
}

.quick-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.quick-item h4 {
    font-size: 15px;
    color: #1a7f5d;
    margin-bottom: 4px;
}

.quick-item p {
    font-size: 12px;
    color: #888;
}

/* ========== 公告栏 ========== */
.announcement {
    padding: 16px 0;
    background: #fffef5;
    border-bottom: 1px solid #f2ead0;
    border-top: 1px solid #f2ead0;
    margin-top: 30px;
}

.announcement .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.announce-tag {
    background: #e67e22;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.announce-content {
    flex: 1;
    overflow: hidden;
}

.marquee-text {
    display: block;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    color: #666;
    font-size: 13px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========== 主要内容区 ========== */
.main-content {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-title {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.section-title h3 {
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

.title-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: #1a7f5d;
    border-radius: 2px;
}

.more-btn {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 13px;
    color: #1a7f5d;
}

.more-btn:hover {
    text-decoration: underline;
}

.intro-text {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.intro-text p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.8;
    text-indent: 2em;
}

.highlight-year {
    color: #1a7f5d;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.beds-num {
    color: #c0392b;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .hidden-clue:hover {
        color: #666;
        text-decoration: underline dotted #999;
        text-underline-offset: 3px;
    }
    .highlight-year:hover {
        opacity: 0.7;
        text-decoration: underline dotted #1a7f5d;
        text-underline-offset: 2px;
    }
    .beds-num:hover {
        opacity: 0.7;
        text-decoration: underline dotted #c0392b;
        text-underline-offset: 2px;
    }
}

.more-link {
    text-align: right;
    text-indent: 0 !important;
    margin-top: 16px;
}

.more-link a {
    color: #1a7f5d;
    font-size: 14px;
}

/* 新闻列表 */
.news-list {
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-list li {
    padding: 14px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    color: #999;
    font-size: 13px;
    font-family: "Courier New", monospace;
    flex-shrink: 0;
}

.news-title {
    color: #444;
    font-size: 14px;
    transition: color 0.3s;
}

.news-title:hover {
    color: #1a7f5d;
}

.news-title-clue {
    color: #444;
    font-size: 14px;
    cursor: pointer;
}

.news-title-clue:hover {
    color: #c0392b;
}

.news-title-hint {
    cursor: pointer;
}

/* ========== 专家卡片 ========== */
.doctor-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s;
}

.doctor-card:hover {
    box-shadow: 0 4px 16px rgba(26,127,93,0.15);
    transform: translateY(-2px);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7f5d, #2d9b78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.doctor-info h4 {
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
}

.doctor-dept {
    font-size: 12px;
    color: #1a7f5d;
    margin-bottom: 6px;
    font-weight: 500;
}

.doctor-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* 重点科室 */
.dept-tags {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-tag {
    padding: 8px 16px;
    background: #e8f8f2;
    color: #1a7f5d;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}

.dept-tag:hover {
    background: #1a7f5d;
    color: #fff;
}

.dept-tag-clue:hover::after {
    content: ' (内部装修中)';
    color: #c0392b;
}

/* ========== 底部 ========== */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3d566e;
}

.footer-col p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-col a {
    color: #bdc3c7;
}

.footer-col a:hover {
    color: #2d9b78;
}

.footer-secret-link a {
    opacity: 0.4;
}

.footer-secret-link a:hover {
    opacity: 1;
}

.copyright-clue {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 12px;
}

.footer-bottom {
    border-top: 1px solid #3d566e;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalIn 0.3s;
}

.modal-small {
    width: 400px;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #1a7f5d, #2d9b78);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.modal-body h4 {
    color: #1a7f5d;
    margin-bottom: 10px;
    font-size: 15px;
}

.modal-body .notice-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.modal-body p {
    margin-bottom: 10px;
    text-indent: 2em;
}

/* 登录表单 */
.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #1a7f5d;
}

.captcha-code {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: #333;
}

.btn-full {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a7f5d, #2d9b78);
    color: #fff;
    margin-top: 8px;
}

.btn-full:hover {
    background: linear-gradient(135deg, #156b4e, #258568);
    transform: none;
}

/* ========== 内部页面：通用头部 ========== */
.page-banner {
    height: 200px;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 245, 210, 0.26) 0%, transparent 55%),
        radial-gradient(circle at 92% 92%, rgba(130, 210, 190, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26,127,93,0.92) 0%, rgba(45,155,120,0.82) 100%),
        url("../images/page-banner.jpg") center/cover no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    color: #fff;
}

.page-banner h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-banner p {
    font-size: 14px;
    opacity: 0.85;
}

.page-content {
    padding: 50px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar-menu {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: fit-content;
}

.sidebar-title {
    background: linear-gradient(135deg, #1a7f5d, #2d9b78);
    color: #fff;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-menu ul li a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu ul li:last-child a {
    border-bottom: none;
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
    background: #e8f8f2;
    color: #1a7f5d;
    padding-left: 26px;
}

.sidebar-menu ul li a.active::before {
    content: '▶';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #1a7f5d;
}

/* 右侧内容 */
.main-panel {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 600px;
}

.main-panel h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a7f5d;
    display: inline-block;
}

.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #1a7f5d;
}

.breadcrumb .current {
    color: #555;
}

/* ========== 表格 ========== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.info-table th {
    background: #f5faf7;
    color: #1a7f5d;
    font-weight: 600;
    width: 140px;
}

.info-table td {
    color: #555;
}

/* ========== 科室列表 ========== */
.dept-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dept-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.dept-item:hover {
    border-color: #1a7f5d;
    box-shadow: 0 4px 16px rgba(26,127,93,0.1);
}

.dept-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dept-item h4 {
    color: #1a7f5d;
    font-size: 16px;
}

.dept-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fef3e2;
    color: #e67e22;
}

.dept-badge.key {
    background: #fde8e8;
    color: #c0392b;
}

.dept-item p {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.dept-item-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* ========== 医生列表 ========== */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.doctor-detail-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.doctor-detail-card:hover {
    border-color: #1a7f5d;
    box-shadow: 0 4px 16px rgba(26,127,93,0.1);
}

.doctor-avatar-big {
    width: 100px;
    height: 130px;
    background: linear-gradient(135deg, #1a7f5d, #2d9b78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: bold;
    border-radius: 8px;
    flex-shrink: 0;
}

.doctor-detail-info h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 6px;
}

.doctor-title {
    font-size: 13px;
    color: #1a7f5d;
    margin-bottom: 10px;
    font-weight: 500;
}

.doctor-detail-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 6px;
}

.doctor-schedule {
    margin-top: 10px;
    padding: 10px;
    background: #f9fcfb;
    border-radius: 6px;
    font-size: 12px;
    color: #777;
}

/* ========== 文章内容 ========== */
.article {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.article p {
    text-indent: 2em;
    margin-bottom: 16px;
}

.article h4 {
    font-size: 17px;
    color: #1a7f5d;
    margin: 24px 0 12px;
    text-indent: 0;
}

.article ul {
    padding-left: 2em;
    margin-bottom: 16px;
}

.article ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* ========== 预约表单 ========== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.appointment-form .form-group {
    margin-bottom: 20px;
}

.appointment-form label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.appointment-form label .req {
    color: #c0392b;
    margin-left: 4px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: #1a7f5d;
    box-shadow: 0 0 0 3px rgba(26,127,93,0.1);
}

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

.appointment-info {
    background: #e8f8f2;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.appointment-info strong {
    color: #1a7f5d;
}

/* ========== 联系页面 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info-card {
    background: #f9fcfb;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #d4e8e0;
}

.contact-info-card h4 {
    color: #1a7f5d;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4e8e0;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    background: #1a7f5d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 2px dashed #ccc;
    position: relative;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: #c0392b;
    font-size: 32px;
}

/* ========== 解密元素：隐藏信息提示 ========== */
.easter-egg-found {
    background: #fff9e6 !important;
    border: 1px solid #f5c842 !important;
    box-shadow: 0 0 16px rgba(245, 200, 66, 0.3) !important;
}

.clue-highlight {
    animation: clueGlow 2s ease-in-out infinite;
}

@keyframes clueGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(192, 57, 43, 0); }
    50% { box-shadow: 0 0 12px rgba(192, 57, 43, 0.4); }
}

/* 恐怖氛围元素 */
.horror-text {
    color: #8b0000;
    font-family: "KaiTi", "楷体", serif;
}

.flicker-text {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
    52% { opacity: 1; }
    54% { opacity: 0.2; }
    56% { opacity: 1; }
}

/* ========== 汉堡菜单按钮（桌面隐藏，移动端显示） ========== */
.nav-toggle {
    display: none;
    font-size: 26px;
    color: #1a7f5d;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: #e8f8f2;
}

.nav-toggle.active {
    background: #e8f8f2;
}

/* ========== 响应式：平板 (≤900px) ========== */
@media (max-width: 900px) {
    /* 顶部信息栏：隐藏门诊时间，保留急诊+公告 */
    .top-bar .container {
        justify-content: space-between;
        gap: 8px;
    }
    .clinic-time {
        display: none;
    }

    /* 头部：缩小高度+logo */
    .header-inner {
        height: 64px;
        position: relative;
    }
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
    .logo-text h1 {
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    .logo-text p {
        font-size: 8px;
    }

    /* 汉堡菜单：显示 */
    .nav-toggle {
        display: flex;
        align-items: center;
    }

    /* 导航：下拉菜单 */
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 200;
    }
    .nav.nav-open {
        max-height: 420px;
    }
    .nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .nav ul li {
        display: block;
        flex: 1 1 0%;
        width: 100%;
    }
    .nav ul li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        text-align: left;
        box-sizing: border-box;
    }

    /* 横幅 */
    .hero {
        height: 280px;
    }
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .btn-primary {
        padding: 10px 28px;
        font-size: 14px;
    }

    /* 快捷通道：3列 */
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .quick-item {
        padding: 14px 6px;
    }
    .quick-icon {
        font-size: 28px;
    }
    .quick-item h4 {
        font-size: 13px;
    }
    .quick-item p {
        font-size: 11px;
    }

    /* 内容区：单列 */
    .container {
        padding: 0 16px;
    }
    .content-grid,
    .content-wrapper,
    .contact-grid,
    .form-grid,
    .dept-list,
    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 侧边栏：横向滚动菜单 */
    .sidebar-menu {
        overflow-x: auto;
    }
    .sidebar-menu ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-menu ul li {
        flex-shrink: 0;
    }
    .sidebar-menu ul li a {
        white-space: nowrap;
        border-bottom: none;
        padding: 12px 16px;
    }
    .sidebar-menu ul li a:hover,
    .sidebar-menu ul li a.active {
        padding-left: 20px;
    }

    /* 主面板：减小padding */
    .main-panel {
        padding: 16px;
        min-height: auto;
    }

    /* 页面横幅 */
    .page-banner {
        height: 140px;
    }
    .page-banner h2 {
        font-size: 22px;
    }

    /* 内容区padding */
    .main-content,
    .page-content {
        padding: 24px 0;
    }

    /* 弹窗：自适应宽度 */
    .modal-content {
        width: 92%;
        max-width: 600px;
    }
    .modal-small {
        width: 92%;
        max-width: 400px;
    }
    .modal-body {
        padding: 16px;
        font-size: 13px;
        max-height: 70vh;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-header h3 {
        font-size: 15px;
    }

    /* 表格：横向滚动 */
    .info-table,
    .intra-table {
        font-size: 13px;
    }
    .info-table th,
    .info-table td {
        padding: 8px 10px;
    }

    /* 预约表单：单列 */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* 底部 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px 0;
    }
    .footer-col h4 {
        font-size: 14px;
    }
    .footer-col p {
        font-size: 12px;
    }
    .footer-bottom {
        padding: 12px 16px;
    }

    /* 新闻列表 */
    .news-list {
        padding: 12px 16px;
    }
    .news-list li {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 0;
    }
    .news-date {
        font-size: 12px;
    }
    .news-title,
    .news-title-clue {
        font-size: 13px;
        width: 100%;
    }

    /* 医生卡片 */
    .doctor-detail-card {
        flex-direction: column;
        gap: 12px;
    }
    .doctor-avatar-big {
        width: 100%;
        height: 80px;
        font-size: 36px;
    }

    /* 跑马灯 */
    .marquee-text {
        font-size: 12px;
    }

    /* 公告标签 */
    .announce-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ========== 响应式：手机 (≤600px) ========== */
@media (max-width: 600px) {
    body {
        font-size: 13px;
    }

    /* 顶部栏：只保留急诊电话 */
    .top-bar {
        font-size: 11px;
    }
    .top-bar .container {
        height: 28px;
    }
    .notice-link {
        font-size: 11px;
    }

    /* 横幅进一步缩小 */
    .hero {
        height: 220px;
    }
    .hero-content h2 {
        font-size: 22px;
    }
    .hero-content p {
        font-size: 12px;
    }

    /* 快捷通道：2列 */
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .quick-access {
        padding: 16px 0;
        margin-top: -24px;
    }
    .quick-item {
        padding: 10px 4px;
    }
    .quick-icon {
        font-size: 24px;
    }

    /* 底部：单列 */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* 横幅 */
    .page-banner {
        height: 110px;
    }
    .page-banner h2 {
        font-size: 18px;
    }
    .page-banner p {
        font-size: 12px;
    }

    /* 弹窗 */
    .modal-content {
        width: 94%;
        max-height: 88vh;
    }
    .modal-body {
        padding: 14px;
        max-height: 76vh;
    }

    /* 表单输入：增大触摸区域 */
    .appointment-form input,
    .appointment-form select,
    .appointment-form textarea,
    .login-form input {
        padding: 12px 14px;
        font-size: 15px; /* iOS防止缩放 */
    }

    /* 按钮触摸目标≥44px */
    .btn-primary,
    .btn-full,
    .login-btn {
        min-height: 44px;
    }

    /* 科室/医生网格：单列 */
    .dept-list,
    .doctor-grid {
        grid-template-columns: 1fr;
    }

    /* 真相页面文字缩小 */
    .truth-section {
        padding: 24px 16px;
    }
    .truth-section h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    .truth-section h2 {
        font-size: 18px;
    }
    .truth-section p {
        font-size: 13px;
    }
    .final-btn {
        padding: 14px 40px;
        font-size: 14px;
    }
}

/* ========== 响应式：小屏手机 (≤380px) ========== */
@media (max-width: 380px) {
    .hero-content h2 {
        font-size: 19px;
    }
    .logo-text h1 {
        font-size: 13px;
    }
    .logo-text p {
        display: none;
    }
    .quick-grid {
        gap: 6px;
    }
    .quick-item h4 {
        font-size: 12px;
    }
}

/* ========== 触摸优化（所有触摸设备） ========== */
@media (hover: none) and (pointer: coarse) {
    /* 禁用桌面端hover动画 */
    .quick-item:hover,
    .doctor-card:hover,
    .dept-item:hover,
    .doctor-detail-card:hover {
        transform: none;
    }
    .nav-toggle:hover {
        background: transparent;
    }

    /* 可点击线索元素：虚线下划线视觉提示 */
    .hidden-clue {
        text-decoration: underline dotted #aaa;
        text-underline-offset: 3px;
    }
    .highlight-year {
        text-decoration: underline dotted #1a7f5d;
        text-underline-offset: 2px;
    }
    .beds-num {
        text-decoration: underline dotted #c0392b;
        text-underline-offset: 2px;
    }

    /* 新闻线索标题：尾部图标提示可点击 */
    .news-title-clue::after {
        content: ' 🔍';
        font-size: 11px;
        opacity: 0.6;
    }
    .news-title-hint::after {
        content: ' 🔒';
        font-size: 11px;
        opacity: 0.6;
    }

    /* 病理科标签：始终显示警告标记（不依赖hover） */
    .dept-tag-clue::after {
        content: ' ⚠';
        color: #c0392b;
        font-size: 12px;
    }

    /* 内网链接：提高可见度（不依赖hover） */
    .footer-secret-link a {
        opacity: 0.75;
    }

    /* 按下反馈：背景高亮 */
    .hidden-clue:active,
    .highlight-year:active,
    .beds-num:active,
    .news-title-clue:active,
    .news-title-hint:active,
    .dept-tag-clue:active,
    .captcha-code:active {
        background: rgba(26, 127, 93, 0.12);
        border-radius: 4px;
    }

    /* 验证码：增大触摸区域 */
    .captcha-code {
        padding: 6px 12px;
        font-size: 16px;
    }
}
