/* ========================================
   传奇私服发布网 - 主样式表
   设计风格：暗色游戏风 + 现代卡片式
   ======================================== */

:root {
    --primary: #e8a838;
    --primary-dark: #c68a20;
    --primary-light: #f5d58a;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-section: #141428;
    --text-main: #e8e8e8;
    --text-sub: #a0a0b8;
    --text-muted: #6a6a80;
    --border: #2a2a45;
    --border-light: #333360;
    --danger: #e74c3c;
    --success: #27ae60;
    --info: #3498db;
    --purple: #9b59b6;
    --fire: #ff6b35;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 30px rgba(232,168,56,0.2);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 重置与基础 */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
    font-family: 'PingFang SC','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--text-main); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }
.container { max-width:1200px; margin:0 auto; padding:0 15px; }

/* 滚动条美化 */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:var(--bg-dark); }
::-webkit-scrollbar-thumb { background:var(--border-light); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--primary); }

/* ========== 顶部通知条 ========== */
.top-bar {
    background: linear-gradient(90deg, #1a0a2e, #2a1050, #1a0a2e);
    color: var(--primary-light);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar-date { color: var(--text-muted); }

/* ========== 头部导航 ========== */
.header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; gap: 20px;
}
.logo h1 {
    font-size: 26px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #ffd700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.logo h1 span { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.main-nav ul { display: flex; gap: 5px; }
.main-nav a {
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500;
    position: relative;
}
.main-nav a:hover, .main-nav li.active a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(232,168,56,0.4);
}

.search-box form { display: flex; }
.search-box input {
    width: 220px; padding: 8px 15px;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-main); font-size: 13px;
    outline: none; transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
    padding: 8px 15px; background: var(--primary);
    border: none; border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer; font-size: 16px;
    transition: var(--transition);
}
.search-box button:hover { background: var(--primary-dark); }

/* ========== 面包屑 ========== */
.breadcrumb {
    background: var(--bg-section); padding: 10px 0;
    font-size: 12px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary); }

/* ========== 横幅轮播 ========== */
.hero-banner { padding: 25px 0; }
.hero-banner .container {
    display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
}
.banner-main {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; height: 340px;
    box-shadow: var(--shadow);
}
.banner-slides { height: 100%; position: relative; }
.slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.6s ease;
}
.slide.active { opacity: 1; }
.slide a { display: block; height: 100%; position: relative; }
.slide-bg {
    position: absolute; inset: 0;
    transition: transform 0.6s ease;
}
.slide:hover .slide-bg { transform: scale(1.05); }
.slide-content {
    position: relative; z-index: 2;
    padding: 50px; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    background: rgba(0,0,0,0.4);
}
.slide-tag {
    display: inline-block; padding: 4px 12px;
    background: var(--primary); color: #fff;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    align-self: flex-start; margin-bottom: 15px;
}
.slide-content h2 {
    font-size: 36px; font-weight: 900; color: #fff;
    margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.slide-content p {
    font-size: 16px; color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}
.slide-btn {
    display: inline-block; padding: 10px 30px;
    background: linear-gradient(135deg, var(--primary), #ffd700);
    color: #1a1a2e; font-weight: 700; font-size: 14px;
    border-radius: 25px; align-self: flex-start;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(232,168,56,0.4);
}
.slide-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,168,56,0.6); color:#1a1a2e; }

.banner-dots {
    position: absolute; bottom: 15px; left: 50%;
    transform: translateX(-50%); z-index: 3;
    display: flex; gap: 8px;
}
.dot {
    width: 30px; height: 4px; background: rgba(255,255,255,0.3);
    border-radius: 2px; cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--primary); }

/* 侧边热服 */
.banner-side { display: flex; flex-direction: column; }
.side-card-hot {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
}
.side-card-hot h3 {
    font-size: 16px; margin-bottom: 15px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    color: var(--primary);
}
.hot-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hot-list li:last-child { border-bottom: none; }
.rank {
    width: 22px; height: 22px; line-height: 22px;
    text-align: center; background: var(--bg-dark);
    border-radius: 4px; font-size: 12px; font-weight: 700;
    color: var(--text-sub); flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg,#ff4757,#ff6b81); color:#fff; }
.rank-2 { background: linear-gradient(135deg,#ffa502,#ffbe76); color:#fff; }
.rank-3 { background: linear-gradient(135deg,#7bed9f,#2ed573); color:#fff; }
.hot-list a { flex:1; font-size:13px; }
.hot-list em {
    font-style: normal; font-size: 11px;
    color: var(--text-muted);
}

/* ========== 筛选区 ========== */
.filter-section { padding: 15px 0; background: var(--bg-section); border-bottom: 1px solid var(--border); }
.filter-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 6px 0;
}
.filter-label { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.filter-tag {
    padding: 5px 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 20px;
    font-size: 12px; color: var(--text-sub);
    transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(232,168,56,0.3);
}

/* ========== 主内容区 ========== */
.main-content { padding: 30px 0; }
.content-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 25px;
}

.section-block {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 25px; margin-bottom: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-header h2 {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.h-icon { font-size: 20px; }
.more-link { color: var(--text-muted); font-size: 13px; }
.more-link:hover { color: var(--primary); }

/* 服务器卡片网格 */
.server-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
}
.server-card {
    background: var(--bg-section); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    transition: var(--transition); position: relative;
}
.server-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.server-card .sc-thumb {
    height: 120px; position: relative; overflow: hidden;
}
.server-card .sc-thumb-bg {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-size: 40px;
}
.server-card .sc-tag {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 3px;
    font-size: 11px; font-weight: 600;
}
.sc-tag.tag-new { background: var(--danger); color:#fff; }
.sc-tag.tag-hot { background: var(--fire); color:#fff; }
.sc-tag.tag-rec { background: var(--primary); color:#fff; }
.server-card .sc-info { padding: 12px; }
.server-card .sc-title {
    font-size: 14px; font-weight: 700; margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-card .sc-meta {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-muted);
}
.server-card .sc-meta span { display: flex; align-items: center; gap: 3px; }
.server-card .sc-footer {
    padding: 0 12px 12px; display: flex; justify-content: space-between;
}
.sc-btn {
    padding: 4px 14px; border-radius: 4px; font-size: 12px;
    font-weight: 600; transition: var(--transition);
}
.sc-btn-play {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.sc-btn-play:hover { filter: brightness(1.1); color:#fff; }
.sc-btn-detail { color: var(--text-sub); border:1px solid var(--border); }
.sc-btn-detail:hover { border-color: var(--primary); color: var(--primary); }

/* 服务器列表（人气推荐） */
.server-list { display: flex; flex-direction: column; gap: 12px; }
.server-row {
    display: grid; grid-template-columns: 80px 1fr auto auto;
    gap: 15px; align-items: center;
    padding: 12px; background: var(--bg-section);
    border-radius: var(--radius); border: 1px solid var(--border);
    transition: var(--transition);
}
.server-row:hover { border-color: var(--primary); transform: translateX(3px); }
.sr-thumb {
    width: 80px; height: 60px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.sr-info h4 { font-size: 14px; margin-bottom: 4px; }
.sr-info p { font-size: 11px; color: var(--text-muted); }
.sr-meta { font-size: 12px; color: var(--text-sub); text-align: right; }
.sr-meta strong { color: var(--primary); display: block; font-size: 16px; }
.sr-btn {
    padding: 6px 16px; background: var(--primary);
    color: #fff; border-radius: 4px; font-size: 12px; font-weight: 600;
    white-space: nowrap;
}
.sr-btn:hover { background: var(--primary-dark); color:#fff; }

/* 攻略资讯网格 */
.news-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;
}
.news-card {
    display: flex; gap: 12px; padding: 12px;
    background: var(--bg-section); border-radius: var(--radius);
    border: 1px solid var(--border); transition: var(--transition);
}
.news-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.news-card .nc-thumb {
    width: 120px; height: 80px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.news-card .nc-info { flex: 1; }
.news-card .nc-title {
    font-size: 14px; font-weight: 600; margin-bottom: 6px;
    line-height: 1.4; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-meta {
    font-size: 11px; color: var(--text-muted); margin-top: 6px;
    display: flex; gap: 10px;
}

/* ========== 右侧边栏 ========== */
.content-right { display: flex; flex-direction: column; gap: 20px; }
.side-widget {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.side-widget h3 {
    font-size: 15px; margin-bottom: 15px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* 迷你日历 */
.calendar-mini { font-size: 12px; }
.cal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.cal-nav { cursor: pointer; padding: 2px 8px; color: var(--primary); }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    text-align: center;
}
.cal-day-head {
    font-weight: 600; color: var(--text-muted); padding: 4px 0;
    font-size: 11px;
}
.cal-day {
    padding: 4px 0; border-radius: 3px; cursor: pointer;
    transition: var(--transition);
}
.cal-day:hover { background: var(--border); }
.cal-day.today {
    background: var(--primary); color: #fff; font-weight: 700;
}
.cal-day.has-server { color: var(--primary); font-weight: 600; }
.cal-day.has-server::after {
    content: '•'; display: block; font-size: 8px; line-height: 4px;
    color: var(--primary);
}
.cal-day.other-month { color: var(--text-muted); opacity: 0.4; }

/* 最新开服列表 */
.latest-servers li {
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.latest-servers li:last-child { border-bottom: none; }
.latest-servers a { font-size: 13px; flex: 1; }
.latest-servers .ls-time {
    font-size: 11px; color: var(--text-muted); white-space: nowrap;
}

/* 资讯排行 */
.rank-news li {
    counter-increment: rank;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; gap: 10px; align-items: flex-start;
}
.rank-news li:last-child { border-bottom: none; }
.rank-news li::before {
    content: counter(rank);
    width: 20px; height: 20px; line-height: 20px;
    text-align: center; background: var(--bg-dark);
    border-radius: 3px; font-size: 11px; font-weight: 700;
    color: var(--text-sub); flex-shrink: 0; margin-top: 2px;
}
.rank-news li:nth-child(1)::before { background:#ff4757; color:#fff; }
.rank-news li:nth-child(2)::before { background:#ffa502; color:#fff; }
.rank-news li:nth-child(3)::before { background:#7bed9f; color:#1a1a2e; }
.rank-news a { font-size: 13px; line-height: 1.5; }
.rn-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    padding: 4px 12px; background: var(--bg-section);
    border: 1px solid var(--border); border-radius: 15px;
    font-size: 12px; color: var(--text-sub);
    transition: var(--transition);
}
.tag-cloud a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.tag-cloud a.size-l { font-size: 15px; color: var(--primary); }
.tag-cloud a.size-xl { font-size: 17px; color: var(--fire); font-weight: 600; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-links a {
    padding: 4px 10px; background: var(--bg-section);
    border-radius: 4px; font-size: 12px; color: var(--text-sub);
}
.friend-links a:hover { color: var(--primary); }

/* ========== 底部 ========== */
.footer {
    background: var(--bg-card); border-top: 2px solid var(--primary);
    padding: 40px 0 0; margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px;
}
.footer-col h4 {
    font-size: 15px; color: var(--primary);
    margin-bottom: 15px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.footer-col p { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-sub); }
.footer-col ul a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
    text-align: center; padding: 20px 0;
    border-top: 1px solid var(--border); margin-top: 30px;
    font-size: 12px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-sub); }
.footer-seo { margin-top: 5px; font-size: 11px; }

/* ========== 回到顶部 ========== */
.back-top {
    position: fixed; right: 20px; bottom: 20px;
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 20px; cursor: pointer;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========== 列表页样式 ========== */
.page-header {
    background: linear-gradient(135deg, #1a0a2e, #2a1050);
    padding: 40px 0; text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 28px; color: var(--primary);
    margin-bottom: 10px;
}
.page-header p { color: var(--text-sub); font-size: 14px; }

.server-table {
    width: 100%; background: var(--bg-card);
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
}
.server-table table { width: 100%; border-collapse: collapse; }
.server-table th {
    background: var(--bg-section); padding: 12px 15px;
    text-align: left; font-size: 13px; color: var(--text-muted);
    border-bottom: 1px solid var(--border); font-weight: 600;
}
.server-table td {
    padding: 14px 15px; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
}
.server-table tr:hover { background: var(--bg-section); }
.server-table .st-name { font-weight: 600; color: var(--primary); }
.server-table .st-tag {
    display: inline-block; padding: 2px 8px;
    border-radius: 3px; font-size: 11px; font-weight: 600;
}
.st-tag-t1 { background: rgba(231,76,60,0.2); color: #e74c3c; }
.st-tag-t2 { background: rgba(232,168,56,0.2); color: var(--primary); }
.st-tag-t3 { background: rgba(39,174,96,0.2); color: #27ae60; }
.server-table .st-btn {
    padding: 5px 16px; background: var(--primary);
    color: #fff; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.server-table .st-btn:hover { background: var(--primary-dark); color:#fff; }

/* 分页 */
.pagination {
    display: flex; justify-content: center; gap: 5px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 4px;
    font-size: 13px; color: var(--text-sub);
    transition: var(--transition);
}
.pagination a:hover, .pagination .current {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ========== 详情页 ========== */
.detail-hero {
    background: linear-gradient(135deg, #1a0a2e, #2a1050);
    padding: 40px 0; border-bottom: 1px solid var(--border);
}
.detail-hero .container {
    display: grid; grid-template-columns: 200px 1fr auto; gap: 25px; align-items: center;
}
.detail-logo {
    width: 180px; height: 180px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 70px;
    border: 2px solid var(--primary);
}
.detail-info h1 { font-size: 26px; margin-bottom: 10px; }
.detail-info .di-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.di-tag {
    padding: 3px 12px; border-radius: 15px;
    font-size: 12px; font-weight: 600;
}
.di-tag-version { background: rgba(232,168,56,0.2); color: var(--primary); }
.di-tag-status { background: rgba(39,174,96,0.2); color: #27ae60; }
.di-tag-hot { background: rgba(231,76,60,0.2); color: #e74c3c; }
.detail-info p { color: var(--text-sub); font-size: 14px; }
.di-actions { display: flex; flex-direction: column; gap: 10px; }
.di-btn {
    padding: 12px 40px; border-radius: var(--radius);
    font-size: 16px; font-weight: 700; text-align: center;
    transition: var(--transition);
}
.di-btn-play {
    background: linear-gradient(135deg, var(--primary), #ffd700);
    color: #1a1a2e;
}
.di-btn-play:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(232,168,56,0.4); color:#1a1a2e; }
.di-btn-home {
    background: transparent; border: 1px solid var(--primary);
    color: var(--primary);
}
.di-btn-home:hover { background: var(--primary); color:#fff; }

.detail-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;
    margin: 25px 0;
}
.ds-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 15px; text-align: center; border: 1px solid var(--border);
}
.ds-value { font-size: 24px; font-weight: 900; color: var(--primary); }
.ds-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.detail-content {
    display: grid; grid-template-columns: 2fr 1fr; gap: 25px;
}
.detail-main {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 25px; border: 1px solid var(--border);
}
.detail-main h3 {
    font-size: 16px; margin: 20px 0 12px;
    padding-left: 12px; border-left: 3px solid var(--primary);
}
.detail-main p { margin-bottom: 12px; color: var(--text-sub); line-height: 1.8; }
.detail-main ul { padding-left: 20px; margin-bottom: 12px; }
.detail-main ul li { list-style: disc; color: var(--text-sub); margin-bottom: 6px; }

/* ========== 攻略资讯页 ========== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
    display: grid; grid-template-columns: 200px 1fr; gap: 20px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px; border: 1px solid var(--border);
    transition: var(--transition);
}
.news-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.news-item .ni-thumb {
    width: 200px; height: 130px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 50px;
}
.news-item .ni-content h3 {
    font-size: 17px; margin-bottom: 8px; line-height: 1.4;
}
.news-item .ni-content p {
    font-size: 13px; color: var(--text-muted); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .ni-meta {
    margin-top: 10px; font-size: 12px; color: var(--text-muted);
    display: flex; gap: 15px;
}

/* 文章页 */
.article {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 35px; border: 1px solid var(--border);
    max-width: 800px; margin: 0 auto;
}
.article-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: 24px; margin-bottom: 12px; line-height: 1.4; }
.article-meta { font-size: 13px; color: var(--text-muted); }
.article-body { line-height: 1.9; font-size: 15px; color: var(--text-main); }
.article-body h2 { font-size: 18px; margin: 25px 0 12px; color: var(--primary); }
.article-body h3 { font-size: 16px; margin: 20px 0 10px; }
.article-body p { margin-bottom: 15px; text-indent: 2em; }
.article-body ul, .article-body ol { padding-left: 2em; margin-bottom: 15px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px; background: var(--bg-section);
    margin: 15px 0; border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-sub);
}

/* ========== 搜索页 ========== */
.search-header {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 25px; margin-bottom: 20px; border: 1px solid var(--border);
}
.search-header h1 { font-size: 20px; margin-bottom: 10px; }
.search-header .sh-query { color: var(--primary); font-weight: 700; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-item {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 15px 20px; border: 1px solid var(--border);
    transition: var(--transition);
}
.search-item:hover { border-color: var(--primary); }
.search-item h3 { font-size: 15px; margin-bottom: 6px; }
.search-item p { font-size: 13px; color: var(--text-muted); }

/* ========== 404 ========== */
.not-found {
    text-align: center; padding: 80px 20px;
}
.not-found h1 { font-size: 80px; color: var(--primary); }
.not-found p { font-size: 16px; color: var(--text-muted); margin: 15px 0; }
.not-found a {
    display: inline-block; padding: 10px 30px;
    background: var(--primary); color: #fff; border-radius: var(--radius);
    font-weight: 600;
}
