:root { --bg:#0b1120; --surface:#131c31; --border:#26334d; --primary:#38bdf8; --primary-dark:#0284c7; --accent:#a78bfa; --teal:#2dd4bf; --text:#f1f5f9; --muted:#94a3b8; --success:#34d399; --danger:#f87171; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }
header { background:rgba(11,17,32,0.92); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.nav-inner { max-width:1120px; margin:0 auto; padding:1rem 1.5rem; display:flex; justify-content:space-between; align-items:center; }
.brand { font-size:1.25rem; font-weight:700; color:var(--text); text-decoration:none; }
.brand span { color:var(--primary); }
.hero { max-width:1120px; margin:0 auto; padding:3rem 1.5rem 2rem; }
.badge { display:inline-block; background:rgba(56,189,248,0.12); color:var(--primary); border:1px solid rgba(56,189,248,0.3); padding:0.3rem 0.85rem; border-radius:999px; font-size:0.8rem; font-weight:600; margin-bottom:1rem; }
.hero h1 { font-size:clamp(1.85rem,4vw,2.75rem); font-weight:800; line-height:1.15; margin-bottom:0.85rem; max-width:780px; }
.hero p { color:var(--muted); font-size:1.05rem; max-width:680px; margin-bottom:1.75rem; }
.search-bar { display:flex; max-width:620px; margin-bottom:1rem; }
.search-bar input { flex:1; background:var(--surface); border:1px solid var(--border); color:var(--text); padding:0.8rem 1rem; border-radius:8px; font-size:0.95rem; }
.tab-bar { max-width:1120px; margin:0 auto; padding:0 1.5rem; display:flex; gap:0.5rem; border-bottom:1px solid var(--border); overflow-x:auto; }
.tab-btn { background:transparent; border:none; border-bottom:3px solid transparent; color:var(--muted); padding:0.9rem 1.25rem; font-size:0.95rem; font-weight:600; cursor:pointer; white-space:nowrap; display:flex; align-items:center; gap:0.5rem; }
.tab-btn.active { color:var(--primary); border-bottom-color:var(--primary); }
.tab-pill { background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:0.75rem; padding:0.1rem 0.5rem; border-radius:999px; }
main { max-width:1120px; margin:0 auto; padding:2.5rem 1.5rem 4rem; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.section-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:1.5rem; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:1.25rem; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:1.5rem; display:flex; flex-direction:column; justify-content:space-between; }
.card-tag { font-size:0.75rem; font-weight:700; text-transform:uppercase; color:var(--accent); margin-bottom:0.5rem; }
.card-tag.provider { color:var(--teal); }
.card-tag.community { color:var(--success); }
.card h3 { font-size:1.1rem; margin-bottom:0.5rem; }
.card-authors { font-size:0.85rem; color:var(--muted); margin-bottom:0.85rem; }
.card-summary { font-size:0.95rem; color:#cbd5e1; margin-bottom:1.25rem; white-space:pre-line; }
.card-footer { border-top:1px solid var(--border); padding-top:0.85rem; display:flex; justify-content:space-between; font-size:0.85rem; }
.doi-link { color:var(--primary); text-decoration:none; font-weight:600; }
.submit-box { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:2rem; max-width:760px; }
textarea { width:100%; min-height:140px; background:var(--bg); border:1px solid var(--border); border-radius:8px; color:var(--text); padding:1rem; font-family:inherit; margin:1rem 0; }
button.btn-primary { background:var(--primary-dark); color:#fff; border:none; padding:0.8rem 1.5rem; border-radius:8px; font-weight:600; cursor:pointer; }
footer { border-top:1px solid var(--border); padding:2rem 1.5rem; text-align:center; color:var(--muted); font-size:0.85rem; }
.empty-state { background:var(--surface); border:1px dashed var(--border); border-radius:10px; padding:2rem; text-align:center; color:var(--muted); grid-column:1/-1; }
.filter-row { display:flex; gap:0.75rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.filter-row select { background:var(--surface); border:1px solid var(--border); color:var(--text); padding:0.65rem 1rem; border-radius:8px; font-size:0.9rem; cursor:pointer; }
.filter-row select:focus { outline:2px solid var(--primary); border-color:transparent; }
.pager { display:flex; justify-content:center; align-items:center; gap:1rem; margin-top:2rem; }
.pager button { background:var(--surface); border:1px solid var(--border); color:var(--text); padding:0.55rem 1.1rem; border-radius:8px; font-weight:600; cursor:pointer; }
.pager button:hover:not(:disabled) { border-color:var(--primary); color:var(--primary); }
.pager button:disabled { opacity:0.4; cursor:not-allowed; }
.pager span { color:var(--muted); font-size:0.9rem; }
.pub-date { color:var(--primary); font-weight:600; margin-right:0.4rem; }
.bbs-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; margin:1rem 0 0.75rem; }
.bbs-form-grid select, .bbs-input { background:var(--bg); border:1px solid var(--border); color:var(--text); padding:0.75rem 1rem; border-radius:8px; font-size:0.95rem; width:100%; }
.bbs-thread { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:1.4rem; margin-bottom:1rem; }
.bbs-thread-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; flex-wrap:wrap; margin-bottom:0.65rem; }
.bbs-meta { font-size:0.82rem; color:var(--muted); margin-bottom:0.75rem; }
.bbs-body { color:#e2e8f0; white-space:pre-line; margin-bottom:1rem; }
.bbs-replies { border-top:1px solid var(--border); margin-top:1rem; padding-top:1rem; padding-left:1rem; border-left:2px solid var(--primary); }
.bbs-reply-item { background:var(--bg); padding:0.85rem 1rem; border-radius:8px; margin-bottom:0.65rem; }
.pager { display:flex; justify-content:center; align-items:center; gap:0.45rem; flex-wrap:wrap; margin-top:2rem; }
.pager-top { margin-top:0; margin-bottom:1.25rem; justify-content:flex-end; }
.pager button { background:var(--surface); border:1px solid var(--border); color:var(--text); padding:0.45rem 0.85rem; border-radius:8px; font-size:0.88rem; font-weight:600; cursor:pointer; }
.pager button:hover:not(:disabled) { border-color:var(--primary); color:var(--primary); }
.pager button.active-page { background:var(--primary-dark); border-color:var(--primary); color:#fff; }
.pager button:disabled { opacity:0.4; cursor:not-allowed; }
.pager .pager-ellipsis { color:var(--muted); padding:0 0.25rem; }
.back-to-top { position:fixed; bottom:1.5rem; right:1.5rem; background:var(--primary-dark); color:#fff; border:1px solid var(--primary); padding:0.65rem 1rem; border-radius:999px; font-weight:700; font-size:0.88rem; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,0.4); opacity:0; pointer-events:none; transition:opacity 0.2s; z-index:90; }
.back-to-top.visible { opacity:1; pointer-events:auto; }
.age-gate-overlay { position:fixed; inset:0; background:rgba(7,11,22,0.97); backdrop-filter:blur(12px); z-index:9999; display:flex; align-items:center; justify-content:center; padding:1.5rem; }
.age-gate-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:2.25rem; max-width:480px; text-align:center; }
.age-gate-card h2 { margin-bottom:0.75rem; font-size:1.5rem; }
.age-gate-card p { color:var(--muted); margin-bottom:1.5rem; font-size:0.95rem; }
.age-gate-actions { display:flex; gap:0.75rem; justify-content:center; flex-wrap:wrap; }
.policy-banner { background:rgba(56,189,248,0.08); border:1px solid rgba(56,189,248,0.28); color:#cbd5e1; padding:0.9rem 1.2rem; border-radius:10px; font-size:0.9rem; margin-bottom:1.5rem; }
.policy-banner strong { color:var(--primary); }
.ticker-section { max-width:1280px; margin:0 auto 1.75rem; padding:0 1.5rem; }
.ticker-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.65rem; }
.ticker-label { font-size:0.85rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--primary); }
.ticker-wrap { overflow:hidden; background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:0.9rem 0; position:relative; }
.ticker-track { display:flex; width:max-content; gap:1.25rem; animation:tickerScroll 45s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state:paused; }
.ticker-item { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:0.75rem 1.1rem; width:340px; flex-shrink:0; display:flex; flex-direction:column; justify-content:space-between; }
.ticker-item h4 { font-size:0.92rem; line-height:1.35; margin:0.3rem 0 0.5rem; color:var(--text); }
.ticker-item a { font-size:0.82rem; color:var(--primary); text-decoration:none; font-weight:600; }
.ticker-item a:hover { text-decoration:underline; }
.hub-grid { max-width:1280px; margin:2rem auto 3rem; padding:0 1.5rem; display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.25rem; }
@keyframes tickerScroll { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
.nav-inner a.nav-active { background:rgba(56,189,248,0.22) !important; color:#fff !important; border:1px solid var(--primary) !important; padding:0.4rem 0.85rem; border-radius:8px; }
.ticker-card-inner { display:flex; gap:0.75rem; align-items:flex-start; }
.ticker-thumb { width:76px; height:76px; object-fit:cover; border-radius:6px; flex-shrink:0; border:1px solid var(--border); background:var(--surface); }
