:root {
  --brand: #1f5fbf;
  --brand-dark: #163f80;
  --brand-soft: #eaf1fb;
  --accent: #0f9b94;
  --ink: #1f2733;
  --muted: #6c7686;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e6eaf1;
  --line-strong: #d4dae4;
  --warn: #b9791b;
  --ok: #1f8a4c;
  --shadow: 0 6px 22px rgba(28, 47, 86, 0.08);
  --shadow-sm: 0 2px 8px rgba(28, 47, 86, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand .sitename { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .2px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 9px; color: var(--ink); font-size: 14.5px; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; cursor: pointer; font-weight: 600; transition: .15s; line-height: 1;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn.sm { padding: 7px 12px; font-size: 13.5px; }
.btn.danger { background: #fff; color: #c0392b; border-color: #eccac4; }
.btn.danger:hover { background: #fdecea; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 56px; background: #0f1b30; color: #c8d2e0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 0; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .logo { width: 40px; height: 40px; flex: none; }
.footer-brand .fb-name { color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand p { margin: 10px 0 0; font-size: 13.5px; color: #9fb0c6; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 4px 0 14px; font-weight: 600; }
.footer-col .row { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 10px; color: #c8d2e0; }
.footer-col .row .ic { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 3px; }
.footer-col a { color: #c8d2e0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1d2c45; padding: 16px 0; font-size: 13px; color: #8ea0ba; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.footer-bottom a { color: #b9c6da; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #163f80 0%, #1f5fbf 100%); color: #fff; padding: 60px 0 66px; }
.hero h1 { font-size: 32px; margin: 0 0 14px; font-weight: 800; letter-spacing: .3px; }
.hero p { font-size: 16px; color: #d6e3f7; margin: 0 0 26px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.22); }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .st { }
.hero-stats .st b { font-size: 22px; display: block; }
.hero-stats .st span { font-size: 13px; color: #c3d4ee; }

/* ---------- 类目 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .15s; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-card .ic svg { width: 22px; height: 22px; }
.cat-card .t { font-weight: 600; font-size: 15px; }
.cat-card .d { font-size: 12.5px; color: var(--muted); }

/* ---------- 信息列表 ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; flex: 1; min-width: 220px; }
.search input { border: 0; outline: 0; flex: 1; font-size: 14.5px; background: transparent; }
.search .ic { width: 16px; height: 16px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .15s; display: flex; flex-direction: column; }
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info-card .cover { aspect-ratio: 16/10; background: #eef2f8; overflow: hidden; }
.info-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.info-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 600; }
.tag svg { width: 13px; height: 13px; }
.info-card h3 { margin: 0; font-size: 16.5px; line-height: 1.4; }
.info-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: auto; }
.info-card .meta .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.badge-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ok); background: #e7f5ec; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge-pending { color: var(--warn); background: #fbf1de; }
.badge-rejected { color: #c0392b; background: #fdecea; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--line-strong); }

/* ---------- 详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.detail-main { padding: 0; overflow: hidden; }
.detail-main .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eef2f8; }
.detail-main .inner { padding: 24px; }
.detail-main h1 { font-size: 24px; margin: 0 0 14px; }
.detail-main .desc { font-size: 15.5px; color: #2c3744; white-space: pre-wrap; }
.detail-side .card { padding: 20px; }
.detail-side h4 { margin: 0 0 14px; font-size: 15px; }
.kv { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.kv .ic { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.kv .k { color: var(--muted); width: 56px; flex: none; }
.kv .v { color: var(--ink); }
.reviewed-note { margin-top: 16px; padding: 12px 14px; background: var(--brand-soft); border-radius: 10px; font-size: 13px; color: var(--brand-dark); display: flex; gap: 8px; align-items: flex-start; }
.reviewed-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { padding: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-row .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14.5px; font-family: inherit; outline: none; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 120px; resize: vertical; }
.field-error { color: #c0392b; font-size: 13px; margin-top: 6px; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 4px 0 16px; }
.agree input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.agree a { font-weight: 600; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.about-text p { margin: 0 0 14px; color: #2c3744; }
.about-text h3 { margin: 26px 0 10px; font-size: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.fact .k { font-size: 12.5px; color: var(--muted); }
.fact .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.prose { max-width: 820px; }
.prose h3 { margin-top: 26px; }
.prose li { margin-bottom: 8px; }

/* ---------- 后台 / 我的 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; background: #fafbfd; }
.table tr:hover td { background: #fafbfd; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pagination, .row-actions { display: flex; gap: 8px; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1f2733; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 200; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; }
.toast.err { background: #c0392b; }
.toast.ok { background: #1f8a4c; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap, .about-grid, .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .cat-grid, .list-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .brand .sitename { font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
}
