/* ============================================================
   资源中心 - 终端风格完整样式
   Font: JetBrains Mono (正文) + Noto Sans SC (中文)
   Theme: 深空黑 + Terminal绿 + Amber
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Noto Sans SC', sans-serif;
  --bg:       #070C14;
  --surface:  #0D1424;
  --card:     #111C2E;
  --border:   rgba(57,255,20,0.15);
  --border2:  rgba(255,255,255,0.08);
  --green:    #39FF14;
  --amber:    #FFB347;
  --blue:     #00D4FF;
  --red:      #FF4D4F;
  --text:     #E0E8F0;
  --muted:    #7A8FA6;
  --dim:      #3D5268;
  --r1:       #FFD700;
  --r2:       #C0C0C0;
  --r3:       #CD7F32;
  --tag-share:  rgba(57,255,20,0.12);
  --tag-share-b: #39FF14;
  --tag-qa:     rgba(255,179,71,0.12);
  --tag-qa-b:   #FFB347;
  --tag-help:   rgba(0,212,255,0.12);
  --tag-help-b: #00D4FF;
  --tag-chat:   rgba(160,140,220,0.12);
  --tag-chat-b: #A08CDC;
  --radius: 8px;
  --radius-lg: 14px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 3px; }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9999; pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
}
#toast.show { opacity: 1; }
#toast-inner {
  display: flex; align-items: center; gap: 10px;
  background: #0D2818;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(57,255,20,0.2);
}
#toast .icon { font-size: 16px; }

/* ============================================================
   EXPAND BACKDROP
   ============================================================ */
.expand-backdrop {
  position: fixed; inset: 0;
  background: rgba(7,12,20,0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.expand-backdrop.active { opacity: 1; pointer-events: all; }

/* ============================================================
   EXPAND PANELS (评分/发帖/上传)
   ============================================================ */
.expand-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 90%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.expand-panel.active {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.expand-panel::-webkit-scrollbar { width: 4px; }
.expand-panel::-webkit-scrollbar-thumb { background: var(--dim); }

.panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
}
.panel-header .ph-icon { font-size: 20px; }
.panel-header h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  flex: 1;
}
.panel-header .ph-sw-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}
.panel-close {
  background: none; border: none;
  color: var(--muted); font-size: 18px;
  cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.panel-close:hover { color: var(--text); background: var(--border2); }

.panel-body { padding: 20px; }
.panel-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border2);
}

/* ---- Buttons ---- */
.btn-green {
  background: var(--green); color: #000;
  border: none; border-radius: 6px;
  padding: 9px 20px; font-size: 13px;
  font-family: var(--font-mono); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.btn-green:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-green:active { transform: translateY(0); }

.btn-amber {
  background: var(--amber); color: #000;
  border: none; border-radius: 6px;
  padding: 9px 20px; font-size: 13px;
  font-family: var(--font-mono); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-amber:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 6px;
  padding: 9px 18px; font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.btn-blue {
  background: var(--blue); color: #000;
  border: none; border-radius: 6px;
  padding: 9px 20px; font-size: 13px;
  font-family: var(--font-mono); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-blue:hover { opacity: 0.85; }

/* ============================================================
   评分面板
   ============================================================ */
.rate-sw-info {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--card);
  border: 1px solid var(--border2); border-radius: var(--radius);
  margin-bottom: 20px;
}
.rate-sw-name { font-size: 16px; font-weight: 600; }
.rate-sw-company { font-size: 12px; color: var(--muted); margin-top: 3px; }

.rate-label {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); margin-bottom: 12px;
}
#rateValueDisplay { color: var(--amber); font-size: 22px; font-weight: 700; }

.rate-stars {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.rate-star-btn {
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: var(--dim); transition: color 0.15s, transform 0.1s;
}
.rate-star-btn:hover { transform: scale(1.15); }
.rate-star-btn.active { color: var(--amber); }

.rate-slider-wrap {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.rate-slider {
  flex: 1; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--border2); border-radius: 2px;
  outline: none;
}
.rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber); cursor: pointer;
  box-shadow: 0 0 8px rgba(255,179,71,0.5);
}
.rate-slider-val {
  font-family: var(--font-mono); font-size: 20px;
  font-weight: 700; color: var(--amber);
  min-width: 52px; text-align: right;
}

.rate-hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); line-height: 1.8;
  padding: 12px; background: var(--bg);
  border-radius: var(--radius);
}

/* ============================================================
   发帖/上传面板
   ============================================================ */
.post-form, .upload-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.05em;
}
.form-input, .form-select, .form-textarea {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text); font-family: var(--font-sans); font-size: 14px;
  padding: 10px 14px;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-select { cursor: pointer; }
.form-select option { background: var(--surface); }
.form-hint {
  font-size: 11px; color: var(--dim); text-align: right;
  font-family: var(--font-mono);
}
.form-error {
  font-size: 12px; color: var(--red);
  font-family: var(--font-mono); display: none;
}
.form-error.show { display: block; }

/* ---- 上传类型选择 ---- */
.upload-types {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.upload-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px;
  background: var(--card);
  border: 1px solid var(--border2); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-sans); font-size: 13px; color: var(--text);
}
.upload-type-btn:hover { border-color: var(--green); }
.upload-type-btn.selected { border-color: var(--green); background: rgba(57,255,20,0.07); }
.upload-type-btn .ut-icon { font-size: 28px; }

/* ---- 图片上传预览 ---- */
.img-upload-area {
  border: 2px dashed var(--border2); border-radius: var(--radius);
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.img-upload-area:hover { border-color: var(--green); }
.img-upload-area input[type="file"] { display: none; }
.img-upload-preview {
  max-width: 100%; max-height: 200px;
  border-radius: var(--radius); margin-top: 10px;
}
.img-upload-hint { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ---- 合规声明 ---- */
.compliance-notice {
  padding: 10px 14px;
  background: rgba(255,179,71,0.06);
  border: 1px solid rgba(255,179,71,0.25);
  border-radius: 6px; font-size: 11px;
  color: var(--muted); font-family: var(--font-mono); line-height: 1.8;
}
.compliance-notice .warn { color: var(--amber); }

/* ---- 实名认证框 ---- */
.auth-required-box {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px; text-align: center;
}
.auth-required-box .ar-icon { font-size: 40px; }
.auth-required-box p { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.7; }

/* ============================================================
   注册/登录模态框
   ============================================================ */
#authPanel {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 90%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 1002;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#authPanel.active { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.auth-inner { padding: 28px; }
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border2); margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  background: none; border: none;
  color: var(--muted); font-size: 14px;
  font-family: var(--font-sans); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-section { display: none; }
.auth-section.active { display: flex; }
.id-hint { font-size: 11px; color: var(--dim); font-family: var(--font-mono); }
.auth-submit { margin-top: 4px; width: 100%; }
.auth-extra {
  font-size: 12px; color: var(--dim); text-align: center;
  margin-top: 10px;
}
.auth-extra a { color: var(--blue); cursor: pointer; }

/* ============================================================
   COLLAPSIBLE MODULE CARDS
   ============================================================ */
.module-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.module-card:hover { border-color: rgba(57,255,20,0.3); }
.module-card.expanded { border-color: rgba(57,255,20,0.4); }

.card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.card-header:hover { background: rgba(57,255,20,0.03); }
.card-header-icon { font-size: 22px; }
.card-header-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); min-width: 22px;
}
.card-header-text { flex: 1; }
.card-header-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  font-family: var(--font-mono);
}
.card-header-sub {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}
.card-toggle {
  font-size: 20px; color: var(--dim);
  transition: transform 0.3s, color 0.2s;
  line-height: 1;
}
.card-header:hover .card-toggle { color: var(--green); }
.module-card.expanded .card-toggle { transform: rotate(180deg); color: var(--green); }

.card-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.module-card.expanded .card-body { max-height: 9999px; }
.card-body-inner { padding: 0 20px 20px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,12,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 15px;
  color: var(--text); font-weight: 600;
  text-decoration: none;
}
.nav-logo .prompt { color: var(--green); font-size: 18px; }
.nav-logo span span { color: var(--green); }
.nav-links { display: flex; gap: 4px; justify-content: center; }
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  color: var(--muted); font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--green); background: rgba(57,255,20,0.08); }
.nav-cta {
  background: var(--green); color: #000;
  border: none; border-radius: 6px;
  padding: 7px 16px; font-size: 13px;
  font-family: var(--font-mono); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

/* ============================================================
   PAGE
   ============================================================ */
.page {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 36px; margin-bottom: 8px;
}
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(57,255,20,0.015) 2px, rgba(57,255,20,0.015) 4px
  );
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-prompt-line {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--green); margin-bottom: 14px;
  opacity: 0.7;
}
.hero-title {
  font-family: var(--font-mono); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.2; margin-bottom: 14px;
}
.hi-green { color: var(--green); }
.hi-amber { color: var(--amber); }
.hero-desc {
  font-size: 15px; color: var(--muted); max-width: 600px;
  line-height: 1.7; margin-bottom: 28px;
}
.hero-stats {
  display: flex; gap: 0;
}
.hero-stat {
  padding: 14px 28px 14px 0;
  border-right: 1px solid var(--border2);
  margin-right: 28px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-mono); font-size: 26px;
  font-weight: 700; color: var(--green);
  line-height: 1;
}
.hero-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   SECTION
   ============================================================ */
.section { margin-top: 8px; }

/* ============================================================
   MODULE TITLE (旧风格，保留兼容)
   ============================================================ */
.module-title {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--green); margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.module-title .mt-icon { color: var(--amber); margin-right: 6px; }

/* ============================================================
   软件列表
   ============================================================ */
.score-info {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(57,255,20,0.04);
  border: 1px solid rgba(57,255,20,0.12);
  border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  line-height: 1.7;
}
.score-info-icon { color: var(--green); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.score-info code { color: var(--amber); }

.sw-filter-bar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.sw-filter-btn {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.sw-filter-btn:hover { border-color: var(--green); color: var(--green); }
.sw-filter-btn.active { border-color: var(--green); color: var(--green); background: rgba(57,255,20,0.08); }

.software-list { display: flex; flex-direction: column; gap: 10px; }

.sw-row {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.15s;
}
.sw-row:hover { border-color: rgba(57,255,20,0.3); transform: translateX(2px); }
.sw-row.rank-1 { border-color: rgba(255,215,0,0.3); background: rgba(255,215,0,0.04); }
.sw-row.rank-2 { border-color: rgba(192,192,192,0.25); }
.sw-row.rank-3 { border-color: rgba(205,127,50,0.25); }

.sw-rank {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  min-width: 32px; text-align: center; line-height: 1.2;
}
.rank-1 .sw-rank { color: var(--r1); }
.rank-2 .sw-rank { color: var(--r2); }
.rank-3 .sw-rank { color: var(--r3); }

.sw-meta { flex: 1; min-width: 0; }
.sw-name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sw-name { font-size: 15px; font-weight: 600; }
.sw-company { font-size: 12px; color: var(--muted); }
.sw-desc { font-size: 13px; color: var(--muted); margin: 5px 0 8px; line-height: 1.5; }
.sw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono);
}
.sw-tag.yes { background: rgba(57,255,20,0.08); color: var(--green); }
.sw-tag.no  { background: rgba(255,77,79,0.08); color: var(--red); }
.sw-pros-cons { font-size: 11px; margin-top: 6px; }
.sw-pros-label { color: var(--green); font-weight: 700; margin-right: 4px; }
.sw-cons-label { color: var(--red); font-weight: 700; margin-right: 4px; }

.sw-right {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 90px;
}
.sw-score {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  color: var(--amber); line-height: 1;
}
.sw-score span { font-size: 13px; color: var(--muted); font-weight: 400; }
.sw-stars { font-size: 12px; letter-spacing: 1px; }
.sw-votes { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.rate-btn {
  background: transparent; border: 1px solid var(--border2);
  border-radius: 6px; padding: 5px 10px;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.rate-btn:hover { border-color: var(--amber); color: var(--amber); }
.rate-btn.rated { border-color: var(--green); color: var(--green); cursor: default; }
.sw-site-btn {
  font-size: 11px; color: var(--dim);
  font-family: var(--font-mono);
  transition: color 0.2s;
  white-space: nowrap;
}
.sw-site-btn:hover { color: var(--blue); }

/* ============================================================
   论坛
   ============================================================ */
.forum-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.forum-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.forum-tab {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-sans); cursor: pointer;
  transition: all 0.2s;
}
.forum-tab:hover { border-color: var(--green); color: var(--green); }
.forum-tab.active { border-color: var(--green); color: var(--green); background: rgba(57,255,20,0.08); }

.forum-new-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(57,255,20,0.08); border: 1px solid var(--green);
  border-radius: 6px; padding: 7px 16px;
  font-size: 13px; color: var(--green);
  font-family: var(--font-mono); cursor: pointer;
  transition: background 0.2s;
}
.forum-new-btn:hover { background: rgba(57,255,20,0.15); }

/* ---- 置顶区 ---- */
.pin-section { margin-bottom: 14px; }
.pin-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--amber); margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* ---- 帖子列表 ---- */
.post-list { display: flex; flex-direction: column; gap: 6px; }
.post-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer; transition: border-color 0.2s, transform 0.1s;
}
.post-item:hover { border-color: rgba(57,255,20,0.3); transform: translateX(2px); }
.post-item.pinned { border-color: rgba(255,179,71,0.2); background: rgba(255,179,71,0.04); }

.post-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); white-space: nowrap;
  min-width: 56px; text-align: center;
}
.post-tag.share  { background: var(--tag-share);  color: var(--tag-share-b); }
.post-tag.qa     { background: var(--tag-qa);     color: var(--tag-qa-b); }
.post-tag.help   { background: var(--tag-help);   color: var(--tag-help-b); }
.post-tag.chat   { background: var(--tag-chat);   color: var(--tag-chat-b); }
.post-tag.pin    { background: rgba(255,179,71,0.15); color: var(--amber); }

.post-title { flex: 1; font-size: 14px; color: var(--text); }
.post-meta {
  display: flex; gap: 14px; flex-shrink: 0;
  font-size: 12px; color: var(--muted); font-family: var(--font-mono);
}
.pv-icon { margin-right: 3px; }

/* ---- 空状态 ---- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 24px; text-align: center;
}
.es-prompt {
  font-family: var(--font-mono); font-size: 20px; color: var(--green);
  opacity: 0.6;
}
.es-cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.es-msg { font-size: 14px; color: var(--muted); max-width: 320px; }
.es-action {
  display: flex; align-items: center; gap: 6px;
  background: rgba(57,255,20,0.08); border: 1px solid var(--green);
  border-radius: 6px; padding: 8px 18px;
  font-size: 13px; color: var(--green);
  font-family: var(--font-mono); cursor: pointer;
  transition: background 0.2s;
}
.es-action:hover { background: rgba(57,255,20,0.15); }
.es-action span { font-size: 16px; }

/* ---- 社区规则 ---- */
.community-rules {
  background: rgba(255,179,71,0.06);
  border: 1px solid rgba(255,179,71,0.2);
  border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.community-rules-title {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--amber); margin-bottom: 10px;
}
.rule-list { display: flex; flex-direction: column; gap: 6px; }
.rule-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.rule-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--amber);
  flex-shrink: 0; min-width: 16px;
}
.rule-forbid { color: var(--red); font-weight: 600; }
.rule-allow { color: var(--green); font-weight: 600; }

/* ============================================================
   开发者广场
   ============================================================ */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dev-card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s;
}
.dev-card:hover { border-color: rgba(57,255,20,0.3); }
.dev-card-icon { font-size: 30px; }
.dev-card h4 { font-size: 15px; font-weight: 600; }
.dev-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dev-types { display: flex; gap: 6px; flex-wrap: wrap; }
.dev-type {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(0,212,255,0.08); color: var(--blue);
  font-family: var(--font-mono);
}
.dev-upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid var(--blue);
  border-radius: 6px; padding: 8px;
  font-size: 13px; color: var(--blue);
  font-family: var(--font-mono); cursor: pointer;
  transition: background 0.2s;
  margin-top: auto;
}
.dev-upload-btn:hover { background: rgba(0,212,255,0.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center; padding: 24px;
  border-top: 1px solid var(--border2);
  font-size: 13px; color: var(--dim);
  font-family: var(--font-mono);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ============================================================
   LOGO
   ============================================================ */
.logo-svg {
  height: 28px;
  width: auto;
  display: block;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
  padding: 4px 0;
}
.nav-links a.logo-link {
  display: flex; align-items: center;
  padding: 6px 14px;
}

.footer-logo {
  display: flex; justify-content: center; margin-bottom: 10px;
}
.footer-logo svg {
  height: 22px; width: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stat { padding: 10px 16px 10px 0; margin-right: 16px; }
  .hero-stat-num { font-size: 20px; }
  .sw-row { flex-wrap: wrap; }
  .sw-right { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .dev-grid { grid-template-columns: 1fr; }
  .post-meta { display: none; }
  .upload-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .sw-right { min-width: unset; }
}


/* 修复导航栏 - resources.html需要 */
.nav-content {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green);
  color: #000;
}

.btn-primary:hover {
  opacity: 0.85;
}

.brand-guozi {
  color: #ff6b00;
  font-weight: 700;
}

.brand-quant {
  color: #fff;
  font-weight: 500;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, #ff8c00, transparent);
}

.nav-logo-icon img {
  height: 36px;
  width: auto;
}
