:root { --bg:#000; --surface:#161b22; --border:#30363d; --text:#fff; --heading:#fff; --primary:#1f6feb; --accent:#f78166; --gold:#d2991d; --green:#238636; --red:#ff5252; --radius:12px; --muted:#8b949e; }
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:'Inter',sans-serif; min-height:100vh; padding:20px; }
.layout { max-width:1300px; margin:0 auto; display:grid; grid-template-columns:220px 1fr 280px; gap:20px; align-items:start; }
.left-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 16px; position:sticky; top:20px; }
.logo { font-size:24px; font-weight:800; color:var(--accent); margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.category-list { list-style:none; } .category-list li a { display:flex; justify-content:space-between; padding:10px 12px; border-radius:8px; color:var(--muted); text-decoration:none; font-size:14px; }
.category-list li a:hover { background:#21262d; color:var(--heading); } .category-list li.active a { background:var(--primary); color:#fff; }
.middle-panel { min-width:0; }
.search-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:8px 16px; display:flex; gap:10px; margin-bottom:16px; }
.search-box input { flex:1; background:transparent; border:none; padding:10px 0; color:var(--heading); font-size:14px; outline:none; }
.search-box button { background:var(--green); border:none; padding:10px 20px; border-radius:8px; color:#fff; font-weight:600; cursor:pointer; }
.ad-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.ad-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:10px 8px; font-size:13px; color:var(--text); text-decoration:none; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-card:hover { border-color:var(--gold); }
.ad-apply { background:transparent; border:1px dashed var(--border); border-radius:8px; padding:10px 8px; font-size:13px; color:var(--muted); cursor:pointer; text-align:center; display:flex; align-items:center; justify-content:center; }
.sort-tabs { display:flex; gap:10px; margin-bottom:16px; } .sort-tabs a { flex:1; text-align:center; padding:10px; border-radius:8px; background:var(--surface); border:1px solid var(--border); color:var(--muted); text-decoration:none; font-weight:600; }
.sort-tabs a.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.post-list { display:flex; flex-direction:column; gap:12px; }
.post-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; display:flex; gap:16px; }
.post-item:hover { border-color:#58a6ff; }
.post-thumb { flex-shrink:0; width:100px; height:70px; border-radius:8px; overflow:hidden; background:#0d1117; display:flex; align-items:center; justify-content:center; color:#6e7681; font-size:24px; }
.post-thumb img { width:100%; height:100%; object-fit:cover; }
.post-content { flex:1; min-width:0; }
.post-title { font-size:16px; font-weight:600; color:var(--heading); margin-bottom:8px; word-break:break-word; }
.post-title a { color:inherit; text-decoration:none; } .post-title a:hover { text-decoration:underline; }
.post-meta { display:flex; gap:16px; color:var(--muted); font-size:12px; margin-bottom:8px; flex-wrap:wrap; }
.post-summary { font-size:14px; line-height:1.5; color:var(--text); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px; }
.post-readmore { font-size:13px; color:var(--primary); font-weight:600; text-decoration:none; }
.badge { display:inline-block; font-size:11px; font-weight:600; padding:1px 8px; border-radius:10px; margin-right:6px; }
.badge-sticky { background:var(--gold); color:#000; } .badge-paid { background:#d4006a; color:#fff; }
.delete-link { color:var(--red); font-size:13px; margin-left:10px; text-decoration:none; }
.article-detail { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.article-detail h2 { color:var(--heading); margin-bottom:16px; }
.article-detail .meta { color:var(--muted); font-size:13px; margin-bottom:20px; display:flex; gap:20px; flex-wrap:wrap; }
.article-detail .content { line-height:1.8; color:var(--text); } .article-detail .content img { max-width:100%; border-radius:8px; margin:10px 0; }
.btn-back { display:inline-block; margin-bottom:16px; color:var(--primary); font-weight:600; text-decoration:none; }
.btn-edit { background:var(--primary); color:#fff; border:none; padding:8px 20px; border-radius:6px; cursor:pointer; margin-bottom:15px; }
.btn-submit { background:var(--green); color:#fff; border:none; padding:10px 24px; border-radius:6px; cursor:pointer; margin-top:12px; }
.btn-cancel { background:#333; color:#fff; border:none; padding:10px 24px; border-radius:6px; cursor:pointer; margin-top:12px; margin-left:10px; }
#editForm { display:none; } #editEditor { height:300px; }
.pay-box { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:20px; text-align:center; }
.pay-box .price { font-size:24px; color:var(--gold); margin:10px 0; }
.btn-pay { background:var(--gold); border:none; padding:12px 30px; border-radius:30px; color:#000; font-weight:bold; cursor:pointer; }
.like-btn, .fav-btn, .tip-btn { background:none; border:none; color:var(--muted); cursor:pointer; font-size:14px; margin-right:5px; }
.like-btn.liked { color:var(--red); } .fav-btn.faved { color:var(--gold); }
.comments-section { margin-top:30px; } .comments-section h3 { color:var(--heading); margin-bottom:15px; }
.comment-form textarea { width:100%; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px; color:#fff; }
.comment-list { list-style:none; } .comment-list li { border-bottom:1px solid var(--border); padding:10px 0; }
.comment-user { color:var(--primary); font-weight:600; } .comment-time { font-size:12px; color:#6e7681; }
.reply-link { color:var(--primary); font-size:13px; margin-left:10px; cursor:pointer; }
.reply-box { display:none; margin-top:10px; }
.reply-box textarea { width:100%; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:8px; color:#fff; margin-bottom:5px; }
.pagination { display:flex; justify-content:center; gap:6px; margin-top:20px; }
.pagination a, .pagination span { padding:6px 14px; border-radius:6px; text-decoration:none; color:var(--text); background:#21262d; font-size:13px; }
.pagination a:hover { background:var(--primary); } .pagination .current { background:var(--primary); font-weight:bold; }
.right-panel { display:flex; flex-direction:column; gap:16px; position:sticky; top:20px; }
.user-card, .hot-card, .stats-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; }
.user-card h3, .hot-card h3, .stats-card h3 { color:var(--heading); font-size:16px; margin-bottom:12px; }
.btn { display:block; width:100%; text-align:center; padding:10px 0; border-radius:8px; margin-bottom:8px; font-weight:600; text-decoration:none; font-size:14px; }
.btn-primary { background:var(--primary); color:#fff; } .btn-outline { background:#21262d; color:var(--text); border:1px solid var(--border); position:relative; }
.notify-badge { background:var(--red); color:#fff; border-radius:10px; padding:2px 8px; font-size:0.8rem; margin-left:5px; }
.btn-post { display:block; width:100%; padding:14px 0; border-radius:8px; background:linear-gradient(45deg,#ff2d78,#d4006a,#8b00ff); color:#fff; font-size:18px; font-weight:bold; text-align:center; border:none; cursor:pointer; box-shadow:0 0 20px rgba(255,45,120,0.7),0 0 40px rgba(139,0,255,0.5); transition:0.3s; margin-top:12px; }
.btn-post:hover { box-shadow:0 0 30px rgba(255,45,120,1),0 0 60px rgba(139,0,255,0.8); transform:scale(1.02); }
.hot-list { list-style:none; } .hot-list li a { display:flex; justify-content:space-between; align-items:center; color:var(--muted); text-decoration:none; font-size:13px; }
.hot-list li a:hover { color:#fff; }
.stats-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #21262d; color:var(--muted); font-size:14px; } .stats-item:last-child { border-bottom:none; }
.modal-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.85); z-index:1000; justify-content:center; align-items:center; }
.modal-overlay.show { display:flex; }
.modal-box { background:#1a1a2e; border:2px solid #30363d; border-radius:14px; padding:28px; width:90%; max-width:700px; max-height:90vh; overflow-y:auto; position:relative; }
.modal-close { position:absolute; top:12px; right:18px; background:none; border:none; color:var(--muted); font-size:28px; cursor:pointer; }
.modal-box h2 { color:#fff; margin-bottom:18px; }
.modal-box select, .modal-box input[type="text"], .modal-box input[type="password"], .modal-box input[type="number"] { width:100%; padding:12px; background:#0d1117; border:1px solid var(--border); border-radius:8px; color:#fff; margin-bottom:12px; outline:none; }
.modal-box select option { background:#1a1a2e; }
.btn-submit-main { background:linear-gradient(135deg,#d4006a,#8b00ff); border:none; color:#fff; padding:12px 28px; border-radius:30px; font-weight:600; cursor:pointer; }
.error-message { color:var(--red); background:rgba(255,45,120,0.1); padding:10px 14px; border-radius:8px; margin-bottom:14px; border-left:3px solid var(--red); }
#editor { background:#fff; color:#000; border-radius:8px; margin-bottom:12px; min-height:180px; }
.tabs { display:flex; margin-bottom:20px; border-bottom:1px solid var(--border); } .tab { flex:1; text-align:center; padding:12px; cursor:pointer; color:var(--muted); font-weight:600; }
.tab.active { color:var(--primary); border-bottom:2px solid var(--primary); } .tab-content { display:none; } .tab-content.active { display:block; }
.captcha-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; } .captcha-row span { color:#fff; background:#21262d; padding:8px 12px; border-radius:6px; }
.captcha-row input { flex:1; padding:8px; background:#0d1117; border:1px solid #30363d; border-radius:6px; color:#fff; } .captcha-row a { color:var(--primary); font-size:13px; }
.back-to-top { position:fixed; bottom:30px; right:30px; width:48px; height:48px; background:var(--primary); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:999; box-shadow:0 4px 15px rgba(0,0,0,0.3); transition:0.3s; opacity:0; visibility:hidden; }
.back-to-top.show { opacity:1; visibility:visible; } .back-to-top:hover { background:#58a6ff; }
.progress-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.8); z-index:10000; justify-content:center; align-items:center; }
.progress-overlay.show { display:flex; } .progress-box { background:#1a1a2e; border:2px solid #30363d; border-radius:14px; padding:30px; text-align:center; min-width:300px; }
/* 启动画面 */
.splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.splash-screen.hidden { opacity: 0; pointer-events: none; }
.loading-text { margin-top: 20px; font-size: 1.5rem; color: #fff; letter-spacing: 2px; }
/* 通知条 */
.flash-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; padding: 15px 50px 15px 20px; text-align: center; font-size: 1.1rem; font-weight: bold; }
.flash-banner.success { background: #23d160; color: #fff; }
.flash-banner.error { background: #ff3860; color: #fff; }
.flash-banner span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 1.5rem; }
/* 打赏弹窗 */
.tip-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:10000; justify-content:center; align-items:center; }
.tip-modal.show { display:flex; }
.tip-box { background:#1a1a2e; border:2px solid var(--gold); border-radius:14px; padding:28px; width:90%; max-width:400px; text-align:center; }
.tip-box h3 { color:var(--gold); margin-bottom:15px; }
.tip-box input { width:100%; padding:12px; background:#0d1117; border:1px solid #30363d; border-radius:8px; color:#fff; margin-bottom:15px; }
.tip-box button { margin:5px; }
@media (max-width:900px) { .layout { grid-template-columns:1fr; } .left-panel, .right-panel { position:static; } .post-thumb { width:60px; height:50px; } .ad-row { grid-template-columns:repeat(2,1fr); } }
/* ========== 跑马灯 ========== */
.marquee-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 16px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 15s linear infinite;
}

.marquee-inner span {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 移动端适配 */
@media (max-width: 900px) {
    .marquee-wrapper {
        font-size: 12px;
        padding: 6px 0;
    }
}