/* 首页特定样式（从 index.php 提取） */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-section::before,
.hero-section::after { content: none; }

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .8s ease, transform 1.6s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateX(0) !important;
    z-index: 2 !important;
    animation: kenburnsSoft 6s ease-in-out;
}

.hero-slide.prev,
.hero-slide.next { opacity: 0; visibility: hidden; transform: scale(1.05); }

.hero-overlay { display: none; }

/* 背景增强：为每张幻灯片叠加柔光与霓虹边缘 */
.hero-slide::before,
.hero-slide::after { content: none; }

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #0b1220;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 32px;
    /* 避免居中位移被动画覆盖，动画改到子元素 */
    background: rgba(255,255,255,0.78);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    display: inline-block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0b1220;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 2px 0 rgba(255,255,255,0.6);
    animation: slideInUp 0.6s ease-out 0.1s both;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: #334155;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.2px;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.hero-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.6);
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-color) 100%);
    border-color: rgba(255,255,255,0.4);
}

.hero-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* 装饰元素 */
.hero-decoration { display: none; }
.decoration-circle { display: none; }

/* 粒子效果 */
.hero-particles { display: none; }
.particle { display: none; }

@keyframes kenburnsSoft { from { transform: scale(1.02); } to { transform: scale(1.08); } }

/* 轮播图控制 */
.carousel-dots-container { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; }
.carousel-dots { display: flex; gap: 15px; align-items: center; padding: 15px 25px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(15px); border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); }

/* 侧边箭头按钮 */
.carousel-side-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: rgba(0, 0, 0, 0.4); color: white; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; backdrop-filter: blur(15px); opacity: 0.8; }
.carousel-side-arrow:hover { opacity: 1; background: rgba(0, 0, 0, 0.6); border-color: rgba(255,255,255,0.6); transform: translateY(-50%) scale(1.1); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.carousel-side-arrow.carousel-prev { left: 30px; }
.carousel-side-arrow.carousel-next { right: 30px; }

.carousel-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: transparent; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.carousel-dot::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: linear-gradient(45deg, #60a5fa, #3b82f6); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-dot:hover { border-color: rgba(255,255,255,0.8); transform: scale(1.3); }
.carousel-dot:hover::before { width: 100%; height: 100%; }
.carousel-dot.active { background: linear-gradient(45deg, #60a5fa, #3b82f6); border-color: #60a5fa; box-shadow: 0 0 25px rgba(96, 165, 250, 0.6); transform: scale(1.2); }
.carousel-dot.active::after { content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; border: 2px solid rgba(96, 165, 250, 0.4); border-radius: 50%; animation: ripple 2s infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* 滚动提示已移除 */

.section-title { text-align: center; margin-bottom: 8px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 6px; }
.section-title p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.feature-card { text-align: center; padding: 40px 20px; border-radius: 15px; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.feature-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color), #1e3a8a); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; font-size: 2rem; }

.stats-section { position: relative; color: #fff; padding: 100px 0; overflow: hidden; background: radial-gradient(900px 400px at 10% -10%, #0b1220 0%, #0f1b35 45%, #0a1430 100%); }
.stats-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(135deg, rgba(0,255,170,.06) 0%, rgba(0,153,255,.06) 100%), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px); mix-blend: screen; z-index: 1; }
.stats-section::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(90deg,#4f9cff,#a855f7,#22c55e,#f59e0b,#ef4444,#4f9cff); background-size: 200% 100%; filter: blur(40px); opacity: .12; animation: statsGlow 10s linear infinite; pointer-events: none; z-index: 0; }
.stat-item { position: relative; text-align: center; padding: 30px 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1); overflow: hidden; z-index: 2; }
.stat-item::before { content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: 18px; background: linear-gradient(90deg,#4f9cff,#a855f7,#22c55e,#f59e0b,#ef4444,#4f9cff); background-size: 200% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .25; animation: glowFlow 8s linear infinite; pointer-events: none; }
.stat-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.stat-number { font-size: 3.2rem; font-weight: 800; display: block; margin-bottom: 8px; letter-spacing: .5px; background: linear-gradient(135deg,#ffffff 0%,#dbeafe 50%,#93c5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 0 30px rgba(96, 165, 250, 0.25); position: relative; }
.stat-number::after { content: ""; position: absolute; left: -20%; top: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent); transform: skewX(-20deg); opacity: 0; animation: shine 2.8s ease-in-out infinite; }
.stat-label { font-size: 1.05rem; opacity: .9; letter-spacing: .6px; color: rgba(255,255,255,.9); }

@keyframes statsGlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes shine { 0%, 60% { opacity: 0; transform: translateX(-120%) skewX(-20deg); } 70% { opacity: .8; } 100% { opacity: 0; transform: translateX(220%) skewX(-20deg); } }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-btn { padding: 12px 25px; font-size: 1rem; }
    .section-title { margin-bottom: 6px; }
    .section-title h2 { font-size: 2rem; margin-bottom: 4px; }
    .decoration-circle-1 { width: 120px; height: 120px; }
    .decoration-circle-2 { width: 100px; height: 100px; }
    .decoration-circle-3 { width: 80px; height: 80px; }
    .carousel-controls { bottom: 20px; gap: 15px; }
    .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
    /* 滚动提示已移除 */
}
