/* ============================================================
   style.css - 金沙娱乐官网 完整样式表
   ============================================================ */

/* ---------- CSS 变量 (主题) ---------- */
:root {
    --primary: #d4af37;
    --primary-dark: #b8962e;
    --primary-light: #e8c84a;
    --bg-dark: #1a1a2e;
    --bg-light: #f8f9fa;
    --text-dark: #2c2c3e;
    --text-light: #e0e0e8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max-width: 1200px;
}

/* ---------- 暗色模式 ---------- */
[data-theme="dark"] {
    --bg-light: #0f0f1a;
    --text-dark: #e0e0e8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- 容器 ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 区块 ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.75;
    max-width: 640px;
    margin: 0 auto 60px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--primary);
    color: #1a1a2e;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #1a1a2e;
}

/* ---------- 毛玻璃卡片 ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all var(--transition);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

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

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

/* ---------- SVG 插图 ---------- */
.svg-illustration {
    width: 100%;
    height: auto;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- 统计 ---------- */
.stat-item {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    cursor: pointer;
}

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

.faq-question svg {
    transition: transform var(--transition);
    width: 24px;
    height: 24px;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s;
    padding-top: 0;
    color: rgba(255, 255, 255, 0.7);
}

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

/* ---------- 页脚 ---------- */
footer {
    background: #0f0f1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* ---------- 滚动动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 暗色区块 ---------- */
.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.5);
}

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

/* ---------- 搜索覆盖层 ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.open {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 600px;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    background: transparent;
    color: var(--text-dark);
    outline: none;
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.search-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.search-results a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------- 页头 & 导航 ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}

[data-theme="dark"] header {
    background: rgba(15, 15, 26, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo svg {
    width: 36px;
    height: 36px;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    color: var(--text-light);
}

nav a:hover, nav a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle, .search-toggle, .menu-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.theme-toggle:hover, .search-toggle:hover, .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
}

/* ---------- 移动端菜单 ---------- */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    font-size: 1.4rem;
    padding: 12px 24px;
    color: var(--text-light);
}

/* ---------- Hero 横幅 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

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

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

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-indicators span.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ---------- 响应式设计 ---------- */

/* 平板及以下 */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* 手机 */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}