/* style.css - Yihao壹号娱乐APP下载 - 官方正版 · 登录享受精彩游戏 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

:root {
    --primary: #e94560;
    --secondary: #16213e;
    --accent: #0f3460;
    --glass: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

.dark {
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dark .header {
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: #1a1a2e;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.dark .nav a {
    color: #e0e0e0;
}

.nav a.active,
.nav a:hover {
    color: var(--primary);
}

.nav a.active::after,
.nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a1a2e;
    cursor: pointer;
    padding: 5px;
}

.dark .menu-toggle {
    color: #e0e0e0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.dark .hero {
    background: linear-gradient(135deg, #0a0a14 0%, #0f0f1a 50%, #1a1a2e 100%);
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero .btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
}

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
    background: #16213e;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide svg {
    width: 100%;
    height: 100%;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dark .section-title p {
    color: #aaa;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card p {
    line-height: 1.7;
    color: #555;
}

.dark .card p {
    color: #bbb;
}

.card svg {
    margin-bottom: 15px;
    width: 64px;
    height: 64px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.dark .stat-item .label {
    color: #aaa;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    cursor: pointer;
}

.dark .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 0;
    color: #555;
}

.dark .faq-answer {
    color: #aaa;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step .step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #555;
    line-height: 1.6;
}

.dark .howto-step .step-content p {
    color: #aaa;
}

.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.dark .footer {
    background: #0a0a14;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.search-bar {
    display: flex;
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.dark .search-bar input {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
    color: #fff;
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #d63850;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.dark .breadcrumb {
    color: #aaa;
}

.breadcrumb li+li::before {
    content: '/';
    margin-right: 10px;
    color: #999;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb .current {
    color: #999;
}

.dark .breadcrumb .current {
    color: #777;
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #1a1a2e;
    padding: 5px;
    transition: var(--transition);
}

.dark .dark-mode-toggle {
    color: #e0e0e0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

.dark .mobile-menu {
    background: rgba(15, 15, 26, 0.98);
}

.mobile-menu a {
    color: #1a1a2e;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu a {
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.show {
    display: flex;
}

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }
    .nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats {
        gap: 30px;
    }
    .stat-item .number {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}