/* 交医智康首页样式 */

:root {
    --primary-color: #06356A;
    --secondary-color: #124884;
    --accent-color: #D4AF37;
    --light-blue: #E8F4FD;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --gradient-bg: linear-gradient(135deg, #06356A 0%, #124884 50%, #03254C 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 导航栏样式 */
.navbar {
    background: var(--gradient-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(6, 53, 106, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-hero {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: #B8941F;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 13px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 53, 106, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 53, 106, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* 特色区域 */
.features-section {
    background: var(--light-blue);
    padding: 100px 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 统计数据 */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 微信小程序样式 */
.miniprogram-info {
    padding: 2rem 1rem;
}

.miniprogram-features {
    padding: 0 1rem;
}

.miniprogram-features .fas {
    font-size: 1.2rem;
}

.miniprogram-features .d-flex {
    padding: 0.5rem 0;
}

.miniprogram-info-section {
    border: 2px solid rgba(6, 53, 106, 0.1);
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.miniprogram-info-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(6, 53, 106, 0.1);
}

.miniprogram-visual {
    padding: 2rem 0;
}

.miniprogram-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
}

.fab.fa-weixin {
    color: #07c160 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* Hero Section 移动端优化 */
    .hero-section {
        min-height: 80vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }

    .btn-hero, .btn-outline-light {
        display: block;
        width: 80%;
        margin: 0 auto 15px;
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* 导航栏移动端优化 */
    .navbar-brand {
        font-size: 1.3rem;
    }

    /* 服务卡片移动端优化 */
    .service-card {
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* 特色功能移动端优化 */
    .feature-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    /* 统计数据移动端优化 */
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* 微信小程序移动端优化 */
    .miniprogram-info {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .miniprogram-info h3 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .miniprogram-info .lead {
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .miniprogram-features {
        padding: 0 1.5rem;
    }

    .miniprogram-features .col-md-6 {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .miniprogram-features .d-flex {
        padding: 0.8rem 1rem;
        background: rgba(6, 53, 106, 0.02);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .miniprogram-info-section {
        padding: 2.5rem 2rem !important;
        margin: 0 1rem;
    }

    .miniprogram-info .mt-4 {
        text-align: center;
        padding: 0 1rem;
        margin-top: 2rem !important;
    }

    /* 关于我们移动端优化 */
    #about .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    #about .display-4 {
        font-size: 2rem;
    }

    #about .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* 联系我们移动端优化 */
    #contact .col-lg-6 {
        margin-bottom: 2rem;
    }

    /* 页面间距优化 */
    section {
        padding: 60px 0 !important;
    }

    .py-5 {
        padding: 40px 0 !important;
    }

    /* 容器内边距 */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 超小屏幕优化 (小于576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn-hero, .btn-outline-light {
        width: 90%;
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 微信小程序超小屏优化 */
    .miniprogram-info {
        padding: 1.5rem 1rem;
    }

    .miniprogram-info .lead {
        padding: 0 0.5rem;
        font-size: 0.9rem !important;
    }

    .miniprogram-features {
        padding: 0 1rem;
    }

    .miniprogram-features .d-flex {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .miniprogram-features .fas {
        font-size: 1rem;
    }

    .miniprogram-info-section {
        padding: 2rem 1.5rem !important;
        margin: 0 0.5rem;
    }

    .miniprogram-info .mt-4 {
        padding: 0 0.5rem;
        font-size: 0.85rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 滚动效果 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-item:hover,
    .miniprogram-info-section:hover {
        transform: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .btn-hero:hover,
    .btn-outline-light:hover {
        transform: none;
    }

    .navbar-nav .nav-link:hover {
        transform: none;
    }
}
