/**
 * 模板3 - 暗金奢华风格
 * 环球游戏加速器
 * 
 * 特点：皇家金色、精致装饰、对称布局、高端质感
 * 主色：#d4af37 (皇家金) + #0d0d0d (纯黑)
 */

/* ========== 根变量覆盖 ========== */
:root {
    /* 主色调 - 皇家金 */
    --primary-color: #d4af37;
    --primary-hover: #e5c04a;
    --primary-light: #f0d878;
    --primary-dark: #b8960c;
    
    /* 辅助色 - 香槟金 */
    --accent-color: #c9b896;
    --accent-hover: #d8c9a8;
    
    /* 功能色 */
    --success-color: #8fbc8f;
    --warning-color: #daa520;
    --danger-color: #cd5c5c;
    --info-color: #87ceeb;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #b8960c 0%, #d4af37 30%, #f0d878 50%, #d4af37 70%, #b8960c 100%);
    --gradient-gold-bar: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 50%, #111111 100%);
    
    /* 文字 */
    --text-primary: #f5f5f0;
    --text-secondary: #c8c8b8;
    --text-muted: #8a8a78;
    
    /* 背景 */
    --bg-body: #0a0a0a;
    --bg-white: #0d0d0d;
    --bg-light: #141414;
    --bg-dark: #050505;
    --bg-card: #111111;
    
    /* 边框 */
    --border-color: rgba(212, 175, 55, 0.15);
    --border-light: rgba(212, 175, 55, 0.3);
    
    /* 阴影 */
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.15);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2), 0 0 60px rgba(212, 175, 55, 0.1);
}

/* ========== 全局样式 ========== */
body {
    background: var(--bg-body);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 微妙金色光晕 */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ========== 头部样式 ========== */
.header {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
}

/* 底部金线 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: var(--gradient-gold-bar);
}

/* Logo样式 - 与基础模板尺寸一致 */
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-gold);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 2px;
}

/* 导航菜单 */
.nav-menu a {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 15px;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.nav-menu a:hover::after {
    width: 60%;
}

/* ========== 英雄区域 ========== */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* 装饰边框 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 1px solid rgba(212, 175, 55, 0.06);
    pointer-events: none;
}

/* 四角装饰 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    opacity: 0.5;
}

.hero-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-title {
    font-weight: 400;
    letter-spacing: 3px;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.hero-subtitle {
    color: var(--text-muted);
    font-weight: 300;
}

/* ========== 按钮样式 - 与基础模板尺寸一致 ========== */
.btn {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: #0a0a0a !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

/* 光泽扫过 */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-secondary {
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ========== Section 样式 ========== */
.section-label {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 2px;
}

.section-title {
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-weight: 300;
}

/* ========== 特性卡片 ========== */
.features-section {
    background: var(--bg-white);
    position: relative;
}

/* 顶部金线 */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s;
}

/* 四角装饰 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
    transform: translateY(-8px);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
}

.feature-title {
    color: var(--text-primary);
    font-weight: 500;
}

.feature-desc {
    color: var(--text-muted);
}

/* ========== 套餐区域 ========== */
.packages-section {
    background: var(--bg-body);
    position: relative;
}

.packages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.package-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s;
}

/* 顶部金线 */
.package-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s;
}

.package-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
    transform: translateY(-8px);
}

.package-item:hover::before {
    opacity: 1;
    left: 0;
    right: 0;
}

.package-item.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: var(--shadow-gold);
}

.package-item.featured::before {
    opacity: 1;
    left: 0;
    right: 0;
    height: 3px;
}

.package-hot {
    background: var(--gradient-primary);
    color: #0a0a0a;
    font-weight: 600;
}

.package-icon-sm {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
}

.package-title {
    color: var(--text-primary);
    font-weight: 500;
}

.package-main-price .price-symbol,
.package-main-price .price-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-get {
    color: var(--text-muted);
}

.package-get strong {
    color: var(--primary-color);
}

.package-tip {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: none;
}

/* 购买按钮 */
.package-buy-btn {
    background: var(--gradient-primary) !important;
    color: #0a0a0a !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

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

.package-buy-btn:hover {
    box-shadow: var(--shadow-glow);
}

.package-buy-btn:hover::before {
    left: 150%;
}

/* ========== 游戏卡片 ========== */
.games-section {
    background: var(--bg-white);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s;
}

.game-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

/* ========== 下载区域 ========== */
.pricing-section {
    background: var(--bg-body);
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

/* ========== 合规区域 ========== */
.compliance-section {
    background: var(--bg-white);
}

.compliance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.compliance-icon {
    color: var(--primary-color);
}

.compliance-card h3 {
    color: var(--text-primary);
    font-weight: 500;
}

.compliance-card p {
    color: var(--text-muted);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: var(--gradient-gold-bar);
}

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

.footer-links h4 {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ========== 聊天框 ========== */
.floating-service {
    right: -36px;
    transition: right 0.3s ease;
}

.floating-service:hover {
    right: 0;
}

.floating-service .service-btn {
    background: var(--gradient-primary) !important;
    color: #0a0a0a !important;
    box-shadow: var(--shadow-gold);
    width: 48px;
    height: 48px;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.back-to-top {
    border-color: var(--primary-color) !important;
    background: var(--bg-card) !important;
}

.chat-box {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.chat-header {
    background: var(--gradient-primary);
    color: #0a0a0a;
}

.chat-header span {
    color: #0a0a0a;
    font-weight: 500;
}

.chat-input-area input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    background: var(--gradient-primary);
    color: #0a0a0a;
}

.chat-quick-replies button {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chat-quick-replies button:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ========== 模态框 ========== */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-gold);
    position: relative;
}

/* 内边框装饰 */
.modal-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    pointer-events: none;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.form-label {
    color: var(--text-muted);
}

.form-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.sms-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.sms-btn:hover {
    background: var(--gradient-primary);
    color: #0a0a0a;
    border-color: transparent;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========== 选择高亮 ========== */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* ========== 统计数字 ========== */
.stat-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
}

/* ========== 动画效果 ========== */
@keyframes goldShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.package-item.featured .package-title {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

/* ========== 响应式设计 ========== */
/* 支持：PC端、平板、手机、iOS、Android */

/* 大屏幕 1400px */
@media (max-width: 1400px) {
    .container {
        padding: 0 30px;
    }
}

/* 中大屏幕 1200px */
@media (max-width: 1200px) {
    .container {
        padding: 0 28px;
    }
    
    .nav-menu a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

/* 平板 992px */
@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .header::after {
        left: 10%;
        right: 10%;
    }
    
    .footer::before {
        left: 10%;
        right: 10%;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* 小平板/大手机 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    body::before {
        display: none;
    }
    
    .header {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-menu a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header::after,
    .footer::before {
        left: 5%;
        right: 5%;
    }
    
    .features-section::before,
    .packages-section::before {
        width: 60px;
    }
    
    .feature-card::before,
    .feature-card::after {
        display: none;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px !important;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    /* 聊天框适配 */
    .chat-box {
        width: calc(100vw - 40px);
        max-width: 320px;
        right: 20px;
        bottom: 140px;
        height: 400px;
        max-height: calc(100vh - 160px);
    }
    
    .floating-service {
        right: -30px;
        bottom: 60px;
    }
    
    .floating-service:hover {
        right: 0;
    }
    
    .floating-service .service-btn {
        width: 42px;
        height: 42px;
    }
    
    .back-to-top {
        right: 16px !important;
        bottom: 16px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 模态框适配 */
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

/* 手机 576px */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 8px 0;
    }
    
    .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-menu {
        gap: 3px;
    }
    
    .nav-menu a {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .section-title {
        font-size: 20px !important;
    }
    
    .modal-content::before {
        display: none;
    }
    
    .chat-box {
        width: calc(100vw - 32px);
        max-width: 300px;
        right: 12px;
        bottom: 100px;
        height: 340px;
    }
    
    .floating-service {
        right: -26px;
        bottom: 52px;
    }
    
    .floating-service:hover {
        right: 0;
    }
    
    .floating-service .service-btn {
        width: 38px;
        height: 38px;
    }
    
    .back-to-top {
        right: 12px !important;
        bottom: 12px !important;
        width: 30px !important;
        height: 30px !important;
    }
}

/* 小手机 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-menu a {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .hero-title {
        font-size: 20px !important;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 18px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .modal-content {
        margin: 10px;
        padding: 24px 16px;
    }
    
    .chat-box {
        width: calc(100vw - 24px);
        right: 10px;
        bottom: 90px;
        height: 300px;
    }
    
    .floating-service {
        right: -22px;
        bottom: 48px;
    }
    
    .floating-service:hover {
        right: 0;
    }
    
    .floating-service .service-btn {
        width: 34px;
        height: 34px;
    }
    
    .back-to-top {
        right: 10px !important;
        bottom: 10px !important;
        width: 28px !important;
        height: 28px !important;
    }
}

/* 超小手机 360px */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-menu a {
        padding: 3px 5px;
        font-size: 9px;
    }
    
    .hero-title {
        font-size: 18px !important;
    }
    
    .section-title {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* iOS Safari 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .floating-service {
        bottom: calc(52px + env(safe-area-inset-bottom));
    }
    
    .floating-service:hover {
        right: 0;
    }
    
    .chat-box {
        bottom: calc(100px + env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
    
    .modal-content {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* 横屏模式 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn-primary:hover::before {
        left: -100%;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .package-item:hover {
        transform: none;
    }
    
    /* 增大触摸区域 */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .package-item.featured .package-title {
        animation: none;
    }
}
