/* 数字货币博客样式 - 深蓝金色专业配色 */
:root {
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --secondary-color: #fbbf24;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-gradient: linear-gradient(135deg, #1e40af 0%, #fbbf24 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.7;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 1.8rem; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-primary); }

/* 英雄区 */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

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

/* 分类区 */
.categories-section { padding: 40px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.category-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover { transform: translateY(-4px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2); }

.category-icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-name { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.category-count { font-size: 0.9rem; color: var(--text-muted); }

/* 文章区 */
.articles-section { padding: 40px 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 50px; height: 3px; background: var(--accent-gradient); border-radius: 2px; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.article-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.article-content { padding: 20px; }
.category-tag { font-size: 0.85rem; color: var(--secondary-color); font-weight: 500; margin-bottom: 8px; display: block; }
.article-content h2 a { color: var(--text-primary); text-decoration: none; font-size: 1.2rem; }
.article-content h2 a:hover { color: var(--primary-color); }
.article-content p { color: var(--text-secondary); margin: 12px 0; font-size: 0.95rem; }
.meta { color: var(--text-muted); font-size: 0.85rem; }

/* 外链区 */
.links-section { padding: 40px 0; background: var(--surface-color); }
.links-section h3 { text-align: center; margin-bottom: 30px; font-size: 1.5rem; }
.links-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.links-grid a {
    padding: 8px 16px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.links-grid a:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* 页脚 */
.footer { padding: 40px 0; background: var(--surface-color); border-top: 1px solid var(--border-color); }
.footer-container { text-align: center; }
.footer p { color: var(--text-muted); }

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .nav-links { display: none; }
    .categories-grid, .articles-grid { grid-template-columns: 1fr; }
}