:root {
    --primary-color: #5D4E37;
    --secondary-color: #8B775B;
    --accent-color: #FF8C42;
    --accent-light: #FFB347;
    --background-color: #FDF6E3;
    --background-gradient-start: #FFF8F0;
    --background-gradient-mid: #FDF6E3;
    --background-gradient-end: #F5EBD8;
    --text-color: #5D4E37;
    --light-text: #FFFFFF;
    --card-bg: #FFFBF5;
    --hover-color: #FFB347;
    --nav-bg: #FFFBF5;
    --btn-bg: #FF8C42;
    --btn-hot: #FF6B35;
    --btn-new: #2ecc71;
    --border-color: rgba(255, 180, 100, 0.15);
    --shadow-color: rgba(139, 119, 91, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-mid) 50%, var(--background-gradient-end) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航 - Eggshell Theme */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.95) 0%, rgba(255, 245, 230, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 180, 100, 0.2);
    box-shadow: 0 4px 20px rgba(139, 119, 91, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 按钮样式 - Eggshell Theme */
.btn {
    display: inline-block;
    color: #8B775B;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 180, 100, 0.1);
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    color: #5D4E37;
    background: rgba(255, 180, 100, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 180, 100, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn.active {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn.hot { 
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn.new { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #8B775B;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 180, 100, 0.15);
    color: #5D4E37;
}

/* 区块样式 - Eggshell Theme */
.section {
    background: linear-gradient(145deg, #FFFBF5 0%, #FFF8F0 100%);
    margin-bottom: 20px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(139, 119, 91, 0.06),
        0 2px 8px rgba(139, 119, 91, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 180, 100, 0.12);
    animation: fadeIn 0.6s ease-out;
}

.section.full-width {
    padding: 0;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h1 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5D4E37 0%, #8B775B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #5D4E37;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    color: #FF8C42;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(145deg, #FFFBF5 0%, #FFF8F0 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 180, 100, 0.1);
    box-shadow: 
        0 4px 15px rgba(139, 119, 91, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(139, 119, 91, 0.12),
        0 0 30px rgba(255, 180, 100, 0.15);
    border-color: rgba(255, 180, 100, 0.3);
}

.game-card-image {
    aspect-ratio: 16/9;
    background: #2a2a4a;
    position: relative;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

/* 搜索框 */
.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(255, 180, 100, 0.3);
    border-radius: 50px;
    font-size: 16px;
    background: #FFFBF5;
    color: #5D4E37;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    outline: none;
    border-color: #FF8C42;
    box-shadow: 
        0 0 0 4px rgba(255, 140, 66, 0.15),
        0 10px 40px rgba(139, 119, 91, 0.1);
}

.search-input::placeholder {
    color: #A09078;
}

/* 功能卡片 */
.feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(145deg, #FFFBF5 0%, #FFF8F0 100%);
    border-radius: 20px;
    text-decoration: none;
    border: 2px solid rgba(255, 180, 100, 0.15);
    box-shadow: 0 10px 40px rgba(139, 119, 91, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(139, 119, 91, 0.12),
        0 0 30px rgba(255, 180, 100, 0.1);
    border-color: rgba(255, 180, 100, 0.4);
}

.feature-card:hover h3 {
    color: #FF8C42;
}

.feature-card .arrow-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .arrow-icon {
    transform: translateX(5px);
    color: #FFB347;
}

/* Stand 卡片 */
.stand-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stand-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(139, 119, 91, 0.12),
        0 0 30px rgba(255, 180, 100, 0.15);
}

.stand-card:hover .stand-icon {
    transform: scale(1.1);
}

.stand-icon {
    transition: transform 0.3s ease;
}

/* Tier 项目 */
.tier-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tier-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 119, 91, 0.1);
}

/* 指南卡片 */
.guide-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(139, 119, 91, 0.1);
    border-color: rgba(255, 180, 100, 0.3) !important;
}

.guide-card:hover h3 {
    color: #FF8C42;
}

/* Code 项目 */
.code-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.code-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.1);
}

/* FAQ 项目 */
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 10px 40px rgba(139, 119, 91, 0.08);
    border-color: rgba(255, 180, 100, 0.25) !important;
}

/* Step 卡片 */
.step-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 119, 91, 0.1);
}

.step-number {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

/* Play按钮 */
.play-btn {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.play-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 0.5s ease;
}

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

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

.play-btn:active {
    transform: scale(0.98);
}

/* 页脚 */
.site-footer {
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
    background: linear-gradient(180deg, #FFFBF5 0%, #FFF5E6 100%);
    border-top: 1px solid rgba(255, 180, 100, 0.2);
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #8B775B;
    text-decoration: none;
    margin: 0 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #FF8C42;
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 13px;
    color: #A09078;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 游戏区域 */
.game-container {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

.game-main {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.game-iframe {
    position: relative;
    flex-grow: 1;
    border-radius: 16px;
    overflow: hidden;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF0D4 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 16px;
}

.game-card-inner {
    background: linear-gradient(145deg, #FFFBF5 0%, #FFF8F0 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 
        0 10px 40px rgba(139, 119, 91, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 180, 100, 0.15);
}

.game-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.game-iframe iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 16px;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 180, 100, 0.1);
    border-top: 1px solid rgba(255, 180, 100, 0.15);
    border-radius: 0 0 16px 16px;
}

.game-title {
    font-size: 16px;
    margin: 0;
    color: #5D4E37;
    font-weight: 600;
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fullscreen-btn {
    background: rgba(255, 180, 100, 0.15);
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px;
    color: #8B775B;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(255, 180, 100, 0.25);
    color: #5D4E37;
    transform: scale(1.1);
}

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

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .section {
        padding: 25px;
    }
    
    .top-nav {
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #FFFBF5 0%, #FFF5E6 100%);
        flex-direction: column;
        padding: 20px;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 180, 100, 0.2);
        box-shadow: 0 10px 40px rgba(139, 119, 91, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .game-container {
        flex-direction: column;
    }
    
    .game-iframe iframe {
        min-height: 400px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-button i {
    margin-right: 8px;
}

.facebook { background: linear-gradient(135deg, #3b5998 0%, #4c70ba 100%); }
.twitter { background: linear-gradient(135deg, #1da1f2 0%, #4db8f5 100%); }
.linkedin { background: linear-gradient(135deg, #0077b5 0%, #0099d8 100%); }
.email { background: linear-gradient(135deg, #7d7d7d 0%, #999 100%); }
.whatsapp { background: linear-gradient(135deg, #25d366 0%, #4be884 100%); }
.reddit { background: linear-gradient(135deg, #ff4500 0%, #ff6b3d 100%); }

/* 特性图片 */
.feature-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(139, 119, 91, 0.15);
}

/* 链接 */
a {
    text-decoration: none;
    color: #FF8C42;
    transition: color 0.3s;
}

a:hover {
    color: #FF6B35;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    margin: 25px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 119, 91, 0.12);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0e6d3 25%, #e8dcc8 50%, #f0e6d3 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-s {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.badge-a {
    background: #A09078;
    color: white;
}

.badge-b {
    background: #8B7355;
    color: white;
}

.badge-active {
    background: #2ecc71;
    color: white;
}

/* 代码块 */
code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: rgba(255, 140, 66, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    color: #FF8C42;
    font-size: 0.9em;
}

/* 列表样式 */
ul, ol {
    padding-left: 20px;
    color: #8B775B;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 引用块 */
blockquote {
    border-left: 4px solid #FF8C42;
    padding-left: 20px;
    margin: 20px 0;
    color: #8B775B;
    font-style: italic;
}

/* 分隔线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 180, 100, 0.3), transparent);
    margin: 30px 0;
}

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

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #5D4E37;
    color: white;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}
