/* ============================================================
   首页专属样式（index.css）
   说明：本文件为「首页专属」样式，全站通用基础已在 style.css 中统一定义。
   本文件只保留首页独有的内容：
   1. 双栏 hero 布局   2. 首屏轮播 hero-slider   3. 首页按钮与文案   4. 首页 hero 专属响应式
   ============================================================ */

/* ---------- 1. 首页双栏 hero 布局 ---------- */
.hero {
    position: relative;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 130px 0 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    margin-bottom: 35px;
}

.hero-description p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
    background: var(--accent-gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-color);
}

.highlight-text {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 1.1rem !important;
    margin-top: 20px !important;
}

/* ---------- 3. 首页按钮与文案 ---------- */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.btn-download,
.btn-purchase {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    min-width: 180px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-download i,
.btn-purchase i {
    font-size: 1.15rem;
}

/* 光泽扫过效果 */
.btn-download::before,
.btn-purchase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before,
.btn-purchase:hover::before {
    left: 100%;
}

.btn-download {
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 140, 255, 0.5), 0 0 16px rgba(0, 212, 255, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 140, 255, 0.65), 0 0 24px rgba(0, 212, 255, 0.5);
}

.btn-purchase {
    background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(255, 0, 128, 0.4), 0 0 16px rgba(121, 40, 202, 0.3);
}

.btn-purchase:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(255, 0, 128, 0.55), 0 0 24px rgba(121, 40, 202, 0.45);
}

/* ---------- 2. 首页轮播 hero-slider（独立组件） ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    z-index: 10;
}

.slider-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.8s ease;
}

.slide.active img {
    transform: scale(1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 14;
    pointer-events: none;
}

.nav-btn {
    pointer-events: auto;
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(10, 20, 35, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.nav-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.55), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: var(--accent-color);
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.55);
    transform: scale(1.12);
}

.nav-btn:hover::before {
    opacity: 1;
}

/* 悬停时按钮外圈出现旋转渐变光环 */
.nav-btn::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 1.5px;
    background: conic-gradient(from 0deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, 0.9), rgba(74, 242, 192, 0.9), rgba(0, 212, 255, 0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: ringSpin 3.5s linear infinite;
}

.nav-btn:hover::after {
    opacity: 1;
}

.nav-btn.prev-btn:hover svg {
    transform: translateX(-3px);
}

.nav-btn.next-btn:hover svg {
    transform: translateX(3px);
}

.nav-btn:active {
    transform: scale(0.94);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 12;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
    position: relative;
    overflow: hidden;
}

.dot:hover {
    background: rgba(0, 212, 255, 0.6);
}

.dot.active {
    width: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

/* 激活点内部的进度填充（随自动播放 5s 走完） */
.dot-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #00d4ff, #4af2c0);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes sliderProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

/* ---------- 4. 首页 hero 专属响应式 ---------- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-slider {
        max-width: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .slider-nav {
        padding: 0 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
}
