/* =============================================
   西安雁塔双宝口腔医院 - 全站样式系统
   主色调：蓝色 #06326d | 辅助金色 #fdaf4b | 红色 #bc2e2d
   ============================================= */

/* ===== CSS 变量 ===== */
:root {
    /* 品牌色 */
    --color-primary: #06326d;
    --color-primary-dark: #04214A;
    --color-primary-light: #E8EEF8;
    --color-primary-hover: #052A55;
    --color-accent: #fdaf4b;
    --color-accent-light: #ffeab3;
    --color-accent-dark: #e89a2e;
    --color-danger: #bc2e2d;
    --color-danger-light: #fdeaea;

    /* 中性色 */
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-text-muted: #737373;
    --color-text-light: #999;
    --color-border: #e8e8e8;
    --color-border-light: #f0f0f0;
    --color-bg: #ffffff;
    --color-bg-alt: #f9f9f9;
    --color-bg-warm: #fffcf8;
    --color-bg-primary: #f0faf9;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --shadow-primary: 0 4px 20px rgba(6,50,109,.2);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition: all .3s ease;

    /* 容器宽度 */
    --container-max: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

/* ===== 容器 ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ===== 通用 Section ===== */
.section { padding: 60px 0; }
.section-lg { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-primary { background: var(--color-bg-primary); }
.section-warm { background: var(--color-bg-warm); }

/* ===== 标题组件 ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .eyebrow {
    display: inline-block;
    font-size: .875rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.section-header .subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-header .divider {
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-primary); }
.btn-accent {
    background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(253,175,75,.4); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-white {
    background: #fff;
    color: var(--color-primary);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-lg { padding: 14px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: .8125rem; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-header .logo-area { display: flex; align-items: center; gap: 12px; }
.site-header .logo-area .logo-text { display: flex; flex-direction: column; }
.site-header .logo-area .logo-text .name { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.site-header .logo-area .logo-text .sub { font-size: .75rem; color: var(--color-text-muted); }
.site-header .logo-area .logo-icon {
    width: 44px; height: 44px;
    /*background: var(--color-primary); */
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; font-weight: 700;
}

/* 导航 */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > .nav-item { position: relative; }
.site-nav > .nav-item > a {
    display: flex; align-items: center; gap: 4px;
    padding: 10px 18px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}
.site-nav > .nav-item > a:hover,
.site-nav > .nav-item.active > a { color: var(--color-primary); background: var(--color-primary-light); }
.site-nav > .nav-item > a .arrow { font-size: .75rem; transition: var(--transition); }
.site-nav > .nav-item:hover > a .arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.site-nav .dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.site-nav > .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: .875rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
}
.site-nav .dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* 顶部信息条 */
.top-bar {
    background: var(--color-primary);
    color: #fff;
    font-size: .8125rem;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .top-info { display: flex; gap: 24px; }
.top-bar .top-info span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar .top-info svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-bar .top-cta { display: flex; gap: 12px; }
.top-bar .top-cta a { opacity: .9; }
.top-bar .top-cta a:hover { opacity: 1; }

/* 移动端汉堡菜单 */
.menu-toggle { display: none; }

/* ===== Footer ===== */
.site-footer {
    background: #1a2e2c;
    color: #b0c4c2;
    padding: 50px 0 0;
}
.site-footer .footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.site-footer .footer-col ul li { margin-bottom: 10px; }
.site-footer .footer-col ul li a { font-size: .875rem; color: #b0c4c2; }
.site-footer .footer-col ul li a:hover { color: var(--color-accent); }
.site-footer .footer-brand .name { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.site-footer .footer-brand p { font-size: .875rem; line-height: 1.8; margin-bottom: 16px; }
.site-footer .footer-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: .875rem; }
.site-footer .footer-contact li svg { flex-shrink: 0; color: var(--color-accent); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .8125rem;
    color: #7a9492;
}
.site-footer .footer-bottom a { color: #7a9492; }
.site-footer .footer-bottom a:hover { color: #fff; }
.site-footer .footer-bottom .links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }

/* ===== 浮动咨询按钮 ===== */
.float-consult {
    position: fixed;
    right: 20px; bottom: 100px;
    z-index: 900;
    display: flex; flex-direction: column;
    gap: 10px;
}
.float-consult .float-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: .6875rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}
.float-consult .float-btn .float-icon { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-consult .float-btn.phone { background: var(--color-primary); color: #fff; }
.float-consult .float-btn.phone:hover { background: var(--color-primary-dark); transform: scale(1.1); }
.float-consult .float-btn.top { background: #fff; color: var(--color-primary); border: 1px solid var(--color-border); }
.float-consult .float-btn.top:hover { background: var(--color-primary-light); transform: scale(1.1); }

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: .875rem;
    color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--color-text-light); }
.breadcrumb .current { color: var(--color-text); }

/* ===== 页面 Banner ===== */
.page-banner {
    position: relative;
    height: 320px;
    margin-top: 72px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.page-banner::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0L60 30L30 60L0 30Z" fill="rgba(255,255,255,0.03)"/></svg>');
}
.page-banner .banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-size: 2.25rem; color: #fff; font-weight: 700; margin-bottom: 12px; }
.page-banner .banner-desc { font-size: 1rem; color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto; }

/* ===== 卡片通用 ===== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .section-lg { padding: 60px 0; }
    .section-header h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    /* 隐藏顶部信息条 */
    .top-bar { display: none; }

    /* Header 移动端 */
    .site-header .header-inner { height: 60px; }
    .site-header .logo-area .logo-text .name { font-size: 1rem; }
    .site-header .logo-area .logo-text .sub { font-size: .6875rem; }
    .site-header .logo-area .logo-icon { width: 36px; height: 36px; font-size: 1.25rem; }

    /* 导航 - 移动端抽屉 */
    .site-nav {
        position: fixed;
        top: 60px; right: -100%;
        width: 80%; max-width: 320px;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0,0,0,.1);
        overflow-y: auto;
        transition: right .3s ease;
    }
    .site-nav.open { right: 0; }
    .site-nav > .nav-item > a { padding: 14px 16px; border-radius: 0; border-bottom: 1px solid var(--color-border-light); }
    .site-nav .dropdown {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: auto;
    }
    .site-nav .dropdown a { padding: 10px 16px; border-bottom: 1px solid var(--color-border-light); }

    /* 汉堡菜单 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
    }
    .menu-toggle span {
        width: 24px; height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: var(--transition);
    }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* 遮罩 */
    .nav-overlay {
        display: none;
        position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,.4);
        z-index: 999;
    }
    .nav-overlay.show { display: block; }

    /* Footer */
    .site-footer .footer-main { grid-template-columns: 1fr; gap: 30px; }

    /* 浮动按钮 */
    .float-consult { right: 12px; bottom: 80px; }
    .float-consult .float-btn { width: 48px; height: 48px; }
    .float-consult .float-btn .float-icon { width: 18px; height: 18px; }
    .float-consult .float-btn { font-size: .625rem; }

    /* 页面Banner */
    .page-banner { height: 240px; margin-top: 60px; }
    .page-banner h1 { font-size: 1.75rem; }
    .page-banner .banner-desc { font-size: .875rem; }

    /* Section */
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header .subtitle { font-size: .875rem; }

    /* 间距工具类 */
    .mt-20 { margin-top: 14px; }
    .mt-30 { margin-top: 20px; }
    .mt-40 { margin-top: 24px; }
    .mb-30 { margin-bottom: 20px; }
    .mb-40 { margin-bottom: 24px; }

    .btn { padding: 10px 24px; font-size: .875rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .section-header h2 { font-size: 1.375rem; }
    .page-banner h1 { font-size: 1.5rem; }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.hidden-mobile { display: block; }
.hidden-desktop { display: none; }
@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
    .hidden-desktop { display: block !important; }
}

/* ===== 预约CTA（全站通用） ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><circle cx="40" cy="40" r="38" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(253,175,75,.08);
}
.cta-section .cta-content { position: relative; z-index: 1; }
.cta-section h2 {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 30px;
}
.cta-section .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .cta-section { padding: 48px 0; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: .875rem; }
}
