/* =====================================================================
   建筑业数字化竞赛 · 前台设计系统
   配色全部集中为 CSS 变量；后续拿到 Pinterest 色板只需替换 :root 即可整体换肤
   ===================================================================== */

/* ---------- 设计 Token（浅色） ---------- */
:root {
  /* 品牌色 —— 建筑业稳重深蓝 + 金质强调 */
  --primary:        #10367D;   /* 方案十四：深海军蓝 */
  --primary-600:    #014BAA;
  --primary-700:    #08285F;
  --primary-soft:   #E8F0F8;
  --accent:         #014BAA;
  --accent-soft:    #DCEBFA;
  --on-primary:     #FFFFFF;   /* 主色上的文字 */
  --on-accent:      #FFFFFF;   /* 强调色上的文字 */
  --danger:         #E53935;
  --danger-soft:    #F6E3E3;
  --success:        #3B6D11;
  --success-soft:   #E6F0DC;
  --warning:        #B26A00;
  --warning-soft:   #FBEEDA;

  /* 中性 / 表面 */
  --bg:             #F1F6F8;
  --surface:        #FFFFFF;
  --surface-2:      #F0F3F8;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --text:           #172B3A;
  --text-2:         #425A70;
  --text-3:         #64788A;

  /* 玻璃拟态 */
  --glass-bg:       rgba(255,255,255,0.72);
  --glass-border:   rgba(255,255,255,0.6);

  /* 阴影 / 圆角 / 间距 */
  --shadow-sm:  0 1px 2px rgba(16,36,58,.06), 0 1px 3px rgba(16,36,58,.08);
  --shadow:     0 6px 20px rgba(16,36,58,.08), 0 2px 6px rgba(16,36,58,.06);
  --shadow-lg:  0 24px 60px rgba(16,36,58,.16), 0 8px 20px rgba(16,36,58,.10);
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 10px;
  --space:     8px;

  /* 动效曲线 */
  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur:       .4s;

  --maxw: 1200px;
  --nav-h: 68px;
  --font: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif;
  /* 标题与正文统一字体，展示层级通过字号和粗细区分。 */
  --font-display: var(--font);
  /* 内容区极轻纵深光晕（纯装饰，不影响纯色品牌） */
  --depth-glow: rgba(37,99,235,0.05);

  /* 配色方案（由 JS applySiteTheme 按所选方案覆盖；此处为蓝色默认回退） */
  --footer-bg:     #10367D;
  --footer-text:   #FFFFFF;
}

/* ---------- 深色主题 ---------- */
[data-theme="dark"] {
  --primary:      #236DB0;
  --primary-600:  #3C7FC1;
  --primary-700:  #014BAA;
  --primary-soft: #16263B;
  --accent:       #014BAA;
  --accent-soft:  #123B5D;
  --on-primary:   #0A0E15;
  --on-accent:    #0A0E15;
  --footer-bg:    #236DB0;
  --footer-text:  #0A0E15;
  --danger:       #E57373;
  --danger-soft:  #3A2020;
  --success:      #8BC34A;
  --success-soft: #1E2E16;
  --warning:      #E0A44A;
  --warning-soft: #332A14;

  --bg:           #071A2A;
  --surface:      #0D3550;
  --surface-2:    #123B5D;
  --border:       #294B64;
  --border-strong:#3C6682;
  --text:         #F1F6F8;
  --text-2:       #C5D5DF;
  --text-3:       #A6C0CD;
  --depth-glow: rgba(96,165,250,0.06);

  --glass-bg:     rgba(18,27,41,.72);
  --glass-border: rgba(255,255,255,.08);

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 6px 20px rgba(0,0,0,.45);
  --shadow-lg:  0 24px 60px rgba(0,0,0,.6);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { overflow-x: hidden; }
/* 动效克制：平滑滚动仅在用户未要求减少动效时启用 */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft);
}

/* 极轻纵深：内容区氛围光晕（纯装饰，置于内容之下、背景之上） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 88% -8%, var(--depth-glow), transparent 62%),
    radial-gradient(820px 460px at -8% 108%, var(--depth-glow), transparent 62%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.4; font-weight: 700; color: var(--text); margin: 0 0 .5em; letter-spacing: 0; font-family: var(--font-display); }
.hero h1, .nc-title, .brand-text strong, .modal-title, .ed-h { font-family: var(--font-display); }
p { margin: 0 0 1em; color: var(--text-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.view { min-height: calc(100vh - var(--nav-h) - 320px); outline: none; }
.muted { color: var(--text-3); }
.gradient-text {
  color: var(--primary);
}

/* ---------- 按钮 ---------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh); padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease-soft), color .2s;
  white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --bh: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease), border-color .2s, background .2s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.05); border-color: var(--primary); }

/* ---------- 导航 ---------- */
.nav--solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-logo { display: block; height: 40px; width: auto; border-radius: 8px; object-fit: contain; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease-soft), border-color var(--dur);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--primary);
  color: var(--on-primary); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; color: var(--text); }
.brand-text em { font-size: 11px; font-style: normal; color: var(--text-3); letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

/* 配色方案切换时，品牌色相关元素平滑过渡（渐变类无法 CSS 动画，整体观感仍连贯） */
.brand-mark, .tag, .badge, .gradient-text, .nav-links a, .icon-btn {
  transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft), background var(--dur) var(--ease-soft);
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.nav-actions .btn-ghost { margin-left: 0; }
#navAvatar {
  background: var(--primary); color: var(--on-primary); border:none;
  font-weight:600; padding: 0 16px;
}
.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 9px; }
.hamburger span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* 移动抽屉 */
.drawer {
  position: fixed; top: var(--nav-h); right: 0; width: min(82vw, 320px); height: calc(100vh - var(--nav-h));
  background: var(--surface); box-shadow: var(--shadow-lg); z-index: 49;
  transform: translateX(105%); transition: transform .35s var(--ease); padding: 16px;
}
.drawer.open { transform: translateX(0); }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-links a { padding: 14px 16px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--text); }
.drawer-links a:hover, .drawer-links a.active { background: var(--primary-soft); color: var(--primary); }
.drawer-backdrop { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(8,14,24,.4); z-index: 48; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- 卡片 / 玻璃 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 12px; }
.section-head p { font-size: 16px; }

/* 培训专区：子板块标题（视频培训 / 资料下载） */
.subhead { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.subhead h3 { margin: 0; font-size: 20px; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
/* 培训专区：视频培训区与资料下载区之间加大留白 */
.subhead--sep { margin-top: 64px; }

/* 网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 徽标 / 标签 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.6; border: 1px solid transparent;
}
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-gold { background: var(--accent-soft); color: var(--accent); } /* 保留类名，渲染已随 accent 改为蓝色系 */
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.badge-amber { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; background: var(--surface-2); color: var(--text-2); margin: 0 6px 6px 0; }

/* 进度条（两段式审核） */
.audit-bar { display: flex; gap: 10px; align-items: center; }
.audit-stage { flex: 1; }
.audit-stage .label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; display:flex; justify-content: space-between; }
.audit-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.audit-fill { height: 100%; border-radius: 999px; transition: width .6s var(--ease); }
.audit-fill.pass { background: linear-gradient(90deg, var(--success), #5a9a1d); }
.audit-fill.fail { background: linear-gradient(90deg, var(--danger), #c44242); }
.audit-fill.empty { background: var(--surface-2); }
.audit-fill.part { background: linear-gradient(90deg, var(--accent), #0ea5e9); }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--danger); }

/* 省市区三级联动：三段并排，窄屏自动堆叠 */
.region-cascade { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.region-cascade .field { margin-bottom: 0; }
@media (max-width: 640px) { .region-cascade { grid-template-columns: 1fr; } }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.textarea { resize: vertical; min-height: 96px; }

/* ---------- 联系我们（固定版块） ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-info, .contact-form { height: 100%; }
.contact-info h3, .contact-form h3 { font-size: 20px; color: var(--text); }
.ci-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ci-row:last-child { border-bottom: none; }
.ci-row--qr { align-items: flex-start; }
.ci-ico { font-size: 22px; line-height: 1.2; flex: 0 0 auto; width: 30px; text-align: center; }
.ci-label { font-size: 13px; color: var(--text-3); margin-bottom: 3px; }
.ci-val { font-size: 15px; color: var(--text); font-weight: 600; line-height: 1.5; }

/* ---------- 认证页（登录 / 注册）呼吸感优化 ---------- */
.auth-card { padding: 40px 36px; }
.auth-card .section-head { margin-bottom: 28px; }
.auth-card .section-head h2 { font-size: 30px; letter-spacing: .01em; }
.auth-card .section-head p { font-size: 15px; line-height: 1.75; margin-top: 10px; color: var(--text-2); }
.auth-card .field { margin-bottom: 22px; }
.auth-card .field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.auth-card .field .req { color: var(--danger); }
.auth-card .input { padding: 13px 15px; font-size: 15px; border-radius: 12px; }
.auth-card .btn-lg { padding-top: 14px; padding-bottom: 14px; font-size: 16px; }
.auth-card .divider { margin: 26px 0; }
.auth-card .muted { line-height: 1.95; }
.auth-card code { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; font-size: 12px; border: 1px solid var(--border); }
.auth-card .text-center.muted.mt-2 { margin-top: 18px; }
@media (max-width: 480px) {
  .auth-card { padding: 30px 22px; }
  .auth-card .section-head h2 { font-size: 26px; }
}

/* ---------- 批量邀请成员 ---------- */
.invite-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.invite-row .input { padding: 10px 12px; }
.invite-row .iv-del { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
@media (max-width: 560px) {
  .invite-row { grid-template-columns: 1fr 1fr; }
  .invite-row .iv-del { grid-column: 2; justify-self: end; }
}

/* ---------- Hero ---------- */
/* 首屏 Hero：左侧大标题/副标题/按钮，右侧独立轮播，互不叠加 */
.hero { position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(520px, 78vh, 760px); padding: 96px 0 88px; color: #fff;
  background: linear-gradient(160deg, var(--primary-700, #0C447C), #0a2e54 60%, #07223f); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text { pointer-events: auto; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; }
.hero .sub { color: rgba(255,255,255,.9); font-size: 18px; max-width: 520px; margin-top: 8px; }
.hero .hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .hero-cta .btn-ghost { color:#fff; border-color: rgba(255,255,255,.45); }
.hero .hero-cta .btn-ghost:hover { background: rgba(255,255,255,.14); color:#fff; }
.hero-carousel { width: 100%; max-width: 580px; justify-self: end; pointer-events: auto; }

/* 轮播 */
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; }
/* 首屏全幅模式：轮播作为 Hero 背景，铺满整屏、无圆角与阴影 */
.carousel--hero { position: absolute; inset: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; height: 100%; }
.carousel--hero .carousel-slides { height: 100%; }
.carousel--hero .carousel-slide { height: 100%; }
.carousel--hero .cs-img,
.carousel--hero .cs-bg { height: 100%; }
.carousel--hero .carousel-arrow.prev { left: 24px; }
.carousel--hero .carousel-arrow.next { right: 24px; }
.carousel--hero .carousel-dots { bottom: 22px; }
.carousel--hero .cs-overlay { padding: 28px 32px 66px; }
.carousel-slides { display: flex; transition: transform .6s var(--ease); height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; position: relative; display:flex; align-items:flex-end; cursor: default; }
.carousel-slide.is-link { cursor: pointer; }
.carousel-slide .cs-img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.carousel-slide .cs-bg { position:absolute; inset:0; }
.carousel-slide .cs-overlay { position: relative; z-index:1; width:100%; padding: 28px; color:#fff; display:flex; flex-direction:column; align-items:flex-start; gap:10px; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.42) 50%, rgba(0,0,0,.12) 80%, rgba(0,0,0,0) 100%); }
.carousel-slide .cs-body { position: relative; z-index:1; text-shadow: 0 2px 6px rgba(0,0,0,.55); }
.carousel-slide .cs-body h3 { color:#fff; font-size: 22px; margin-bottom: 6px; }
.carousel-slide .cs-body p { color: rgba(255,255,255,.92); margin:0; }
.carousel-slide .cs-cta { display:inline-block; margin-top:2px; padding:9px 18px; border-radius:999px; background:#fff; color: var(--primary-700, #0C447C); font-weight:700; font-size:14px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.carousel-slide:hover.is-link .cs-cta { transform: translateY(-1px); }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index:2; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.carousel-dots button.active { width: 26px; border-radius: 999px; background: #fff; }
.carousel-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:42px; height:42px; border-radius:50%; border:none; background:rgba(0,0,0,.35); color:#fff; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.carousel-arrow.prev { left:14px; } .carousel-arrow.next { right:14px; }
.carousel-arrow:hover { background: rgba(0,0,0,.55); }

/* 时间轴 / 赛程 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content:""; position:absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 26px 8px; }
.timeline-item::before { content:""; position:absolute; left: -23px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline-item .ti-date { font-weight: 700; color: var(--primary); font-size: 14px; }
.timeline-item .ti-title { font-weight: 600; }
.timeline-item .ti-desc { color: var(--text-2); font-size: 14px; }

/* 新闻卡片 */
.grid-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.news-card:hover, .news-card:focus { transform: translateY(-4px); box-shadow: var(--shadow); outline: none; }
.nc-thumb { height: 180px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.nc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-cat { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-50, rgba(12,68,124,.08)); padding: 3px 8px; border-radius: 999px; }
.news-tag { font-size: 11px; color: var(--text-3); background: var(--surface-2); padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; transition: all .18s var(--ease); }
.news-tag:hover { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.nc-title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-summary { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-date { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 8px; }
.nc-month { font-size: 18px; font-weight: 700; color: var(--primary); line-height: 1; }
.nc-day { font-size: 14px; color: var(--text-2); }

@media (max-width: 1024px) {
  .grid-news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-news { grid-template-columns: 1fr; }
  .nc-thumb { height: 160px; }
}

/* 新闻独立页：日期筛选栏 */
.filter-bar--secondary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 14px; color: var(--text-2); }

/* 板块标题带右上操作按钮（查看更多新闻 / 查看全部问题） */
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.section-head--row > div:first-child { max-width: 720px; }
.section-head--row .section-head-action { flex-shrink: 0; white-space: nowrap; }

/* 新闻公告：标题居中 + 描述文字居中、与“查看更多”按钮同行右对齐（与“参赛指引”右侧按钮一致） */
.section-head.news-head { position: relative; max-width: none; margin-left: 0; margin-right: 0; }
.news-head .news-subhead { position: relative; margin-top: 10px; text-align: center; }
.news-head .news-desc { margin: 0; text-align: center; }
.news-head .news-more { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .news-head .news-more { position: static; transform: none; display: inline-flex; margin: 12px auto 0; }
}

/* 常见问题：与新闻公告一致 —— 标题居中 + 副标题居中、与“查看全部问题”按钮同行右对齐 */
.section-head.faq-head { position: relative; max-width: none; margin-left: 0; margin-right: 0; }
.faq-head .faq-subhead { position: relative; margin-top: 10px; text-align: center; }
.faq-head .faq-desc { margin: 0; text-align: center; }
.faq-head .faq-more { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .faq-head .faq-more { position: static; transform: none; display: inline-flex; margin: 12px auto 0; }
}

/* 置顶标识（列表卡片 / 详情页 / 后台列表通用） */
.pin-badge { font-size: 11px; font-weight: 600; color: #1e40af; background: #dbeafe; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

/* 新闻公告：筛选工具栏（分类在左、日期筛选在右上角小条） */
.news-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group + .filter-group { margin-top: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .2s var(--ease); }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.filter-chip.tag { font-size: 12px; padding: 4px 12px; }

/* 日期筛选：右上角小条 + 下拉弹层（两个日历选择条：起始/结束） */
.date-filter-wrap { position: relative; flex: 0 0 auto; }
.filter-chip.date { display: inline-flex; align-items: center; gap: 6px; }
.date-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; }
.dp-row { margin-bottom: 12px; }
.dp-row label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; line-height: 1.5; }
.dp-row label b { color: var(--primary); }
.dp-row .input { width: 100%; }
.date-triple { display: flex; align-items: center; gap: 6px; }
.date-triple .input { width: auto; flex: 1 1 0; min-width: 0; padding: 9px 8px; text-align: center; }
.date-triple .dt-sep { color: var(--text-3); font-weight: 700; }
.dp-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 分页导航 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; transition: all .2s var(--ease); }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-ellipsis { color: var(--text-3); padding: 0 4px; }

.empty-state { text-align: center; color: var(--text-2); padding: 48px 0; }

/* 新闻详情页（独立页面，支持浏览与分享/转发） */
.news-detail-page { max-width: 820px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--primary); font-weight: 600; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.nd-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 24px; }
.nd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nd-date { font-size: 13px; color: var(--text-2); }
.nd-title { font-size: 30px; line-height: 1.3; margin: 0 0 16px; color: var(--text); }
.nd-share { display: flex; gap: 10px; }
.nd-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.nd-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.nd-content h1, .nd-content h2, .nd-content h3 { margin: 24px 0 12px; }
.nd-content p { margin: 0 0 16px; }
.nd-content ul, .nd-content ol { padding-left: 22px; margin: 0 0 16px; }
.nd-content a { color: var(--primary); }

@media (max-width: 640px) {
  .date-popover { right: auto; left: 0; min-width: 0; width: calc(100vw - 48px); }
  .news-toolbar { align-items: stretch; }
}

/* 视频卡片 */
.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--primary-700), #07223f); display:flex; align-items:center; justify-content:center; }
.video-thumb .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); display:flex; align-items:center; justify-content:center; font-size: 22px; box-shadow: var(--shadow); }
.video-meta { padding: 14px 16px; }
.video-meta h4 { margin: 0 0 6px; font-size: 15px; }
.video-meta .vm-sub { font-size: 13px; color: var(--text-3); display:flex; gap:10px; }

/* 下载项 */
.dl-item { display:flex; align-items:center; gap: 14px; padding: 16px; border:1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.dl-item:hover { border-color: var(--primary); transform: translateX(2px); }
.dl-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display:flex; align-items:center; justify-content:center; font-size:20px; flex:none; }
.dl-body { flex: 1; min-width: 0; }
.dl-body h4 { margin: 0; font-size: 15px; }
.dl-body p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

/* 往届回顾 */
.past-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.past-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.past-cover { aspect-ratio: 16/9; background: var(--primary); display:flex; align-items:center; justify-content:center; color: var(--on-primary); }
.past-cover .yr { font-size: 40px; font-weight: 800; }
.past-body { padding: 18px; }
.past-body h4 { margin: 0 0 6px; }

/* 我的参赛工作台 */
.workbench { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }

/* 参赛指引步骤卡 */
.guide-step { display: flex; flex-direction: column; }
.guide-num {
  font-size: 38px; font-weight: 800; line-height: 1;
  color: var(--primary);
}
.guide-step .btn { margin-top: auto; }
.team-card { position: sticky; top: calc(var(--nav-h) + 16px); }
.team-member { display:flex; align-items:center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.team-member:last-child { border-bottom: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display:flex; align-items:center; justify-content:center; font-weight:700; flex:none; }
.team-member .tm-name { font-weight: 600; font-size: 14px; }
.team-member .tm-role { font-size: 12px; color: var(--text-3); }
.entry-row { display:flex; align-items:center; gap: 16px; padding: 16px; border:1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: var(--surface); }
.entry-main { flex: 1; min-width: 0; }
.entry-main h4 { margin: 0 0 4px; font-size: 16px; }
.entry-main .em-sub { font-size: 13px; color: var(--text-3); }
.entry-actions { display:flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 模态 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,14,24,.5); backdrop-filter: blur(4px); z-index: 100; display:flex; align-items:center; justify-content:center; padding: 20px; opacity: 0; animation: fadeIn .25s var(--ease-soft) forwards; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto; transform: translateY(12px) scale(.98); animation: pop .35s var(--ease) forwards; border: 1px solid var(--border); }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top:0; background: var(--surface); z-index:1; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-x { border:none; background: var(--surface-2); width: 34px; height:34px; border-radius: 50%; cursor:pointer; font-size: 18px; color: var(--text-2); flex:none; }
.modal-x:hover { background: var(--primary-soft); color: var(--primary); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { border:none; background: var(--surface-2); width: 34px; height:34px; border-radius: 50%; cursor:pointer; font-size: 18px; color: var(--text-2); }
.modal-body { padding: 24px; max-height: 82vh; overflow: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display:flex; gap: 10px; justify-content: flex-end; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { to { transform: translateY(0) scale(1); } }

/* Toast */
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 200; display:flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); min-width: 240px; animation: toastIn .35s var(--ease); display:flex; gap: 10px; align-items:center; }
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
.toast .t-ico { font-size: 18px; }
@keyframes toastIn { from { transform: translateX(20px); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* 工具类 */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; } .gap-1 { gap: 8px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: none; }

/* ---------- 页脚（背景跟随全站配色方案） ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 28px;
  margin-top: auto;
  transition: background var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer-col h4 {
  color: var(--footer-text);
  font-size: 16px;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--footer-text);
  opacity: .74;
  padding: 6px 0;
  font-size: 14.5px;
  transition: opacity .2s, transform .2s var(--ease);
}
.footer-col a:hover {
  opacity: 1;
  transform: translateX(3px);
}
.footer-col p {
  color: var(--footer-text);
  opacity: .74;
  margin: 0 0 8px;
  font-size: 14.5px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-mark {
  background: var(--accent);
  color: var(--on-accent);
}
.footer-brand .brand-text strong { color: var(--footer-text); }
.footer-brand .brand-text em { color: var(--footer-text); opacity: .65; }
.footer-desc {
  color: var(--footer-text);
  opacity: .74;
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 14%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--footer-text);
  opacity: .58;
}

/* 页面过渡 */
.view > * { animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ 统一登录页（与前台/后台同风格） ============ */
/* 登录 / 注册路由下隐藏顶部导航，使登录页全屏呈现，与后台登录一致 */
body.on-auth #nav,
body.on-auth #drawer,
body.on-auth #drawerBackdrop { display: none !important; }
body.on-auth #view { padding: 0; min-height: 100vh; }

.login-screen{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:48px 20px;overflow:hidden;background:var(--bg)}
.login-bg{position:absolute;inset:0;z-index:0;pointer-events:none}
.login-bg::before,.login-bg::after{content:"";position:absolute;border-radius:50%;filter:blur(90px);opacity:.42}
.login-bg::before{width:440px;height:440px;background:radial-gradient(circle,var(--primary),transparent 70%);top:-140px;right:-90px}
.login-bg::after{width:400px;height:400px;background:radial-gradient(circle,var(--accent),transparent 70%);bottom:-140px;left:-110px}
.login-card{position:relative;z-index:1;width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-lg);padding:40px 36px 34px;box-shadow:var(--shadow-lg)}
.login-brand{display:flex;align-items:center;gap:12px}
.login-brand .brand-logo{width:46px;height:46px;border-radius:14px;background:var(--primary);color:var(--on-primary);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;flex:0 0 auto}
.login-brand .brand-name{font-weight:800;font-size:17px;color:var(--text);line-height:1.2}
.login-brand .brand-sub{font-size:11px;color:var(--text-3);margin-top:2px}
.login-form{margin-top:26px}
.login-form .field{margin-bottom:16px}
.login-remember{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--text-2);margin:2px 0 18px;cursor:pointer;user-select:none}
.login-remember input{width:15px;height:15px;accent-color:var(--primary)}
.login-form .btn[type=submit]{width:100%;justify-content:center;padding:13px;font-size:15px}

/* 登录方式切换标签（账号密码 / 手机验证码 / 微信扫码） */
.login-tabs{display:flex;gap:4px;background:var(--primary-soft,#EAF1FF);border-radius:12px;padding:4px;margin:22px 0 6px}
.login-tab{flex:1;border:0;background:transparent;padding:9px 0;border-radius:9px;font-size:13.5px;color:var(--text-2,#5b6b7f);cursor:pointer;transition:.2s;font-weight:600;font-family:inherit}
.login-tab:hover{color:var(--primary,#2563EB)}
.login-tab.is-active{background:var(--surface,#fff);color:var(--primary,#2563EB);box-shadow:var(--shadow-sm,0 1px 3px rgba(0,0,0,.08))}
.sms-row{display:flex;gap:8px;align-items:stretch}
.sms-row .input{flex:1;min-width:0}
.sms-row .btn{flex:none;white-space:nowrap}
.login-wx{text-align:center;padding:16px 0 4px}
.wx-qr{width:172px;height:172px;margin:0 auto;border-radius:14px;background:#fff;border:1px solid var(--border,#e2e8f0);box-shadow:var(--shadow-sm,0 1px 3px rgba(0,0,0,.08));overflow:hidden;display:block}
.wx-qr canvas{display:block;width:100%;height:100%}
.login-foot{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;font-size:13px;color:var(--text-3);flex-wrap:wrap}
.login-foot a{color:var(--primary);font-weight:600}
.login-foot a:hover{text-decoration:underline}
.login-foot .sep{color:var(--border-strong)}
.pwd-wrap{position:relative}
.pwd-wrap .input{padding-right:44px}
.pwd-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;color:var(--text-3);border-radius:8px;transition:background .15s,color .15s}
.pwd-toggle:hover{background:var(--surface-2);color:var(--primary)}
.pwd-toggle.is-on{color:var(--primary)}
.pwd-toggle svg{width:19px;height:19px;display:block}

/* 管理员登录后“进入管理后台”引导页 */
.backend-entry{position:relative;z-index:1;width:100%;max-width:420px;text-align:center}
.backend-entry .be-icon{width:64px;height:64px;border-radius:18px;background:var(--primary);color:var(--on-primary);display:flex;align-items:center;justify-content:center;font-size:30px;margin:0 auto 18px}
.backend-entry h2{font-size:24px;margin:0 0 8px}
.backend-entry p{color:var(--text-2);margin:0 0 22px}

/* ---------- 响应式三档：PC(>1024) / PAD(769–1024) / 手机(≤768) ---------- */
/* PAD 档：保留完整顶部导航（压缩不换行），容器收敛，底部两列，投票卡内边距收窄 */
@media (max-width: 1024px) {
  :root { --maxw: 960px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; }
  .hero-inner { gap: 32px; }
  .hero-carousel { max-width: 460px; }
  .workbench { grid-template-columns: 1fr; }
  .team-card { position: static; }
  /* 页脚两列（PAD→手机一致，避免 4 列 cramped 与单列居中难看） */
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .vote-detail { padding: 24px; }
  /* PAD 导航压缩：链接更紧，避免换行挤占 */
  .nav-links { gap: 1px; }
  .nav-links a { padding: 7px 10px; font-size: 14px; }
  .nav-actions .btn-ghost { display: inline-flex; }
}

/* 手机档：抽屉导航、单列为主、底部紧凑两列（页脚样式由 portal-mobile.css 细化） */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 52px 0; }
  .hero { min-height: auto; padding: 64px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .hero-cta { justify-content: center; }
  .hero-carousel { max-width: 520px; justify-self: center; }
  .entry-row { flex-direction: column; align-items: stretch; }
  .entry-actions { justify-content: flex-start; }
  .section-head { margin-bottom: 28px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .section-head--row .section-head-action { margin-top: 6px; }
  .vote-detail { padding: 18px; }
}

/* 小屏手机：容器内边距更紧（栅格由 portal-mobile.css 按 ≤768/≤414 控制） */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
}

/* ---------- 注册页增强：快捷注册 / 会员单位检索 / 中文日历 ---------- */
.login-legal { margin-top: 14px; text-align: center; font-size: 13px; }
.login-legal a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.login-legal a:hover { color: var(--primary); }

/* ---------- 个人中心（我的参赛升级） ---------- */
.pc-wrap { display: grid; grid-template-columns: 256px 1fr; gap: 24px; align-items: start; }
.pc-side { position: sticky; top: calc(var(--nav-h) + 16px); padding: 22px 18px; }
.pc-avatar { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #6366f1); margin-bottom: 12px; }
.pc-uname { font-size: 16px; font-weight: 700; }
.pc-urole { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.pc-nav { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent;
  border: 0; border-radius: 10px; padding: 11px 12px; margin-top: 6px; cursor: pointer; color: var(--text-2); font-size: 14px;
  transition: background .18s ease, color .18s ease; }
.pc-nav span { flex: 1; }
.pc-nav:hover { background: var(--surface-2); color: var(--text); }
.pc-nav.active { background: var(--accent); color: #fff; font-weight: 600; }
.pc-content { min-width: 0; }
.pc-sec { animation: pcFade .22s ease; }
@keyframes pcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pc-head .avatar.lg { width: 60px; height: 60px; border-radius: 16px; font-size: 26px; }
@media (max-width: 860px) {
  .pc-wrap { grid-template-columns: 1fr; }
  .pc-side { position: static; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .pc-avatar, .pc-uname, .pc-urole { display: none; }
  .pc-nav { width: auto; margin-top: 0; }
}

/* 快捷注册（微信 / 手机号）双入口 */
.quick-reg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 4px; }
.qr-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); cursor: pointer; transition: all .25s var(--ease); text-align: center; }
.qr-btn:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.qr-ico { font-size: 26px; }
.qr-t { font-weight: 700; font-size: 14px; color: var(--text); }
.qr-s { font-size: 12px; color: var(--text-3); }
.reg-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--text-3); font-size: 13px; }
.reg-divider::before, .reg-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* 注册地址（地区级联）占满整行，避免半宽导致三段拥挤错位 */
.grid.grid-2 > .region-cascade { grid-column: 1 / -1; }
.region-cascade { gap: 14px; }
.region-cascade .field label { margin-bottom: 6px; font-size: 13px; color: var(--text-2); }

/* 会员单位：是→检索下拉；否→自由输入 */
.member-select { position: relative; margin-top: 8px; }
.member-select.is-hidden { display: none !important; }
.member-select .input { width: 100%; }
.member-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 220px; overflow: auto; background: var(--surface, #ffffff); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; display: none; }
.member-list li { padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.member-list li:hover { background: var(--primary-soft); color: var(--primary); }
.member-list .member-empty { color: var(--text-3); cursor: default; font-size: 13px; }
.member-list .member-empty:hover { background: transparent; color: var(--text-3); }

/* 中文日历弹层 */
.cdp-layer { position: absolute; z-index: 300; }
.cdp-pop { width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; animation: pop .25s var(--ease); }
.cdp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cdp-title { font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; }
.cdp-nav { width: 30px; height: 30px; border: none; background: var(--surface-2); border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 16px; }
.cdp-nav:hover { background: var(--primary-soft); color: var(--primary); }
.cdp-close { width: 30px; height: 30px; border: none; background: var(--surface-2); border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cdp-close:hover { background: #fde2e2; color: #e23c3c; }
.cdp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cdp-week span { text-align: center; font-size: 12px; color: var(--text-3); padding: 4px 0; }
.cdp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cdp-blank { height: 30px; }
.cdp-day { height: 30px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); transition: all .15s; }
.cdp-day:hover { background: var(--primary-soft); color: var(--primary); }
.cdp-day.is-today { box-shadow: inset 0 0 0 1px var(--primary); }
.cdp-day.is-sel { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.cdp-years, .cdp-months { display: grid; gap: 6px; }
.cdp-years { grid-template-columns: repeat(4, 1fr); }
.cdp-months { grid-template-columns: repeat(3, 1fr); }
.cdp-yr, .cdp-mo { padding: 8px 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.cdp-yr:hover, .cdp-mo:hover { border-color: var(--primary); color: var(--primary); }
.cdp-yr.is-sel, .cdp-mo.is-sel { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cdp-foot { margin-top: 8px; text-align: center; }
.cdp-today { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 16px; cursor: pointer; font-size: 13px; color: var(--primary); font-weight: 600; }
.cdp-today:hover { background: var(--primary-soft); }

/* 快捷注册弹窗（微信 / 手机号） */
.quick-reg-modal .qrm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qrm-col { display: flex; flex-direction: column; }
.qr-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; min-height: 160px; background: var(--surface-2); }
.qr-img { width: 96px; height: 96px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.qr-tip { font-size: 13px; color: var(--text-2); text-align: center; }
.qrm-note { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.qrm-intro { font-size: 13px; color: var(--text-2); margin: 0 0 14px; line-height: 1.7; }
.qrm-legal { font-size: 12px; color: var(--text-3); margin: 14px 0 0; text-align: center; }
.qrm-legal a { color: var(--primary); font-weight: 600; }

/* 注册入口核验成功后的提示条 */
.reg-method-badge { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--primary-soft); background: var(--primary-soft); border-radius: 12px; font-size: 13px; color: var(--text); line-height: 1.6; }
.reg-method-badge .rmb-ico { font-size: 20px; flex: 0 0 auto; }
.privacy-body p { color: var(--text-2); }
@media (max-width: 560px) {
  .quick-reg { grid-template-columns: 1fr; }
  .quick-reg-modal .qrm-cols { grid-template-columns: 1fr; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto; }
}

/* ============ 动态注册表单（后台字段配置驱动） ============ */
.reg-group{margin-bottom:6px}
.reg-group-title{font-size:16px;font-weight:700;margin:18px 0 12px;padding-left:10px;border-left:4px solid var(--primary)}
.rf-choices{display:flex;flex-wrap:wrap;gap:14px 22px;margin-top:6px}
.rf-choice{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:14px}
.rf-choice input{accent-color:var(--primary)}

/* ============ 赛事类型模板驱动报名（Item ⑦） ============ */
.tpl-form { margin-top: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 4px 0; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.opt input { width: auto; accent-color: var(--accent); }
.opt-sm { font-size: 12px; margin-right: 10px; }
.fb-other-input { margin-left: 8px; width: auto; min-width: 200px; display: inline-block; }
.tpl-page-break { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.tpl-page-break::before, .tpl-page-break::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.tpl-section-desc { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; color: var(--text-2); font-size: 13px; margin: 6px 0; }
.tpl-divider { border: none; border-top: 1px dashed var(--border-strong); margin: 14px 0; }
.fb-matrix { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px; margin-top: 4px; }
.fb-mx-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.fb-mx-table th, .fb-mx-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.fb-mx-corner { background: var(--surface-2); width: 1%; }
.fb-mx-rowhead { background: var(--surface-2); white-space: nowrap; font-weight: 600; }
.input-sm { padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.fb-file-drop { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 14px; background: var(--surface-2); }
.fb-file-tip { color: var(--text-2); font-size: 13px; }
.fb-file-meta { color: var(--text-3, var(--text-2)); font-size: 12px; margin-top: 6px; }
.fb-file-btn { display: inline-block; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .15s; }
.fb-file-btn:hover { background: var(--primary-600, #4338ca); }
.fb-file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fb-file-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.fb-fi-name { color: var(--text); word-break: break-all; }

/* 只读汇总 */
.tpl-summary { display: flex; flex-direction: column; }
.sum-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sum-k { color: var(--text-2); font-size: 13px; font-weight: 600; }
.sum-v { color: var(--text); font-size: 14px; line-height: 1.6; word-break: break-word; }

/* 报名详情分区 */
.entry-detail { display: flex; flex-direction: column; gap: 18px; }
.ed-section { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.ed-h { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ed-h::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }

/* 流程时间线 */
.proc-timeline { display: flex; gap: 6px; margin: 14px 0 6px; }
.proc-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.proc-step::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0; }
.proc-step:first-child::before { display: none; }
.proc-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); z-index: 1; }
.proc-step.done .proc-dot { background: var(--success); border-color: var(--success); }
.proc-step.active .proc-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.proc-t { font-size: 12px; color: var(--text-2); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.proc-step.done .proc-t, .proc-step.active .proc-t { color: var(--text); font-weight: 600; }
.proc-note { font-size: 11px; color: var(--success); }
.proc-step.active .proc-note { color: var(--accent); }

/* 推荐情况 */
.rec-panel { display: flex; flex-direction: column; gap: 10px; }
.rec-row { display: flex; align-items: center; gap: 12px; }
.rec-k { width: 84px; color: var(--text-2); font-size: 13px; font-weight: 600; flex: none; }
.rec-v { color: var(--text); font-size: 14px; }

/* ========== 投票系统前台样式 ========== */
.vote-detail { padding: 32px; }
.vote-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.vote-option { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.vote-radio-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.vote-radio { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.vote-option-text { font-size: 15px; font-weight: 500; }
.vote-bar-row { display: flex; align-items: center; gap: 12px; }
.vote-bar { flex: 1; height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 5px; transition: width .4s ease; }
.vote-bar-num { font-size: 13px; color: var(--text-muted); white-space: nowrap; min-width: 80px; text-align: right; }
.vote-action { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.badge-gray { background: var(--surface-2); color: var(--text-muted); }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* ============== 投票系统 v2（banner/分页/矩阵/状态屏） ============== */
.vote-banner { width: 100%; height: 200px; background-color: var(--surface-2); background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 16px; }
.vote-banner-thumb { width: 100%; height: 100px; background-color: var(--surface-2); background-size: cover; background-position: center; }
.vote-card { transition: transform .15s ease, box-shadow .15s ease; }
.vote-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* 投票活动列表状态筛选 tab */
.vote-filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.vote-filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
  font-size: 14px; font-weight: 500; transition: all .15s ease;
}
.vote-filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.vote-filter-tab--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.vote-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(0,0,0,.08); font-size: 12px; font-weight: 600;
}
.vote-filter-tab--active .vote-filter-count { background: rgba(255,255,255,.25); color: #fff; }

.vote-page-head { font-size: 13px; color: var(--text-muted); padding-bottom: 8px; border-bottom: 1px dashed var(--border); margin-bottom: 16px; }
.vote-fields { display: flex; flex-direction: column; gap: 20px; }
.vote-field-head { margin-bottom: 8px; }
.vote-lbl { font-size: 15px; font-weight: 600; color: var(--text); }
.vote-req { color: #ef4444; margin-left: 4px; }
.vote-help { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; line-height: 1.55; }
.vote-help p { margin: 0 0 6px; }
.vote-help p:last-child { margin-bottom: 0; }
.vote-help ul, .vote-help ol { margin: 0 0 6px 18px; padding: 0; }
.vote-help a { color: var(--accent, #2563eb); text-decoration: underline; }
.vote-idx { color: var(--text-muted); margin-right: 4px; font-variant-numeric: tabular-nums; }

.vote-section-desc { padding: 12px 16px; background: var(--surface-2); border-radius: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.vote-divider { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }

.vote-opts { display: flex; flex-direction: column; gap: 8px; }
.vote-opts--horizontal { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.vote-opts--horizontal .vote-opt { flex: 0 1 auto; min-width: 150px; }
.vote-opts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vote-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); transition: all .15s ease; --opt-color: var(--primary); }
.vote-opt:hover { border-color: var(--opt-color); background: var(--surface-2); }
.vote-opt input { width: 18px; height: 18px; accent-color: var(--opt-color); cursor: pointer; flex: none; position: absolute; opacity: 0; }
.vote-opt-radio, .vote-opt-box { width: 18px; height: 18px; border: 2px solid var(--opt-color); border-radius: 50%; flex: none; position: relative; }
.vote-opt-box { border-radius: 4px; }
.vote-opt input:checked + .vote-opt-radio::after { content: ''; position: absolute; inset: 3px; background: var(--opt-color); border-radius: 50%; }
.vote-opt input:checked + .vote-opt-box::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 12px; line-height: 14px; text-align: center; background: var(--opt-color); border-radius: 2px; }
.vote-opt-image { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; }
.vote-opt-image .vote-opt-label { font-size: 13px; }
.vote-opt-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.vote-opt-img-big { width: 100%; height: 100px; border-radius: 8px; object-fit: cover; margin-bottom: 6px; }
.vote-opt-img-empty { background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }

.vote-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vote-matrix { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.vote-matrix th, .vote-matrix td { border: 1px solid var(--border); padding: 10px 12px; text-align: center; vertical-align: middle; }
.vote-matrix th { background: var(--surface-2); font-weight: 600; }
.vote-matrix--sticky thead { position: relative; z-index: 3; background: var(--surface-2); }
.vote-matrix--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface-2);
  background-clip: padding-box;
  border-bottom: 2px solid var(--border-strong);
  box-shadow: 0 2px 0 0 var(--surface-2);
}
/* 矩阵选择：列等宽、表头不换行；行标签可换行（修「同意」竖排/列宽不齐） */
.vote-matrix--select th.vote-mat-col-h,
.vote-matrix--select .vote-mat-col-h {
  white-space: nowrap !important;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: clip;
  padding: 10px 6px;
  font-size: 13px;
  line-height: 1.2;
}
.vote-matrix--select .vote-mat-cell {
  white-space: nowrap !important;
  padding: 8px 4px !important;
}
.vote-mat-row-label {
  text-align: left !important;
  font-weight: 500;
  background: var(--surface-2);
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.45;
  padding: 10px 12px !important;
}
/* 矩阵未选行错误提示：整行红边框 + 行标签红背景 + radio 红圈 */
.vote-mat-row--error {
  background: color-mix(in srgb, var(--danger, #ef4444) 8%, transparent) !important;
  box-shadow: inset 0 0 0 2px var(--danger, #ef4444) !important;
  animation: mat-row-pulse 1.2s ease-in-out 2;
}
.vote-mat-row--error .vote-mat-row-label {
  background: color-mix(in srgb, var(--danger, #ef4444) 16%, var(--surface-2)) !important;
}
.vote-mat-row--error .vote-mat-radio {
  --mat-col-color: var(--danger, #ef4444) !important;
  border-color: var(--danger, #ef4444) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #ef4444) 25%, transparent);
}
@keyframes mat-row-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px var(--danger, #ef4444); }
  50% { box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--danger, #ef4444) 70%, transparent); }
}
.vote-mat-cell { padding: 6px !important; }
.vote-mat-radio { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid var(--mat-col-color, var(--border)); border-radius: 50%; position: relative; cursor: pointer; margin: 0 auto; --mat-col-color: var(--primary); }
.vote-mat-radio input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; inset: 0; }
.vote-mat-dot { display: none; position: absolute; inset: 3px; background: var(--mat-col-color); border-radius: 50%; }
.vote-mat-radio input:checked + .vote-mat-dot { display: block; }
.vote-mat-checked-text { display: none; font-size: 12px; font-weight: 700; color: var(--mat-col-color); white-space: nowrap; }
.vote-matrix--text .vote-mat-dot { display: none !important; }
.vote-matrix--text .vote-mat-radio { width: auto; min-width: 22px; padding: 0 6px; border-color: transparent; }
.vote-matrix--text .vote-mat-radio input:checked ~ .vote-mat-checked-text { display: inline; }

/* 矩阵折叠：滚动条可拉伸 + 底部展开 + 屏幕右侧悬浮 FAB */
.vote-matrix-collapse { position: relative; margin-top: 4px; }
.vote-matrix-collapse-body {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
  background: #fff;
  resize: vertical;
  min-height: 120px;
  -webkit-overflow-scrolling: touch;
}
.vote-matrix-collapse-body .vote-matrix { margin: 0; }
.vote-matrix-toggle {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--primary, #2563eb) 6%, #fff);
  color: var(--primary, #2563eb);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.vote-matrix-toggle:hover { background: color-mix(in srgb, var(--primary, #2563eb) 12%, #fff); }
.vote-matrix-fab {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  min-height: 72px;
  padding: 10px 6px;
  border: none;
  border-radius: 999px;
  background: var(--primary, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}
.vote-matrix-fab:hover { transform: translateY(-50%) scale(1.05); }
.vote-matrix-fab-ico { font-size: 14px; }
.vote-matrix-fab-n { font-size: 10px; opacity: 0.85; }

/* 提交前全局预览确认 */
.vote-confirm-preview { padding: 4px 0 8px; }
.vote-confirm-head h2 { font-size: 20px; }
.vote-confirm-body { display: flex; flex-direction: column; gap: 0; }
.vote-confirm-row {
  padding: 14px 13px 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.vote-confirm-row:last-child { border-bottom: none; }
/* 矩阵字段在预览页独占整行：题目顶部通栏，缩放按钮右上，左侧细项议题，右侧固定宽度答案 */
.vote-confirm-row--matrix { flex-direction: column; gap: 10px; }
.vote-confirm-matrix-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; }
.vote-confirm-q { font-weight: 600; font-size: 15px; color: var(--text); flex: 1 1 auto; min-width: 0; word-break: break-word; }
.vote-confirm-q--matrix { flex: 1 1 auto; min-width: 0; }
/* 选项（同意/不同意/弃权）右对齐列；药丸固定宽度。
   overflow-y:auto + scrollbar-gutter:stable：即使不滚动也提前预留右侧滚动条槽位，
   使单选同意的「右边缘」与带滚动条矩阵的同意右边缘一致 → 因药丸等宽，左边缘也对齐。
   padding-right:12px：镜像矩阵滚动容器 .vote-confirm-matrix-scroll 的右侧内边距，
   抵消其 12px 偏移，使单选药丸的「左边缘」与下方矩阵药丸左边缘精确对齐。 */
.vote-confirm-a { flex: 0 0 auto; max-width: 60%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; text-align: right; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding-right: 12px; }
.vote-confirm-a--matrix { flex: 1 1 100%; max-width: 100%; justify-content: flex-end; text-align: right; }
.vote-confirm-answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
  /* 默认固定尺寸：保证同意/不同意/弃权及任何自定义标签大小一致、左右对齐 */
  width: 5.5em;
  min-width: 5.5em;
  max-width: 5.5em;
}
/* 同意/不同意/弃权：统一固定尺寸、统一字重、文字水平垂直居中（单选/矩阵完全一致，保证左右对齐、大小一致） */
.vote-confirm-answer--agree,
.vote-confirm-answer--disagree,
.vote-confirm-answer--abstain {
  min-height: 34px;
}
.vote-confirm-answer--disagree {
  box-shadow: 0 0 0 1px #fca5a5 inset;
}
.vote-confirm-answer--abstain {
  box-shadow: 0 0 0 1px #fcd34d inset;
}
.vote-confirm-matrix { width: 100%; display: flex; flex-direction: column; gap: 4px; position: relative; }
.vote-confirm-matrix-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
/* 矩阵外框统一 100% 宽；滚动条放在内部 .vote-confirm-matrix-scroll，避免折叠/展开时外框宽度抖动 */
.vote-confirm-matrix-body {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: visible;
}
.vote-confirm-matrix-scroll {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 12px;
  -webkit-overflow-scrolling: touch;
  /* 始终作为滚动容器并预留滚动条宽度：带/不带滚动条的矩阵，其同意按钮位置完全一致 */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.vote-confirm-mat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.vote-confirm-mat-r {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}
/* 矩阵「收回全部X行」按钮（投票页 & 预览页共用，表头右上角） */
.vote-matrix-collapse-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.vote-matrix-collapse-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary, #2563eb);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: background .15s ease;
}
.vote-matrix-collapse-btn:hover { background: color-mix(in srgb, var(--primary, #2563eb) 8%, #fff); }
.vote-confirm-nav { margin-top: 20px; }
.vote-confirm-nav .vote-form-nav-row--top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 640px) {
  .vote-matrix-fab { right: 8px; width: 46px; min-height: 64px; font-size: 10px; }
  .vote-confirm-mat-row { gap: 8px; }
  .vote-confirm-answer { width: 5em; min-width: 5em; max-width: 5em; min-height: 32px; padding: 5px 0; font-size: 13px; }
}

/* 旧单行按钮布局（兼容） */
.vote-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.vote-actions .grow { flex: 1; }
.vote-actions .btn { padding: 12px 28px; font-size: 15px; border-radius: 8px; }
.vote-actions [data-vote-prev] { display: none; }

/* 前台投票导航 —— 对齐后台 vb-form-nav 两行布局 */
.vote-form-nav {
  position: sticky;
  bottom: 0;
  margin-top: 24px;
  padding: 16px 0 4px;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border);
  z-index: 2;
}
.vote-form-nav-row {
  display: flex;
  gap: 12px;
}
.vote-form-nav-row--top { margin-bottom: 0; }
.vote-form-nav--oneclick .vote-form-nav-row--top { margin-bottom: 12px; }
.vote-form-nav-row--bottom .vote-form-nav-btn--submit {
  width: 100%;
  flex: none;
}
.vote-form-nav-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  line-height: 1.2;
  white-space: nowrap;
  font-size: 14px;
  border-radius: 8px;
}
.vote-form-nav-btn:hover:not(:disabled):not(.vote-form-nav-btn--disabled) {
  transform: translateY(-1px);
}
.vote-form-nav-btn--disabled,
.vote-form-nav-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  background: #cbd5e1;
  color: #64748b;
  border-color: #cbd5e1;
  box-shadow: none;
  font-weight: 600;
}
.vote-form-nav-btn--submit {
  font-weight: 600;
}

/* 返回链接 */
.vote-back-link {
  display: inline-block;
  margin: 16px 0;
  font-size: 14px;
  text-decoration: none;
}
.vote-back-link:hover { text-decoration: underline; }

/* 可配置页脚（富文本） */
.vote-page-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  word-break: break-word;
}
.vote-page-footer p { margin: 0 0 4px; }
.vote-page-footer a { color: var(--accent, #2563eb); text-decoration: underline; }
.vote-page-footer img { max-width: 100%; height: auto; }

/* 投票说明前置页 */
.vote-page--notice { }
.vote-notice-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  padding: 8px 4px;
}
.vote-notice-content p { margin: 0 0 12px; }
.vote-notice-content ol, .vote-notice-content ul { margin: 0 0 12px 20px; padding-left: 0; }
.vote-notice-content li { margin-bottom: 6px; }
.vote-notice-content strong, .vote-notice-content b { color: var(--text); }
.vote-form-nav--notice { display: flex; }
.vote-form-nav--notice .vote-form-nav-btn { flex: 1; }

.vote-screen { text-align: center; padding: 40px 20px; }
.vote-screen-icon { font-size: 48px; margin-bottom: 12px; }
.vote-screen h3 { margin: 0 0 12px; font-size: 20px; color: var(--text); }
.vote-status-icon { margin: 0 0 12px; color: var(--primary); font-size: 40px; line-height: 1; }
.vote-status-title { margin: 0 0 10px; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.4; }
.vote-status-desc { margin: 0; color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; }
.vote-screen-richtext { margin: 12px auto; max-width: 520px; padding: 16px; background: var(--surface-2); border-radius: 8px; text-align: left; line-height: 1.7; }
.vote-screen-ended .vote-screen-icon { color: var(--primary); }
.vote-screen-stopped .vote-screen-icon { color: #ef4444; }
.vote-screen-pre .vote-screen-icon { color: #f59e0b; }

.vote-success-msg { font-size: 18px; font-weight: 600; margin: 16px 0; }
.vote-status-notice { margin: 0 0 16px; max-width: none; background: color-mix(in srgb, var(--primary) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
/* 状态页：后台富文本即最终呈现，不叠加默认图标/标题/灰底框 */
.vote-status-custom { text-align: left; padding: 0; background: transparent; }
.vote-status-custom .vote-screen-richtext { margin: 0; padding: 0; max-width: none; background: transparent; border: none; }

.vote-result-list { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; text-align: left; }
.vote-result-section h4 { margin: 0 0 12px; font-size: 15px; color: var(--text); font-weight: 600; }
.vote-tally-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 100px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.vote-tally-label { color: var(--text); }
.vote-tally-num { text-align: right; color: var(--text-muted); }
.vote-matrix-result { font-size: 13px; }

@media (max-width: 640px) {
  .vote-banner { height: 140px; }
  .vote-detail { padding: 18px; }
  .vote-actions { flex-wrap: wrap; }
  .vote-actions .grow { flex: 1 0 100%; order: 99; }
  .vote-form-nav-btn { font-size: 13px; padding: 10px 6px; }
  .vote-tally-row { grid-template-columns: 1fr 90px; }
  .vote-tally-row .vote-bar { grid-column: 1 / -1; }
}

/* ===================== 换届投票大厅 / 签到 / 会议 ===================== */
.vote-hall { max-width: 880px; margin: 0 auto; }
.vh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vh-head h2 { margin: 0 0 6px; font-size: 24px; }
.meeting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.meeting-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.meeting-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--primary); }
.meeting-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.mc-top { display: flex; align-items: center; gap: 12px; }
.mc-ico { font-size: 26px; line-height: 1; }
.mc-info { flex: 1; min-width: 0; }
.mc-name { font-weight: 700; font-size: 16px; }
.mc-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.mc-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); white-space: nowrap; }
.mc-badge.done { background: var(--surface-2); color: var(--text-muted); }
.mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.mc-go { color: var(--primary); font-weight: 600; }

/* 签到 */
.signin-wrap { max-width: 520px; margin: 0 auto; }
.signin-wrap h2 { margin: 0 0 8px; font-size: 24px; }
.signin-card { display: flex; gap: 10px; margin: 20px 0 28px; }
.signin-card .input { flex: 1; }
.role-demo { border-top: 1px dashed var(--border); padding-top: 18px; }
.role-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.role-btn { padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; transition: all .18s ease; }
.role-btn:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }

/* 会议内投票事项 */
.vote-meeting { max-width: 880px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--text-muted); text-decoration: none; margin-bottom: 14px; font-size: 14px; }
.back-link:hover { color: var(--primary); }
.vote-meeting h2 { margin: 0 0 6px; font-size: 24px; }
.vi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.vi-card { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); transition: transform .2s ease, border-color .2s ease; position: relative; min-height: 84px; }
.vi-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.vi-name { font-weight: 600; font-size: 15px; }
.vi-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.vi-go { position: absolute; right: 18px; bottom: 18px; color: var(--primary); font-weight: 600; font-size: 13px; }
.vi-go.muted { color: var(--text-muted); }
.vi-card.hand { background: var(--surface-2); }
.vi-badge.hand { position: absolute; right: 18px; bottom: 18px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }

/* ---------- 门户视觉精修 v1 ---------- */
.nav { box-shadow: 0 1px 0 rgba(15,35,62,.04), 0 8px 24px rgba(15,35,62,.05); }
.nav-inner { gap: 24px; }
.brand { min-width: 210px; }
.brand-mark { background: linear-gradient(145deg, var(--primary-600), var(--primary-700)); box-shadow: 0 8px 18px rgba(12,68,124,.2); }
.nav-links a { font-size: 14px; letter-spacing: .01em; }
.hero { min-height: min(720px, calc(100vh - var(--nav-h))); background: #0b3157; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,25,48,.72), rgba(5,25,48,.34) 52%, rgba(5,25,48,.08)); }
.hero-inner { padding-top: 42px; padding-bottom: 42px; }
.hero h1 { max-width: 620px; letter-spacing: 0; text-shadow: 0 3px 20px rgba(0,0,0,.2); }
.hero .sub { max-width: 560px; line-height: 1.8; }
.hero .hero-cta .btn { box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.section { padding: 84px 0; }
.section-head h2 { letter-spacing: 0; }
.section-head p { max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.card, .news-card { border-color: rgba(203,213,225,.82); box-shadow: 0 8px 24px rgba(16,36,58,.055); }
.card.hover:hover, .news-card:hover, .news-card:focus { transform: translateY(-6px); border-color: rgba(37,99,235,.32); box-shadow: 0 18px 40px rgba(16,36,58,.12); }
.news-card .news-card-body { padding: 22px; }
.news-card .news-title { line-height: 1.4; }
.btn { letter-spacing: .01em; }
.btn-primary, .btn-accent { box-shadow: 0 8px 18px rgba(12,68,124,.16); }
@media (max-width: 760px) {
  .brand { min-width: 0; }
  .brand-text strong { font-size: 15px; }
  .hero { min-height: 620px; }
  .hero::after { background: linear-gradient(180deg, rgba(5,25,48,.48), rgba(5,25,48,.58)); }
  .hero-inner { padding-top: 34px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero .sub { font-size: 16px; line-height: 1.75; }
  .section { padding: 58px 0; }
  .section-head h2 { font-size: 28px; }
  .grid { gap: 16px; }
  .card, .news-card { border-radius: 14px; }
  .news-card .news-card-body { padding: 18px; }
}

