/* ============================================================
   中国DJ协会 官网  设计系统
   暗场主视觉 + 金/青霓虹强调色
   ============================================================ */

:root {
  /* 底色层 */
  --bg-0: #07080d;
  --bg-1: #0d1017;
  --bg-2: #141925;
  --bg-3: #1c2333;

  /* 文字 */
  --tx-1: #f2f5fa;
  --tx-2: #a8b2c4;
  --tx-3: #6b7689;

  /* 主色 */
  --gold: #e8c26a;
  --gold-dim: #b8933f;
  --cyan: #3ddbd9;
  --violet: #8b6cf0;
  --red: #ff5f6d;
  --green: #46d39a;

  /* 线与面 */
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  --sh-1: 0 4px 18px rgba(0, 0, 0, 0.4);
  --sh-2: 0 16px 48px rgba(0, 0, 0, 0.55);

  --grad-gold: linear-gradient(135deg, #f5d98b 0%, #e8c26a 45%, #b8933f 100%);
  --grad-neon: linear-gradient(135deg, #3ddbd9 0%, #8b6cf0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-0);
  color: var(--tx-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 舞台灯光背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 194, 106, 0.13), transparent 62%),
    radial-gradient(800px 520px at 92% 4%, rgba(61, 219, 217, 0.11), transparent 60%),
    radial-gradient(700px 620px at 50% 108%, rgba(139, 108, 240, 0.13), transparent 62%);
  pointer-events: none;
}

/* 细网格纹理 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

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

::selection { background: rgba(232, 194, 106, 0.3); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #2b344a; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 940px; }
.mid { max-width: 760px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.center { text-align: center; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo-badge {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #241a05;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 16px rgba(232, 194, 106, 0.3);
}

.logo-txt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: 1px; line-height: 1.25; }
.logo-txt small { display: block; font-size: 9.5px; color: var(--tx-3); letter-spacing: 2.2px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-s);
  font-size: 14.5px;
  color: var(--tx-2);
  transition: all 0.22s;
}
.nav-links a:hover { color: var(--tx-1); background: var(--card-2); }
.nav-links a.on { color: var(--gold); background: rgba(232, 194, 106, 0.1); }

.nav-cta {
  padding: 9px 20px !important;
  border-radius: 999px !important;
  background: var(--grad-gold);
  color: #241a05 !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(232, 194, 106, 0.26);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(232, 194, 106, 0.36); }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
}
.nav-user .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.nav-user a { padding: 4px 10px; font-size: 13px; color: var(--tx-2); }
.nav-user a:hover { color: var(--tx-1); }

/* 移动端菜单按钮 */
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 11px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--tx-1); margin: 4px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(9, 11, 17, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    transform: translateY(-140%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.show { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-burger { display: block; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-gold { background: var(--grad-gold); color: #241a05; box-shadow: 0 6px 22px rgba(232, 194, 106, 0.26); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232, 194, 106, 0.36); }
.btn-neon { background: var(--grad-neon); color: #05202a; box-shadow: 0 6px 22px rgba(61, 219, 217, 0.24); }
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(61, 219, 217, 0.34); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--tx-1); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--tx-3); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--tx-2); }
.btn-outline:hover { color: var(--tx-1); border-color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 38px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- 卡片 / 徽标 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 28px;
  transition: all 0.26s;
}
.card-hover:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-4px); box-shadow: var(--sh-1); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* 功能图标块 */
.ficon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 23px;
  margin-bottom: 18px;
  background: rgba(232, 194, 106, 0.1);
  border: 1px solid rgba(232, 194, 106, 0.24);
}
.ficon.c { background: rgba(61, 219, 217, 0.1); border-color: rgba(61, 219, 217, 0.24); }
.ficon.v { background: rgba(139, 108, 240, 0.12); border-color: rgba(139, 108, 240, 0.26); }
.ficon.r { background: rgba(255, 95, 109, 0.1); border-color: rgba(255, 95, 109, 0.24); }

/* ---------- 标题 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 12.5px; letter-spacing: 1.4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.32; } }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(32px, 5.2vw, 54px); letter-spacing: -1px; }
h2 { font-size: clamp(25px, 3.6vw, 38px); letter-spacing: -0.6px; }
h3 { font-size: 19px; }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.neon-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head { margin-bottom: 46px; }
.sec-head p { color: var(--tx-2); margin-top: 14px; font-size: 16px; max-width: 640px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; position: relative; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
/* fr 列默认 min-width:auto 会被内容最小尺寸挤压，显式置 0 防止塌缩 */
.hero-grid > * { min-width: 0; }

@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 17.5px; color: var(--tx-2); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats .st b { display: block; font-size: 27px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.hero-stats .st span { font-size: 13px; color: var(--tx-3); }

/* Hero 右侧视觉：旋转唱盘 */
.turntable {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: 0 auto;
  /* 不设 grid 布局，避免 aspect-ratio 子项塌缩；用 aspect-ratio 撑正方形 */
  aspect-ratio: 1;
}
.turntable .platter {
  position: absolute; inset: 5%;
  width: 90%; height: 90%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, var(--bg-2) 0%, var(--bg-0) 74%);
  border: 1px solid var(--line-2);
  animation: spin 14s linear infinite;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.75);
}
@keyframes spin { to { transform: rotate(360deg); } }

.turntable .disc {
  position: absolute; inset: 27%;
  width: 46%; height: 46%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61,219,217,0.5), rgba(139,108,240,0.5), rgba(232,194,106,0.5), rgba(61,219,217,0.5));
  display: grid; place-items: center;
  animation: spin 5.5s linear infinite reverse;
}
.turntable .disc::after {
  content: "";
  width: 26%; height: 26%;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
}
.turntable .beam {
  position: absolute;
  width: 46%; height: 46%;
  top: 4%; right: 4%;
  background: conic-gradient(from 200deg, transparent 0deg, rgba(232, 194, 106, 0.15) 40deg, transparent 76deg);
  filter: blur(14px);
  animation: spin 9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .turntable .platter, .turntable .disc, .turntable .beam { animation: none; }
}

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  font-size: 30px; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(232, 194, 106, 0.6);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.step h4 { margin-bottom: 8px; font-size: 16.5px; }
.step p { font-size: 14px; color: var(--tx-2); }

/* ---------- 表单 ---------- */
.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 38px;
  box-shadow: var(--sh-2);
}
@media (max-width: 620px) { .form-card { padding: 26px 20px; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--tx-2); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--red); margin-left: 3px; }

.input, .select, textarea.input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--tx-1);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}
.input::placeholder { color: var(--tx-3); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 194, 106, 0.13);
  background: rgba(0, 0, 0, 0.45);
}
.select { cursor: pointer; }
.select option { background: var(--bg-2); color: var(--tx-1); }

.err { color: var(--red); font-size: 12.5px; margin-top: 7px; display: none; }
.err.show { display: block; }

.hint { font-size: 12.5px; color: var(--tx-3); margin-top: 7px; }

/* 密码强度条 */
.pw-bar { height: 4px; border-radius: 3px; background: var(--bg-3); margin-top: 9px; overflow: hidden; display: flex; gap: 3px; }
.pw-bar i { flex: 1; background: var(--bg-3); border-radius: 3px; transition: background 0.3s; }
.pw-bar.l1 i:nth-child(1) { background: var(--red); }
.pw-bar.l2 i:nth-child(-n+2) { background: var(--gold); }
.pw-bar.l3 i:nth-child(-n+3) { background: var(--cyan); }
.pw-bar.l4 i { background: var(--green); }
.pw-text { font-size: 12px; color: var(--tx-3); margin-top: 6px; }

/* 验证码 */
.captcha-row { display: flex; gap: 12px; align-items: stretch; }
.captcha-row .input { flex: 1; }
.captcha-img {
  width: 132px; height: 49px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: "Courier New", monospace;
  font-size: 21px; font-weight: 800;
  letter-spacing: 7px;
  user-select: none;
  font-style: italic;
}

/* 单选卡片组 */
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pick-item {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 20px;
  cursor: pointer;
  background: var(--card);
  transition: all 0.22s;
}
.pick-item:hover { border-color: var(--tx-3); }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item .pk-t { font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.pick-item .pk-d { font-size: 13px; color: var(--tx-3); line-height: 1.55; }
.pick-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(232, 194, 106, 0.09);
  box-shadow: 0 0 0 3px rgba(232, 194, 106, 0.1);
}
.pick-item:has(input:checked) .pk-t { color: var(--gold); }

/* 勾选协议 */
.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--tx-2); cursor: pointer; line-height: 1.6; }
.agree input { margin-top: 4px; accent-color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.agree a { color: var(--gold); border-bottom: 1px dashed rgba(232,194,106,0.5); }
.agree a:hover { color: #f5d98b; }

/* 提示条 */
.note {
  display: flex; gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-s);
  font-size: 13.5px;
  border: 1px solid;
  line-height: 1.65;
  margin-bottom: 20px;
}
.note-i { background: rgba(61, 219, 217, 0.07); border-color: rgba(61, 219, 217, 0.24); color: #9be8e6; }
.note-w { background: rgba(232, 194, 106, 0.07); border-color: rgba(232, 194, 106, 0.26); color: #e6d1a0; }
.note-d { background: rgba(255, 95, 109, 0.07); border-color: rgba(255, 95, 109, 0.24); color: #ffb0b6; }
.note .ni { flex-shrink: 0; font-size: 15px; }

/* 进度条 */
.prog { height: 3px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.prog i { display: block; height: 100%; background: var(--grad-gold); width: 0; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- 弹层 ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3, 4, 7, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 24px;
}
.modal-bg.show { display: grid; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 34px;
  text-align: center;
  box-shadow: var(--sh-2);
  animation: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .m-ico { font-size: 46px; margin-bottom: 16px; }
.modal h3 { margin-bottom: 10px; font-size: 21px; }
.modal p { color: var(--tx-2); font-size: 14.5px; margin-bottom: 24px; }

/* ---------- 证书（A4 竖版） ---------- */
.cert-page {
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1 / 1.414;
  margin: 0 auto;
  position: relative;
  padding: 46px 50px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

/* 证书金框 */
.cert-border {
  position: absolute; inset: 20px;
  border: 2px solid #b8933f;
  pointer-events: none;
}
.cert-border::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(184, 147, 63, 0.45);
}
.cert-corner {
  position: absolute;
  width: 44px; height: 44px;
  border: 3px solid #b8933f;
}
.cert-corner.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.cert-corner.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.cert-corner.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.cert-corner.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

/* 水印 */
.cert-wm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-32deg);
  font-size: 92px;
  font-weight: 900;
  color: rgba(184, 147, 63, 0.055);
  letter-spacing: 12px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cert-head { text-align: center; position: relative; z-index: 2; }
.cert-emblem {
  width: 66px; height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 900; color: #2b1f06;
  box-shadow: 0 4px 18px rgba(184, 147, 63, 0.35);
  letter-spacing: -1px;
}
.cert-org-en { font-size: 10.5px; letter-spacing: 3.4px; color: #8a7a4e; text-transform: uppercase; margin-bottom: 3px; }
.cert-org { font-size: 29px; font-weight: 800; letter-spacing: 7px; color: #2b1f06; margin-bottom: 12px; }

.cert-title {
  display: inline-block;
  padding: 5px 30px;
  border-top: 1px solid #b8933f;
  border-bottom: 1px solid #b8933f;
  font-size: 20px; font-weight: 700; letter-spacing: 5px;
  color: #8a6a20;
  margin-bottom: 20px;
}
.cert-title-en { font-size: 9.5px; letter-spacing: 2.2px; color: #a89a7c; margin-bottom: 22px; text-transform: uppercase; }

.cert-body { flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.cert-to { text-align: center; font-size: 15px; color: #555; margin-bottom: 16px; letter-spacing: 1px; }

.cert-name {
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.cert-name-en { text-align: center; font-size: 13px; letter-spacing: 3.5px; color: #a08c55; text-transform: uppercase; margin-bottom: 26px; }

.cert-statement { text-align: center; font-size: 14.5px; color: #444; line-height: 2.3; max-width: 560px; margin: 0 auto 28px; }
.cert-statement b { color: #8a6a20; font-weight: 700; }

/* 证书信息栏 */
.cert-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(184, 147, 63, 0.32);
  background: rgba(184, 147, 63, 0.035);
}
.cert-info .ci {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(184, 147, 63, 0.2);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cert-info .ci:nth-child(odd) { border-right: 1px solid rgba(184, 147, 63, 0.2); }
.cert-info .ci:nth-last-child(-n+2) { border-bottom: 0; }
.cert-info .ci-l { font-size: 12px; color: #8a7a4e; flex-shrink: 0; width: 68px; }
.cert-info .ci-v { font-size: 14px; font-weight: 600; color: #2b1f06; font-family: "Courier New", monospace; letter-spacing: 0.4px; word-break: break-all; }
/* 编号/防伪码允许独占整行，避免长编号折行拥挤 */
.cert-info .ci.wide { grid-column: 1 / -1; border-right: 0 !important; }
.cert-info .ci.wide .ci-v { font-size: 13.5px; letter-spacing: 0.3px; word-break: break-all; }
.cert-info .ci.full { grid-column: 1 / -1; border-right: 0 !important; }
.cert-info .ci.full .ci-v { font-size: 13px; letter-spacing: 0.2px; }

/* 底部签名区 */
.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}
.cert-sign { text-align: center; }
.cert-sign .sv {
  font-family: "STXingkai", "KaiTi", "STKaiti", cursive;
  font-size: 25px;
  color: #2b4a8a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.24);
  padding: 0 18px 3px;
  margin-bottom: 5px;
}
.cert-sign .sl { font-size: 11.5px; color: #666; letter-spacing: 1px; }

.cert-seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2.5px solid rgba(190, 32, 42, 0.62);
  display: grid; place-items: center;
  text-align: center;
  color: rgba(190, 32, 42, 0.68);
  font-size: 10px; font-weight: 700;
  line-height: 1.4;
  transform: rotate(-11deg);
  background: radial-gradient(circle, rgba(190, 32, 42, 0.05), transparent 72%);
  letter-spacing: 0.5px;
}
.cert-seal b { display: block; font-size: 12.5px; letter-spacing: 1px; }
.cert-seal i { font-style: normal; font-size: 7.5px; opacity: 0.82; }

.cert-qr { text-align: center; }
.cert-qr canvas { width: 78px; height: 78px; image-rendering: pixelated; background: #fff; padding: 4px; border: 1px solid rgba(184,147,63,0.35); }
.cert-qr .qc { font-size: 9px; color: #8a7a4e; letter-spacing: 0.5px; margin-top: 5px; }

@media (max-width: 700px) {
  .cert-page { padding: 30px 26px; aspect-ratio: auto; min-height: 1080px; }
  .cert-org { font-size: 22px; letter-spacing: 4px; }
  .cert-name { font-size: 29px; letter-spacing: 3px; }
  .cert-info { grid-template-columns: 1fr; }
  .cert-info .ci:nth-child(odd) { border-right: 0; }
  .cert-info .ci:nth-last-child(-n+2) { border-bottom: 1px solid rgba(184,147,63,0.2); }
  .cert-info .ci:last-child { border-bottom: 0; }
  .cert-wm { font-size: 54px; }
}

/* ---------- 工作牌 ---------- */
.badge-wrap { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; }

/* 横向证卡 */
.badge {
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(140deg, #10141d, #1b2130);
  border: 1px solid rgba(232, 194, 106, 0.35);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  position: relative;
}
.badge-top {
  height: 5px;
  background: var(--grad-gold);
}
.badge-main { padding: 20px; display: flex; gap: 16px; align-items: center; }

.badge-photo {
  width: 76px; height: 94px;
  border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 30px;
  flex-shrink: 0;
  overflow: hidden;
}
.badge-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-photo.tall { height: 108px; }

.badge-info { flex: 1; min-width: 0; }
.badge-role { font-size: 10px; letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.badge-name { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin-bottom: 5px; }
.badge-en { font-size: 9.5px; letter-spacing: 1.6px; color: var(--tx-3); text-transform: uppercase; margin-bottom: 10px; }
.badge-rows { font-size: 11.5px; color: var(--tx-2); line-height: 1.85; }
.badge-rows b { color: var(--tx-3); font-weight: 400; display: inline-block; width: 52px; }

.badge-bot {
  padding: 11px 20px;
  border-top: 1px dashed rgba(232, 194, 106, 0.28);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, 0.22);
}
.badge-no { font-family: "Courier New", monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.5px; }
.badge-hologram {
  width: 44px; height: 26px;
  border-radius: 4px;
  background: linear-gradient(120deg, #3ddbd9, #8b6cf0, #e8c26a);
  opacity: 0.65;
}

/* 竖版挂绳卡 */
.badge-v {
  width: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(170deg, #121722, #0c1017);
  border: 1px solid rgba(232, 194, 106, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
.badge-v .bv-top {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(232, 194, 106, 0.2);
  display: flex; align-items: center; gap: 9px;
  background: rgba(232, 194, 106, 0.06);
}
.badge-v .bv-mark {
  width: 27px; height: 27px; border-radius: 7px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: #241a05;
}
.badge-v .bv-o { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; line-height: 1.3; }
.badge-v .bv-o small { display: block; font-size: 7px; color: var(--tx-3); letter-spacing: 1.2px; font-weight: 400; }

.badge-v .bv-photo {
  height: 148px;
  margin: 14px 14px 0;
  border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 44px;
  overflow: hidden;
}
.badge-v .bv-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-v .bv-body { padding: 12px 16px 16px; text-align: center; }
.badge-v .bv-name { font-size: 19px; font-weight: 800; letter-spacing: 2px; margin-bottom: 3px; }
.badge-v .bv-en { font-size: 8.5px; letter-spacing: 1.4px; color: var(--tx-3); text-transform: uppercase; margin-bottom: 9px; }
.badge-v .bv-role {
  display: inline-block;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #241a05;
  font-size: 11px; font-weight: 700;
  margin-bottom: 9px;
}
.badge-v .bv-no { font-family: "Courier New", monospace; font-size: 9.5px; color: var(--tx-3); letter-spacing: 0.3px; }
.badge-v .bv-qr { margin: 11px auto 0; width: 74px; }
.badge-v .bv-qr canvas { width: 100%; height: auto; image-rendering: pixelated; background: #fff; padding: 3px; border-radius: 3px; }

/* ---------- 会员中心 ---------- */
.dash { display: grid; grid-template-columns: 236px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }

.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px;
  position: sticky;
  top: 86px;
}
@media (max-width: 900px) { .side { position: static; } }

.side-user { padding: 14px 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side-user .av {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 800; color: #241a05;
  margin-bottom: 10px;
}
.side-user b { display: block; font-size: 15.5px; }
.side-user small { color: var(--tx-3); font-size: 11.5px; font-family: "Courier New", monospace; }

.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-s);
  font-size: 14px;
  color: var(--tx-2);
  transition: all 0.2s;
}
.side-nav a:hover { background: var(--card-2); color: var(--tx-1); }
.side-nav a.on { background: rgba(232, 194, 106, 0.11); color: var(--gold); font-weight: 600; }
.side-nav .ic { width: 18px; text-align: center; font-size: 15px; }

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.tag-g { background: rgba(70, 211, 154, 0.11); border-color: rgba(70, 211, 154, 0.32); color: var(--green); }
.tag-w { background: rgba(232, 194, 106, 0.11); border-color: rgba(232, 194, 106, 0.32); color: var(--gold); }
.tag-r { background: rgba(255, 95, 109, 0.11); border-color: rgba(255, 95, 109, 0.32); color: var(--red); }
.tag-c { background: rgba(61, 219, 217, 0.1); border-color: rgba(61, 219, 217, 0.3); color: var(--cyan); }
.tag-v { background: rgba(139, 108, 240, 0.12); border-color: rgba(139, 108, 240, 0.32); color: #a68cf5; }

/* 统计块 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px;
}
.stat .sl { font-size: 12.5px; color: var(--tx-3); margin-bottom: 7px; }
.stat .sv { font-size: 25px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stat.c .sv { color: var(--cyan); }
.stat.v .sv { color: #a68cf5; }
.stat.g .sv { color: var(--green); }

/* 会员号展示 */
.mono-box {
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-s);
  padding: 15px 18px;
  font-family: "Courier New", monospace;
  font-size: 15px;
  color: var(--cyan);
  letter-spacing: 0.6px;
  word-break: break-all;
  line-height: 1.7;
}
.mono-box b { color: var(--gold); }

/* 数据表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left;
  padding: 12px 14px;
  color: var(--tx-3);
  font-weight: 500;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--tx-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--card); }
.tbl .mono { font-family: "Courier New", monospace; font-size: 12.5px; color: var(--tx-2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }

/* 空态 */
.empty { text-align: center; padding: 62px 20px; }
.empty .ei { font-size: 46px; margin-bottom: 14px; opacity: 0.4; }
.empty p { color: var(--tx-3); font-size: 14.5px; margin-bottom: 20px; }

/* 分区标题 */
.blk { margin-bottom: 34px; }
.blk-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.blk-h h3 { display: flex; align-items: center; gap: 9px; font-size: 17.5px; }
.blk-h h3::before { content: ""; width: 3px; height: 17px; border-radius: 2px; background: var(--grad-gold); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
}
.faq-q:hover { color: var(--gold); }
.faq-q .ar { transition: transform 0.28s; font-size: 13px; color: var(--tx-3); flex-shrink: 0; }
.faq-item.open .faq-q .ar { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a .inner { padding: 0 0 22px; color: var(--tx-2); font-size: 14.5px; line-height: 1.85; }

/* ---------- 声明 / 权威认证 ---------- */
.decl {
  background: linear-gradient(160deg, rgba(232, 194, 106, 0.09), rgba(232, 194, 106, 0.02));
  border: 1px solid rgba(232, 194, 106, 0.3);
  border-radius: var(--r-l);
  padding: 38px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 620px) { .decl { padding: 26px 20px; } }
.decl::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 106, 0.13), transparent 70%);
}
.decl h3 { color: var(--gold); margin-bottom: 18px; font-size: 21px; display: flex; align-items: center; gap: 11px; position: relative; }
.decl p { color: var(--tx-2); margin-bottom: 14px; font-size: 14.5px; line-height: 1.95; position: relative; }
.decl p:last-child { margin-bottom: 0; }
.decl strong { color: var(--tx-1); }

/* 待填占位：真实备案信息 */
.fill-slot {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed rgba(232, 194, 106, 0.55);
  border-radius: 5px;
  background: rgba(232, 194, 106, 0.08);
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); padding: 56px 0 26px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 38px; margin-bottom: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot h5 { font-size: 14px; margin-bottom: 16px; color: var(--tx-1); }
.foot p { font-size: 13.5px; color: var(--tx-3); line-height: 1.9; }
.foot-links a { display: block; font-size: 13.5px; color: var(--tx-3); padding: 5px 0; transition: color 0.2s; }
.foot-links a:hover { color: var(--gold); }

.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--tx-3);
}
.foot-bot a { color: var(--tx-3); }
.foot-bot a:hover { color: var(--gold); }

/* ---------- 浮动提示 ---------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1000;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(70, 211, 154, 0.45); color: var(--green); }
.toast.no { border-color: rgba(255, 95, 109, 0.45); color: var(--red); }

/* 返回顶部 */
.top-btn {
  position: fixed; right: 26px; bottom: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  font-size: 17px;
}
.top-btn.show { opacity: 1; pointer-events: auto; }
.top-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 工具类 ---------- */
.mb0 { margin-bottom: 0 !important; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }
.tc { text-align: center; }
.tx2 { color: var(--tx-2); }
.tx3 { color: var(--tx-3); }
.fs13 { font-size: 13px; }
.fs14 { font-size: 14px; }
.mono { font-family: "Courier New", monospace; }
.flex { display: flex; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.ic-between { justify-content: space-between; }
.ic-center { align-items: center; }
.mt-a { margin-top: auto; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }

/* ---------- 打印 ---------- */
@media print {
  body { background: #fff !important; color: #000; }
  body::before, body::after { display: none !important; }
  .nav, .foot, .top-btn, .no-print, .toast { display: none !important; }
  .print-only { display: block !important; }
  .cert-page {
    box-shadow: none !important;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    page-break-inside: avoid;
    margin: 0;
  }
  @page { size: A4 portrait; margin: 0; }
  .badge { box-shadow: none; break-inside: avoid; }
  .badge-wrap { gap: 18px; }
}

.print-only { display: none; }

/* 工作证打印：白底适配 */
@media print {
  .badge, .badge-v {
    background: #fff !important;
    border-color: #999 !important;
  }
  .badge-top { background: #b8933f !important; }
  .badge-name, .badge-v .bv-name { color: #000 !important; }
  .badge-role, .badge-v .bv-o { color: #8a6a20 !important; }
  .badge-rows, .badge-v .bv-en, .badge-v .bv-no { color: #444 !important; }
  .badge-rows b { color: #777 !important; }
  .badge-bot { background: #f5f5f5 !important; }
  .badge-no { color: #8a6a20 !important; }
  .badge-photo, .badge-v .bv-photo { background: #eee !important; border-color: #bbb !important; }
  .badge-v .bv-top { background: #faf6ec !important; }
  .badge-v .bv-role { background: #b8933f !important; color: #fff !important; }
}