/* --- 核心变量（全局统一） --- */
:root {
    --primary: #00FFC2; 
    --bg: #0D0D0D;      
    --card-bg: #1A1A1B; 
    --text: #E0E0E0;
    --text-dim: #999;
    --border: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- 头部导航 (首页原版) --- */
header { padding: 15px 0; border-bottom: 1px solid #222; position: sticky; top: 0; background: rgba(13,13,13,0.9); backdrop-filter: blur(10px); z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo svg { width: 130px; height: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* --- 页面标题区 --- */
.page-banner { padding: 80px 0 40px; text-align: left; border-bottom: 1px solid var(--border); margin-bottom: 50px; background: linear-gradient(to right, #111, var(--bg)); }
.page-banner h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.page-banner p { color: var(--primary); font-size: 0.9rem; letter-spacing: 2px; }

/* --- 资讯布局布局：左侧列表，右侧边栏 --- */
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; margin-bottom: 80px; }

/* 文章条目样式 */
.news-post-item { display: flex; gap: 30px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #1a1a1a; transition: 0.3s; }
.news-post-item:hover .post-title { color: var(--primary); }

.post-date { flex-shrink: 0; width: 80px; text-align: center; border-right: 1px solid var(--border); padding-right: 20px; }
.post-date .day { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.post-date .month { font-size: 0.75rem; color: #555; text-transform: uppercase; }

.post-info { flex-grow: 1; }
.post-category { font-size: 0.75rem; color: var(--primary); background: rgba(0,255,194,0.1); padding: 2px 8px; border-radius: 2px; margin-bottom: 12px; display: inline-block; }
.post-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 15px; display: block; line-height: 1.4; }
.post-excerpt { color: var(--text-dim); font-size: 0.95rem; line-height: 1.8; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 侧边栏样式 */
.sidebar-section { margin-bottom: 40px; }
.sidebar-title { font-size: 1rem; color: #fff; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { background: var(--card-bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; color: var(--text-dim); transition: 0.3s; }
.tag-item:hover { border-color: var(--primary); color: var(--primary); }

.hot-list { list-style: none; }
.hot-list li { margin-bottom: 15px; font-size: 0.9rem; border-bottom: 1px dashed #222; padding-bottom: 10px; }
.hot-list li a:hover { color: var(--primary); }

/* --- 底部 (首页原版) --- */
footer { padding: 80px 0 40px; border-top: 1px solid #222; margin-top: 100px; background: #0a0a0a; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-links h5 { color: var(--primary); margin-bottom: 20px; font-size: 1rem; }
.links-wrap { display: flex; gap: 30px; }
.links-wrap a { color: var(--text-dim); font-size: 0.85rem; }
.links-wrap a:hover { color: var(--primary); }
.copyright { border-top: 1px solid #1a1a1a; text-align: center; font-size: 0.8rem; color: #555; padding-top: 30px; }

/* --- 响应式适配 (WAP) --- */
@media (max-width: 992px) {
    .news-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; } /* 移动端暂时隐藏侧边栏以保证资讯可读性 */
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .post-date { display: none; } /* 移动端精简日期显示 */
    .news-post-item { flex-direction: column; gap: 10px; }
    .page-banner h1 { font-size: 1.8rem; }
    .footer-top { flex-direction: column; text-align: center; }
    .links-wrap { justify-content: center; flex-wrap: wrap; }
}