/* ========================================
   梯子游戏数据资讯中心 - 主样式表
   配色：深海蓝 + 黑灰 + 蓝紫渐变 + 亮青点缀
   ======================================== */

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

:root {
    --primary: #0a1628;
    --primary-light: #0f1f3a;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --accent-dim: #0099bb;
    --gradient-start: #0a1628;
    --gradient-end: #2d1b4e;
    --gradient-mid: #16213e;
    --text-primary: #e0e6ed;
    --text-secondary: #8892b0;
    --text-muted: #5a6a80;
    --card-bg: #111827;
    --card-bg-hover: #1a2332;
    --border-color: #1e2d3d;
    --border-light: #2a3a4d;
    --success: #00e676;
    --warning: #ffb74d;
    --danger: #ff5252;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景渐变装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(45, 27, 78, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--primary) 100%);
    z-index: -1;
    pointer-events: none;
}

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

a:hover {
    color: var(--accent-dim);
}

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

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

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
}

.logo-area {
    flex-shrink: 0;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.12);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
    background: rgba(15, 31, 58, 0.5);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-bar a {
    color: var(--text-secondary);
}

.breadcrumb-bar a:hover {
    color: var(--accent);
}

.breadcrumb-bar .sep {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 80px - 280px);
    padding: 40px 0;
}

/* ===== Banner (首页) ===== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(45, 27, 78, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* 网格背景 */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag {
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    transition: var(--transition);
}

.hero-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== 数据统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ===== 内容区域布局 ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ===== 文章卡片 ===== */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    margin-left: 10px;
    border-radius: 2px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-dim);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.article-card-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

.article-card-body {
    flex: 1;
    min-width: 0;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-primary);
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-cat {
    padding: 2px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: var(--accent);
    font-size: 0.75rem;
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--accent);
}

/* 关键词标签云 */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 6px 12px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-block;
}

.keyword-tag:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-2px);
}

.keyword-tag.hot {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    color: var(--accent);
}

.keyword-tag.hot::before {
    content: '🔥';
    margin-right: 4px;
    font-size: 0.75rem;
}

/* 热门文章列表 */
.hot-article-list {
    list-style: none;
}

.hot-article-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-article-list li:last-child {
    border-bottom: none;
}

.hot-article-list a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: block;
    transition: var(--transition);
    line-height: 1.5;
}

.hot-article-list a:hover {
    color: var(--accent);
}

.hot-article-list .rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    background: var(--border-color);
    color: var(--text-muted);
}

.hot-article-list li:nth-child(1) .rank { background: var(--accent); color: var(--primary); }
.hot-article-list li:nth-child(2) .rank { background: rgba(0, 212, 255, 0.7); color: var(--primary); }
.hot-article-list li:nth-child(3) .rank { background: rgba(0, 212, 255, 0.5); color: var(--primary); }

/* ===== 栏目页 ===== */
.category-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.category-header h1 {
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.category-header p {
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 文章详情页 ===== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-summary {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--card-bg);
    border-left: 3px solid var(--accent-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* FAQ 区域 */
.faq-section {
    margin: 40px 0;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.faq-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-title i {
    color: var(--accent);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.faq-question::before {
    content: 'Q:';
    color: var(--accent);
    font-weight: 800;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-secondary);
    padding-left: 24px;
    line-height: 1.8;
    font-size: 0.92rem;
}

.faq-answer::before {
    content: 'A:';
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--accent-dim);
    background: var(--card-bg-hover);
}

.related-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.5;
}

.related-card-title a {
    color: var(--text-primary);
}

.related-card-title a:hover {
    color: var(--accent);
}

.related-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-banner {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .article-card {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .article-card-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .article-detail-title {
        font-size: 1.4rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-header {
        padding: 28px 20px;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-tags {
        gap: 6px;
    }
    
    .hero-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

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

.article-card,
.stat-card,
.sidebar-card {
    animation: fadeInUp 0.5s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dim);
}

/* ===== 选中文字 ===== */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}
