@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

:root {
  --bg: #070b14;
  --bg-2: #0d1320;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f3f6ff;
  --muted: #a0aec8;
  --accent: #3bdc88;
  --accent-glow: rgba(59, 220, 136, 0.35);
  --blue: #4aa8ff;
  --blue-glow: rgba(74, 168, 255, 0.35);
  --danger: #ff5f5f;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
/* 全局背景图（只给前台 hero 以外板块用）；后台 admin-body 不使用夜景背景 */
body:not(.admin-body)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 11, 20, 0.30), rgba(7, 11, 20, 0.30)),
    url("../images/page-bg.jpg") center/cover no-repeat;
  background-color: #070b14;
  will-change: transform;
  transform: translateZ(0);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1100px, 90vw); margin: 0 auto; padding: 0 18px; box-sizing: border-box; }
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.navbar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 94vw);
  padding: 10px 18px;
  background: rgba(13, 19, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "ZCOOL KuaiLe", sans-serif; font-size: 1.25rem;
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: .25s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--glass-strong); }
.nav-links a.active { box-shadow: 0 0 0 1px var(--accent-glow); }
.nav-toggle { display: none; background: none; border: 1px solid var(--glass-border); color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; }

/* 登录态导航头像 */
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(59, 220, 136, 0.12);
  border: 1px solid rgba(59, 220, 136, 0.35);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
}
.nav-user:hover { background: rgba(59, 220, 136, 0.22); }
.nav-user .nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex: none;
  background: #fff;
}
.nav-user .nav-username {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-login {
  color: var(--bg); background: var(--accent);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  transition: .2s;
}
.nav-login:hover { filter: brightness(1.08); }

/* 用户头像下拉菜单 */
.nav-user-menu {
  position: fixed;
  z-index: 200;
  min-width: 140px;
  background: rgba(13, 19, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-user-menu a, .nav-user-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text); font: inherit; font-size: .9rem;
  background: transparent; border: none; cursor: pointer;
  transition: .2s;
}
.nav-user-menu a:hover, .nav-user-menu button:hover { background: var(--glass-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(74, 168, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(59, 220, 136, 0.14), transparent 55%),
    url("../images/hero-cover.jpg") center/cover no-repeat,
    linear-gradient(180deg, #070b14 0%, #0b1424 60%, #070b14 100%);
  background-color: #070b14;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,11,20,.22) 0%, rgba(7,11,20,.06) 40%, rgba(7,11,20,.28) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--muted); font-size: .9rem; margin-bottom: 22px;
}
.hero-announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: .9rem;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #27ae60);
  color: #032712; box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-glass {
  background: var(--glass); border-color: var(--glass-border); color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--glass-strong); }

/* ---------- Status line ---------- */
.status-line {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 36px; color: var(--muted); font-size: .9rem;
}
.status-line strong { color: var(--text); }

/* ---------- Community ---------- */
.community-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.comm-card { padding: 30px; text-align: center; }
.qq-invite {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 34px 30px;
}
.qq-header {
  display: flex; align-items: center; gap: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px;
  width: 100%;
  text-align: left;
}
.qq-avatar {
  width: 54px; height: 54px; border-radius: 14px;
  object-fit: cover; flex: none;
  background: #fff;
}
.qq-meta { min-width: 0; }
.qq-server { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.qq-label { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.qq-invite .qr {
  width: 200px; height: 200px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.05);
}
.qq-invite .qr img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); }
.qq-num { font-size: 1.05rem; color: var(--text); letter-spacing: .5px; }
.qq-num strong { color: var(--accent); }
.qq-desc { color: var(--muted); margin: 0; font-size: .95rem; max-width: 320px; }
.news-card { text-align: left; }
.news-card h3 { margin: 0 0 10px; font-size: 1.25rem; }

/* ---------- Screenshots ---------- */
.shots-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shot {
  aspect-ratio: 16/10; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--bg-2);
  position: relative;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.06); }
.shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-size: .9rem; opacity: 0; transition: .25s;
}
.shot:hover .cap { opacity: 1; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.contact-form { padding: 8px 4px; }
.contact-form .field { margin-bottom: 28px; }
.contact-form label { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 12px; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 16px 18px; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid var(--glass-border);
  color: var(--text); font: inherit; outline: none;
  line-height: 1.7;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b7b99; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.contact-guide { padding: 30px; }
.contact-guide h4 { margin-top: 0; font-size: 1.1rem; }
.contact-guide ol { color: var(--muted); padding-left: 22px; margin: 18px 0 0; line-height: 1.8; }
.contact-guide li { margin-bottom: 14px; }
.contact-guide .warn-box {
  margin-top: 20px; padding: 16px; border-radius: 12px;
  background: rgba(255,0,0,.08); color: #ffb3b3; font-size: .9rem; line-height: 1.6;
}

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.step .badge {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #06203f; font-weight: 800;
}
.status-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.status-card { padding: 28px; text-align: center; }
.status-card .num { font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.status-card .lbl { color: var(--muted); font-size: .9rem; }
.players { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Downloads & Video ---------- */
.dl-list { display: grid; gap: 18px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; text-align: left;
}
.dl-item .meta { flex: 1; min-width: 0; }
.dl-item .meta h3 { margin: 0 0 6px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-item.disabled { opacity: .55; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

.video-card { padding: 26px; margin-top: 26px; }
.video-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.video-player-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border); background: rgba(0,0,0,.35);
}
.video-player-wrap video { width: 100%; height: auto; display: block; max-height: 70vh; }

@media (max-width: 640px) {
  .dl-item { flex-direction: column; align-items: stretch; }
  .dl-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0; text-align: center; color: var(--muted); font-size: .9rem;
}
.admin-link { color: var(--muted); font-size: .8rem; margin-top: 10px; display: inline-block; }

/* ---------- Admin ---------- */
.admin-body {
  background:
    linear-gradient(rgba(7, 11, 20, 0.15), rgba(7, 11, 20, 0.15)),
    url("../images/admin-bg.jpg") center/cover no-repeat fixed;
  background-color: #070b14;
  color: #e2e8f0;
}
.admin-body .navbar-inner {
  background: rgba(13, 19, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.08);
}
.admin-body .brand { color: #fff; }
.admin-body .nav-links a { color: #94a3b8; }
.admin-body .nav-links a:hover, .admin-body .nav-links a.active { color: #fff; background: rgba(255,255,255,0.10); }

.admin-frame { display: flex; min-height: calc(100vh - 80px); padding-top: 84px; }
.admin-sidebar {
  width: 230px; flex: none; padding: 24px 14px;
  position: sticky; top: 84px; align-self: flex-start;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; color: #cbd5e1; font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.10); color: #fff; }
.admin-main { flex: 1; padding: 30px; max-width: 980px; }
.admin-card {
  background: rgba(17, 24, 39, 0.62);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 24px; margin-bottom: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.admin-card h3 { margin-top: 0; font-size: 1.15rem; color: #fff; }
.admin-body .hint { color: #94a3b8 !important; }
.admin-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; color: #cbd5e1; font-size: .85rem; margin-bottom: 5px; }
.admin-field input, .admin-field textarea, .admin-field select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #f1f5f9; font: inherit;
}
.admin-field input::placeholder, .admin-field textarea::placeholder { color: #64748b; }
.admin-field textarea { min-height: 90px; resize: vertical; }
.admin-btn { padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: transform .1s, filter .1s; }
.admin-btn.primary { background: #2563eb; color: #fff; }
.admin-btn.secondary { background: rgba(255,255,255,0.10); color: #e2e8f0; border-color: rgba(255,255,255,0.12); }
.admin-btn.danger { background: rgba(254, 202, 202, 0.15); color: #fca5a5; border-color: rgba(252, 165, 165, 0.25); }
.admin-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.repeat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 18px; margin-bottom: 14px;
}
.contact-item {
  border-bottom: 1px solid rgba(255,255,255,0.10); padding: 18px 0;
}
.contact-item:last-child { border-bottom: none; }
.contact-item .meta { color: #94a3b8; font-size: .85rem; margin-bottom: 6px; }

.login-box {
  max-width: 380px; margin: 120px auto;
  background: rgba(17, 24, 39, 0.70);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-box h2 { margin-top: 0; color: #fff; }

/* ---------- 前台账号（登录/注册/个人中心） ---------- */
.auth-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-head h3 { margin: 0; font-size: 1.35rem; color: #fff; }
.auth-back {
  color: #94a3b8; font-size: .85rem; text-decoration: none;
  padding: 4px 8px; border-radius: 8px; transition: .2s;
}
.auth-back:hover { color: #fff; background: rgba(255,255,255,0.08); }
.auth-form .admin-btn.primary { margin-top: 4px; }
.auth-err { color: #fca5a5; font-size: .85rem; margin-top: 10px; min-height: 1em; }
.auth-toggle {
  text-align: center; color: #94a3b8; font-size: .9rem; margin-top: 14px; margin-bottom: 0;
}
.auth-toggle a { color: #4ade80; text-decoration: none; font-weight: 600; }
.auth-toggle a:hover { text-decoration: underline; }

/* 导航栏登录入口高亮 */
.nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #052e16 !important; font-weight: 700;
  box-shadow: 0 4px 14px rgba(74,222,128,.25);
  transition: transform .15s, box-shadow .15s;
}
.nav-links a.nav-login:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #052e16 !important;
  box-shadow: 0 6px 18px rgba(74,222,128,.35);
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #10b981; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; }

/* ---------- Account / 玩家中心 ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.tab-row .tab-btn {
  flex: 1; padding: 10px; border: 1px solid var(--glass-border);
  background: transparent; color: var(--muted); font-weight: 700;
  border-radius: 12px; cursor: pointer; font-size: .95rem;
}
.tab-row .tab-btn.active {
  background: var(--accent); color: #06281a; border-color: var(--accent);
}
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: rgba(0,0,0,0.25);
  color: var(--text); font: inherit;
}
.field input::placeholder { color: #5d6b85; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.err { color: var(--danger); font-size: .85rem; min-height: 18px; margin: 4px 0 12px; }
.ok-msg { color: var(--accent); font-size: .85rem; min-height: 18px; margin: -6px 0 12px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: #06281a;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  flex: none;
}
.nav-logout {
  background: var(--glass-strong); color: var(--muted);
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer;
}
.nav-logout:hover { color: var(--text); }

.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.15); box-shadow: 0 8px 30px rgba(0,0,0,.25);
  cursor: pointer; transition: transform .2s ease;
}
.profile-avatar:hover { transform: scale(1.04); }
.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-meta { color: var(--muted); font-size: .9rem; }
.profile-bio {
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 14px; min-height: 60px;
  color: var(--text); line-height: 1.6; white-space: pre-wrap;
}
.avatar-upload { display: none; }

/* ---------- 论坛 ---------- */
.forum-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1080px; margin: 0 auto; }
.forum-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 12px;
  backdrop-filter: blur(12px);
}
.forum-meta { display: flex; align-items: center; gap: 6px; color: #94a3b8; font-size: .78rem; flex-wrap: wrap; }
.forum-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.forum-avatar.small { width: 20px; height: 20px; }
.forum-author { color: #e2e8f0; font-weight: 600; text-decoration: none; }
.forum-author:hover { color: var(--accent); }
.forum-cat { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 5px; font-size: .7rem; }
.forum-time { color: #64748b; }
.forum-title { display: block; color: #fff; font-size: .98rem; font-weight: 700; margin: 6px 0 3px; text-decoration: none; }
.forum-title:hover { color: var(--accent); }
.forum-summary { color: #94a3b8; font-size: .82rem; margin: 0 0 8px; line-height: 1.45; }
.forum-cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0 0 8px; display: block; border: 1px solid var(--glass-border); background: var(--glass); }
.forum-stats { display: flex; gap: 12px; color: #94a3b8; font-size: .78rem; align-items: center; }
.forum-body { color: #e2e8f0; line-height: 1.8; white-space: pre-wrap; }
.like-btn { background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); border-radius: 8px; color: #fca5a5; padding: 4px 10px; cursor: pointer; font: inherit; font-size: .85rem; transition: .2s; }
.like-btn.small { padding: 2px 8px; }
.like-btn:hover { background: rgba(255,255,255,.14); }
.like-btn.liked { background: rgba(252,165,165,.18); border-color: rgba(252,165,165,.5); color: #ff8787; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; align-items: start; }
@media (max-width: 880px) { .forum-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .forum-list { grid-template-columns: 1fr; } }
.post-images img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--glass-border); cursor: pointer; transition: .2s; display: block; }
.post-images img:hover { transform: scale(1.02); }
.comment-item { border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 0; }
.comment-item:last-child { border-bottom: none; }
.comment-body { color: #e2e8f0; line-height: 1.6; margin: 8px 0 10px; white-space: pre-wrap; }

/* ---------- 个人主页 ---------- */
.profile-tabs { display: flex; gap: 8px; margin: 24px 0 14px; }
.profile-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #94a3b8;
}
.profile-tab.active { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.20); }
.profile-tab-content { min-height: 120px; }

@media (max-width: 860px) {
  .nav-login { margin-top: 6px; justify-content: center; }
}


@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
    width: 94vw; flex-direction: column; background: rgba(13, 19, 32, 0.95);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 10px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .contact-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
