/* 全局样式 - 现代暗色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    min-height: 100vh;
}

/* 渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(240, 185, 11, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 185, 11, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 185, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 头部导航 */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(240, 185, 11, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header .logo a {
    font-size: 24px;
    font-weight: 800;
    color: #f0b90b;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo a::before {
    content: '◆';
    font-size: 20px;
    color: #f0b90b;
}

header nav a {
    color: #a0a0a0;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0b90b;
    transition: width 0.3s ease;
}

header nav a:hover {
    color: #f0b90b;
}

header nav a:hover::after {
    width: 100%;
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
    position: relative;
}

.hero h1 span {
    background: linear-gradient(135deg, #f0b90b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #808080;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.hero .stat-item {
    text-align: center;
}

.hero .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #f0b90b;
    display: block;
}

.hero .stat-label {
    font-size: 14px;
    color: #808080;
    margin-top: 5px;
}

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b90b, #ffd700, #f0b90b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 185, 11, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(240, 185, 11, 0.05);
}

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

.post-card .card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.1), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.post-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.8));
}

.post-card .card-icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(240, 185, 11, 0.2));
}

.post-card .card-body {
    padding: 25px;
}

.post-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.post-card .card-category {
    color: #f0b90b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.post-card .card-date {
    color: #666;
    font-size: 13px;
}

.post-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: #f0b90b;
}

.post-card .card-excerpt {
    color: #808080;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-card .read-more {
    color: #f0b90b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.post-card .read-more:hover {
    gap: 12px;
}

.post-card .read-time {
    color: #666;
    font-size: 13px;
}

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

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-header .article-category {
    display: inline-block;
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #808080;
    font-size: 14px;
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #c0c0c0;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 15px;
}

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

.article-content a {
    color: #f0b90b;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 185, 11, 0.3);
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-color: #f0b90b;
}

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

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

.article-content blockquote {
    border-left: 3px solid #f0b90b;
    padding: 20px 25px;
    margin: 30px 0;
    background: rgba(240, 185, 11, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #a0a0a0;
}

.article-content code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #f0b90b;
}

.article-content pre {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 标签 */
.article-tags {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.article-tags .tag {
    background: rgba(240, 185, 11, 0.08);
    color: #f0b90b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.article-tags .tag:hover {
    background: rgba(240, 185, 11, 0.15);
}

/* 分享按钮 */
.article-share {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-btn:hover {
    background: #f0b90b;
    color: #0a0a0a;
    border-color: #f0b90b;
    transform: translateY(-2px);
}

/* 导航相关文章 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-navigation a {
    color: #f0b90b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.article-navigation .prev:hover {
    gap: 5px;
}

.article-navigation .next:hover {
    gap: 15px;
}

.article-navigation .disabled {
    color: #444;
    pointer-events: none;
}

/* 页脚 */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
    margin-top: 60px;
}

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

footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .footer-brand span {
    font-size: 18px;
    font-weight: 700;
    color: #f0b90b;
}

footer .footer-brand::before {
    content: '◆';
    color: #f0b90b;
    font-size: 16px;
}

footer p {
    color: #666;
    font-size: 14px;
}

footer .footer-links {
    display: flex;
    gap: 20px;
}

footer .footer-links a {
    color: #808080;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #f0b90b;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .stats {
        flex-direction: column;
        gap: 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    header nav a {
        margin: 0 10px;
    }
}

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

.post-card {
    animation: fadeInUp 0.6s ease forwards;
}

.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.3s; }
.post-card:nth-child(5) { animation-delay: 0.4s; }
.post-card:nth-child(6) { animation-delay: 0.5s; }

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(240, 185, 11, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 185, 11, 0.5);
}

/* 选择文本 */
::selection {
    background: rgba(240, 185, 11, 0.3);
    color: #ffffff;
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}