/* ========================================
   柚子联盟 - 游戏酷炫风格样式
   www.qianxiangxiu.com
   ======================================== */

/* CSS Variables */
:root {
    /* 主色调 - 游戏酷炫风格 */
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary: #7c3aed;
    --accent: #00d4aa;
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    /* 边框和阴影 */
    --border-color: #2a2a3a;
    --glow-primary: 0 0 20px rgba(255, 107, 53, 0.5);
    --glow-secondary: 0 0 20px rgba(124, 58, 237, 0.5);
    --glow-accent: 0 0 20px rgba(0, 212, 170, 0.5);
    
    /* 稀有度颜色 */
    --rarity-legendary: #ffaa00;
    --rarity-epic: #a855f7;
    --rarity-rare: #3b82f6;
    --rarity-common: #9ca3af;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-icon {
    font-size: 1.75rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

.hero-text {
    padding: 2rem 0;
}

.game-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title small {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.8); }
}

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

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Hero Visual - Character Image */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-character {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Card Frame for smaller displays */
.card-frame {
    width: 140px;
    height: 200px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.card-frame:hover {
    transform: scale(1.05);
}

.card-frame.legendary {
    border-color: var(--rarity-legendary);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
}

.card-frame.epic {
    border-color: var(--rarity-epic);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.card-frame.rare {
    border-color: var(--rarity-rare);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.card-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   Cards Section
   ======================================== */
.cards-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.cards-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.card-preview {
    width: 220px;
    height: 320px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-preview:hover {
    transform: translateY(-10px) rotateY(5deg);
}

.card-preview.legendary-card {
    border-color: var(--rarity-legendary);
}

.card-preview.epic-card {
    border-color: var(--rarity-epic);
}

.card-preview.rare-card {
    border-color: var(--rarity-rare);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 170, 0, 0.2) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card-rarity {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.card-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 180px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-placeholder {
    font-size: 4rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.news-link:hover {
    color: var(--primary-light);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: 
        linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%),
        var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-light {
    background: white;
    color: var(--bg-dark);
}

.btn-light:hover {
    background: var(--primary);
    color: white;
}

.platform-icon {
    margin-right: 0.5rem;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.qr-code span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .brand-logo {
    width: 36px;
    height: 36px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--text-secondary);
}

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

/* 版本信息 */
.version-info-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.version-info-footer span {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0 0.5rem;
}

.version-badge {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ========================================
   Subpage Styles
   ======================================== */
.subpage {
    padding-top: 76px;
}

.page-header {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-darker);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ========================================
   Game Page Styles
   ======================================== */
.game-overview {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.overview-content {
    padding-right: 2rem;
}

.overview-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.overview-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.overview-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.item-icon {
    font-size: 1.5rem;
}

.overview-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gameplay-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.game-board-demo {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.turn-indicator {
    font-weight: 600;
    color: var(--primary);
}

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

.battlefield {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-darker);
    border-radius: 8px;
}

.player-side.enemy {
    flex-direction: row;
}

.player-side.ally {
    flex-direction: row-reverse;
}

.hero-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
}

.hp-bar {
    flex: 1;
    height: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.hp-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
}

.mana-crystals {
    display: flex;
    gap: 0.25rem;
}

.crystal {
    font-size: 1rem;
    opacity: 0.3;
}

.crystal.filled {
    opacity: 1;
}

.vs-divider {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.hand-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hand-card {
    width: 50px;
    height: 70px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Gameplay Section */
.gameplay-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.gameplay-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    width: 220px;
    transition: var(--transition-normal);
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* Cards System */
.cards-system {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.rarity-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.rarity-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.rarity-tab:hover,
.rarity-tab.active {
    border-color: var(--primary);
    color: var(--text-primary);
}

.rarity-glow {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legendary-glow { background: var(--rarity-legendary); box-shadow: 0 0 10px var(--rarity-legendary); }
.epic-glow { background: var(--rarity-epic); box-shadow: 0 0 10px var(--rarity-epic); }
.rare-glow { background: var(--rarity-rare); box-shadow: 0 0 10px var(--rarity-rare); }
.common-glow { background: var(--rarity-common); box-shadow: 0 0 10px var(--rarity-common); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card-item {
    perspective: 1000px;
}

.card-item .card-frame {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.card-rarity-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-item.legendary .card-rarity-badge {
    background: var(--rarity-legendary);
    color: #000;
}

.card-artwork {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.stat {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.card-skill {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Heroes Section */
.heroes-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.heroes-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.hero-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    height: 280px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-avatar-large {
    font-size: 6rem;
}

.hero-class {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-info {
    padding: 1.5rem;
}

.hero-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-title {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-abilities {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-darker);
    border-radius: 6px;
    font-size: 0.875rem;
}

.ability-icon {
    font-size: 1rem;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Guide Section */
.guide-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.guide-faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
}

/* ========================================
   Download Page Styles
   ======================================== */
.download-options {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.download-character {
    text-align: center;
    margin-bottom: 3rem;
}

.download-character img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.download-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card.ios {
    border-color: #007aff;
}

.download-card.ios:hover {
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.3);
}

.download-card.android {
    border-color: #3ddc84;
}

.download-card.android:hover {
    box-shadow: 0 0 30px rgba(61, 220, 132, 0.3);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.version-info,
.size-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.system-requirements {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.system-requirements h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.system-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-requirements li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.system-requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.btn-ios {
    background: #007aff;
    color: white;
}

.btn-ios:hover {
    background: #0051d5;
    color: white;
}

.btn-android {
    background: #3ddc84;
    color: #000;
}

.btn-android:hover {
    background: #2cb86a;
    color: #000;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code-box {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-section span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Direct Download */
.direct-download {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.direct-download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.direct-option {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2rem;
}

.option-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.direct-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mirror-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Update Log */
.update-log {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.changelog {
    max-width: 800px;
    margin: 0 auto;
}

.version-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.version-item.latest {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.version-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.version-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.version-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.version-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.version-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-content li {
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.version-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Download FAQ */
.download-faq {
    padding: 6rem 0;
    background: var(--gradient-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.faq-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.faq-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.faq-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Support Section */
.support-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.support-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.support-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.support-channels {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.support-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.support-channel:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    color: var(--primary);
}

.channel-icon {
    font-size: 2rem;
}

/* ========================================
   News Page Styles
   ======================================== */
.news-categories {
    padding: 2rem 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Featured News */
.featured-news {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.featured-image {
    position: relative;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 1;
}

.featured-placeholder {
    font-size: 8rem;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-tag.update { background: rgba(255, 107, 53, 0.2); color: var(--primary); }
.category-tag.event { background: rgba(0, 212, 170, 0.2); color: var(--accent); }
.category-tag.competition { background: rgba(124, 58, 237, 0.2); color: var(--secondary); }
.category-tag.notice { background: rgba(59, 130, 246, 0.2); color: var(--rarity-rare); }

.date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.featured-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--primary-light);
}

/* News List */
.news-list-section {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.news-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.news-item .news-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-badge.update { background: var(--primary); color: white; }
.category-badge.event { background: var(--accent); color: #000; }
.category-badge.competition { background: var(--secondary); color: white; }
.category-badge.notice { background: var(--rarity-rare); color: white; }

.news-body {
    padding: 1.25rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.views {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.news-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.page-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Subscribe Section */
.subscribe-section {
    padding: 4rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.subscribe-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subscribe-text p {
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 450px;
}

.subscribe-form .form-control {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.subscribe-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.subscribe-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Social Section */
.social-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.social-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    color: var(--text-primary);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.social-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-form {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gameplay-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .overview-features {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title small {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-frame {
        width: 120px;
        height: 170px;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.25rem;
    }
}

/* ========================================
   Animation Utilities
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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