/* ========================================
   弧星游戏云电脑 - Linear Design 共享基础样式
   用于所有页面共享的基础样式、导航栏、页脚等
   ======================================== */

/* ========== CSS 变量 ========== */
:root {
    /* 主色调 - 游戏科技蓝 */
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --primary-glow: 59, 130, 246;
    
    /* 强调色 - 紫色 */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: 139, 92, 246;
    
    /* 成功/警告/错误 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* 深色背景 */
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #1a1a24;
    --bg-card-light: #1e1e2a;
    --bg-elevated: #16161f;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* 边框 */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-active: rgba(59, 130, 246, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

/* ========== 背景效果系统 ========== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-glow-top {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(var(--primary-glow), 0.12) 0%, transparent 60%);
    filter: blur(60px);
}

.bg-glow-bottom {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(var(--accent-glow), 0.08) 0%, transparent 70%);
    filter: blur(80px);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-glow), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-glow), 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 0%, transparent 100%);
}

.bg-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== 导航栏 ========== */
.navbar-linear {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar-linear.scrolled {
    padding: 12px 40px;
    background: rgba(10, 10, 15, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
}

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

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(var(--primary-glow), 0.1);
    color: var(--primary-light);
}

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

.btn-nav {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-nav-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(var(--primary-glow), 0.3);
}

.btn-nav-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(var(--primary-glow), 0.5);
}

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

/* ========== 移动端菜单 ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 1001;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu ul li a {
    display: block;
    padding: 16px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

/* ========== 通用按钮样式 ========== */
.btn-hero {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 0 30px rgba(var(--primary-glow), 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(var(--primary-glow), 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ========== 通用Section样式 ========== */
.section {
    position: relative;
    z-index: 2;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-badge {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 页面标题区域 ========== */
.page-hero {
    position: relative;
    z-index: 2;
    padding: 160px 40px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--primary-glow), 0.1);
    border: 1px solid rgba(var(--primary-glow), 0.3);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.page-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.page-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 卡片样式 ========== */
.linear-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.linear-card:hover {
    border-color: rgba(var(--primary-glow), 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========== 页脚 ========== */
.footer-linear {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 40px 0;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-copyright {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
    text-align: center;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-copyright a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ========== 二维码悬浮样式 ========== */
.qr-code-container {
    position: relative;
    cursor: pointer;
}

.qr-code {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qr-code-container:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.qr-code img {
    width: 140px;
    height: 140px;
    display: block;
    border-radius: 8px;
}

/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(var(--primary-glow), 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--primary-glow), 0.5);
}

/* ========== 工具类 ========== */
.d-none {
    display: none !important;
}

.text-danger {
    color: var(--error) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-success {
    color: var(--success) !important;
}

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

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-linear {
        padding: 12px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .page-hero {
        padding: 120px 20px 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .footer-linear {
        padding: 40px 20px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-copyright {
        padding: 20px;
    }
    
    .footer-copyright p {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .qr-code {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 100px 16px 40px;
    }
    
    .section {
        padding: 40px 16px;
    }
}

/* ========== 移动端性能优化 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .bg-effects {
        display: none !important;
    }
    
    .navbar-linear {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 10, 15, 0.98) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .linear-card:hover,
    .btn-hero:hover {
        transform: none !important;
    }
    
    .btn-hero:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
}

