* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; background: #111; color: #eee; }
header { padding: 18px 24px; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; }
header h1 { margin: 0; font-size: 22px; }
.sub { margin: 4px 0 0; color: #aaa; }
main { display: flex; gap: 20px; padding: 20px 24px; align-items: flex-start; }
aside { width: 320px; flex-shrink: 0; }
section { flex: 1; min-width: 0; }
.card { background: #1c1c1c; border: 1px solid #2e2e2e; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
h2 { margin: 0 0 12px; font-size: 18px; }
h3 { margin: 0 0 10px; font-size: 15px; }
label { display: block; margin-bottom: 10px; font-size: 13px; color: #ccc; }
input, textarea, select { width: 100%; margin-top: 4px; padding: 8px; border-radius: 6px; border: 1px solid #444; background: #222; color: #eee; font-size: 14px; }
textarea { resize: vertical; }
.btn { padding: 9px 14px; border-radius: 8px; border: 1px solid #444; background: #2a2a2a; color: #eee; cursor: pointer; font-size: 14px; }
.btn:hover { background: #353535; }
.btn.primary { background: #e6501a; border-color: #e6501a; }
.btn.primary:hover { background: #f2602c; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { border-color: #7a2a2a; color: #ff9a9a; }
.btn:disabled { opacity: .5; cursor: wait; }
.field { display: block; margin-bottom: 10px; font-size: 13px; color: #ccc; }
.checkRow { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #eee; cursor: pointer; margin: 0; }
.check input { width: auto; margin: 0; accent-color: #e6501a; }
select:disabled { opacity: .4; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 8px; border: 1px solid #333; background: #222; color: #eee; cursor: pointer; font-size: 14px; }
.tab:hover { background: #2a2a2a; }
.tab.active { border-color: #e6501a; background: #2c1d16; }
.loginCard { max-width: 480px; margin: 40px auto; text-align: center; }
.userAvatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.hidden { display: none !important; }
.muted { color: #aaa; font-size: 13px; }
.preview { max-width: 120px; border-radius: 8px; margin: 6px 0 10px; display: block; }
.chan { display: block; width: 100%; text-align: left; padding: 10px; margin-bottom: 8px; border-radius: 8px; border: 1px solid #333; background: #222; color: #eee; cursor: pointer; }
.chan.active { border-color: #e6501a; background: #2c1d16; }
.chan b { display: block; }
.chan span { font-size: 12px; color: #aaa; }
img.banner { max-width: 480px; width: 100%; border-radius: 8px; cursor: zoom-in; }
img.avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 22px; font-size: 34px; color: #fff; cursor: pointer; line-height: 1; }
img.thumb { width: 100%; border-radius: 8px; cursor: pointer; }
.thumbGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.titleItem { display: flex; gap: 8px; align-items: center; background: #222; border: 1px solid #333; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.titleItem span { flex: 1; }
.descBox { background: #222; border: 1px solid #333; border-radius: 8px; padding: 12px; white-space: pre-wrap; font-size: 14px; }
.copyBtn { padding: 4px 9px; font-size: 12px; border-radius: 6px; border: 1px solid #444; background: #2a2a2a; color: #eee; cursor: pointer; }
.topicItem { background: #222; border: 1px solid #333; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.topicItem p { margin: 6px 0; font-size: 14px; }
.topicItem .score { font-size: 13px; color: #ffcf5c; white-space: nowrap; }
.topicItem a { color: #7db8ff; }
.warn { background: #3a2c10; border: 1px solid #7a5c14; color: #ffd98a; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #e6501a; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 10; }
@media (max-width: 800px) { main { flex-direction: column; } aside { width: 100%; } }
