* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    text-align: center;
    /* 深邃太空渐变背景 */
    background: radial-gradient(circle at 10% 20%, rgba(21, 24, 47, 1) 0%, rgba(8, 12, 25, 1) 100%);
    min-height: 100vh;
    color: #f0f0f0;
    padding: 20px 16px 40px;
    position: relative;
}

/* 光晕+噪点纹理 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 40% 50%, rgba(120, 80, 200, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjciIG51bU9jdGF2ZXM9IjMiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjZikiIG9wYWNpdHk9IjAuMDgiLz48L3N2Zz4=");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* 轮播卡片 - 毛玻璃 */
.ad-carousel {
    background: rgba(18, 22, 40, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 20px 12px 18px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

/* 轮播容器 - 横版专用比例 */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #05070f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 220, 100, 0.2);
}

/* 图片区域：横版推荐比例 16:9，使用 aspect-ratio 保证统一视觉，同时自适应 */
.carousel-slide {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: block;
    line-height: 0;
    /* 横版固定宽高比 16:9，所有图片统一比例，不拉伸内容 */
    background: #0a0c15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖容器且保持比例，不会变形 */
    display: block;
    transition:
        transform 0.3s ease,
        opacity 0.2s;
}

.carousel-slide img:hover {
    transform: scale(1.01);
}

/* 左右箭头 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #ffecb3;
    border: 1px solid rgba(255, 200, 80, 0.5);
    width: 42px;
    height: 42px;
    border-radius: 60px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #ffd966;
    border-color: #ffc107;
    transform: translateY(-50%) scale(1.05);
}

.btn-prev {
    left: 14px;
}

.btn-next {
    right: 14px;
}

/* 圆点指示器 */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 6px 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(210, 210, 250, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dot.active {
    background: #ffc107;
    width: 28px;
    border-radius: 20px;
    box-shadow: 0 0 10px #ffb347;
}

.dot:hover {
    background: #ffdb7e;
    transform: scale(1.2);
}

/* 导航按钮 */
.navbar {
    padding: 10px 0 5px;
    border-radius: 32px;
}

.navbar button {
    background: rgba(30, 40, 50, 0.8);
    backdrop-filter: blur(8px);
    color: #f5f5f5;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid rgba(255, 200, 100, 0.3);
    cursor: pointer;
    width: 85%;
    margin: 10px auto;
    border-radius: 80px;
    transition: all 0.25s ease;
    display: block;
    letter-spacing: 1px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.navbar button:hover {
    background: rgba(46, 125, 80, 0.9);
    color: #ffec3b;
    border-color: #ffcd38;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* 手机端小调整 */
@media screen and (max-width: 600px) {
    body {
        padding: 16px 12px 32px;
    }
    .navbar button {
        width: 100%;
        margin: 8px 0;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    .btn-prev {
        left: 8px;
    }
    .btn-next {
        right: 8px;
    }
    .ad-carousel {
        padding: 16px 8px 14px;
        border-radius: 32px;
        margin-bottom: 28px;
    }
}

/* 大屏幕保持比例优雅 */
@media (min-width: 1400px) {
    body {
        background: radial-gradient(circle at 20% 30%, #1b1f3a, #05070f);
    }
}
