/* PG99 Vietnam - Crypto Elite Style */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Monument+Grotesk:wght@300;400;600;700;900&display=swap');

:root {
    /* Crypto Elite 主色系 */
    --crypto-black: #0c0c0c;
    --matte-black: #141414;
    --deep-gray: #1c1c1c;
    --medium-gray: #242424;
    --light-gray: #2c2c2c;
    --accent-gray: #333333;

    /* Crypto 强调色 */
    --bitcoin-orange: #f7931a;
    --bitcoin-gold: #ffb000;
    --ethereum-purple: #627eea;
    --ethereum-silver: #8a92c7;
    --crypto-cyan: #00d4aa;
    --neon-blue: #00ffff;
    --matrix-green: #00ff41;

    /* 状态颜色 */
    --success-green: #00d4aa;
    --error-red: #ff4757;
    --warning-amber: #ffa502;

    /* 文字系统 */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #808080;
    --text-inverse: #0c0c0c;

    /* Glassmorphism 玻璃态 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --glass-backdrop: blur(20px);

    /* 高级玻璃效果 */
    --glass-premium: rgba(247, 147, 26, 0.05);
    --glass-premium-border: rgba(247, 147, 26, 0.15);
    --glass-crypto: rgba(98, 126, 234, 0.05);
    --glass-crypto-border: rgba(98, 126, 234, 0.15);

    /* 尺寸系统 */
    --container-max-width: 1400px;
    --header-height: 80px;
    --footer-height: 360px;
    --border-radius: 16px;
    --border-radius-small: 8px;
    --border-radius-large: 24px;

    /* 阴影系统 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 16px 60px rgba(0, 0, 0, 0.4);
    --shadow-crypto: 0 8px 32px rgba(247, 147, 26, 0.2);
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.3);

    /* 渐变系统 */
    --gradient-crypto: linear-gradient(135deg, var(--bitcoin-orange), var(--bitcoin-gold));
    --gradient-ethereum: linear-gradient(135deg, var(--ethereum-purple), var(--ethereum-silver));
    --gradient-dark: linear-gradient(135deg, var(--crypto-black), var(--deep-gray));
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

    /* 字体系统 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Monument Grotesk', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
}

/* 浅色主题变量 */
[data-theme="light"] {
    --primary-black: #ffffff;
    --matte-black: #f6f7f9;
    --deep-gray: #f0f2f5;
    --medium-gray: #e6eaf0;
    --light-gray: #dde3eb;
    --text-primary: #0a0a0a;
    --text-secondary: #3c3f44;
    --text-muted: #6b6f76;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(10, 10, 10, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.06);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--crypto-black);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    /* Crypto科技感背景 */
    background-image:
        radial-gradient(circle at 20% 80%, rgba(247, 147, 26, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(98, 126, 234, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--crypto-black) 0%, var(--matte-black) 100%);
    background-attachment: fixed;
}

/* 可访问性：键盘焦点可见 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.login-btn:focus-visible,
.register-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--bitcoin-orange);
    outline-offset: 2px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Crypto Elite 按钮系统 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-crypto);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-crypto);
}

.btn:active {
    transform: translateY(-1px);
}

/* 次要按钮 - 玻璃态效果 */
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-premium-border);
    color: var(--bitcoin-orange);
}

.btn-secondary:hover {
    background: var(--glass-premium);
    border-color: var(--bitcoin-orange);
    box-shadow: var(--shadow-crypto);
    color: var(--bitcoin-orange);
}

/* 以太坊风格按钮 */
.btn-ethereum {
    background: var(--gradient-ethereum);
    color: var(--text-primary);
}

.btn-ethereum:hover {
    box-shadow: 0 8px 32px rgba(98, 126, 234, 0.3);
}

/* 大型按钮 */
.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--border-radius);
}

/* 霓虹按钮效果 */
.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: var(--crypto-black);
    text-shadow: none;
    box-shadow: var(--shadow-neon);
}

/* Crypto Elite 头部样式 */
header {
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    /* 科技感上边框 */
    box-shadow:
        0 1px 0 0 rgba(247, 147, 26, 0.1) inset,
        0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 适配当前HTML结构的容器与导航样式 */
.nav-container, /* 当前HTML使用的类名 */
.header-container { /* 旧样式兼容 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--bitcoin-orange);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
    animation: pulse-crypto 2s infinite;
}

.logo img {
    height: 36px;
    display: block;
}

@keyframes pulse-crypto {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(247, 147, 26, 0);
    }
}

/* 顶部菜单（适配 .nav-menu 与 .main-nav） */
.main-nav,
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a,
.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active,
.nav-menu a:hover,
.nav-menu a.active {
    background: var(--glass-bg);
    color: var(--bitcoin-orange);
}

/* 顶部右侧按钮区域（适配 .header-buttons 与 .header-actions） */
.header-actions,
.header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 登录按钮（次要） */
.login-btn,
.header-buttons .btn-secondary {
    background: transparent;
    border: 1px solid var(--bitcoin-orange);
    color: var(--bitcoin-orange);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover,
.header-buttons .btn-secondary:hover {
    background: var(--bitcoin-orange);
    color: var(--primary-black);
}

/* 主要按钮（注册） */
.register-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--accent-gold));
    color: var(--primary-black);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247, 147, 26, 0.4);
}

/* 排版改进：标题层级与段落节奏 */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
p { margin: 0.75rem 0; color: var(--text-secondary); }
ul, ol { margin: 0.75rem 0 0.75rem 1.25rem; color: var(--text-secondary); }

.container.narrow, .prose { max-width: 760px; }
.prose p { max-width: 70ch; }

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* 主要内容区域 */
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Hero区域样式 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-black), var(--deep-gray));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(247, 147, 26, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--bitcoin-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 内容区域样式 */
.section {
    padding: 80px 0;
}

/* Skip-Link 可见性样式 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: var(--bitcoin-orange);
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 2000;
}
.skip-link:focus { left: 10px; }

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

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--bitcoin-orange);
    box-shadow: var(--box-shadow);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* 移动端头部与汉堡菜单 */
@media (max-width: 768px) {
    header .nav-menu,
    header .header-buttons { display: none; }

    header .nav-container { position: relative; }

    .mobile-menu-toggle { display: block; }
    header .mobile-menu-toggle:not(button) { display: none !important; }

    header.menu-open { height: auto; }
    header.menu-open .nav-container { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 12px; }
    header.menu-open .nav-menu,
    header.menu-open .header-buttons { display: flex; }
    header.menu-open .nav-menu { flex-direction: column; gap: 1rem; padding-top: 12px; border-top: 1px solid var(--glass-border); }

    body.menu-open { overflow: hidden; }
}

/* 游戏卡片特殊样式 */
.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: scale(1.02);
    border-color: var(--bitcoin-orange);
}

.game-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--bitcoin-orange);
}

.game-content {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-provider {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.game-rtp {
    display: inline-block;
    background: var(--success-green);
    color: var(--primary-black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 优惠活动样式 */
.promotion-card {
    background: linear-gradient(135deg, var(--deep-gray), var(--medium-gray));
    border: 2px solid var(--bitcoin-orange);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promotion-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--primary-black);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.promotion-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--bitcoin-orange);
}

.promotion-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

/* 统计数据样式 */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 40px 0;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--bitcoin-orange);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 表格样式 */
.table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 32px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    background: var(--medium-gray);
    font-weight: 600;
    color: var(--bitcoin-orange);
}

.table tr:hover {
    background: rgba(247, 147, 26, 0.05);
}

/* FAQ样式 */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    background: var(--medium-gray);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background: var(--matte-black);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bitcoin-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

/* 特殊页面样式 */
.page-header {
    padding: 40px 0;
    text-align: center;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 60px;
}

.page-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    background: var(--glass-bg);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--bitcoin-orange);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .card {
        padding: 20px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .game-image {
        height: 150px;
        font-size: 36px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(247, 147, 26, 0.3);
    border-radius: 50%;
    border-top-color: var(--bitcoin-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--matte-black);
}

::-webkit-scrollbar-thumb {
    background: var(--bitcoin-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-black);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--bitcoin-orange);
}

.tooltip:hover::after {
    opacity: 1;
}

/* 通知横幅 */
.notification {
    background: var(--bitcoin-orange);
    color: var(--primary-black);
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.notification.success {
    background: var(--success-green);
}

.notification.error {
    background: var(--error-red);
    color: var(--text-primary);
}

.notification.warning {
    background: var(--warning-yellow);
}

/* 特殊元素 */
.highlight {
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bitcoin-orange);
    color: var(--primary-black);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 40px 0;
}

/* 打印样式 */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* =================================== */
/* CRYPTO ELITE 特效增强样式 */
/* =================================== */

/* 区块链网格背景 */
.blockchain-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(247, 147, 26, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(98, 126, 234, 0.05) 0%, transparent 50%);
    background-size: 100px 100px;
    animation: blockchain-float 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes blockchain-float {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(0) translateY(0); }
}

/* HEX代码背景元素 */
.hex-pattern::after {
    content: '0x1A2B3C4D 0x5E6F7A8B 0x9C0D1E2F';
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(247, 147, 26, 0.2);
    letter-spacing: 2px;
    z-index: -1;
    animation: code-scroll 15s linear infinite;
}

@keyframes code-scroll {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* 内容块增强 */
.content-block {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 32px 0;
    overflow: hidden;
}

.content-block.horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-block.vertical {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-crypto);
    opacity: 0.6;
}

.content-block h2,
.content-block h3 {
    font-family: var(--font-display);
    color: var(--bitcoin-orange);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* 内容网格增强 */
.grid.grid-3,
.grid.grid-4 {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.grid.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.grid-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-crypto);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.grid-item:hover::before {
    transform: scaleX(1);
}

.grid-item:hover {
    transform: translateY(-8px);
    border-color: var(--glass-premium-border);
    box-shadow: var(--shadow-crypto);
}

.grid-item h3 {
    font-family: var(--font-display);
    color: var(--bitcoin-orange);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.grid-item .item-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Hero区域增强 */
.hero {
    position: relative;
    background: var(--gradient-dark);
    padding: 120px 0;
    overflow: hidden;
}

.hero.overlay {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(247, 147, 26, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(98, 126, 234, 0.15) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23f7931a" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/></g></g></svg>');
    animation: matrix-bg 20s linear infinite;
}

@keyframes matrix-bg {
    0% { transform: translateY(0); }
    100% { transform: translateY(-60px); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    margin-bottom: 24px;
    background: var(--gradient-crypto);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* 统计数字动画效果 */
.stat-number {
    font-family: var(--font-mono);
    background: var(--gradient-crypto);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-crypto);
    animation: stat-pulse 2s ease-in-out infinite;
}

@keyframes stat-pulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* 玻璃态卡片优化 */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-crypto);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-premium-border);
    box-shadow: var(--shadow-crypto);
    background: var(--glass-premium);
}

/* 霓虹光效文字 */
.neon-text {
    color: var(--neon-blue);
    text-shadow:
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 15px var(--neon-blue);
    animation: neon-flicker 3s linear infinite;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

/* 加密货币图标样式 */
.crypto-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    background: var(--gradient-crypto);
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}

.crypto-icon.bitcoin { background: var(--gradient-crypto); }
.crypto-icon.ethereum { background: var(--gradient-ethereum); }

/* 电路板边框效果 */
.circuit-border {
    position: relative;
    border: 1px solid var(--glass-border);
}

.circuit-border::before,
.circuit-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--bitcoin-orange);
    border-radius: 50%;
}

.circuit-border::before {
    top: -5px;
    left: 20px;
}

.circuit-border::after {
    bottom: -5px;
    right: 20px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .content-block.horizontal {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .hero {
        padding: 80px 0;
    }
}


/* ===== Layout fixes: hero variants and centering across pages ===== */
/* Homepage hero image */
.hero .hero-image img {
    width: 100%;
    max-width: 1000px;
    display: block;
    margin: 20px auto 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
}

/* Hero overlay variant (compatibility for pages using hero-overlay) */
.hero-overlay,
.hero.hero-overlay {
    position: relative;
    padding: 120px 0;
    background: var(--gradient-dark);
}
.hero-background { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg-image { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; transform: scale(1.05); }
.hero-overlay-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,0.8), rgba(12,12,12,0.2)); }

/* Hero left-right variant */
.hero-left-right .hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-left-right .hero-text { flex: 1; }
.hero-left-right .hero-image { flex: 1; }
.hero-left-right .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Shared hero clusters */
.hero-stats,
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Content block wrappers used on inner pages */
.content-block .content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}
.content-block .content-wrapper .content-text,
.content-block .content-wrapper .content-image { flex: 1; }
.content-block.horizontal.reverse .content-wrapper { flex-direction: row-reverse; }
.content-block .content-image img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Grid header centering */
.grid-header { text-align: center; margin-bottom: 40px; }
.grid-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.grid-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Responsive tweaks */
@media (max-width: 992px) {
    .hero-left-right .hero-content { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
    .content-block .content-wrapper { flex-direction: column; gap: 24px; }
    .hero .hero-image img { max-width: 100%; }
}


/* Centering fixes for content blocks across pages */
/* Limit block width and center the whole block regardless of internal structure */
.content-block.horizontal,
.content-block.vertical,
section.content-block {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* If pages use an inner .content-wrapper, also center and limit it */
.content-block .content-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* Ensure columns share space evenly and don’t overflow */
.content-block .content-wrapper .content-text,
.content-block .content-wrapper .content-image,
.content-block.horizontal > .content-text,
.content-block.horizontal > .content-image { flex: 1 1 0; min-width: 0; }

/* Hero text container centering for overlay/others */
.hero .hero-text { max-width: 1100px; margin: 0 auto; }


/* Fix: when .content-block.horizontal wraps a .container, make it span full width */
.content-block.horizontal > .container {
    grid-column: 1 / -1; /* span both cols if parent is grid */
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}
