/* ============================================================
   style.css - 尊龙凯时 (zunlongkaishigames.com)
   UI风格: 渐变Banner + 毛玻璃 + 暗色模式 + 响应式
   所有CSS内联，无外部依赖
   ============================================================ */

/* ---------- 全局重置与变量 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #f0c040;
    --accent2: #e94560;
    --bg: #0f0f1a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.12);
    --text: #e0e0e0;
    --text-light: #a0a0b0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: light) {
    :root {
        --primary: #ffffff;
        --secondary: #f5f5f5;
        --bg: #f0f0f5;
        --card-bg: rgba(0, 0, 0, 0.04);
        --glass: rgba(255, 255, 255, 0.7);
        --text: #1a1a2e;
        --text-light: #555;
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}

/* ---------- 基础标签 ---------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #ffd966;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 玻璃拟态卡片 ---------- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ---------- 渐变背景 ---------- */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent), #e6b800);
    color: #1a1a2e;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.5);
    color: #1a1a2e;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--accent);
    color: #1a1a2e;
}

/* ---------- 标题 ---------- */
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), #ffd966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-sub {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
}

/* ---------- 导航 ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}
@media (prefers-color-scheme: light) {
    header {
        background: rgba(255, 255, 255, 0.85);
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}
.logo svg {
    width: 42px;
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.search-box input {
    background: none;
    border: none;
    color: var(--text);
    outline: none;
    padding: 6px;
    width: 140px;
    font-size: 0.9rem;
}
.search-box button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
}

/* ---------- Banner 轮播 ---------- */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    height: 85vh;
    min-height: 500px;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}
.banner-slide.active {
    opacity: 1;
}
.banner-content {
    max-width: 800px;
    padding: 40px 20px;
}
.banner-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #f0c040, #ffd966, #f0a030);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.banner-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.banner-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}
.banner-indicators span.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ---------- 网格布局 ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

section {
    padding: 80px 0;
}

/* ---------- 卡片 ---------- */
.icon-card {
    text-align: center;
    padding: 30px 20px;
}
.icon-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
}
.icon-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.icon-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- 团队 ---------- */
.team-card {
    text-align: center;
}
.team-card svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}
.team-card h4 {
    font-size: 1.2rem;
}
.team-card span {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ---------- 合作伙伴 ---------- */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.partner-grid svg {
    width: 120px;
    height: 60px;
    opacity: 0.6;
    transition: var(--transition);
}
.partner-grid svg:hover {
    opacity: 1;
}

/* ---------- 评价 ---------- */
.testimonial-card {
    padding: 30px;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--accent);
    opacity: 0.3;
    font-family: serif;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial-card .author {
    font-weight: 600;
    color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}
.faq-question span {
    transition: var(--transition);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    color: var(--text-light);
    padding-top: 0;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding-top: 15px;
}
.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

/* ---------- HowTo ---------- */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.howto-step .step-num {
    background: var(--accent);
    color: #1a1a2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------- 新闻 ---------- */
.article-card {
    padding: 25px;
}
.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.article-card .date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
footer {
    background: #0a0a14;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: light) {
    footer {
        background: #e8e8f0;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-links h4 {
    margin-bottom: 18px;
    font-size: 1.1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1a2e;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: scale(1.1);
}

/* ---------- 暗黑模式切换 ---------- */
.dark-toggle {
    background: none;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}
.dark-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .banner-content h1 {
        font-size: 2.4rem;
    }
    .banner {
        height: 70vh;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-box input {
        width: 100px;
    }
    .partner-grid svg {
        width: 80px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 12px;
    }
}

/* ---------- 动画 ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 10px 0;
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover {
    color: var(--accent);
}

/* ---------- 数字增长 ---------- */
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}