/* ============================================
   天津津南津益医院 —— 全局样式表（美化版）
   ============================================ */

/* ========== 字体导入 ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700;900&display=swap');

/* ========== 基础重置与变量 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple Design Tokens */
    --primary: #007aff;
    --primary-dark: #0062cc;
    --primary-light: rgba(0,122,255,0.08);
    --primary-gradient: linear-gradient(135deg, #007aff, #5856d6);
    --accent: #34c759;
    --accent-dark: #28a745;
    --accent-light: rgba(52,199,89,0.1);
    --warm: #ff9500;
    --warm-dark: #e68600;
    --warm-light: rgba(255,149,0,0.1);
    --warm-gradient: linear-gradient(135deg, #ff9500, #ff6b6b);
    --danger: #ff3b30;
    --danger-light: rgba(255,59,48,0.1);
    --warning: #ff9500;
    --warning-light: rgba(255,149,0,0.1);
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #aeaeb2;
    --bg: #f5f5f7;
    --bg-soft: #fafafa;
    --bg-card: #ffffff;
    --border: rgba(60,60,67,0.12);
    --border-light: rgba(60,60,67,0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul { list-style: none; }

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

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c0c8d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a8b4; }

/* ========== 淡入动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes borderGlow {
    0%, 100% { border-color: var(--border-light); box-shadow: 0 0 0 0 rgba(26,115,232,0); }
    50%      { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,115,232,0.08); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* 滚动触发：隐藏状态 */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* 旧兼容 */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-entry {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-left: 8px;
    transition: var(--transition);
    padding: 2px 8px;
    border-radius: 4px;
}
.admin-entry:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ========== 导航栏 ========== */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 16px;
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(26,115,232,0.2);
    flex-shrink: 0;
}
.logo h1 {
    font-size: 19px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: var(--font-serif);
    white-space: nowrap;
}
.nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    list-style: none;
}
.nav ul > li {
    display: flex;
    align-items: center;
}
.nav a {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav a:hover::after,
.nav a.active::after {
    width: calc(100% - 28px);
}

/* 体检服务着重提醒 */
.nav a.nav-highlight {
    color: #fff !important;
    background: linear-gradient(135deg, var(--warm), #ff6b6b);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255,149,0,0.25);
    animation: highlightPulse 2s ease-in-out infinite;
}
.nav a.nav-highlight:hover {
    background: linear-gradient(135deg, var(--warm-dark), #ff5252);
    box-shadow: 0 4px 14px rgba(255,149,0,0.35);
    transform: translateY(-1px);
}
@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255,149,0,0.25); }
    50% { box-shadow: 0 2px 16px rgba(255,149,0,0.4); }
}

/* 就诊指南下拉菜单 */
.nav .nav-dropdown { position: relative; }
.nav .dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 8px;
}
.nav .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}
.nav .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 160px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}
.nav .nav-dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeInUp 0.25s ease;
}
.nav .dropdown-menu li { width: 100%; }
.nav .dropdown-menu a {
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    display: block;
}
.nav .dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ========== Apple 风格 Hero 区域 ========== */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 25%, #162d50 55%, #0a1628 100%);
    background-size: 200% 200%;
    animation: heroBgShift 20s ease infinite;
    min-height: 580px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: #fff; position: relative; overflow: hidden;
    padding: 100px 20px;
}
@keyframes heroBgShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,122,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(88,86,214,0.08) 0%, transparent 40%);
}
.hero-floating {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,122,255,0.06) 0%, transparent 70%);
    top: -100px; right: -80px; pointer-events: none; z-index: 0;
    animation: heroFloat1 12s ease-in-out infinite;
}
@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}
.hero::after { display: none; }
.hero-content {
    position: relative; z-index: 1; max-width: 720px;
}
.hero-content h2 {
    font-size: 52px; font-weight: 800; margin-bottom: 16px;
    letter-spacing: -1px; line-height: 1.2; font-family: var(--font-serif);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p {
    font-size: 20px; opacity: 0.85; margin-bottom: 40px; font-weight: 400;
    color: rgba(255,255,255,0.8);
}
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ========== Apple 风格按钮系统 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 30px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: none; letter-spacing: 0.1px;
    position: relative; overflow: hidden; font-family: var(--font-sans);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: #ffffff; color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.btn-primary:hover {
    background: var(--primary-light); color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.btn-outline {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1); border-color: #ffffff;
    transform: translateY(-1px);
}
.btn-sm {
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    background: var(--primary); color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0,122,255,0.2);
}
.btn-sm:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,122,255,0.3);
    transform: translateY(-1px);
}
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 6px rgba(255,59,48,0.2); }
.btn-danger:hover { background: #cc1a1a; box-shadow: 0 4px 12px rgba(255,59,48,0.3); }
.btn-cancel { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-cancel:hover { background: var(--border); }
.btn-outline-dark {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline-dark:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.btn-export {
    background: var(--primary); color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,122,255,0.2);
}
.btn-export:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

/* ========== Hero 统计数据 ========== */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}
/* 统计卡片 */
.stat-card {
    width: 180px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 24px 16px 20px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(66,165,245,0.8), rgba(255,255,255,0.5));
    opacity: 0;
    transition: opacity 0.35s;
}
.stat-card:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    transition: all 0.35s;
}
.stat-card:hover .stat-card-icon {
    background: rgba(66,165,245,0.35);
    color: #fff;
    box-shadow: 0 0 24px rgba(66,165,245,0.3);
    transform: scale(1.08);
}
.stat-card-num {
    margin-bottom: 6px;
}
.stat-number {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.stat-card-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    transition: color 0.35s;
}
.stat-card:hover .stat-card-label {
    color: rgba(255,255,255,0.95);
}

/* ========== Apple 风格 Section Header ========== */
.section {
    padding: 88px 0;
}
.section-header {
    text-align: center; margin-bottom: 52px; position: relative;
}
.section-header .eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--primary); margin-bottom: 12px;
    padding: 4px 14px; background: var(--primary-light);
    border-radius: 20px;
}
.section-header h2 {
    font-size: 36px; font-weight: 700; color: var(--text);
    margin-bottom: 14px; position: relative; display: inline-block;
    letter-spacing: -0.5px; font-family: var(--font-serif);
}
.section-header h2::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 48px; height: 3px;
    background: var(--primary-gradient); border-radius: 2px;
}
.section-header p {
    color: var(--text-secondary); font-size: 15px;
    max-width: 560px; margin: 0 auto;
}

/* ========== Apple 风格医院概况 ========== */
.about { background: var(--bg-soft); position: relative; }
.about::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(0,122,255,0.3), transparent);
}
.about-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-text h3 {
    font-size: 26px; margin-bottom: 20px; color: var(--text);
    letter-spacing: -0.5px; position: relative; padding-bottom: 14px;
    font-family: var(--font-serif);
}
.about-text h3::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 48px; height: 3px; border-radius: 2px;
    background: var(--primary-gradient);
}
.about-text p {
    color: var(--text-secondary); margin-bottom: 14px;
    line-height: 1.85; font-size: 15px;
}
.about-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 28px;
}
.feature {
    background: var(--bg-card); padding: 24px 20px;
    border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--primary-gradient);
    transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md); border-color: rgba(0,122,255,0.2);
}
.feature:hover::after { transform: scaleX(1); }
.feature:nth-child(1) .feature-icon { background: rgba(0,122,255,0.1); color: var(--primary); }
.feature:nth-child(2) .feature-icon { background: var(--warm-light); color: var(--warm-dark); }
.feature:nth-child(3) .feature-icon { background: var(--accent-light); color: var(--accent-dark); }
.feature:nth-child(4) .feature-icon { background: rgba(88,86,214,0.1); color: #5856d6; }
.feature-icon {
    font-size: 32px; width: 64px; height: 64px;
    margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; transition: transform 0.3s ease;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature:hover .feature-icon { transform: scale(1.08); }
.feature h4 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.feature p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    transition: all 0.4s ease; position: relative;
}
.about-image { position: relative; }
.about-image::before {
    content: ''; position: absolute; inset: -6px;
    border-radius: calc(var(--radius-lg) + 6px);
    border: 1.5px solid rgba(0,122,255,0.12); pointer-events: none;
}
.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 48px rgba(0,0,0,0.14);
}

/* ========== Apple 风格科室导航 ========== */
.departments { background: var(--bg-soft); position: relative; }
.departments::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
}
.departments::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007aff' fill-opacity='0.015'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.dept-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.dept-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
    border-radius: 0 4px 4px 0;
}
.dept-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.dept-card:hover::before { transform: scaleY(1); }
.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.dept-card:hover::after { opacity: 1; }
.dept-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    padding: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26,115,232,0.1);
}
.dept-card:hover .dept-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--warm-light));
    transform: scale(1.05);
}
.dept-icon img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}
.dept-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}
.dept-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}
.dept-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.dept-link:hover { gap: 8px; color: var(--primary-dark); }

/* 科室详情展开 */
.dept-name-toggle {
    cursor: pointer;
    user-select: none;
}
.dept-expand-icon {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
    display: inline-block;
    cursor: pointer;
}
.dept-card.expanded .dept-expand-icon {
    transform: rotate(180deg);
}
.dept-detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.3s ease;
    text-align: left;
    margin-top: 0;
}
.dept-card.expanded .dept-detail-content {
    margin-top: 14px;
}
.dept-detail-section {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8faff;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.dept-detail-section h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
}
.dept-detail-section p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.dept-feature-list {
    list-style: none; margin: 0; padding: 0;
}
.dept-feature-list li {
    position: relative; padding: 2px 0 2px 20px;
    font-size: 13px; color: #555; line-height: 1.7;
}
.dept-feature-list li::before {
    content: '✓'; position: absolute; left: 0; top: 2px;
    color: var(--primary); font-weight: 700;
}
.dept-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 12px;
}
.dept-meta-item {
    display: flex; align-items: center; gap: 10px;
    background: #f8faff; border-radius: 8px; padding: 8px 12px;
    border: 1px solid #eef2fa;
}
.dept-meta-item > span { font-size: 16px; }
.dept-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}
.dept-meta-item label {
    display: block; font-size: 11px; color: #999; margin: 0 0 2px;
}
.dept-meta-item p {
    margin: 0; font-size: 13px; color: #444; line-height: 1.5;
}
@media (max-width: 768px) {
    .dept-meta-grid { grid-template-columns: 1fr; }
}

/* ========== 专家团队 ========== */
.doctors {
    background: var(--bg); position: relative;
}
.doctors::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(88,86,214,0.5), transparent);
}
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.doctor-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.doctor-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border-color: transparent;
}
.doctor-card:hover::after { opacity: 1; }
.doctor-img { position: relative; overflow: hidden; }
.doctor-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(26,115,232,0.15));
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.doctor-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.doctor-card:hover .doctor-img img {
    transform: scale(1.05);
}
.doctor-info {
    padding: 24px;
    text-align: center;
    position: relative;
}
.doctor-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--warm));
    border-radius: 0 0 2px 2px;
}
.doctor-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}
.doctor-title {
    display: block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}
.doctor-dept {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.doctor-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.doctor-schedule {
    font-size: 13px;
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: var(--warning-light);
    border-radius: 6px;
    display: inline-block;
}
.schedule-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}
.schedule-icon svg { width: 14px; height: 14px; }

/* 专家姓名点击展开 */
.doctor-name-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
}
.doctor-name-toggle:hover { color: var(--primary); }
.toggle-icon {
    font-size: 11px;
    transition: transform 0.3s;
}
.doctor-card.expanded .toggle-icon { transform: rotate(180deg); }
.doctor-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
    text-align: left;
}
.doctor-card.expanded .doctor-detail { max-height: 600px; }
.detail-grid {
    display: grid;
    gap: 14px;
    padding: 8px 0 18px;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
}
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail-value {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.schedule-highlight { color: var(--warning) !important; font-weight: 600; }

/* ========== 通用轮播（专家团队 / 健康科普 / 新闻动态） ========== */
.doctor-carousel, .health-carousel, .news-carousel { position: relative; }
.c-slider { position: relative; }
.c-viewport { overflow: hidden; }
.c-track {
    display: flex;
    align-items: stretch;
    padding: 10px 0 14px;
    will-change: transform;
}
.c-slide { flex: 0 0 auto; padding: 0 14px; }
.c-slide .doctor-card,
.c-slide .health-card,
.c-slide .news-card { height: 100%; }
/* 卡片内容撑满等高 */
.c-slide .doctor-info { display: flex; flex-direction: column; }
.c-slide .doctor-info p { flex: 1 0 auto; }
.c-slide .health-card { display: flex; flex-direction: column; }
.c-slide .health-card-body { flex: 1 0 auto; }
.c-slide .news-card { display: flex; flex-direction: column; }
.c-slide .news-content { flex: 1 0 auto; }
.c-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    user-select: none;
}
.c-prev { left: -16px; }
.c-next { right: -16px; }
.c-nav:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 26px rgba(26, 115, 232, 0.35);
    transform: translateY(-50%) scale(1.06);
}
.c-nav:active { transform: translateY(-50%) scale(0.94); }
.c-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.c-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.c-dots button:hover { background: var(--primary-light); }
.c-dots button.active {
    width: 26px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
@media (max-width: 768px) {
    .c-nav { width: 36px; height: 36px; font-size: 20px; }
    .c-prev { left: -6px; }
    .c-next { right: -6px; }
    .c-dots { margin-top: 2px; }
}

/* ========== 预约挂号 ========== */
.appointment {
    background: var(--bg-soft); position: relative;
}
.appointment::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warm), var(--primary), transparent);
}
.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}
.appointment-info {
    background: var(--primary-gradient);
    color: #fff;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: 0 8px 32px rgba(26,115,232,0.25);
}
.appointment-info h3 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 700;
}
.appointment-info ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.appointment-info ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.appointment-contact {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.appointment-contact p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}
.appointment-contact p svg { width: 18px; height: 18px; flex-shrink: 0; }
.appointment-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: #fff;
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ========== 新闻动态 ========== */
.news { background: var(--bg); position: relative; }
.news::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.news-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}
.news-card:hover::after { opacity: 1; }
.news-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.news-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
    pointer-events: none;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-img img { transform: scale(1.06); }
.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--warm);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255,138,91,0.4);
    z-index: 1;
}
.news-content {
    padding: 24px;
}
.news-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.news-link:hover { gap: 8px; color: var(--primary-dark); }

/* ========== 联系我们 ========== */
.contact { background: #fff; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.contact-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.contact-card .ci-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}
.contact-card:nth-child(1) .ci-icon { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: var(--primary); }
.contact-card:nth-child(2) .ci-icon { background: linear-gradient(135deg, var(--warm-light), #ffe0d0); color: var(--warm-dark); }
.contact-card:nth-child(3) .ci-icon { background: linear-gradient(135deg, var(--accent-light), #d1f5e8); color: var(--accent-dark); }
.contact-card:nth-child(4) .ci-icon { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.contact-card:hover .ci-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.contact-card .ci-icon svg { width: 24px; height: 24px; }
.contact-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
}
.footer-logo h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    font-family: var(--font-serif);
}
.footer-logo p { font-size: 13px; color: var(--primary); }
.footer-col > p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
}
.footer-col h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-col ul li a { transition: var(--transition-fast); opacity: 0.85; }
.footer-col ul li a:hover {
    color: #fff;
    opacity: 1;
    padding-left: 6px;
}
.contact-list li { line-height: 1.9; display: flex; align-items: center; gap: 8px; }
.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}
.footer-col ul li a:hover .footer-contact-icon,
.contact-list li:hover .footer-contact-icon {
    color: rgba(255,255,255,0.9);
}
.footer-bottom {
    margin-top: 52px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,115,232,0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,115,232,0.5);
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 440px;
    width: 92%;
    box-shadow: 0 24px 72px rgba(0,0,0,0.25);
}
.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-weight: 700;
}
.modal h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.modal p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ========== 页眉页脚通用（子页面） ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 28px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header h2 { font-size: 22px; font-weight: 700; }
.page-header a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page-header a:hover { color: #fff; }
.page-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== 卡片（子页面通用） ========== */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 40px;
    margin-bottom: 24px;
}
.card h2 {
    font-size: 24px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 8px;
}
.card .subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}
.card .section { padding: 0; }
.card .section + .section { margin-top: 32px; }
.card .section h4 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}
.card .section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    padding-left: 17px;
}

/* ========== 高亮提示框 ========== */
.highlight {
    background: var(--accent-light);
    border: 1px solid rgba(0,184,148,0.2);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--accent-dark);
    line-height: 2;
}

/* ========== 登录卡片 ========== */
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 36px 40px;
    margin-bottom: 24px;
}
.login-card h3 {
    font-size: 18px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}
.login-card h3 .icon { margin-right: 6px; }
.form-msg {
    text-align: center;
    font-size: 13px;
    margin: 8px 0;
    min-height: 20px;
}
.form-msg.error { color: var(--danger); }
.form-msg.success { color: var(--accent); }
.login-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
    line-height: 1.8;
}
.toggle-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}
.toggle-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ========== 套餐卡片 ========== */
.pkg-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 14px;
}
.pkg-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.pkg-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.pkg-item .pkg-price {
    font-size: 22px;
    font-weight: 800;
    color: #e67e22;
    margin-bottom: 4px;
}
.pkg-item .pkg-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.pkg-item .pkg-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==============================
   ========== 后台管理 ==========
   ============================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    background: var(--bg);
}
.admin-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid var(--border-light);
    padding: 20px 0;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.sidebar-header {
    padding: 0 20px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    cursor: pointer;
}
.sidebar-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
}
.sidebar-logout {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.admin-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }

/* 面板头 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.panel-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.panel-body { }

/* 信息卡片（后台预览用） */
.info-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.info-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.data-table thead th {
    background: var(--bg);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}
.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.data-table tbody tr {
    transition: var(--transition-fast);
}
.data-table tbody tr:hover {
    background: var(--primary-light);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.data-table .actions .btn-sm {
    font-size: 12px;
    padding: 5px 12px;
}

/* 后台弹窗 */
.admin-modal {
    max-width: 680px;
    width: 94%;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px 40px;
    border-radius: var(--radius-lg);
}
.admin-modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    text-align: left;
}
.admin-modal .form-group { margin-bottom: 16px; }
.admin-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.admin-modal .form-group input,
.admin-modal .form-group select,
.admin-modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: #fff;
}
.admin-modal .form-group input:focus,
.admin-modal .form-group select:focus,
.admin-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: #fff;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* 角色权限复选框 */
.role-perm-check {
    cursor: pointer;
    accent-color: var(--primary);
}

/* 体检报告管理 */
.report-table td { font-size: 13px; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-active { background: var(--accent-light); color: var(--accent-dark); }
.badge-expired { background: var(--danger-light); color: var(--danger); }

/* 响应式 - 后台 */
@media (max-width: 1024px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        gap: 6px;
    }
    .sidebar-header { display: none; }
    .sidebar-item {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: var(--radius-sm);
        border-left: none;
    }
    .sidebar-item.active {
        background: var(--primary);
        color: #fff;
    }
    .sidebar-item:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
    .sidebar-logout {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
        margin-left: auto;
    }
}

/* ========== 新闻详情页 ========== */
.news-detail-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}
.news-detail-body .card { padding: 40px 44px; }
.news-detail-body h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text);
}
.news-detail-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}
.news-detail-body .card img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.news-detail-content {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    white-space: pre-wrap;
}

/* ========== 患者门户 ========== */
.patient-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}
.patient-card:hover { box-shadow: var(--shadow); }
.patient-card-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}
.patient-card-header:hover { background: var(--primary-light); }
.patient-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.patient-card-header .arrow {
    transition: transform 0.3s;
    color: var(--text-light);
}
.patient-card.open .patient-card-header .arrow { transform: rotate(180deg); }
.patient-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.patient-card.open .patient-card-body { max-height: 800px; }
.patient-card-content { padding: 0 24px 24px; }
.patient-card-content table {
    width: 100%;
    font-size: 14px;
}
.patient-card-content table td {
    padding: 6px 12px 6px 0;
    color: var(--text-secondary);
}
.patient-card-content table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.pdf-viewer-modal .modal {
    max-width: 900px;
    width: 96%;
    padding: 24px;
}
.pdf-viewer-modal .modal embed {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: var(--radius-sm);
}

/* ========== 响应式（首页 + 子页面） ========== */
@media (max-width: 1024px) {
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .honors-grid { grid-template-columns: repeat(2, 1fr); }
    .health-grid { grid-template-columns: repeat(2, 1fr); }
    .satisfaction-wrapper { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .header .container { height: 60px; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        transition: 0.35s ease;
        padding: 80px 24px 24px;
        z-index: 1001;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; gap: 4px; }
    .nav a {
        display: block;
        padding: 14px 18px;
        font-size: 16px;
    }
    .nav .nav-dropdown { position: static; }
    .nav .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        border-radius: 0;
        margin-left: 16px;
    }
    .nav .nav-dropdown .dropdown-menu { display: none; }
    .nav .nav-dropdown.open .dropdown-menu { display: flex; }
    .nav .dropdown-menu a { padding: 10px 24px; font-size: 14px; }
    .menu-toggle { display: block; z-index: 1002; }
    .hero { min-height: auto; padding: 60px 20px; }
    .hero-content h2 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .hero-stats { gap: 16px; }
    .stat-card { width: 150px; padding: 18px 12px 16px; }
    .stat-card-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; }
    .stat-card-icon svg { width: 22px; height: 22px; }
    .stat-number { font-size: 30px; }
    .stat-card-label { font-size: 12px; }
    .about-content { grid-template-columns: 1fr; gap: 32px; }
    .about-image { order: -1; }
    .about-features { grid-template-columns: 1fr 1fr; }
    .dept-grid { grid-template-columns: 1fr; }
    .doctor-grid { grid-template-columns: 1fr 1fr; }
    .appointment-wrapper { grid-template-columns: 1fr; gap: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 28px; }
    .pkg-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 26px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .hero-stats { gap: 12px; }
    .stat-card { width: calc(50% - 10px); min-width: 130px; padding: 16px 10px 14px; border-radius: 16px; }
    .stat-number { font-size: 28px; }
    .about-features { grid-template-columns: 1fr; }
    .doctor-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
    .form-row { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    .login-card { padding: 28px 24px; }
}

/* ============================================
   首页结构升级：Hero 双栏 + 快速服务入口 + CTA 横幅
   ============================================ */

/* --- Hero 双栏布局 --- */
.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}
.hero-container .hero-content {
    max-width: none;
    text-align: left;
}
.hero-container .hero-buttons {
    justify-content: flex-start;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 22px;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    transition: var(--transition-fast);
}
.hero-meta span:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.25);
}
.hero-meta span svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.9; }

/* --- Hero 视觉区（图片 + 右侧信息卡列） --- */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}
.hero-visual-card {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 12px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.hero-visual-img {
    border-radius: 18px;
    overflow: hidden;
    height: 380px;
}
.hero-visual-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-chips {
    flex-shrink: 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-chip {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 18px;
    padding: 14px 20px 14px 14px;
    box-shadow: 0 16px 44px rgba(2, 12, 48, 0.3);
    animation: chipIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, chipFloat 5s ease-in-out 0.9s infinite;
    overflow: hidden;
}
.hero-chip:nth-child(2) { animation-delay: 0.35s, 1.25s; }
.hero-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(26,115,232,0.08), rgba(0,184,148,0.05) 45%, transparent 65%);
    pointer-events: none;
}
.hero-chip b {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.hero-chip em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
}
.chip-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    border: 1px solid rgba(26,115,232,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    transition: transform 0.3s ease;
}
.chip-icon svg { width: 22px; height: 22px; color: var(--primary); }
.chip-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 17px;
    border: 1px solid rgba(26,115,232,0.25);
    animation: chipRing 2.6s ease-out infinite;
}
.hero-chip:hover .chip-icon { transform: scale(1.08); }
.chip-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.chip-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0,184,148,0.4);
    animation: liveDot 1.8s ease-in-out infinite;
}
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.7) translateY(14px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes chipRing {
    0%   { transform: scale(0.9); opacity: 0.7; }
    70%, 100% { transform: scale(1.25); opacity: 0; }
}
@keyframes liveDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,184,148,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(0,184,148,0); }
}

/* --- Apple 风格快速服务入口 --- */
.quick-services {
    position: relative; z-index: 5; margin-top: -60px;
    padding: 0 0 64px;
    background: linear-gradient(180deg, rgba(245,245,247,0) 0%, var(--bg) 46%);
}
.quick-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.quick-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 28px 24px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex; flex-direction: column; position: relative;
    overflow: hidden; transition: var(--transition);
}
.quick-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; transform: scaleX(0);
    transform-origin: left; transition: transform 0.4s ease;
}
.quick-card:nth-child(1)::before { background: var(--primary); }
.quick-card:nth-child(2)::before { background: var(--warm); }
.quick-card:nth-child(3)::before { background: var(--accent); }
.quick-card:nth-child(4)::before { background: #5856d6; }
.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg); border-color: rgba(0,122,255,0.18);
}
.quick-card:hover::before { transform: scaleX(1); }
.quick-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; transition: var(--transition); color: #fff;
}
.quick-icon svg { width: 24px; height: 24px; }
.quick-card:nth-child(1) .quick-icon { background: linear-gradient(135deg, var(--primary), #5856d6); }
.quick-card:nth-child(2) .quick-icon { background: linear-gradient(135deg, var(--warm), #ff6b6b); }
.quick-card:nth-child(3) .quick-icon { background: linear-gradient(135deg, var(--accent), #30d158); }
.quick-card:nth-child(4) .quick-icon { background: linear-gradient(135deg, #5856d6, #8b5cf6); }
.quick-card:hover .quick-icon { transform: scale(1.06); }
.quick-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.quick-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.quick-more {
    margin-top: auto; color: var(--primary); font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px; transition: var(--transition);
}
.quick-card:hover .quick-more { gap: 8px; }
.quick-card:nth-child(2) .quick-more { color: var(--warm-dark); }
.quick-card:nth-child(3) .quick-more { color: var(--accent-dark); }
.quick-card:nth-child(4) .quick-more { color: #5856d6; }

/* --- Apple 风格 CTA 预约横幅 --- */
.cta-band {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #5856d6 100%);
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-content {
    position: relative; display: flex; align-items: center;
    justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-text h3 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.cta-text p { color: rgba(255,255,255,0.8); font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-cta:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.btn-cta-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-cta-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-1px); }

/* --- 新增结构响应式 --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }
    .hero-container .hero-content { text-align: center; }
    .hero-container .hero-buttons { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
    .hero-visual-img { height: 340px; }
    .hero-chips { width: 220px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-services { margin-top: -48px; }
}

/* ========== 医院荣誉与资质 ========== */
.honors {
    background: linear-gradient(180deg, #fff 0%, #f3f6fb 100%);
    position: relative;
}
.honors::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--warm), var(--primary), var(--warm), transparent);
}
.honors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.honor-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.honor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.honor-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.honor-icon svg { width: 28px; height: 28px; }
.honor-card:hover .honor-icon { transform: scale(1.1) rotate(-6deg); }
.honor-info { flex: 1; min-width: 0; }
.honor-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.honor-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}
.honor-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-dark);
    background: var(--warm-light);
    padding: 3px 12px;
    border-radius: 12px;
}
.honor-shine {
    position: absolute;
    top: 0; right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(26,115,232,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.honor-card:hover .honor-shine { opacity: 1; }

/* ========== 健康科普 ========== */
.health-articles {
    background: var(--bg);
    position: relative;
}
.health-articles::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), var(--accent), transparent);
}
.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.health-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.health-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.health-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    border-color: transparent;
}
.health-card:hover::after { opacity: 1; }
/* 科普卡片图片区 */
.health-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.health-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.health-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
    pointer-events: none;
}
.health-img-count {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 12px;
    z-index: 1;
}
.health-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}
.health-category {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}
.health-read-time {
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.health-read-time svg { width: 14px; height: 14px; }
.health-card-body {
    padding: 14px 20px 16px;
    flex: 1;
}
.health-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.health-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.health-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--border-light);
}
.health-date {
    font-size: 12px;
    color: var(--text-muted);
}
.health-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.health-link:hover { gap: 8px; color: var(--primary-dark); }

/* ========== 满意度调查 ========== */
.satisfaction {
    background: linear-gradient(180deg, #fff 0%, #f3f6fb 100%);
    position: relative;
}
.satisfaction::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--warm), var(--accent), transparent);
}
.satisfaction-wrapper {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.sat-left {
    text-align: center;
}
.sat-score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}
.sat-svg {
    width: 100%;
    height: 100%;
}
.sat-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sat-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sat-score-text b {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.sat-score-text span {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}
.sat-total {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sat-total-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}
.sat-total-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 导航栏滚动增强 ========== */
.header .container,
.header .logo img,
.header .logo h1 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
    box-shadow: 0 2px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.10);
}
.header.scrolled .container {
    height: 60px;
}
.header.scrolled .logo img {
    width: 34px;
    height: 34px;
}
.header.scrolled .logo h1 {
    font-size: 16px;
}

/* ========== 按钮光泽扫过效果 ========== */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26,115,232,0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::before {
    left: 150%;
}

/* ========== 预约表单聚焦增强 ========== */
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
    outline: none;
}

/* ========== 卡片进入动画优化 ========== */
.dept-card, .doctor-card, .news-card, .health-card, .quick-card, .honor-card {
    will-change: transform, box-shadow;
}
.sat-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}
.sat-bar-item {}
.sat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.sat-bar-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.sat-bar-header b {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}
.sat-bar-track {
    height: 10px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
}
.sat-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.sat-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: barShine 2.5s ease-in-out infinite;
}
@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.sat-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.sat-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.sat-actions .btn svg { width: 18px; height: 18px; }
.sat-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,115,232,0.2);
}
.sat-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,115,232,0.35);
}
.btn-outline-sat {
    background: #fff;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline-sat:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- 满意度/投诉表单弹窗 --- */
.sat-form-modal { text-align: left; }
.sat-form-body { margin-bottom: 20px; }
.sat-form-group { margin-bottom: 18px; }
.sat-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.sat-star-rating {
    display: flex;
    gap: 8px;
}
.sat-star {
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s ease;
    display: inline-flex;
}
.sat-star svg { width: 32px; height: 32px; }
.sat-star:hover { transform: scale(1.15); }
.sat-star.active { color: #f59e0b; filter: drop-shadow(0 2px 6px rgba(245,158,11,0.4)); }
.sat-form-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sat-form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.sat-form-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.sat-mini-stars {
    display: flex;
    gap: 4px;
}
.sat-mini-star {
    font-size: 18px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}
.sat-mini-star:hover { color: #fbbf24; }
.sat-mini-star.active { color: #f59e0b; }
.sat-form-hint {
    padding: 14px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--primary-dark);
    line-height: 1.7;
    border: 1px solid rgba(26,115,232,0.15);
}

/* --- 页脚新增 --- */
.footer-qr-hint {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.footer-qr-hint .footer-contact-icon svg { width: 18px; height: 18px; }
.footer-friend-links {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
}
.friend-links-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    margin-right: 8px;
}
.friend-links-label svg { width: 16px; height: 16px; }
.footer-friend-links a {
    color: rgba(255,255,255,0.55);
    transition: var(--transition-fast);
}
.footer-friend-links a:hover {
    color: #fff;
}
.friend-link-divider {
    color: rgba(255,255,255,0.2);
    margin: 0 6px;
}
@media (max-width: 768px) {
    .quick-services {
        margin-top: 0;
        padding: 40px 0;
        background: #fff;
    }
    .hero-visual { flex-direction: column; align-items: stretch; }
    .hero-visual-img { height: 300px; }
    .hero-chips { width: 100%; gap: 12px; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; width: 100%; }
    .cta-actions .btn { flex: 1; min-width: 180px; }
    .honors-grid { grid-template-columns: 1fr; }
    .health-grid { grid-template-columns: 1fr; }
    .satisfaction-wrapper { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
    .sat-score-circle { width: 160px; height: 160px; }
    .sat-score-text b { font-size: 40px; }
    .sat-form-items { grid-template-columns: 1fr; }
    .sat-actions { flex-direction: column; }
    .sat-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .quick-grid { grid-template-columns: 1fr; }
    .hero-meta { gap: 10px; }
    .hero-meta span { padding: 6px 12px; font-size: 13px; }
    .hero-chip { padding: 10px 14px 10px 10px; gap: 10px; border-radius: 15px; }
    .hero-chip b { font-size: 17px; }
    .chip-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 11px; }
    .chip-status { font-size: 10px; padding: 3px 8px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .honors-grid { grid-template-columns: 1fr; }
    .honor-card { padding: 24px 20px; }
    .health-grid { grid-template-columns: 1fr; }
    .satisfaction-wrapper { padding: 24px 18px; }
    .sat-score-circle { width: 140px; height: 140px; }
    .sat-score-text b { font-size: 36px; }
}
