/* ============================================================
                   全局重置 & 基础
                   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1a2a3a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    /* width: 100%; */
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
                   每一段内容刚好占满一页 (100vh - 导航栏高度)
                   ============================================================ */
.full-page {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}



/* ============================================================
                   通用区块
                   ============================================================ */

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #caddf0;
    margin-bottom: 12px;
}

.section-sub {
    color: #5a7a94;
    margin-bottom: 32px;
    font-size: 1.15rem;
}



#about {
    /* background-image: url("../img/公司背景.png"); */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}




#doctors {
    background: #ffffff;
}

#blog {
    /* background: #f0f5fb; */
}

/* ============================================================
                   服务卡片
                   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: #f8fafc;
    padding: 28px 20px;
    border-radius: 24px;
    transition: all 0.3s;
    border: 1px solid #e9edf2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 20, 40, 0.08);
    border-color: #2b7fc1;
}

.card i {
    font-size: 2.4rem;
    color: #2b7fc1;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card p {
    color: #4a657a;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ============================================================
                   关于我们
                   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    height: 100%;
}

.about-text p {
    color: #2d4055;
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: #0b2a4a;
}

.stat-item .label {
    color: #5a7a94;
    font-size: 0.85rem;
}

.about-image-placeholder {
    background: #dce6f0;
    border-radius: 30px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a657a;
    font-size: 1.1rem;
    border: 2px dashed #b0c8dd;
}

/* ===== 容器样式 ===== */
.contact-wrapper {
    position: relative;
    display: inline-block;
    /* 确保在顶层显示 */
    z-index: 1001;
}

/* ===== 主按钮样式（保持你原有的） ===== */
.contact-wrapper .btn-book {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    /* 保证按钮在抽屉上层 */
    position: relative;
    z-index: 2;
}

.contact-wrapper .btn-book:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* ===== 抽屉样式 ===== */
.contact-drawer {
    position: fixed;
    top: 80px; /* 根据你的导航栏高度调整 */
    right: 20px;
    min-width: 200px;
    max-width: 340px;
    width: max-content;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    border-top: 3px solid #007bff;
    box-sizing: border-box;
}

/* ===== 三角形箭头 ===== */
.contact-drawer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #007bff;
}

/* ===== 抽屉展开状态 ===== */
.contact-wrapper:hover .contact-drawer {
    opacity: 1;
    visibility: visible;
    max-height: 700px;
    padding: 20px;
}

/* ===== 抽屉内容样式 ===== */
.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #333;
}

.contact-item img {
    width: 100%;
}

.contact-item:hover {
    background: #f5f7fa;
}

.contact-item .icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact-item .label {
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-item span:last-child {
    color: #333;
    word-break: break-all;
}

/* ============================================================
                   医生团队
                   ============================================================ */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.doctor-card {
    text-align: center;
    padding: 20px 12px;
    border-radius: 24px;
    background: #f8fafc;
    transition: 0.3s;
    border: 1px solid #e9edf2;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.doctor-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #dce6f0;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #4a657a;
}

.doctor-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.doctor-card .title {
    color: #2b7fc1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================================
                   博客
                   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.blog-card .blog-img {
    height: 140px;
    background: #ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a657a;
    font-size: 0.9rem;
}

.blog-card .blog-img img {
    width: 100%;
    object-fit: cover;
    height: 140px;
    object-position: 1%;
}

.blog-card .blog-body {
    padding: 16px 20px 20px;

}

.blog-card .blog-body .date {
    font-size: 0.8rem;
    color: #7a9ab0;
    margin-bottom: 4px;
}

.blog-card .blog-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.blog-card .blog-body p {
    color: #4a657a;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================
                   CTA
                   ============================================================ */
#cta {
    /* background: linear-gradient(135deg, #0b2a4a, #1c4e70);
            color: #fff; */
    /* text-align: center; */
}

#cta .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#cta h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 12px;
}

/* #cta h2 span {
            font-weight: 700;
            color: #9bd1ff;
        } */

#cta p {
    opacity: 0.8;
    max-width: 540px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

#cta .btn-cta {
    display: inline-block;
    background: #fff;
    color: #0b2a4a;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.25s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
    background: #f0f7ff;
}

/* ============================================================
                   页脚
                   ============================================================ */
.footer {
    background: #0a1e2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0 20px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
}

.footer .brand span {
    color: #6cb4ee;
}

.footer .brand img {
    width: 64px;
}

.footer .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer .footer-links a {
    transition: color 0.2s;
}

.footer .footer-links a:hover {
    color: #fff;
}

.footer .copy {
    width: 100%;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ============================================================
                   回到顶部
                   ============================================================ */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0b2a4a;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 999;
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-indicator:hover {
    background: #1c4e70;
    transform: translateY(-3px);
}

/* ============================================================
                   响应式
                   ============================================================ */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .full-page {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
        display: none;
        border-top: 1px solid #e9edf2;
        transform: none;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .btn-book.desktop-btn {
        display: none;
    }

    .navbar .nav-links .mobile-btn {
        display: block !important;
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .doctor-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .full-page {
        height: auto;
        min-height: 100vh;
        padding: 50px 0;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    #cta h2 {
        font-size: 2rem;
    }

    .full-page {
        padding: 40px 0;
    }
}

.navbar .nav-links .mobile-btn {
    display: none;
}

.navbar .btn-book.desktop-btn {
    display: inline-block;
}

/* ============================================================
                   每个区块顶部留出导航栏高度的偏移量（用于锚点定位）
                   ============================================================ */
[data-section] {
    scroll-margin-top: 80px;
}