/* 
 * Clash APK 网站样式
 * 模仿 clashapk.com 的设计风格
 */

/* Google Fonts - 使用类似的字体 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@400;600;700&display=swap');

/* CSS 变量 */
:root {
    --color-bg: #000000;
    --color-bg-secondary: #111111;
    --color-bg-card: #1a1a1a;
    --color-text: #ffffff;
    --color-text-secondary: #cccccc;
    --color-text-muted: #888888;
    --color-accent: #00a8ff;
    --color-accent-hover: #0090dd;
    --color-green: #4cd137;
    --color-orange: #e67e22;
    --color-border: #333333;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ==================== Header ==================== */
.site-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-text);
    letter-spacing: 2px;
    text-decoration: none;
}

.site-title span {
    color: var(--color-accent);
}

/* 导航 */
.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-accent);
}

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

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 60vh;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.5) 50%, 
        rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-text-secondary);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-text);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 下载按钮 ==================== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-green) 0%, #45b32d 100%);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 2px;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(76, 209, 55, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 209, 55, 0.4);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

.download-btn-secondary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0090dd 100%);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

.download-btn-secondary:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4);
}

/* ==================== 游戏信息区域 ==================== */
.game-info-section {
    background: var(--color-bg-secondary);
    padding: 60px 0;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.game-meta-item {
    text-align: center;
}

.game-meta-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.game-meta-value {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
}

.update-notice {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.update-notice strong {
    color: var(--color-text);
}

/* ==================== 游戏卡片列表 ==================== */
.games-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-text);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 游戏卡片 */
.game-card {
    background: var(--color-bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.game-card-image {
    position: relative;
    height: 160px;
    max-height: 160px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    max-height: 160px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.game-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.game-card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

.game-card-btn {
    display: inline-block;
    background: var(--color-green);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 内容区域 ==================== */
.content-section {
    padding: 60px 0;
    background: var(--color-bg-secondary);
}

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

.content-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-text);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.content-text {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text h2, .content-text h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    letter-spacing: 1px;
    margin: 40px 0 20px;
    font-size: 28px;
}

.content-text h2 {
    font-size: 32px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
}

.content-text h3 {
    font-size: 22px;
    color: var(--color-accent);
}

.content-text ul, .content-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content-text li {
    margin-bottom: 10px;
}

.content-text hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-text table th,
.content-text table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.content-text table th {
    background: var(--color-bg-card);
    color: var(--color-text);
    font-weight: 600;
}

.content-text table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.content-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-text a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

.content-text strong {
    color: var(--color-text);
}

.content-text blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==================== 侧边栏游戏列表 ==================== */
.sidebar-games {
    background: var(--color-bg-card);
    padding: 30px;
    border-radius: 15px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

.sidebar-games-list {
    list-style: none;
}

.sidebar-games-list li {
    border-bottom: 1px solid var(--color-border);
}

.sidebar-games-list li:last-child {
    border-bottom: none;
}

.sidebar-games-list a {
    display: block;
    padding: 12px 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.sidebar-games-list a:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

/* ==================== Footer ==================== */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-friends {
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-friends .friends-title {
    color: var(--color-text-muted);
    margin-right: 10px;
}

.footer-friends a {
    color: var(--color-text-secondary);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

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

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

/* ==================== 分享按钮 ==================== */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .download-btn {
        font-size: 18px;
        padding: 15px 35px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-meta {
        gap: 20px;
    }
    
    .game-meta-value {
        font-size: 18px;
    }
}

/* 移动端菜单展开 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-border);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
