﻿:root {
    --primary-light: #E6F2FF;
    --primary-medium: #5D9CEC;
    --primary-dark: #2C3E50;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 初始加载状态 */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

    .loading-logo span {
        color: var(--primary-medium);
    }

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(93, 156, 236, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-medium);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.loaded .container {
    opacity: 1;
}

body.loaded .loading-state {
    opacity: 0;
    pointer-events: none;
}

/* 导航栏 - 固定在顶部 #D4E6FF*/
header {
    background: linear-gradient(135deg, var(--white), #FFFFFF);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-dark);
}

    .logo span {
        color: var(--primary-medium);
    }

.head-childtitle {
    font-size: 0.8rem;
    font-weight: 100;
    color: #909090;
    text-align: left;
    font-style: italic;
    margin-top: 45px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 400;
        transition: color 0.3s;
        font-size: 16px;
    }

        .nav-links a:hover {
            color: var(--primary-medium);
        }

.search-box {
    border: 1px solid rgba(93, 156, 236, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Banner轮播区域 - 修复显示问题 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 80px; /* 为固定导航栏留出空间 */
    min-height: 500px;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /*40px 20px;*/
}

.slide-1 {
    background: linear-gradient(to right, #E6F2FF, #F0F8FF);
}

.slide-2 {
    background: linear-gradient(to right, #DAE8FF, #E6F2FF);
}

.slide-3 {
    background: linear-gradient(to right, #D4E6FF, #E0EDFF);
}

.slide-content {
    max-width: 800px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
    padding: 20px;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.slide-content p {
    font-size: clamp(14px, 3vw, 1.5rem); /* 响应式字体大小 */
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-medium);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(93, 156, 236, 0.3);
    font-size: clamp(14px, 3vw, 16px);
}

    .cta-button:hover {
        background-color: #4A89DC;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(93, 156, 236, 0.4);
    }

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

    .slider-dot.active {
        background-color: var(--white);
        width: 30px;
        border-radius: 6px;
    }

/* 功能卡片 */
.features {
    padding: 60px 0;
}

    .features h2 {
        text-align: center;
        font-family: 'Poppins', sans-serif;
        font-size: clamp(24px, 4vw, 32px);
        margin-bottom: 50px;
        color: var(--primary-dark);
    }

.feature-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 300px;
    max-width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

    .card.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(93, 156, 236, 0.15);
    }

.card-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 数据展示 */
.stats {
    background-color: #F5FBFF;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

    .stats:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 10px;
        background: linear-gradient(90deg, var(--primary-medium), #A2D9CE);
    }

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    flex: 1 1 150px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}

    .stat-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(12px, 3vw, 16px);
}

/* 页脚 - 响应式设计 */
footer {
    background-color: #E9F5FC;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 150px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}

    .footer-column.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .footer-column h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--primary-dark);
    }

    .footer-column ul {
        list-style: none;
    }

    .footer-column li {
        margin-bottom: 8px;
    }

    .footer-column a {
        text-decoration: none;
        color: var(--text-secondary);
        transition: color 0.3s;
        font-size: 14px;
    }

        .footer-column a:hover {
            color: var(--primary-medium);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 14px;
}

/* 媒体查询 - 移动端适配 */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-light), #FFFFFF);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

        .nav-links.active {
            transform: translateY(0);
        }

    .mobile-menu-btn {
        display: block;
    }

    .search-box {
        display: none;
    }

    .hero-slider {
        margin-top: 70px;
        min-height: 400px;
    }

    .slide {
        padding: 30px 15px;
    }

    .slider-controls {
        bottom: 15px;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 350px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 20px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }
}

