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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

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

/* 顶部导航 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

/* Hero 区域 */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.hero-content {
    text-align: center;
}

.hero-avatar {
    margin-bottom: 24px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.8;
}

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

.tag {
    padding: 6px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 通用区块 */
.section {
    padding: 60px 0;
}

.section-alt {
    background: #f9fafb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.section-more {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.section-more:hover {
    text-decoration: underline;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.article-category {
    color: #667eea;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.read-time {
    font-size: 13px;
    color: #999;
}

/* 关于我 */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #999;
}

/* 订阅区域 */
.subscribe-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    color: #fff;
}

.subscribe-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subscribe-desc {
    opacity: 0.9;
    margin-bottom: 24px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.subscribe-btn {
    padding: 12px 24px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.subscribe-btn:hover {
    opacity: 0.9;
}

/* 页脚 */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 24px;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .subscribe-box {
        padding: 32px 24px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
}
