/* ============================================
   首页专属样式 - 杂志封面风格轮播图
   ============================================ */

/* 轮播图横幅容器 */
.banner.carousel {
    position: relative;
    overflow: hidden;
    /* margin-top: -72px; */
    font-family: 'Noto Sans SC', sans-serif;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
}

/* 轮播项 - 淡入淡出 + 缩放 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 0.8s ease,
        transform 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 背景层 */
.carousel-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 背景网格纹理 */
.carousel-bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* ===== 每张幻灯片独立主题 ===== */

/* Slide 1: 新年主题 - 红金 */
.carousel-item:nth-child(1) .carousel-bg-gradient {
    background:
        radial-gradient(ellipse at 30% 50%, #8b0000 0%, transparent 70%), radial-gradient(ellipse at 80% 20%, #b8860b 0%, transparent 60%),
        radial-gradient(ellipse at 60% 80%, #8b0000 0%, transparent 50%), #1a0505;
}

/* Slide 2: 平台主题 - 蓝青 */
.carousel-item:nth-child(2) .carousel-bg-gradient {
    background:
        radial-gradient(ellipse at 70% 40%, #00ced1 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, #0a192f 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, #00ced1 0%, transparent 40%), #050a14;
}

/* Slide 3: 游戏主题 - 紫橙 */
.carousel-item:nth-child(3) .carousel-bg-gradient {
    background:
        radial-gradient(ellipse at 50% 30%, #ff6b35 0%, transparent 60%), radial-gradient(ellipse at 20% 70%, #2d1b69 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, #ff6b35 0%, transparent 40%), #0d0514;
}

/* 装饰元素容器 */
.carousel-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 装饰粒子 */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: floatParticle 20s ease-in-out infinite;
}

.decoration-circle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.decoration-circle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

.decoration-circle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 75%;
    left: 30%;
    animation-delay: -15s;
}

.decoration-circle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 25%;
    left: 70%;
    animation-delay: -8s;
}

@keyframes floatParticle {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, 20px);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 10px);
        opacity: 0.7;
    }
}

/* 装饰圆环 */
.decoration-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: spinRing 40s linear infinite;
}

.decoration-ring:nth-child(6) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.decoration-ring:nth-child(7) {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-direction: reverse;
    animation-duration: 60s;
}

.decoration-ring:nth-child(8) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 15%;
    animation-duration: 30s;
}

@keyframes spinRing {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 装饰线条 */
.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    height: 1px;
}

.decoration-line:nth-child(9) {
    width: 40%;
    top: 25%;
    left: 0;
}

.decoration-line:nth-child(10) {
    width: 30%;
    top: 75%;
    right: 0;
    left: auto;
}

.decoration-line:nth-child(11) {
    width: 50%;
    top: 50%;
    left: 25%;
    transform: rotate(-5deg);
}

/* ===== 内容层 ===== */
.banner-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
    width: 100%;
}

/* 内容网格布局 */
.banner-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 32px);
    justify-items: start;
    text-align: left;
    padding-left: clamp(24px, 8vw, 120px);
}

/* 装饰性标签 */
.banner-text::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: currentColor;
    opacity: 0.6;
    margin-bottom: 8px;
}

/* 标题 - 超大字号 */
.banner-text h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 800px;
}

/* 副标题 */
.banner-subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

/* CTA按钮 - 高对比度 */
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: #0a0a0a;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.banner-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-btn:hover::after {
    transform: scaleX(1);
}

.banner-btn:active {
    transform: translateY(0);
}

/* ===== 控制按钮 ===== */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(12px, 2vw, 24px);
    pointer-events: none;
}

.carousel-control {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* ===== 指示器 ===== */
.carousel-indicators {
    position: absolute;
    bottom: clamp(20px, 3vw, 32px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-indicators .indicator {
    width: 24px;
    height: 2px;
    border-radius: 0;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator.active {
    background: white;
    width: 40px;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .banner.carousel {
        height: 100vh;
        min-height: 400px;
    }

    .banner-text {
        padding-left: clamp(16px, 4vw, 40px);
    }

    .banner-text::before {
        width: 40px;
    }

    .banner-text h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .banner-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .decoration-circle,
    .decoration-ring {
        display: none;
    }

    .carousel-indicators .indicator {
        width: 16px;
    }

    .carousel-indicators .indicator.active {
        width: 28px;
    }
}

/* ===== 数据展示区 ===== */
.activity-stats {
    padding: 80px 0;
    background: var(--bg-surface);
}

.activity-content {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 8vw, 120px);
    flex-wrap: wrap;
    padding: 0 var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 200px;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    width: 250px;
    text-align: center;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== 平台介绍区 ===== */
.platform-intro {
    padding: 100px 0;
    background: var(--bg-primary);
    text-align: center;
}

.platform-intro h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.platform-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-buttons .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.platform-buttons .btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== 功能展示区 ===== */
.feature-showcase {
    padding: 80px 0;
    background: var(--bg-surface);
}

.feature-content {
    display: none;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.feature-content.active {
    display: flex;
}

/* 功能描述统一在右侧 */

.feature-details .feature-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.feature-details .feature-buttons .btn {
    text-decoration: none;
    display: inline-flex;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.feature-details .btn-primary {
    background: var(--primary);
    color: white;
}

.feature-details .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.feature-details .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.feature-video {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    aspect-ratio: 16 / 9;
}

.feature-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-details {
    flex: 1;
    min-width: 0;
}

.feature-details h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item .feature-icon {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 核心优势 ===== */
.advantages {
    padding: 100px 0;
    background: var(--bg-primary);
    text-align: center;
}

.advantages h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.advantages-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.advantage-item {
    background: var(--bg-surface);
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.advantage-item .advantage-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 合作伙伴模块样式 ===== */
.partners {
    padding: 60px 0;
    background: var(--bg-primary);
    text-align: center;
    overflow: hidden;
}

.partners h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 12px;
}

.partners-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    gap: 16px;
    padding: 0 var(--container-padding) 16px;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.partners-grid:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--bg-surface);
    padding: 16px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 32px;
    color: var(--primary);
}

.logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ===== 新闻模块样式 ===== */
.news {
    padding: 100px 0;
    background: var(--bg-surface);
}

.news h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.column-header {
    margin-bottom: 24px;
}

.news-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    letter-spacing: 1px;
}

.news-column:nth-child(2) .news-tag {
    background: var(--primary);
}

.news-column:nth-child(3) .news-tag {
    background: #7c3aed;
}

.news-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--accent);
}

.news-column:nth-child(2) .news-articles {
    border-top-color: var(--primary);
}

.news-column:nth-child(3) .news-articles {
    border-top-color: #7c3aed;
}

.news-article {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-article:last-child {
    border-bottom: none;
}

.news-article:hover {
    padding-left: 12px;
}

.news-article h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.news-article:hover h3 {
    color: var(--accent);
}

.news-column:nth-child(2) .news-article:hover h3 {
    color: var(--primary);
}

.news-column:nth-child(3) .news-article:hover h3 {
    color: #7c3aed;
}

/* 旧卡片样式保留 */
.news-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA横幅样式已迁移到 common.css */

/* ===== 底部导航 - 深色主题 ===== */
.footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 24px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer-social a:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-content {
        flex-direction: column !important;
        gap: 40px;
    }

    .feature-video {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .activity-content {
        gap: 40px 24px;
    }

    .stat-icon {
        font-size: 36px;
    }

    .platform-intro {
        padding: 60px 0;
    }

    .advantages {
        padding: 60px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .activity-stats {
        padding: 40px 0;
    }

    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }

    .platform-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .advantage-item {
        padding: 24px 16px;
    }
}
