:root {
    --primary-color: #4169E1;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
}

nav a.active {
    background-color: var(--primary-color);
    color: white;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 轮播图样式优化 */
.slider {
    margin-top: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

.slider-container {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播图控制按钮样式优化 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border: none;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    transition: var(--transition);
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* 轮播图指示器样式优化 */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dots span {
    width: 14px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30%;
    cursor: pointer;
    transition: var(--transition);
}

.dots span.active {
    background: #0c41e1;
    transform: scale(1.2);
}

/* 关于我们部分 */
.about {
    padding: 120px 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/h2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* 移除之前的遮罩层，因为我们已经在background中使用了渐变遮罩 */
.about::before {
    display: none;
}

.about-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;  /* 居中显示内容 */
}

.section-title {
    text-align: center;
    color: #4169E1;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 20px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    max-width: 1200px;  /* 限制文本宽度 */
    margin: 0 auto 60px;  /* 居中显示 */
    line-height: 2;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;  /* 居中显示 */
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.08);
    transition: var(--transition);
    flex: 1;
    max-width: 300px;
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon i {
    font-size: 36px;
    color: #4169E1;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(65, 105, 225, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 2s ease;
}

.stat-item:hover .stat-icon i {
    transform: rotateY(360deg);
    background: #4169E1;
    color: white;
    transition: all 2s ease;
}

.stat-number {
    font-size: 48px;
    color: #4169E1;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-number span {
    font-size: 24px;
    margin-left: 5px;
}

.stat-label {
    color: #666;
    font-size: 16px;
}

/* 底部样式优化 */
footer {
    background-color: #4169E1;
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, #4169E1, #2851db);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    width: 100%;
    flex-wrap: wrap;  /* 允许换行 */
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;  /* 添加垂直内边距 */
}

.footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;  /* 居中对齐 */
}

.footer-bottom p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* 右侧社交媒体和二维码 */
.footer-right {
    position: absolute;
    right: 40px;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-qr {
    text-align: center;
    background: white;
    padding: 4px;
    border-radius: 8px;
    width: 120px;  /* 设置固定宽度 */
    margin: 0 auto;  /* 居中显示 */
}

.social-qr p {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.qr-code {
    width: 100px;
    height: 100px;
    margin: 0 auto;  /* 居中显示 */
}

.qr-code img {
    width: 100%;
    height: 100%;
    display: block;  /* 消除图片底部间隙 */
    margin: 0 auto;  /* 居中显示 */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links i {
    font-size: 16px;
    color: white;
    height: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover,
.social-links a:focus {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
}

.social-links a:hover i,
.social-links a:focus i {
    color: white;
}

.contact-btn {
    margin-top: 10px;
}

.contact-btn button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-right {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;  /* 居中对齐 */
    }

    .footer-nav {
        gap: 15px;
        justify-content: center;  /* 居中对齐 */
        padding: 15px 0;
    }

    .footer-nav a {
        font-size: 14px;
        padding: 8px 12px;  /* 增加点击区域 */
        white-space: nowrap;  /* 防止文字换行 */
    }

    .footer-bottom {
        padding: 15px 20px;
        margin-top: 15px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .social-qr {
        width: 120px;  /* 保持固定宽度 */
        margin: 0 auto;  /* 居中显示 */
    }

    .slider, .slide {
        height: 60vh; /* 在手机端降低高度 */
    }

    .slide img {
        object-position: center center; /* 确保图片居中显示 */
    }

    /* 调整控制按钮大小 */
    .prev, .next {
        padding: 12px;
        font-size: 14px;
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* 调整指示器位置和大小 */
    .dots {
        bottom: 15px;
        gap: 8px;
    }

    .dots span {
        width: 10px;
        height: 10px;
    }

    .social-links {
        justify-content: center;  /* 社交图标居中 */
    }

    .contact-btn {
        text-align: center;  /* 按钮居中 */
    }
}

@media (max-width: 480px) {
    .footer-contact p {
        font-size: 12px;
    }

    .social-qr {
        width: 110px;  /* 稍微缩小一点 */
    }

    .qr-code {
        width: 90px;  /* 稍微缩小一点 */
        height: 90px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
    }

    .slider, .slide {
        height: 50vh; /* 更小屏幕进一步降低高度 */
    }

    /* 进一步调整控制按钮 */
    .prev, .next {
        padding: 8px;
        font-size: 12px;
    }

    /* 调整指示器 */
    .dots {
        bottom: 10px;
        gap: 6px;
    }

    .dots span {
        width: 8px;
        height: 8px;
    }

    .footer-nav {
        gap: 10px;
        padding: 10px 0;
    }

    .footer-nav a {
        font-size: 13px;
        padding: 6px 10px;
        flex: 0 0 calc(50% - 10px);  /* 每行显示两个项目 */
        text-align: center;
    }

    .footer-bottom {
        padding: 10px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* 调整底部整体布局 */
    footer {
        padding: 30px 0 20px;
    }

    .footer-top {
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 0 0 calc(50% - 20px);
        max-width: none;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 80px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .about-text {
        padding: 0 20px;
    }

    .stat-item {
        flex: 0 0 100%;
    }
}

/* 针对超宽屏幕的优化 */
@media (min-width: 1921px) {
    .slider, .slide {
        height: 80vh; /* 超宽屏幕稍微降低高度比例 */
    }

    .slide img {
        max-height: 1080px; /* 限制最大高度 */
        margin: 0 auto;
    }
}

/* 针对横屏模式的优化 */
@media (orientation: landscape) and (max-width: 900px) {
    .slider, .slide {
        height: 100vh;
    }
} 