/* 沈阳铁西麒针堂综合门诊部 - 高端医疗蓝色风格 */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-darker: #1e40af;
    --primary-light: #7dd3fc;
    --text: #0f172a;
    --text-2: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(14, 165, 233, 0.08);
    --shadow-lg: 0 20px 60px rgba(14, 165, 233, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
    font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Noto Serif SC', serif; font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14, 165, 233, 0.55); }
.btn-primary:hover::before { left: 100%; }
.btn-light {
    background: #fff; color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: rgba(14, 165, 233, 0.05); }

/* 顶部栏 */
.top-bar {
    background: linear-gradient(135deg, #0c4a6e 0%, #1e40af 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-right { display: flex; gap: 20px; }
.top-bar-right a:hover { color: #fff; }

/* 导航 */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.navbar-content { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #1e40af);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; fill: #fff; }
.logo-text h1 { font-size: 17px; font-weight: 700; margin-bottom: 2px; letter-spacing: 0.5px; }
.logo-text span { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); font-weight: 500; }
.nav-menu { display: flex; gap: 8px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 10px 18px; border-radius: 8px; }
.nav-link:hover { color: var(--primary-dark); background: rgba(14, 165, 233, 0.08); }
.nav-link.active { color: var(--primary-dark); background: rgba(14, 165, 233, 0.1); }
.nav-actions { display: flex; gap: 12px; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* Hero */
.hero {
    position: relative;
    padding: 90px 0 110px;
    background:
        radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(37, 99, 235, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #0b3b70 0%, #082f5c 50%, #06284a 100%);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg::before {
    content: ''; position: absolute; top: -40%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.22) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite;
}
.hero-bg::after {
    content: ''; position: absolute; bottom: -30%; left: -8%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(30px, -30px); }
}
.hero-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(14, 165, 233, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 64, 175, 0.15) 0%, transparent 55%);
}
.hero-decoration {
    position: absolute;
    color: rgba(125, 211, 252, 0.14);
    font-weight: 700;
    user-select: none;
    animation: floatOrb 10s ease-in-out infinite;
}
.hero-dec-1 { top: 12%; left: 8%; font-size: 80px; }
.hero-dec-2 { top: 60%; left: 45%; font-size: 40px; color: rgba(186, 230, 253, 0.18); animation-duration: 14s; }
.hero-dec-3 { top: 25%; right: 12%; font-size: 56px; color: rgba(186, 230, 253, 0.12); animation-duration: 11s; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-tag {
    display: inline-flex; align-items: center;
    padding: 6px 14px;
    font-size: 12.5px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 40px;
    backdrop-filter: blur(6px);
    letter-spacing: 1px;
}

.hero-title { font-size: 54px; color: #fff; margin-bottom: 22px; line-height: 1.18; letter-spacing: 1.5px; font-weight: 700; }
.hero-title .accent {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 60%, #e0f2fe 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; display: inline-block;
    position: relative;
}
.hero-title .accent::after {
    content: '';
    position: absolute; left: 0; bottom: -6px; right: 0;
    height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.5), transparent);
}
.hero-subtitle { font-size: 16.5px; color: rgba(255, 255, 255, 0.82); margin-bottom: 40px; line-height: 1.85; max-width: 600px; }
.hero-btns { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats .stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stats .stat strong {
    font-size: 32px; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, #e0f2fe, #7dd3fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Noto Serif SC', serif;
    line-height: 1;
}
.hero-stats .stat span { font-size: 13px; color: rgba(255, 255, 255, 0.65); letter-spacing: 1px; }

.hero-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.hero-card h3 { font-size: 22px; margin-bottom: 6px; font-family: 'Noto Sans SC', sans-serif; }
.hero-card-sub { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }
.hero-steps { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.hero-steps .step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.hero-steps .step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}
.hero-steps .step-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.hero-steps .step-line { flex: 0.5; height: 2px; background: var(--primary-light); margin: 0 10px 22px; border-radius: 2px; opacity: 0.4; }
.hero-cta { margin-bottom: 20px; padding: 16px; font-size: 16px; font-weight: 500; }
.hero-hotline { text-align: center; font-size: 13px; color: var(--text-light); padding-top: 20px; border-top: 1px dashed var(--border); }
.hero-hotline strong { color: var(--primary-dark); font-size: 15px; margin-left: 4px; }

/* 区块标题 */
.section-header { text-align: center; margin-bottom: 56px; position: relative; }
.section-header::before {
    content: ''; display: block;
    width: 48px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto 18px;
    opacity: 0.6;
}
.section-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 6px 18px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.section-title { font-size: 40px; margin-bottom: 14px; letter-spacing: 1px; }
.section-subtitle { font-size: 16px; color: var(--text-light); line-height: 1.7; }
.section-desc { font-size: 15px; color: var(--text-light); line-height: 1.8; }

/* 特色服务 */
.features { padding: 70px 0 20px; background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: #fff; padding: 32px 28px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    transition: height 0.35s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18); border-color: var(--primary-light); }
.feature:hover::before { height: 100%; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(30, 64, 175, 0.1));
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; transition: var(--transition);
}
.feature:hover .feature-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; transform: rotate(-6deg); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; font-weight: 600; font-family: 'Noto Sans SC', sans-serif; }
.feature p { font-size: 14.5px; color: var(--text-light); line-height: 1.75; }

/* 科室 */
.departments { padding: 100px 0; background: var(--bg); }
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept-card {
    position: relative;
    background: #fff; padding: 36px 24px 30px;
    border-radius: var(--radius-lg); text-align: center;
    border: 1px solid var(--border); cursor: pointer;
    overflow: hidden; transition: var(--transition);
}
.dept-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-dark), transparent);
    transform: scaleX(0.2); opacity: 0; transition: all 0.4s ease;
}
.dept-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(14, 165, 233, 0.2); border-color: var(--primary-light); }
.dept-card:hover::after { transform: scaleX(1); opacity: 1; }
.dept-icon {
    width: 68px; height: 68px; margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(30, 64, 175, 0.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--primary-dark);
    transition: var(--transition);
    position: relative;
}
.dept-icon::after {
    content: ''; position: absolute; inset: -6px; border-radius: 26px;
    border: 1px dashed rgba(14, 165, 233, 0.15);
}
.dept-card:hover .dept-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4); }
.dept-card:hover .dept-icon::after { border-color: rgba(255,255,255,0.3); }
.dept-name { font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: 1px; }
.dept-desc { font-size: 13.5px; color: var(--text-light); line-height: 1.7; min-height: 44px; }

/* 医生团队 */
.doctors { padding: 100px 0; background: #fff; }
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}
.doctor-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(14, 165, 233, 0.22); border-color: var(--primary-light); }
.doctor-image {
    width: 100%; aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.doctor-image::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 47, 92, 0.0) 55%, rgba(8, 47, 92, 0.0));
    pointer-events: none;
}
.doctor-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.doctor-card:hover .doctor-image img { transform: scale(1.06); }
.doctor-image .img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    color: #fff; font-size: 48px;
    font-family: 'Noto Serif SC', serif; font-weight: 700;
}
.doctor-dept-label {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 12.5px;
    padding: 5px 12px; border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}
.doctor-content { padding: 22px 20px 26px; text-align: center; position: relative; }
.doctor-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.doctor-title { font-size: 13.5px; color: var(--primary-dark); margin-bottom: 8px; font-weight: 600; }
.doctor-dept { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.doctor-specialty { font-size: 12.5px; color: var(--text-light); line-height: 1.75; padding-top: 14px; border-top: 1px dashed var(--border); }
.doctor-specialty::before {
    content: '擅长'; display: inline-block;
    font-size: 11px; color: var(--primary-dark);
    padding: 2px 8px; margin-right: 6px 6px 0 0;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 4px; font-weight: 600; letter-spacing: 1px;
}

/* 为什么选择我们 */
.why { padding: 100px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.why-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.why-left .section-header { text-align: left; margin-bottom: 32px; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
    display: flex; gap: 20px;
    padding: 20px 24px; background: #fff;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    transition: var(--transition);
}
.why-item:hover { transform: translateX(6px); border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.why-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.why-text h4 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.why-text p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* 右侧视觉 */
.why-visual { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.visual-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(14, 165, 233, 0.15); }
.ring-1 { width: 90%; height: 90%; animation: rotate 40s linear infinite; border-style: dashed; }
.ring-2 { width: 70%; height: 70%; animation: rotate 30s linear infinite reverse; }
.ring-3 { width: 50%; height: 50%; border-style: dotted; animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.visual-center { position: relative; text-align: center; z-index: 1; }
.visual-logo {
    width: 140px; height: 140px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 20px rgba(14, 165, 233, 0.1), 0 0 0 40px rgba(14, 165, 233, 0.05), 0 20px 60px rgba(14, 165, 233, 0.4);
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.visual-logo svg { width: 72px; height: 72px; fill: #fff; }
.visual-center h3 { font-size: 22px; margin-bottom: 4px; font-weight: 700; }
.visual-center span { font-size: 12px; letter-spacing: 3px; color: var(--text-muted); }
.why-stats { display: flex; justify-content: center; gap: 32px; margin-top: 40px; }
.why-stat { text-align: center; }
.why-stat strong { display: block; font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.why-stat span { font-size: 13px; color: var(--text-muted); }

/* 关于我们 */
.about { padding: 100px 0; background: #fff; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-img-main {
    width: 100%; aspect-ratio: 5 / 4;
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: 0 30px 80px rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.08);
}
.about-img-sub {
    position: absolute; bottom: -40px; right: -30px;
    width: 220px; aspect-ratio: 1;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border: 8px solid #fff;
}
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.img-hospital {
    background:
        radial-gradient(circle at 30% 30%, rgba(125, 211, 252, 0.35), transparent 55%),
        linear-gradient(135deg, #0c4a6e 0%, #1e40af 100%);
    color: #fff;
    flex-direction: column;
    gap: 12px;
}
.img-icon-wrap {
    width: 90px; height: 90px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.img-icon-wrap svg { color: #fff; }
.img-title { font-size: 18px; font-weight: 700; letter-spacing: 2px; margin-top: 6px; }
.img-sub { font-size: 13px; color: rgba(255,255,255,0.8); letter-spacing: 2px; }
.img-lab {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #fff;
    flex-direction: column;
    gap: 10px;
}
.img-small-title { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: #fff; }

.about-float-card {
    position: absolute; top: 30px; left: -30px;
    background: #fff; padding: 22px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.25);
    text-align: center;
    animation: float 5s ease-in-out infinite;
    border: 1px solid var(--border);
}
.about-float-card strong { display: block; font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-float-card span { font-size: 12.5px; color: var(--text-muted); letter-spacing: 1px; }
.about-text .section-header { text-align: left; margin-bottom: 28px; }
.about-text .section-header::before { margin-left: 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.about-tags span {
    padding: 8px 16px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 50px; font-size: 13.5px; color: var(--primary-dark); font-weight: 500;
    transition: var(--transition);
}
.about-tags span:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25); }
.about-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* 资讯 */
.news { padding: 100px 0; background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition);
    border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(14, 165, 233, 0.18); border-color: var(--primary-light); }
.news-image {
    height: 190px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    font-size: 64px; color: rgba(255, 255, 255, 0.9);
}
.news-image::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
}
.news-image::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
}
.news-content { padding: 28px; }
.news-date { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 6px; }
.news-date::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.news-title { font-size: 19px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.news-desc { font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* CTA */
.cta {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at top left, rgba(125, 211, 252, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(37, 99, 235, 0.35), transparent 50%),
        linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 100%);
    position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.cta-content { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-left h2 { font-size: 34px; color: #fff; margin-bottom: 12px; font-weight: 700; letter-spacing: 1px; }
.cta-left p { font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.cta-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.cta-phone { font-size: 14px; color: rgba(255, 255, 255, 0.75); letter-spacing: 1px; }
.cta-phone strong { font-size: 20px; color: #fff; margin-left: 8px; letter-spacing: 1px; }

/* 页脚 */
.footer { background: #0f172a; color: rgba(255, 255, 255, 0.75); padding: 70px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; padding-bottom: 50px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo svg { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35); }
.footer-logo h3 { font-size: 18px; color: #fff; margin-bottom: 2px; font-weight: 700; letter-spacing: 1px; }
.footer-logo span { font-size: 11px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.55); }
.footer-desc { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); line-height: 1.8; margin-bottom: 24px; max-width: 400px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact > div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-contact span { font-size: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 18px; font-weight: 600; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.6); transition: var(--transition); display: inline-block; }
.footer-col a:hover { color: #7dd3fc; transform: translateX(4px); }
.footer-bottom {
    text-align: center; padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px; color: rgba(255, 255, 255, 0.5);
    display: flex; flex-direction: column; gap: 6px;
}
.footer-business {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
    padding: 12px 24px; margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 12.5px; color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}
.footer-business span {
    display: inline-flex; align-items: center; gap: 6px;
}
.footer-business span::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary-light); opacity: 0.6;
}

/* 模态框 */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(8px); }
.modal-content {
    position: relative; background: #fff;
    border-radius: var(--radius-xl); padding: 44px 40px;
    width: 100%; max-width: 440px; max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-lg { max-width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-soft); color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: #e2e8f0; color: var(--text); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo {
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}
.auth-logo svg { width: 38px; height: 38px; }
.modal-title { font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.modal-subtitle { font-size: 14px; color: var(--text-light); }

/* 表单 */
.auth-form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.form-group input {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px; font-family: inherit;
    color: var(--text); background: #fff;
    transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }
.form-group input::placeholder { color: var(--text-muted); }

.form-error {
    color: #dc2626; font-size: 13px;
    margin-bottom: 16px; min-height: 20px;
    text-align: center;
    background: rgba(220, 38, 38, 0.05);
    padding: 8px 12px; border-radius: 6px;
}
.form-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.form-switch a { color: var(--primary-dark); font-weight: 500; margin-left: 4px; }
.form-switch a:hover { text-decoration: underline; }
.form-tip { text-align: center; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.form-tip a { color: var(--primary); }

/* 挂号流程 */
.modal-appointment { max-width: 680px; }
.appointment-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.appointment-progress { display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.progress-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.progress-dot span {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-soft); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; transition: var(--transition);
}
.progress-dot p { font-size: 12px; color: var(--text-muted); transition: var(--transition); }
.progress-dot.active span { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4); }
.progress-dot.active p { color: var(--primary-dark); font-weight: 500; }
.progress-line { width: 60px; height: 2px; background: var(--border); margin: 0 12px 20px; }

.appointment-step { display: none; animation: fadeIn 0.3s ease; }
.appointment-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-size: 19px; margin-bottom: 4px; font-weight: 600; }
.step-desc { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.btn-step-back {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px; color: var(--text-light);
    margin-bottom: 20px; transition: var(--transition);
}
.btn-step-back:hover { color: var(--primary); border-color: var(--primary-light); background: rgba(14, 165, 233, 0.05); }

.select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.select-item {
    padding: 18px 16px; border: 2px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    text-align: left; background: #fff;
    transition: var(--transition);
}
.select-item:hover { border-color: var(--primary-light); background: rgba(14, 165, 233, 0.03); transform: translateY(-2px); }
.select-item.selected { border-color: var(--primary); background: rgba(14, 165, 233, 0.06); box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15); }
.select-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.select-item-info { font-size: 13px; color: var(--text-light); }

.date-select { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 24px; }
.date-item {
    padding: 12px 8px; border: 2px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    text-align: center; transition: var(--transition);
    background: #fff;
}
.date-item:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.date-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.date-item-day { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.date-item.selected .date-item-day { color: rgba(255, 255, 255, 0.8); }
.date-item-date { font-size: 16px; font-weight: 600; color: var(--text-2); }
.date-item.selected .date-item-date { color: #fff; }

.time-label { font-size: 15px; margin-bottom: 12px; font-weight: 500; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.time-slot {
    padding: 12px 10px; border: 2px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    text-align: center; transition: var(--transition);
    font-size: 14px; color: var(--text-2); background: #fff;
}
.time-slot:hover:not(.disabled) { border-color: var(--primary-light); transform: translateY(-2px); }
.time-slot.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 500;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.time-slot.disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; text-decoration: line-through; opacity: 0.5; }

/* 预约汇总 */
.appointment-summary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(30, 64, 175, 0.05));
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.summary-item {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(14, 165, 233, 0.2);
}
.summary-item:last-child { border-bottom: none; }
.summary-label { color: var(--text-light); font-size: 14px; }
.summary-value { font-weight: 600; font-size: 15px; }

/* 预约成功 */
.success-message { text-align: center; padding: 20px 0; }
.success-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; color: #fff;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}
@keyframes successPop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-icon svg { width: 48px; height: 48px; }
.success-message h3 { font-size: 26px; margin-bottom: 8px; font-weight: 700; }
.success-tip { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }

.appointment-ticket {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.ticket-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px dashed var(--border);
}
.ticket-title { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.ticket-id { font-size: 13px; color: var(--text-muted); font-family: monospace; }
.ticket-info { display: flex; flex-direction: column; gap: 10px; }
.ticket-row { display: flex; gap: 12px; font-size: 14px; }
.ticket-label { width: 80px; color: var(--text-light); flex-shrink: 0; }
.ticket-value { font-weight: 500; flex: 1; }
.success-actions { margin-top: 8px; }

/* 用户面板 */
.user-panel {
    display: none;
    position: fixed; top: 120px; right: 24px;
    background: #fff; border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    z-index: 99; gap: 12px; align-items: center;
    border: 1px solid var(--border);
}
.user-panel.active { display: flex; }
.user-info {
    display: flex; align-items: center; gap: 10px;
    margin-right: 4px; padding-right: 14px;
    border-right: 1px solid var(--border);
}
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.user-avatar svg { width: 18px; height: 18px; }
.user-info > div { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 14px; font-weight: 600; }
.user-phone { font-size: 12px; color: var(--text-muted); }
.btn-user {
    padding: 8px 14px; background: rgba(14, 165, 233, 0.08);
    border-radius: 8px; font-size: 13px;
    color: var(--primary-dark); font-weight: 500;
    transition: var(--transition);
}
.btn-user:hover { background: rgba(14, 165, 233, 0.15); }
.btn-logout { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.btn-logout:hover { background: rgba(220, 38, 38, 0.15); }

/* 我的挂号 */
.appointments-list { display: flex; flex-direction: column; gap: 14px; max-height: 480px; overflow-y: auto; padding: 4px; }
.appointment-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border: 1px solid var(--border);
    border-radius: var(--radius-lg); background: #fff;
    transition: var(--transition);
}
.appointment-list-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateX(4px); }
.appointment-list-info { flex: 1; }
.appointment-list-info h4 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.appointment-list-info p { font-size: 13px; color: var(--text-light); }
.appointment-list-status {
    padding: 8px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 500;
    background: rgba(16, 185, 129, 0.1); color: #10b981;
}
.no-appointments { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-appointments-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }

/* 响应式 */
@media (max-width: 1100px) {
    .department-grid { grid-template-columns: repeat(3, 1fr); }
    .doctor-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 50px; }
    .why-content, .about-content { grid-template-columns: 1fr; gap: 50px; }
    .footer-content { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-content { flex-direction: column; text-align: center; }
    .nav-menu {
        display: none; position: absolute; top: 76px;
        left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .top-bar { display: none; }
}
@media (max-width: 640px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .department-grid, .doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .news-grid { grid-template-columns: 1fr; }
    .select-grid, .time-slots { grid-template-columns: repeat(2, 1fr); }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .user-panel { top: auto; bottom: 20px; right: 20px; left: 20px; }
    .modal-content { padding: 32px 24px; }
    .appointment-progress { flex-wrap: wrap; }
}
