/* ========================================================================
   校招刷题 · 职向力风格设计系统
   设计基准：职向力官网（蓝橙渐变 #1E5AF5 → #FF7A00，Noto Sans SC，
   毛玻璃固定导航，圆角卡片 + 悬浮投影，深色页脚，渐入动画）
   ======================================================================== */
:root {
  --blue: #1E5AF5;
  --blue-dark: #1040C0;
  --blue-light: #E8F0FE;
  --orange: #FF7A00;
  --orange-light: #FFF3E0;
  --green: #10B981;
  --green-light: #ECFDF5;
  --dark: #0F172A;
  --gray: #475569;
  --gray-light: #F1F5F9;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  /* 兼容旧版 app 用到的语义变量 */
  --bg: #F8FAFF;
  --card: #ffffff;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E5EAF2;
  --brand: var(--blue);
  --brand-soft: var(--blue-light);
  --red: #DC2626;
  --amber: #D97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============ HEADER (职向力固定毛玻璃) ============ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
#header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 20px; font-weight: 900; color: var(--dark); }
.logo-text em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav button {
  background: none; border: none; padding: 8px 16px; border-radius: 100px;
  cursor: pointer; color: var(--gray); font-size: 15px; font-weight: 500; transition: all 0.2s;
}
.main-nav button:hover { color: var(--blue); background: var(--blue-light); }
.main-nav button.active {
  color: var(--blue); background: var(--blue-light); font-weight: 700;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.userbox { display: flex; align-items: center; gap: 10px; }
.user-meta { display: flex; flex-direction: row; align-items: baseline; gap: 6px; line-height: 1.25; white-space: nowrap; }
.user-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.user-id  { font-size: 12px; color: var(--muted); }
.btn-logout {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--gray); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); background: #FEF2F2; }
.btn-logout svg { width: 14px; height: 14px; }
body.guest .userbox { display: none; }
body:not(.guest) #headerWechatBtn { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.3s ease; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 14px rgba(30,90,245,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,90,245,0.45); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-white { background: white; color: var(--blue); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
/* app 内按钮语义 */
button.btn.ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
button.btn.ghost:hover { background: var(--blue); color: #fff; }
button.btn.soft { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
button.btn.soft:hover { border-color: var(--blue); color: var(--blue); }
button.btn { font-family: inherit; }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue);
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.section-label.orange { color: var(--orange); }
.section-title { font-size: 36px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--gray); max-width: 600px; line-height: 1.7; }
.gt { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ============ HERO ============ */
.hero {
  min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%); padding-top: 72px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--blue-light); color: var(--blue); border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-badge span { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 50px; font-weight: 900; line-height: 1.12; margin-bottom: 22px; letter-spacing: -0.5px; }
.hero-sub { font-size: 17px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.hero-sub b { color: var(--blue); }
.hero-btns { display: flex; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-num { font-size: 30px; font-weight: 900; color: var(--blue); }
.hero-stat-label { font-size: 13px; color: var(--gray); }
.hero-visual { position: relative; }
.hero-card {
  background: white; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-xl); position: relative;
}
.hero-card-title { font-size: 16px; font-weight: 700; margin-bottom: 22px; }
.hero-card-path { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.hero-card-dot.blue { background: var(--blue); }
.hero-card-dot.orange { background: var(--orange); }
.hero-card-dot.green { background: var(--green); }
.hero-card-line strong { display: block; font-size: 14px; color: var(--dark); }
.hero-card-line span { display: block; font-size: 12px; color: var(--gray); }
.hero-card-connector { width: 2px; height: 14px; background: linear-gradient(180deg, var(--blue), var(--orange)); opacity: 0.25; margin-left: 5px; }
.hero-float {
  position: absolute; padding: 10px 18px; background: white; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; animation: float 3s ease-in-out infinite;
}
.hero-float.f1 { top: 60px; right: -14px; animation-delay: 0s; }
.hero-float.f2 { bottom: 50px; left: -14px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s ease; position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ============ TRACKS ============ */
.track-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.track-card {
  background: #fff; border-radius: 16px; padding: 24px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.track-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient);
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.track-card .tname { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.track-card .tcnt { font-size: 13px; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.track-card .tsubs { display: flex; flex-wrap: wrap; gap: 6px; }
.track-card .tchip { font-size: 11px; padding: 3px 9px; background: var(--gray-light); color: var(--gray); border-radius: 20px; }

/* ============ CTA ============ */
.cta { background: var(--gradient); padding: 80px 24px; text-align: center; color: white; }
.cta h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.cta p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }

/* ============ APP MOUNT (登录后内容) ============ */
.app-mount { max-width: 980px; margin: 0 auto; padding: 40px 16px 64px; }
body:not(.guest) .app-mount { padding-top: 104px; }
.sub { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }

/* ============ CARD (app 通用卡片) ============ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.card h1 { font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.card h2 { font-size: 19px; margin: 0 0 14px; font-weight: 700; }
.card .center { text-align: center; }

/* ============ 分类网格 ============ */
.grid { display: grid; gap: 14px; }
.grid.cats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); transition: all .25s; }
.cat:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(30,90,245,0.10); transform: translateY(-2px); }
.cat .name { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.cat .cnt { color: var(--blue); font-weight: 800; }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--blue-light); color: var(--blue); font-size: 12px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.ops { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ============ 统计 ============ */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.stat { background: var(--blue-light); border-radius: 14px; padding: 16px 20px; min-width: 130px; flex: 1; }
.stat .n { font-size: 28px; font-weight: 900; color: var(--blue); }
.stat .l { font-size: 13px; color: var(--muted); }

/* ============ 进度条 ============ */
.progressbar { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 12px 0; }
.progressbar > i { display: block; height: 100%; background: var(--gradient); width: 0; transition: width .3s; }

/* ============ 题干 & 选项 ============ */
.question { font-size: 18px; white-space: pre-wrap; margin-bottom: 16px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.question svg { max-width: 100%; height: auto; display: block; margin: 6px auto; }
.opt svg { max-width: 130px; height: auto; display: block; margin: 4px auto; }
.opt {
  display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff;
  padding: 13px 16px; border-radius: 12px; margin-bottom: 10px; cursor: pointer; font-size: 15px;
  transition: all .2s; color: var(--ink); font-family: inherit;
}
.opt:hover { border-color: var(--blue); background: #FBFDFF; }
.opt.sel { border-color: var(--blue); background: var(--blue-light); }
.opt.correct { border-color: var(--green); background: var(--green-light); }
.opt.wrong { border-color: var(--red); background: #FEF2F2; }
.opt .tag { float: right; font-size: 12px; font-weight: 700; }

/* ============ 反馈 & 解析 ============ */
.feedback { padding: 13px 16px; border-radius: 12px; margin: 14px 0; font-size: 15px; font-weight: 600; }
.feedback.ok { background: var(--green-light); border: 1px solid #BBF7D0; color: #166534; }
.feedback.no { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.explain { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 13px 16px; font-size: 14px; margin: 12px 0; line-height: 1.7; color: #713F12; }
.explain b { color: var(--amber); }

/* ============ 标签 / 计时 ============ */
.pill { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; background: var(--line); color: var(--muted); margin-left: 6px; font-weight: 600; }
.pill.en { background: #E0E7FF; color: #3730A3; }
.timer { font-size: 18px; font-weight: 800; color: var(--orange); }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field select, .field input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; background: #fff; color: var(--ink); font-family: inherit; transition: border-color .2s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--blue); }
.field label input[type="checkbox"] {
  width: 18px; height: 18px;
  vertical-align: -3px;
  margin-right: 8px;
  cursor: pointer;
}
.auth-wrap { max-width: 400px; margin: 40px auto 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 11px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); font-family: inherit; }
.tabs button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* ============ 题号导航 ============ */
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.qnav button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-family: inherit; color: var(--gray); transition: all .2s; }
.qnav button.cur { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 700; }
.qnav button.done { color: var(--green); border-color: #BBF7D0; }
.qnav button.miss { color: var(--red); border-color: #FECACA; }

/* ============ 结果 & 列表 ============ */
.result-big { font-size: 40px; font-weight: 900; color: var(--blue); }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fff; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; color: #fff; font-weight: 700; }
.badge.g { background: var(--green); }
.badge.r { background: var(--red); }

/* ============ WECHAT MODAL ============ */
.wechat-modal {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.wechat-modal.show { opacity: 1; pointer-events: all; }
.wechat-modal-inner {
  background: white; border-radius: 20px; padding: 40px; text-align: center; max-width: 360px; width: 90%;
  position: relative; box-shadow: var(--shadow-xl);
}
.wechat-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); }
.wechat-qr { width: 260px; margin: 0 auto; }

/* ============ FOOTER ============ */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 22px; font-weight: 900; color: white; margin-bottom: 16px; }
.footer-brand .logo-text em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 340px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; }

/* ============ 移动端 ============ */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .track-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { min-height: auto; padding-top: 96px; padding-bottom: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: white; padding: 16px 24px; box-shadow: var(--shadow-lg); gap: 8px; align-items: stretch;
  }
  .mobile-toggle { display: flex; }
  .header-right .btn-sm { display: none; }  /* 移动端微信入口收进弹窗，保留 logo 与汉堡 */
}

/* ============ 登录着陆（单屏：左介绍 / 右登录） ============ */
.login-hero { min-height: calc(100vh - 72px); margin-top: 72px; display: flex; align-items: center; }
.login-hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.lh-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--blue); background: var(--blue-light); padding: 7px 14px; border-radius: 100px; margin-bottom: 20px;
}
.lh-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.lh-left h1 { font-size: 46px; line-height: 1.15; font-weight: 900; letter-spacing: -0.5px; }
.lh-left h1 .gt { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lh-sub { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 520px; }
.lh-chips { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.lh-chip { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px; box-shadow: var(--shadow-sm); }
.lh-chip b { display: block; font-size: 26px; font-weight: 900; color: var(--blue); line-height: 1.1; }
.lh-chip span { font-size: 13px; color: var(--muted); }
.lh-right { display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow-lg); }
.login-card h2 { font-size: 23px; font-weight: 800; margin-bottom: 4px; }
.login-card .lc-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.login-card .field { margin-bottom: 16px; }
.login-card .field input { padding: 12px 14px; font-size: 15px; }
.login-card .btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 700; }
.login-card .lc-hint { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.6; }
.mini-footer { border-top: 1px solid var(--line); background: #fff; }
.mini-footer .footer-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.mini-footer .link-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 13px; font-family: inherit; padding: 0; }

@media (max-width: 860px) {
  .login-hero { min-height: auto; }
  .login-hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
  .lh-left h1 { font-size: 34px; }
  .lh-right { justify-content: stretch; }
  .login-card { max-width: 100%; }
}
