/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --body-color: #212529;
    --body-bg: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--body-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* 主横幅区域 */
.hero-section {
    position: relative;
    height: 600px;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 30px;
}

/* 服务卡片 */
.service-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.service-icon i {
    font-size: 2rem;
}

/* 会员卡片 */
.membership-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.membership-card:hover {
    transform: translateY(-10px);
}

.membership-card .card-header {
    border-bottom: none;
    padding: 20px;
}

.membership-card .price {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

.membership-card .card-body {
    padding: 30px;
}

.membership-card li {
    margin-bottom: 15px;
}

/* 新闻卡片 */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-date {
    color: var(--primary-color);
    font-weight: 500;
}

/* 数据统计卡片 */
.stat-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 20px;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.stat-icon i {
    font-size: 1.8rem;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 联系卡片 */
.contact-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-icon i {
    font-size: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
}