/* 全局基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-size: 16px; }

/* 页面背景 */
.bg-glass {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* 主体内容顶部留白，防止固定导航遮挡 */
main {
    padding-top: 80px;
}

/* 卡片通用样式 + 悬浮动效 */
.card-cool {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}
.card-cool:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(22, 119, 255, 0.35);
    border-color: rgba(255,125,0,0.4);
}

/* 滚动渐入动画 */
.fade-in {
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 流光按钮 */
.btn-stream {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.btn-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: stream 2.5s infinite;
}
@keyframes stream {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
    background: #1677ff;
    border-radius: 3px;
}

/* 轮播容器 - 修复高度、适配移动端 */
.banner-swiper {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
}
@media (max-width: 768px) {
    .banner-swiper {
        height: 70vh;
    }
}
.swiper-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}
.swiper-item.active {
    opacity: 1;
}
.swiper-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 轮播指示器 */
.swiper-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #ff7d00;
    transform: scale(1.2);
}

/* 导航栏 固定定位+层级强化 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 1.25rem 0;
    backdrop-filter: blur(10px);
    background: rgba(15, 52, 96, 0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 通用区块间距 */
section {
    padding: 5rem 0;
}
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* 图片兜底，防止断裂 */
img {
    max-width: 100%;
    display: block;
}