/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #1e3a8a;
    font-size: 28px;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: #1e3a8a;
    color: #fff;
}

/* 主横幅样式 */
.hero {
    margin-top: 80px;
    padding: 0;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

.carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: none;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 24px;
    font-weight: 500;
    border: 2px dashed #cbd5e1;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 底部功能卡片样式 */
.features {
    background: #f1f5f9;
    padding: 60px 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: #1e3a8a;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-content p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.card-qr {
    margin-top: auto;
}

.card-qr .qr-placeholder {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

/* 底部信息样式 */
.footer {
    /* background: #f5f5f5; */
    padding: 20px 0;
    margin-top: 40px;
    /* border-top: 1px solid #e0e0e0; */
}

.footer-content {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.copyright-line {
    margin-bottom: 8px;
    color: #555;
}

.icp-line {
    color: #777;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-badge {
    font-size: 16px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav ul {
        gap: 15px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-btn.prev { left: 20px; }
    .carousel-btn.next { right: 20px; }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        font-size: 12px;
    }
    
    .copyright-line,
    .icp-line {
        padding: 0 15px;
    }
}
