/* --- 1. 全局重置 --- */
* { box-sizing: border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background-color: #f9f9f9; color: #333; margin: 0; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- 2. 导航栏 --- */
.site-header { 
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    padding: 20px 0; position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.3s ease;
}
.site-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff9ff3, #feca57);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; text-decoration: none; color: #333; text-transform: uppercase; }
.logo a span { color: #ff6b6b; }
.nav-links a { 
    margin-left: 30px; text-decoration: none; color: #555; font-weight: 500; 
    position: relative; display: inline-block; transition: color 0.3s; 
    font-size: 0.95rem; text-transform: uppercase;
}
.nav-links a:hover { color: #ff6b6b; }
.nav-links a::after {
    content: ''; display: block; width: 0; height: 2px; background: #ff6b6b;
    position: absolute; bottom: -8px; left: 0; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

/* --- 3. 首页卡片与列表 (核心更新) --- */
.category-section { margin-bottom: 50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.more-link { color: #ff6b6b; text-decoration: none; font-size: 0.95rem; font-weight: bold; transition: color 0.3s; }
.more-link:hover { color: #333; }

/* 网格布局 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 通用卡片动效基类 */
.post-card { 
    background: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    overflow: hidden; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0,0,0,0.15); }

/* 图片悬停效果 */
.card-thumb { overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .card-thumb img { transform: scale(1.08); }

/* 大卡片 (Hero) */
.hero-card { grid-column: span 2; }
.hero-card .card-thumb { height: 350px; }
.hero-card .card-content { padding: 15px; }
.hero-card h3 { font-size: 1.6rem; margin: 10px 0; }

/* 小卡片 (Horizontal) */
.horizontal-card { grid-column: span 1; display: flex; align-items: center; padding: 10px; gap: 15px; }
.horizontal-card .card-thumb { width: 100px; height: 100px; flex-shrink: 0; }
.horizontal-card h3 { font-size: 1rem; margin: 0; }
.horizontal-card .card-excerpt { display: none; }

/* --- 4. 其他模块样式 (保持不变) --- */
.list-container { max-width: 800px; margin: 40px auto; }
.post-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.post-thumb { width: 200px; height: 120px; flex-shrink: 0; overflow: hidden; border-radius: 8px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-thumb img:hover { transform: scale(1.05); }
.post-info h2 { margin: 0 0 10px 0; font-size: 1.4rem; }
.post-info h2 a { text-decoration: none; color: #333; }
.post-meta { font-size: 0.8rem; color: #999; margin-top: 10px; }
.pagination { margin-top: 40px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.pagination a { padding: 8px 16px; background: #fff; border: 1px solid #ddd; text-decoration: none; color: #333; border-radius: 4px; }

.post-detail { max-width: 800px; margin: 40px auto; padding: 20px; background: #fff; border-radius: 12px; }
.detail-header { margin-bottom: 30px; text-align: center; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 6px; transition: 0.3s; }
.gallery-item img:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.site-footer { background-color: #222; color: #ccc; padding: 40px 0; margin-top: 60px; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-links h4, .footer-brand h3 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.footer-links a { display: block; color: #ccc; text-decoration: none; margin-bottom: 8px; transition: color 0.3s; }
.footer-links a:hover { color: #ff6b6b; }
.footer-copyright { text-align: right; border-top: 1px solid #444; padding-top: 15px; width: 100%; }

@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .nav-links a { margin-left: 0; margin: 5px 10px; }
    .post-item, .horizontal-card { flex-direction: column; align-items: flex-start; }
    .horizontal-card .card-thumb { width: 100%; height: 180px; }
    .post-grid { grid-template-columns: 1fr; }
    .hero-card { grid-column: span 1; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-copyright { text-align: center; }
}