
:root{
  --primary:#1a3c6e;--primary2:#142f57;--primary3:#e8f0fd;
  --accent:#e8321a;--accent2:#fff0ee;
  --dark:#1a1a2e;--gray:#f4f5f7;--white:#ffffff;
  --muted:#666;--border:#dde2ea;--gold:#d4a017;
  --green:#1a7a3a;--online:#4caf50;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Microsoft YaHei',Arial,sans-serif;font-size:14px;background:#e8ecf0;color:#333;line-height:1.6}
a{color:#1a3c6e;text-decoration:none}
a:hover{color:#e8321a}

/* TOP BAR */
.topbar{background:#2a2a3e;color:#aaa;font-size:12px;padding:4px 0;border-bottom:1px solid #111}
.topbar .wp{display:flex;justify-content:space-between;align-items:center}
.topbar a{color:#bbb;font-size:12px}
.topbar a:hover{color:#fff}
.topbar-left a,.topbar-right a{margin:0 6px}

/* HEADER */
.hdr{background:linear-gradient(135deg,#1a3c6e 0%,#0e2448 100%);padding:12px 0;border-bottom:3px solid #e8321a}
.hdr .wp{display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo-area{display:flex;align-items:center;gap:12px}
.logo-icon{width:52px;height:52px;background:linear-gradient(135deg,#e8321a,#c41a08);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0}
.logo-cn{font-size:22px;font-weight:700;color:#fff;letter-spacing:1px}
.logo-en{font-size:11px;color:rgba(255,255,255,.55);letter-spacing:2px;margin-top:1px}
.hdr-search{flex:1;max-width:380px}
.search-box{display:flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:6px;overflow:hidden}
.search-box input{flex:1;background:none;border:none;outline:none;padding:8px 12px;color:#fff;font-size:13px}
.search-box input::placeholder{color:rgba(255,255,255,.45)}
.search-btn{background:#e8321a;color:#fff;border:none;padding:0 16px;font-size:13px;cursor:pointer;font-weight:600}
.hdr-stat{text-align:right;color:rgba(255,255,255,.7);font-size:12px;line-height:1.9}
.hdr-stat b{color:#f0a500}

/* NAV */
.nav-bar{background:#1a3c6e;border-bottom:2px solid #e8321a}
.nav-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;padding:0 20px}
.nav-inner a{color:rgba(255,255,255,.85);padding:11px 18px;display:block;font-size:14px;font-weight:500;border-bottom:3px solid transparent;transition:all .2s}
.nav-inner a:hover,.nav-inner a.active{color:#fff;background:rgba(232,50,26,.15);border-bottom-color:#e8321a}
.nav-inner .nav-home{background:#e8321a;color:#fff!important}
.nav-inner .nav-home:hover{background:#c41a08}
.nav-badge{margin-left:auto;color:rgba(255,255,255,.5);font-size:12px;padding:11px 0}

/* WRAPPER */
.wp{max-width:1100px;margin:0 auto;padding:0 20px}

/* BREADCRUMB */
.pt{background:#fff;border:1px solid var(--border);padding:8px 16px;font-size:13px;color:#888;margin-bottom:10px;border-radius:4px}
.pt a{color:#1a3c6e}

/* STAT BAR */
.stat-bar{background:#fff;border:1px solid var(--border);border-radius:4px;padding:10px 16px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.stat-left{font-size:13px;color:#555}
.stat-left b{color:#e8321a;margin:0 3px}
.stat-right a{font-size:13px;color:#1a3c6e;margin-left:12px}
.stat-right a:hover{color:#e8321a}
.online-dot{display:inline-block;width:8px;height:8px;background:#4caf50;border-radius:50%;margin-right:4px}

/* MAIN LAYOUT */
.main-layout{display:grid;grid-template-columns:1fr 280px;gap:12px;margin:10px 0 16px}
@media(max-width:780px){.main-layout{grid-template-columns:1fr}}
.sidebar{display:flex;flex-direction:column;gap:10px}

/* FORUM CATEGORY */
.forum-cat{background:#fff;border:1px solid var(--border);border-radius:4px;margin-bottom:10px;overflow:hidden}
.cat-hd{background:linear-gradient(to right,#1a3c6e,#1e4a85);color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}
.cat-hd h2{font-size:15px;font-weight:700;letter-spacing:.5px}
.cat-hd h2 a{color:#fff}
.cat-hd .cat-mod{font-size:12px;color:rgba(255,255,255,.7)}
.cat-hd .cat-mod a{color:#f0c040}
.forum-list{}
.forum-row{display:grid;grid-template-columns:56px 1fr 110px 260px;align-items:center;padding:12px 16px;border-bottom:1px solid #f0f2f5;transition:background .15s}
.forum-row:last-child{border-bottom:none}
.forum-row:hover{background:#f8faff}
.forum-icon{width:44px;height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.forum-icon.red{background:#fff0ee}
.forum-icon.blue{background:#e8f0fd}
.forum-icon.green{background:#e8f8ee}
.forum-icon.gold{background:#fff8e0}
.fi-name{font-size:15px;font-weight:600;color:#1a3c6e;margin-bottom:3px}
.fi-name a{color:#1a3c6e}
.fi-name a:hover{color:#e8321a}
.fi-sub{font-size:12px;color:#888}
.fi-sub a{color:#888}
.fi-stat{text-align:center;font-size:12px;color:#888;line-height:2}
.fi-stat b{color:#1a3c6e;font-size:14px;display:block}
.fi-last{font-size:12px;color:#999}
.fi-last-title{color:#333;display:block;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.fi-last-title:hover{color:#e8321a}
.fi-last-meta{color:#aaa}
.fi-last-meta a{color:#1a3c6e}

/* SIDEBAR CARDS */
.sb-card{background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden}
.sb-hd{background:#1a3c6e;color:#fff;padding:9px 14px;font-size:13px;font-weight:600}
.sb-body{padding:12px 14px}
.sb-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sb-stat-item{text-align:center;background:#f4f5f7;border-radius:6px;padding:10px 6px}
.sb-stat-num{font-size:18px;font-weight:700;color:#e8321a}
.sb-stat-label{font-size:11px;color:#888;margin-top:2px}
.sb-links{display:flex;flex-direction:column;gap:1px}
.sb-links a{padding:8px 0;border-bottom:1px solid #f0f2f5;font-size:13px;color:#444;display:flex;justify-content:space-between;align-items:center}
.sb-links a:last-child{border-bottom:none}
.sb-links a:hover{color:#e8321a}
.sb-links .badge{background:#e8321a;color:#fff;font-size:11px;padding:1px 6px;border-radius:10px}
.sb-hot-list{list-style:none}
.sb-hot-list li{padding:7px 0;border-bottom:1px solid #f0f2f5;font-size:13px;display:flex;align-items:flex-start;gap:8px}
.sb-hot-list li:last-child{border-bottom:none}
.hot-num{width:18px;height:18px;border-radius:3px;background:#ddd;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.hot-num.n1{background:#e8321a}
.hot-num.n2{background:#e87c32}
.hot-num.n3{background:#d4a017}
.sb-hot-list a{color:#333;font-size:12px;line-height:1.5}
.sb-hot-list a:hover{color:#e8321a}
.sb-notice{list-style:none}
.sb-notice li{padding:6px 0;border-bottom:1px solid #f0f2f5;font-size:12px;color:#555;display:flex;align-items:center;gap:6px}
.sb-notice li:last-child{border-bottom:none}
.sb-notice .dot{width:5px;height:5px;background:#e8321a;border-radius:50%;flex-shrink:0}

/* ARTICLE PAGE */
.art-wrap{display:grid;grid-template-columns:1fr 260px;gap:16px;margin:12px 0 20px}
@media(max-width:780px){.art-wrap{grid-template-columns:1fr}}
.art-main{background:#fff;border:1px solid var(--border);border-radius:4px;padding:20px 24px}
.breadcrumb{font-size:13px;color:#888;margin-bottom:16px}
.breadcrumb a{color:#1a3c6e}
.breadcrumb .sep{margin:0 6px;color:#ccc}
.art-title{font-size:22px;font-weight:700;color:#1a1a2e;margin-bottom:16px;line-height:1.4}
.thread-meta{display:flex;gap:16px;font-size:12px;color:#999;padding:10px 0;border-top:1px solid #f0f2f5;border-bottom:1px solid #f0f2f5;margin-bottom:20px}
.thread-meta span b{color:#333}
.art-body h2{font-size:16px;font-weight:700;color:#1a3c6e;margin:20px 0 10px;padding-left:10px;border-left:3px solid #e8321a}
.art-body p{color:#444;line-height:1.9;margin-bottom:12px}
.art-body ul,.art-body ol{padding-left:20px;margin-bottom:12px}
.art-body li{color:#444;line-height:2;margin-bottom:4px}
.post-card{border:1px solid #e8ecf2;border-radius:6px;margin-bottom:14px;overflow:hidden}
.post-hd{background:#f7f9fc;padding:10px 16px;border-bottom:1px solid #eef0f5;display:flex;justify-content:space-between;align-items:center}
.post-author{font-weight:600;color:#1a3c6e;font-size:14px}
.post-author .role{font-size:11px;background:#e8321a;color:#fff;padding:1px 6px;border-radius:3px;margin-left:6px}
.post-time{font-size:12px;color:#aaa}
.post-body{padding:14px 16px;color:#444;line-height:1.9}
.post-body .highlight{background:#fff8e0;border:1px solid #f0c040;border-radius:4px;padding:10px 14px;margin:8px 0;font-size:13px}

/* THREAD LIST */
.thread-list{background:#fff;border:1px solid var(--border);border-radius:4px;margin-bottom:12px}
.tl-hd{background:#f7f9fc;padding:10px 16px;border-bottom:1px solid var(--border);display:grid;grid-template-columns:1fr 80px 80px 200px;font-size:12px;color:#888;font-weight:600}
.tl-row{padding:10px 16px;border-bottom:1px solid #f5f6f8;display:grid;grid-template-columns:1fr 80px 80px 200px;align-items:center;transition:background .15s}
.tl-row:last-child{border-bottom:none}
.tl-row:hover{background:#f8faff}
.tl-icon{display:inline-block;width:16px;height:16px;border-radius:2px;margin-right:6px;vertical-align:middle;font-size:13px}
.tl-title{font-size:14px;color:#333;display:flex;align-items:center}
.tl-title a{color:#333}
.tl-title a:hover{color:#e8321a}
.tl-title .tag{font-size:11px;padding:1px 5px;border-radius:2px;margin-right:6px;flex-shrink:0}
.tag-hot{background:#fff0ee;color:#e8321a;border:1px solid #f5c6c0}
.tag-new{background:#e8f8ee;color:#1a7a3a;border:1px solid #b8e8c6}
.tag-pin{background:#fff8e0;color:#d4a017;border:1px solid #f0d060}
.tl-num{text-align:center;font-size:13px;color:#888}
.tl-num b{color:#1a3c6e;display:block;font-size:14px}
.tl-last{font-size:12px;color:#999}
.tl-last a{color:#1a3c6e}

/* DISCLAIMER */
.disclaimer{background:#fff8e0;border:1px solid #f0d060;border-radius:4px;padding:10px 16px;font-size:12px;color:#7a5c00;margin:12px 0}

/* FOOTER */
.footer{background:#1a2035;color:#ccc;padding:20px 0 14px;margin-top:16px}
.ftr-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:20px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.1)}
@media(max-width:700px){.ftr-grid{grid-template-columns:1fr 1fr}}
.ftr-brand{font-size:18px;font-weight:700;color:#fff;margin-bottom:8px}
.ftr-desc{font-size:12px;color:#aaa;line-height:1.8;margin-bottom:10px}
.ftr-links{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ftr-links a{color:#aaa;font-size:12px}
.ftr-links a:hover{color:#fff}
.ftr-col h4{color:#ddd;font-size:13px;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.1)}
.ftr-col a{display:block;color:#aaa;font-size:12px;margin-bottom:6px}
.ftr-col a:hover{color:#fff}
.ftr-bottom{text-align:center;padding-top:14px;font-size:12px;color:#777}
.ftr-bottom a{color:#aaa}

@media(max-width:700px){
  .forum-row{grid-template-columns:44px 1fr;gap:8px}
  .fi-stat,.fi-last{display:none}
  .tl-hd,.tl-row{grid-template-columns:1fr 70px}
  .tl-num:not(:first-of-type),.tl-last{display:none}
}
