/* 字体改由 header.php 异步加载（失败自动回退系统字体栈，不阻塞首屏） */

:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --panel: #11131d;
  --panel-2: #161927;
  --border: #242838;
  --text: #edeff6;
  --muted: #9aa0b6;
  --gold: #c9a24b;
  --gold-2: #e9cf8e;
  --accent: #8aa0ff;
  --red: #e5484d;
  --green: #3fb968;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --maxw: 1200px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --display: "Cinzel", "Noto Serif SC", Georgia, serif;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* 影院暗角 + 聚光 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 72% -12%, rgba(201,162,75,.10) 0%, transparent 55%),
    radial-gradient(900px 600px at 10% 110%, rgba(108,140,255,.07) 0%, transparent 55%),
    linear-gradient(180deg, #05060a 0%, var(--bg) 30%, var(--bg) 100%);
}
/* 胶片颗粒 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- 通用电影化排版 ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: .5px; line-height: 1.12; }
.kicker {
  font-family: var(--font); text-transform: uppercase; letter-spacing: 4px;
  font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 12px;
}
.en-sub { font-family: var(--font); font-style: italic; color: var(--muted); letter-spacing: .3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7,8,13,.78);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  display: block; flex: none; object-fit: contain;
  box-shadow: 0 4px 16px rgba(201,162,75,.22);
}
.brand .name { font-size: 14px; letter-spacing: 2px; font-family: Georgia, "Times New Roman", serif; }
.brand .name small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 400; letter-spacing: 1.5px; font-family: var(--font); }
.brand .name .name-short { display: none; font-size: 18px; letter-spacing: 5px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); font-size: 15px; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* 移动端汉堡按钮（桌面隐藏） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin-left: auto; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: .22s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 14px;
  transition: .18s; font-family: inherit;
}
.btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), #b8932c); color: #1a1407; border: none; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); color: #1a1407; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 50% 38%, rgba(201,162,75,.12), transparent 70%);
}
.hero h1 { font-size: 52px; margin: 0 0 16px; }
.hero h1 .gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); max-width: 700px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sm { padding: 64px 0 40px; }
.hero-sm h1 { font-size: 42px; }
.stat-row { display: flex; gap: 40px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .n { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--gold); }
.stat .l { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* 胶片信箱条 */
.film-bars { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 8% 0; }
.film-bars span { height: 2px; background: linear-gradient(90deg, transparent, rgba(201,162,75,.55), transparent); }
.film-bars-bottom { top: auto; bottom: 0; padding-top: 0; padding-bottom: 16px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: 30px; margin: 0; position: relative; padding-left: 16px; font-weight: 700; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(var(--gold-2), #8a6d1f); }
.section-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: .22s; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(201,162,75,.5), transparent); opacity: 0; transition: .22s; }
.card:hover { transform: translateY(-3px); border-color: #3a4566; }
.card:hover::after { opacity: 1; }
.card-link:hover { text-decoration: none; }

/* News card */
.news-card { padding: 0; }
.news-card .cover { height: 168px; background: linear-gradient(135deg,#222a40,#10131d); display: grid; place-items: center; color: #3a4566; font-size: 40px; }
.news-card .body { padding: 16px 18px 18px; }
.news-card h3 { margin: 0 0 8px; font-size: 17px; font-family: var(--serif); }
.news-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(201,162,75,.14); color: var(--gold); border: 1px solid rgba(201,162,75,.3); }

/* Project card */
.project-card { padding: 0; }
.project-card .cover {
  position: relative; height: 196px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #2f4a5e), #0c0e16);
}
.project-card .cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 70% 20%, rgba(255,255,255,.12), transparent 60%); }
.project-card .cover-emoji { font-size: 54px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.project-card .cover-year { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: var(--gold-2); border: 1px solid rgba(201,162,75,.4); }
.project-card .body { padding: 16px 18px 18px; }
.project-card h3 { margin: 0 0 6px; font-size: 17px; font-family: var(--serif); }
.project-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }

/* Member card */
.member-card { text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--gold-2), #7a5f17); display: grid; place-items: center;
  color: #1a1407; font-weight: 800; font-size: 30px; font-family: var(--serif);
  border: 2px solid rgba(201,162,75,.55); box-shadow: 0 0 0 4px rgba(201,162,75,.08), 0 8px 20px rgba(0,0,0,.4); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 132px; height: 132px; font-size: 46px; margin: 0; }
.avatar-sm { width: 40px; height: 40px; font-size: 16px; margin: 0; border-width: 1px; }
.member-card h3 { margin: 0 0 4px; font-size: 18px; font-family: var(--serif); }
.member-card .role { color: var(--gold); font-size: 13px; }
.member-card .region { color: var(--muted); font-size: 12px; margin-top: 6px; }
.member-card .bio { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 38px; }

/* Member detail */
.profile-head { display: flex; gap: 26px; align-items: center; margin: 22px 0 8px; }
.profile-info .display { font-size: 34px; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Project detail */
.detail-head { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; margin: 22px 0; }
.cover-lg { position: relative; height: 220px; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c1, #2f4a5e), #0c0e16); }
.cover-lg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 70% 20%, rgba(255,255,255,.12), transparent 60%); }
.cover-lg .cover-emoji { font-size: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.cover-lg .cover-year { position: absolute; right: 14px; bottom: 14px; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.5); color: var(--gold-2); border: 1px solid rgba(201,162,75,.4); }
.detail-info .display { font-size: 32px; }
.lead { font-size: 16px; color: #d7dbe8; margin: 16px 0; line-height: 1.8; }
.creator-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.creator-chip:hover { border-color: var(--gold); text-decoration: none; }
.creator-chip b { font-family: var(--serif); }
.content-prose { font-size: 16px; color: #d7dbe8; line-height: 1.95; margin-top: 20px; }

/* Quiet membership tiers (弱化) */
.tier-quiet-grid { margin-bottom: 34px; }
.tier-quiet { text-align: center; padding: 26px 20px; }
.tier-quiet .t-name { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.tier-quiet .t-en { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.tier-quiet .t-fee-sm { font-size: 20px; color: var(--text); margin: 14px 0; font-family: var(--display); }
.tier-quiet .t-fee-sm .muted { font-size: 13px; font-family: var(--font); }
.tier-quiet ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.tier-quiet ul li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.join-note { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }

/* Join strip */
.join-strip { padding: 70px 0; }
.join-strip .kicker { margin-bottom: 10px; }

/* Org tree */
.org-tree { display: flex; flex-direction: column; gap: 12px; }
.org-level { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.org-node { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-width: 180px; text-align: center; font-family: var(--serif); }
.org-node.root { background: linear-gradient(135deg, var(--gold-2), #8a6d1f); color: #1a1407; border: none; font-weight: 700; }
.org-node .role { font-size: 12px; color: var(--muted); }
.org-node.root .role { color: #3a2c08; }

/* Forms */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; color: var(--text); }
label .opt { color: var(--muted); font-size: 12px; }
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 96px; }
.hint { font-size: 12px; color: var(--muted); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:hover { background: rgba(255,255,255,.02); }
.badge-ok { color: var(--green); }
.badge-wait { color: var(--gold); }
.badge-no { color: var(--red); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--border); }
.alert-info { background: rgba(108,140,255,.12); border-color: rgba(108,140,255,.4); }
.alert-success { background: rgba(63,185,104,.12); border-color: rgba(63,185,104,.4); }
.alert-error { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.4); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-cols h4 { color: var(--text); font-size: 15px; margin: 0 0 12px; font-family: var(--serif); }

/* Misc */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; background: var(--panel); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.filter-bar a.active, .filter-bar a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.divider { height: 1px; background: var(--border); margin: 30px 0; }
.article { max-width: 820px; margin: 0 auto; }
.price-big { font-size: 40px; font-weight: 800; color: var(--gold); font-family: var(--display); }

/* ---------- 响应式：平板 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-sm h1 { font-size: 34px; }
  .detail-head { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .nav-links { gap: 14px; }
}

/* ---------- 响应式：移动端抽屉导航 ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0; background: rgba(7,8,13,.98);
    border-bottom: 1px solid var(--border);
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .site-header.nav-open .nav-links { max-height: 82vh; padding: 6px 0 14px; overflow-y: auto; }
  .nav-links a { padding: 14px 20px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-links a.btn { margin: 10px 20px; border-bottom: none; border-radius: 10px; text-align: center; justify-content: center; }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { gap: 12px; height: 60px; }
  .brand .name { font-size: 16px; }
  .brand .logo { width: 36px; height: 36px; }
  .brand .name small { letter-spacing: 1.5px; }
  .brand .name .name-full { display: none; }
  .brand .name .name-short { display: inline; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 22px; }
  .hero-sm { padding: 44px 0 28px; }
  .hero-sm h1 { font-size: 28px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stat-row { gap: 22px; margin-top: 34px; }
  .stat .n { font-size: 28px; }
  .stat .l { font-size: 12px; }

  .section { padding: 38px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 22px; padding-left: 13px; }
  .film-bars { padding: 10px 5% 0; gap: 4px; }
  .film-bars-bottom { padding-bottom: 10px; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .news-card .cover { height: 150px; }
  .project-card .cover { height: 178px; }

  .profile-head { flex-direction: column; text-align: center; gap: 16px; }
  .profile-info .display { font-size: 28px; }
  .detail-info .display { font-size: 24px; }
  .cover-lg { height: 176px; }
  .lead, .content-prose { font-size: 15px; }
  .meta-row { justify-content: center; }

  .join-note { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .join-note .btn { width: 100%; justify-content: center; }
  .join-strip { padding: 48px 0; }

  .footer-cols { flex-direction: column; gap: 26px; }
  .site-footer { padding: 32px 0 24px; }

  /* 过滤器横向滑动，避免折行拥挤 */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar a { white-space: nowrap; }

  /* 后台表格横向滚动 */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .org-node { min-width: 140px; flex: 1 1 140px; }
  .tier-quiet .t-fee-sm { font-size: 18px; }
  .price-big { font-size: 32px; }
}

/* ==================== 优化补充层 v2：可访问性 / 组件 / 后台 ==================== */
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--gold-2); color: #1a1407; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.section-alt { background: var(--bg-2); }
.h1-page { font-family: var(--display); font-size: 32px; margin: 0; }
.section-head .sub { margin-top: 6px; }
.excerpt { font-size: 14px; line-height: 1.65; margin: 8px 0 10px; }
.filter-bar-sub { margin-top: -12px; }
.result-count { font-size: 13px; margin: 0 0 16px; }

/* 封面图 / 占位统一 */
.news-card .cover, .project-card .cover, .cover-lg { position: relative; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-emoji { position: relative; z-index: 2; }
.cover-year { z-index: 3; }
.project-card .body h3, .news-card .body h3 { margin: 10px 0 6px; }

/* 空态 */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 54px 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel); }
.empty-state .empty-icon { display: block; font-size: 44px; opacity: .55; margin-bottom: 12px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pagination a, .pagination span { min-width: 38px; padding: 8px 12px; text-align: center; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; color: var(--muted); }
.pagination a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.pagination .current { color: #1a1407; background: linear-gradient(135deg, var(--gold-2), #b8932c); border-color: transparent; font-weight: 700; }
.pagination .disabled { opacity: .4; }
.pagination .dots { border: none; }

/* 文章 / 详情 */
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.article-title { font-family: var(--serif); font-size: 32px; margin: 6px 0 20px; }
.article-cover { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 22px; }
.lead-gold { font-size: 17px; color: var(--gold); }
.content-prose { color: #d7dbe8; font-size: 16px; line-height: 1.95; }
.content { max-width: 820px; }
.en-sub-lg { font-size: 16px; margin-bottom: 14px; }
.small { font-size: 12px; }
.profile-bio { margin-top: 26px; }
.profile-projects-head { margin-top: 34px; }
.card-title, .card-title-sm, .profile-bio h2 { font-family: var(--serif); }
.card-title { font-size: 20px; margin: 0 0 16px; }
.card-title-sm { font-size: 16px; margin: 0 0 10px; }

/* 加入流程 */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 34px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps .step-no { font-family: var(--display); font-size: 22px; color: var(--gold); }
.steps b { font-family: var(--serif); }
.steps .muted { font-size: 13px; }

/* 页脚 */
.footer-brand { max-width: 340px; }
.footer-cols p { margin: 4px 0; }
.footer-bottom { margin-top: 24px; font-size: 13px; }

/* 表单补充 */
.form-wrap-narrow { max-width: 420px; }
.form-wrap-mid { max-width: 560px; }
.form-wrap-full { max-width: none; }
.btn-block { width: 100%; justify-content: center; }
.form-foot { display: inline-block; margin: 0 0 0 12px; font-size: 13px; }
p.form-foot { display: block; margin: 14px 0 0; }
.filter-methods { justify-content: center; margin: 18px 0; }
.pill input[type=radio], .pill input[type=checkbox] { width: auto; margin: 0; accent-color: var(--gold); }
.demo-hint { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(201,162,75,.08); border: 1px solid rgba(201,162,75,.25); }
.tall { min-height: 180px; }
.field input[type=file] { padding: 9px 12px; }

/* 会员中心 */
.profile-mini { display: flex; gap: 16px; align-items: center; }
.profile-mini h3 { margin: 0; }
.kv-list { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; }
.bio-block { margin-top: 14px; font-size: 14px; }
.history-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.history-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.alert .price-big { font-size: 26px; }

/* 后台 */
.admin-body .card { padding: 20px; }
.admin-quick { margin-top: 20px; }
.table-wrap { padding: 0 !important; overflow: auto; }
.row-actions { white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0 3px; text-decoration: underline; }
.link-btn:hover { color: var(--gold); }
.link-btn.danger { color: var(--red); }
.row-actions form::before { content: '·'; color: var(--muted); margin: 0 4px; }

/* 组织架构 / 404 */
.org-name { font-weight: 600; }
.section-head-center { justify-content: center; }
.org-hint { margin-top: 24px; }
.not-found { padding: 40px 0; }
.not-found-cta { margin-top: 26px; }
.join-strip .muted { max-width: 620px; margin: 10px auto 22px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .h1-page, .article-title { font-size: 24px; }
  .kv-list { grid-template-columns: 80px 1fr; }
  .form-foot { display: block; margin: 14px 0 0; }
  .pagination { gap: 6px; }
  .pagination a, .pagination span { padding: 7px 10px; min-width: 34px; }
  .row-actions { white-space: normal; }
  .profile-mini { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ==================== v3 手机版适配层 ==================== */
/* 刘海 / 底部横条安全区、底部快捷导航、触控目标、极窄屏与横屏 */
html { overscroll-behavior-y: none; }
body { overflow-x: hidden; }
a, button { touch-action: manipulation; }
.container { padding-left: calc(20px + env(safe-area-inset-left, 0px)); padding-right: calc(20px + env(safe-area-inset-right, 0px)); }
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.nav-scrim { display: none; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .22s; }
.mobile-tabbar { display: none; }

@media (max-width: 820px) {
  .nav-scrim.show { display: block; opacity: 1; }
  .site-header.nav-open .nav-links { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .mobile-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(9,11,18,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 30px rgba(0,0,0,.5);
  }
  .mobile-tabbar .tab-item {
    min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px;
    text-decoration: none; cursor: pointer; padding: 6px 2px; -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar .tab-item:hover { text-decoration: none; }
  .mobile-tabbar .tab-item svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-tabbar .tab-item.active { color: var(--gold-2); }
  .mobile-tabbar .tab-item.active svg { filter: drop-shadow(0 0 6px rgba(201,162,75,.55)); }
  /* 触控目标 >= 44px */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .nav-toggle { width: 44px; height: 44px; }
  .filter-bar a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 15px; }
  .pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-btn { min-height: 40px; display: inline-flex; align-items: center; }
  .card-link:active { transform: scale(.985); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .stat-row { gap: 14px; }
  .stat .n { font-size: 24px; }
  .section-head h2 { font-size: 20px; }
  .brand .name small { display: none; }
  .mobile-tabbar .tab-item { font-size: 10px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 30px 0 24px; }
  .hero h1 { font-size: 28px; }
  .stat-row { margin-top: 18px; }
  .site-header { position: static; }
  .mobile-tabbar .tab-item { min-height: 44px; }
  body { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
}
