/* ========================================
   海盗王传奇 - 高端游戏官网样式
   配色：深蓝 + 金色 + 青色光效
   ======================================== */

/* ===== 全局变量 ===== */
:root {
    /* 主色调 */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8860b;
    
    /* 背景色 */
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(20, 30, 55, 0.85);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* 边框 */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-primary: rgba(0, 212, 255, 0.3);
    
    /* 阴影 */
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.2);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-gold: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8860b 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    background-image: url('images/bg-main.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景遮罩层，增加深度感 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.7) 0%, rgba(5, 8, 20, 0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    background: rgba(5, 8, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 45px;
    width: auto;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== 左侧下载侧边栏 ===== */
.side-download {
    position: fixed;
    left: 0;
    top: calc(50% - 48px);
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
}

.side-download-toggle {
    background: var(--gradient-primary);
    color: white;
    width: 64px;
    height: 32px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 4px 0 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.side-download:hover .side-download-toggle {
    width: 64px;
    height: 64px;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    box-shadow: 6px 0 25px rgba(0, 212, 255, 0.6);
    border-radius: 0 8px 8px 0;
}

.side-download:hover .side-icon {
    font-size: 1.3rem;
}

.side-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.side-download-panel {
    position: absolute;
    left: -300px;
    top: -130px;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 0 16px 16px 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.side-download:hover .side-download-panel {
    left: 100%;
    margin-left: -1px;
    transition: left var(--transition-normal);
}

.side-panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.side-panel-header h3 {
    font-size: 1.3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.side-panel-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.side-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.side-download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.side-download-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--border-primary);
    transform: translateX(5px);
}

.side-item-icon {
    font-size: 1.5rem;
}

.side-item-text {
    flex: 1;
    font-size: 0.9rem;
}

.side-item-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.side-download-item:hover .side-item-arrow {
    opacity: 1;
}

.side-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.side-download-all {
    text-align: center;
    padding: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.side-download-all:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* ===== 左侧二维码侧边栏 ===== */
.side-qrcode {
    position: fixed;
    left: 0;
    top: calc(50% + 48px);
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
}

.side-qrcode-toggle {
    background: var(--gradient-gold);
    color: #1a1a2e;
    width: 64px;
    height: 32px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 4px 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.side-qrcode:hover .side-qrcode-toggle {
    width: 64px;
    height: 64px;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    box-shadow: 6px 0 25px rgba(212, 175, 55, 0.6);
    border-radius: 0 8px 8px 0;
}

.side-qrcode:hover .side-qrcode-icon {
    font-size: 1.3rem;
}

.side-qrcode-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.side-qrcode-panel {
    position: absolute;
    left: -300px;
    top: -220px;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 0 16px 16px 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.side-qrcode:hover .side-qrcode-panel {
    left: 100%;
    margin-left: -1px;
    transition: left var(--transition-normal);
}

.side-qrcode-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.side-qrcode-header h3 {
    font-size: 1.3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.side-qrcode-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.side-qrcode-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.qrcode-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.qrcode-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--border-gold);
}

.qrcode-item img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: white;
    padding: 5px;
}

.qrcode-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
}

.qrcode-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 左侧客服侧边栏 ===== */
.side-service {
    position: fixed;
    left: 0;
    top: calc(50%);
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
}

.side-service-toggle {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #1a1a2e;
    width: 64px;
    height: 32px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 4px 0 15px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.side-service:hover .side-service-toggle {
    width: 64px;
    height: 64px;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    box-shadow: 6px 0 25px rgba(0, 200, 83, 0.6);
    border-radius: 0 8px 8px 0;
}

.side-service:hover .side-service-icon {
    font-size: 1.3rem;
}

.side-service-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.side-service-panel {
    position: absolute;
    left: -300px;
    top: -140px;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 200, 83, 0.5);
    border-radius: 0 16px 16px 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.side-service:hover .side-service-panel {
    left: 100%;
    margin-left: -1px;
    transition: left var(--transition-normal);
}

.side-service-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.side-service-header h3 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #00c853, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.side-service-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.side-service-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.service-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.service-item:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.5);
}

.service-item img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: white;
    padding: 5px;
}

.service-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00e676;
    margin-bottom: 0.3rem;
}

.service-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 主要内容区域 ===== */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -80px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 14, 39, 0.4) 0%, 
        rgba(10, 14, 39, 0.6) 50%,
        rgba(10, 14, 39, 0.9) 100%);
    z-index: 1;
}

/* Hero 装饰光效 */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #1a1a2e;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.6);
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

/* ===== 通用区块 ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 网格布局 ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== 卡片样式 ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card:hover::before {
    opacity: 1;
}

/* 金色边框卡片 */
.card-gold {
    border-color: var(--border-gold);
}

.card-gold:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold), var(--shadow-card);
}

.card-gold::before {
    background: var(--gradient-gold);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.card-content p {
    margin-bottom: 0.5rem;
}

.card-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 截图样式 ===== */
.screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.card:hover .screenshot {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== 下载区域 ===== */
.download-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.download-info {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    position: relative;
}

.download-btn {
    position: relative;
    font-size: 1.2rem !important;
    padding: 1.2rem 3rem !important;
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 2;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

/* ===== 淡入动画 ===== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== 新闻页面 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.news-item:hover {
    transform: translateX(10px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-glow);
}

.news-item:hover::before {
    opacity: 1;
}

.news-date {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.news-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* ===== 充值页面 ===== */
.recharge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.recharge-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.recharge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.recharge-card:hover,
.recharge-card.selected {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.recharge-card:hover::before,
.recharge-card.selected::before {
    opacity: 1;
}

.recharge-card.hot::after {
    content: '热卖';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--gradient-gold);
    color: #1a1a2e;
    padding: 0.3rem 2.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.recharge-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.recharge-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.recharge-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.recharge-bonus {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 0.85rem;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.payment-option:hover,
.payment-option.active {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.payment-option input {
    accent-color: var(--primary);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ===== 资料库页面 ===== */
.database-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.database-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.database-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--gold-light);
}

.database-nav-item {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.database-nav-item:hover,
.database-nav-item.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.database-content {
    min-height: 500px;
}

.database-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.database-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-primary);
}

/* NPC 分类 */
.npc-category {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.npc-category h5 {
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
    transition: background var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.npc-category h5:hover {
    background: rgba(0, 212, 255, 0.15);
}

.npc-category h5::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.npc-category.collapsed h5::after {
    transform: rotate(-90deg);
}

.npc-category ul {
    list-style: none;
    padding: 1rem 1.5rem;
}

.npc-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.npc-category li:last-child {
    border-bottom: none;
}

/* 搜索框 */
.npc-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.npc-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.npc-search input:focus {
    border-color: var(--primary);
}

.npc-search button {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.npc-search button:hover {
    box-shadow: var(--shadow-glow);
}

/* ===== 游戏介绍页面 ===== */
.story-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.story-section::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.job-card {
    text-align: center;
}

.job-card .card-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}


/* ===== 二转职业卡片样式 ===== */
.job-card-advanced {
    text-align: center;
    padding-top: 1.5rem;
}

.job-avatar {
    width: 100%;
    height: 280px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.15), rgba(100, 0, 200, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all var(--transition-normal);
}

.job-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
    z-index: 1;
    pointer-events: none;
}

.job-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: all var(--transition-normal);
}

.job-card-advanced:hover .job-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.job-card-advanced:hover .job-avatar img {
    transform: scale(1.08);
}

.job-card-advanced .card-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* ===== 通知样式 ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(46, 125, 50, 0.9));
    border-color: rgba(76, 175, 80, 0.5);
}

.notification-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(183, 28, 28, 0.9));
    border-color: rgba(244, 67, 54, 0.5);
}

.notification-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(13, 71, 161, 0.9));
    border-color: rgba(33, 150, 243, 0.5);
}

/* ===== 模态框 ===== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-width: 350px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-light);
}

.modal-content p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.modal-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== 下载进度条 ===== */
.download-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    color: white;
    z-index: 10000;
    min-width: 350px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.progress-container {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .database-layout {
        grid-template-columns: 1fr;
    }
    
    .database-nav {
        position: static;
    }
    
    .recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .side-download {
        display: none;
    }
    
    .recharge-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ===== 装饰元素 ===== */
.decorative-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 2rem 0;
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

/* ===== 首页新闻预览 - 三列分类布局 ===== */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.news-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.news-category-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}

.news-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.news-category-card.system .news-category-header::before {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
}

.news-category-card.activity .news-category-header::before {
    background: linear-gradient(90deg, #d4af37, #ff8c00);
}

.news-category-card.maintenance .news-category-header::before {
    background: linear-gradient(90deg, #9b59b6, #6c3483);
}

.news-category-icon {
    font-size: 1.3rem;
}

.news-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.news-category-card.system .news-category-title {
    color: #00d4ff;
}

.news-category-card.activity .news-category-title {
    color: #d4af37;
}

.news-category-card.maintenance .news-category-title {
    color: #9b59b6;
}

.news-category-list {
    flex: 1;
    padding: 0 1.2rem;
}

.news-category-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.news-category-item:last-child {
    border-bottom: none;
}

.news-category-item:hover {
    padding-left: 8px;
}

.news-category-item-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-category-card.system .news-category-item:hover .news-category-item-title {
    color: #00d4ff;
}

.news-category-card.activity .news-category-item:hover .news-category-item-title {
    color: #d4af37;
}

.news-category-card.maintenance .news-category-item:hover .news-category-item-title {
    color: #9b59b6;
}

.news-category-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-category-footer {
    padding: 0.8rem 1.2rem 1.2rem;
    text-align: center;
}

.news-category-more {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-category-card.system .news-category-more:hover {
    color: #00d4ff;
}

.news-category-card.activity .news-category-more:hover {
    color: #d4af37;
}

.news-category-card.maintenance .news-category-more:hover {
    color: #9b59b6;
}

.home-news-more {
    text-align: center;
    margin-top: 1.5rem;
}

.home-news-more .btn {
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
}

/* 响应式 */
@media (max-width: 900px) {
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }
}
