/* ============ 知面 · 设计系统（暖白 · 墨色 · 松绿） ============ */
:root {
  --bg: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #1b1c1a;
  --ink-2: #474a45;
  --muted: #8a8b84;
  --line: #e6e2d8;
  --line-2: #efece4;
  --card: #ffffff;
  --card-solid: #ffffff;

  --accent: #1f5f4e;         /* 松绿 */
  --accent-2: #2e7a64;
  --accent-soft: #e8f0ec;
  --clay: #c0643c;           /* 陶土 */
  --clay-soft: #f7ebe3;
  --ochre: #b8862b;          /* 赭黄 */
  --ochre-soft: #f6efdd;
  --sky: #3a6b8c;
  --sky-soft: #e8eff4;

  /* 兼容旧变量名 */
  --primary: var(--accent);
  --primary-2: var(--accent-2);
  --primary-soft: var(--accent-soft);
  --teal: #2e7a64; --teal-soft: #e8f0ec;
  --pink: var(--clay); --pink-soft: var(--clay-soft);
  --amber: var(--ochre); --amber-soft: var(--ochre-soft);
  --red: #b5473a; --red-soft: #f7e7e3;
  --green: #2e7a64; --green-soft: #e8f0ec;
  --grad: linear-gradient(135deg, #1f5f4e, #2e7a64);

  --shadow-sm: 0 1px 2px rgba(27, 28, 26, .04);
  --shadow: 0 1px 2px rgba(27, 28, 26, .04), 0 8px 24px -12px rgba(27, 28, 26, .10);
  --shadow-lg: 0 24px 60px -24px rgba(27, 28, 26, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.7; min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(115deg, #f7f5f0 0%, #eef2ec 30%, #f6f0e8 60%, #f1f3ef 85%, #f7f5f0 100%);
  background-size: 320% 320%; background-attachment: fixed;
  animation: bgshift 40s ease-in-out infinite;
}
@keyframes bgshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 650; }
p { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(31, 95, 78, .15); }
.serif { font-family: var(--serif); }

/* 背景：极柔和的缓慢色块 */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; will-change: transform; }
.aurora i:nth-child(1) { width: 620px; height: 620px; background: #d8e6dc; top: -220px; left: -160px; animation: drift1 38s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 520px; height: 520px; background: #f2dccb; top: 10%; right: -200px; animation: drift2 44s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 560px; height: 560px; background: #dbe6ee; bottom: -280px; left: 30%; animation: drift1 50s ease-in-out infinite reverse; }
.aurora i:nth-child(4) { display: none; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(90px,60px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-100px,80px); } }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center;
  padding: 0 40px; gap: 40px; background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #f6f4ef; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a { padding: 8px 14px; color: var(--ink-2); font-weight: 500; transition: color .2s; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 650; }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -15px; height: 2px; background: var(--accent); }
.nav-user { display: flex; align-items: center; gap: 10px; position: relative; cursor: pointer; padding: 5px 8px 5px 5px; border-radius: 12px; transition: .2s; }
.nav-user:hover { background: rgba(27, 28, 26, .04); }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.nav-menu { position: absolute; right: 0; top: 50px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; display: none; border: 1px solid var(--line); }
.nav-user:hover .nav-menu { display: block; }
.nav-user::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-menu a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--ink-2); }
.nav-menu a:hover { background: var(--bg); color: var(--ink); }
.nav .nav-toggle { display: none; }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 44px 40px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .8rem; letter-spacing: 2px; color: var(--accent); font-weight: 650; text-transform: uppercase; margin-bottom: 10px; display: block; }
.page-title { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; letter-spacing: .5px; }
.page-sub { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 18px; }
.section-h h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.section-h a { color: var(--accent); font-size: .92rem; font-weight: 600; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grad-text { color: var(--accent); }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: relative; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.card.hover { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d8d3c6; }
.card.flat { box-shadow: none; background: var(--paper); }
.card-title { font-size: 1.12rem; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.card-title .ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); flex: none; background: none !important; }
.card-title .ico svg { width: 19px; height: 19px; }
.card-sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.delay-1 { animation-delay: .05s; } .delay-2 { animation-delay: .1s; } .delay-3 { animation-delay: .15s; } .delay-4 { animation-delay: .2s; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 1rem; transition: .2s ease; white-space: nowrap; user-select: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #fbfaf7; background: var(--ink); }
.btn-primary:hover { background: #33352f; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(27, 28, 26, .6); }
.btn-accent, .btn-teal { color: #fff; background: var(--accent); }
.btn-accent:hover, .btn-teal:hover { background: #184d3f; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfc9bb; background: var(--paper); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: #dce9e2; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--line); }
.btn-danger:hover { background: var(--red-soft); border-color: transparent; }
.btn-sm { height: 38px; padding: 0 15px; font-size: .9rem; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.08rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .2s; }
.icon-btn:hover { color: var(--ink); border-color: #cfc9bb; }
.icon-btn svg { width: 18px; height: 18px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 表单 ---------- */
.field { display: block; }
.field + .field { margin-top: 18px; }
.label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92rem; color: var(--ink-2); }
.label .req { color: var(--clay); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 16px; outline: none; transition: .2s; font-size: 1rem; }
.input, .select { height: 50px; }
.textarea { resize: vertical; min-height: 140px; line-height: 1.75; }
.input:hover, .textarea:hover, .select:hover { border-color: #d3cdbf; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 95, 78, .12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8b84' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; padding: 8px 18px; border-radius: 9px; cursor: pointer; color: var(--ink-2); font-weight: 600; transition: .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27, 28, 26, .12); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; color: var(--ink-2); transition: .2s; background: #fff; user-select: none; display: inline-flex; align-items: center; gap: 8px; }
.check::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #c9c4b6; transition: .2s; }
.check.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.check.on::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--accent); }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(27, 28, 26, .2); cursor: pointer; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 7px; font-size: .84rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.teal, .tag.green { background: var(--accent-soft); color: var(--accent); }
.tag.pink { background: var(--clay-soft); color: var(--clay); }
.tag.amber { background: var(--ochre-soft); color: #946a1c; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.gray { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- 统计 ---------- */
.stat { padding: 22px 24px; }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-value { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; line-height: 1.2; }
.stat-value small { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat-ico { display: none; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-strip > div { padding: 22px 26px; }
.stats-strip > div + div { border-left: 1px solid var(--line-2); }

/* ---------- 进度 ---------- */
.bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: var(--accent); width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar.teal > i { background: var(--sky); }
.dim-row { display: grid; grid-template-columns: 88px 1fr 40px; gap: 14px; align-items: center; }
.dim-row + .dim-row { margin-top: 14px; }
.dim-row b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-bg { stroke: var(--line-2); }
.ring .ring-fg { transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.ring-num { position: absolute; text-align: center; }
.ring-num b { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; display: block; line-height: 1; }
.ring-num span { color: var(--muted); font-size: .85rem; }

/* ---------- 列表 ---------- */
.list-item { display: flex; align-items: center; gap: 16px; padding: 16px 4px; transition: .2s; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: linear-gradient(90deg, transparent, var(--paper) 10%, var(--paper) 90%, transparent); }
.score-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; flex: none; }
.score-badge svg { width: 20px; height: 20px; }
.s-high { background: var(--accent-soft); color: var(--accent); }
.s-mid { background: var(--sky-soft); color: var(--sky); }
.s-low { background: var(--clay-soft); color: var(--clay); }
.s-none { background: var(--bg); color: var(--muted); font-size: .78rem; font-family: var(--font); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; opacity: .3; margin-bottom: 10px; }

/* ---------- 流程步骤 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.flow-step { padding: 4px 18px 4px 0; position: relative; display: block; }
.flow-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: #fff; border: 1.5px solid var(--line); color: var(--muted); position: relative; z-index: 1; margin-bottom: 12px; }
.flow-step .n svg { display: none; }
.flow-step::before { content: ""; position: absolute; left: 30px; right: 0; top: 15px; height: 1.5px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-step.done .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow-step.done::before { background: var(--accent); }
.flow-step.cur .n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow-step b { display: block; font-size: 1rem; }
.flow-step span { font-size: .85rem; color: var(--muted); }
.flow-step:hover b { color: var(--accent); }

/* ---------- 弹层 / 提示 ---------- */
.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 11px 20px; border-radius: 12px; background: var(--ink); color: #fbfaf7; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, .8, .2, 1); }
.toast.ok::before { content: "✓  "; color: #8fd1b6; }
.toast.err { background: #fff; color: var(--red); border: 1px solid #efd3cd; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
.overlay { position: fixed; inset: 0; z-index: 900; background: rgba(246, 244, 239, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; place-items: center; }
.overlay.show { display: grid; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.loader-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; box-shadow: var(--shadow-lg); width: 420px; max-width: 92vw; }
.loader-orb { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-bottom: 26px; position: relative; }
.loader-orb::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--accent); border-radius: 3px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { to { left: 100%; } }
.loader-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.loader-steps { margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.loader-steps div { padding: 7px 0; color: #b3b1a8; display: flex; align-items: center; gap: 12px; transition: .3s; }
.loader-steps div::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d6d2c6; flex: none; transition: .3s; box-sizing: border-box; }
.loader-steps div.on { color: var(--ink); font-weight: 600; }
.loader-steps div.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.loader-steps div.done { color: var(--ink-2); }
.loader-steps div.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; border-color: var(--accent); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: 440px; max-width: 92vw; box-shadow: var(--shadow-lg); animation: rise .3s; }

/* ---------- 虚拟面试官舞台 ---------- */
.avatar-stage { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #eef2ee 0%, #f5f1ea 100%); border: 1px solid var(--line); }
.avatar-stage::before { content: ""; position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 65%); animation: halo 8s ease-in-out infinite; }
@keyframes halo { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.avatar-stage .bokeh { display: none; }
.avatar-svg { position: relative; display: block; width: 100%; height: auto; z-index: 1; }
.avatar-svg .gesture { transition: transform .7s cubic-bezier(.3, 1.25, .5, 1), opacity .4s; opacity: 0; transform: translateY(150px) rotate(8deg); }
.avatar-svg .gesture.on { opacity: 1; transform: none; }
.avatar-svg .g-wave .hand-w { animation: wave 1.1s ease-in-out infinite; transform-origin: 318px 262px; transform-box: view-box; }
@keyframes wave { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
.avatar-svg .g-explain.on .hand-e { animation: explain 2.4s ease-in-out infinite; transform-origin: 112px 360px; transform-box: view-box; }
@keyframes explain { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-7deg) translateY(-6px); } 65% { transform: rotate(4deg) translateY(2px); } }
.avatar-svg .g-thumb.on .hand-t { animation: thumb 1.2s ease-in-out infinite; transform-origin: 300px 340px; transform-box: view-box; }
@keyframes thumb { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px) rotate(-4deg); } }
.avatar-svg .thought circle { opacity: 0; }
.avatar-svg.thinking .thought circle { animation: thought 1.4s ease-in-out infinite; }
.avatar-svg.thinking .thought circle:nth-child(2) { animation-delay: .2s; }
.avatar-svg.thinking .thought circle:nth-child(3) { animation-delay: .4s; }
@keyframes thought { 0%,100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.avatar-svg .sparkle { opacity: 0; transition: .4s; transform-box: fill-box; transform-origin: center; }
.avatar-svg.happy .sparkle { opacity: 1; animation: twinkle 1.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 页脚 ---------- */
.footer { text-align: center; color: var(--muted); padding: 30px; font-size: .85rem; border-top: 1px solid var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .g-4, .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip > div:nth-child(3) { border-left: none; }
  .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .g-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  html { font-size: 16px; }
  .nav { padding: 0 16px; gap: 12px; }
  .brand-sub { display: none; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; background: #fbfaf7; padding: 10px 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .nav .nav-toggle { display: grid; margin-left: auto; }
  .nav-user .uname { display: none; }
  .container { padding: 24px 16px 60px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-step::before { display: none; }
  .page-title { font-size: 1.7rem; }
  .card { padding: 20px; }
}
@media (max-width: 520px) { .g-4 { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 1.8rem; } }

@media print {
  .nav, .aurora, .no-print, .footer { display: none !important; }
  body { background: #fff; animation: none; }
  .card { box-shadow: none; break-inside: avoid; animation: none; }
  .container { padding: 0; max-width: 100%; }
}

/* ---------- Live2D 面试官 ---------- */
.l2d-host { position: relative; }
.l2d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 1; opacity: 0; transition: opacity .8s ease; }
.l2d-ready .l2d-canvas { opacity: 1; }
.l2d-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: .9rem; z-index: 2; }
.l2d-loading span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.l2d-think { position: absolute; left: 60%; top: 9%; z-index: 3; display: flex; align-items: flex-end; gap: 5px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.l2d-think i { display: block; border-radius: 50%; background: #fff; border: 1px solid #d9d4c8; box-shadow: 0 2px 6px rgba(0,0,0,.06); animation: thought 1.4s ease-in-out infinite; }
.l2d-think i:nth-child(1) { width: 8px; height: 8px; }
.l2d-think i:nth-child(2) { width: 12px; height: 12px; animation-delay: .2s; }
.l2d-think i:nth-child(3) { width: 18px; height: 18px; animation-delay: .4s; }
.l2d-thinking .l2d-think { opacity: 1; }

/* ---------- 公网分享提示条（仅主机可见） ---------- */
.share-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 10px 20px; background: var(--ink); color: #f6f4ef; font-size: .92rem; }
.share-bar code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 6px; user-select: all; word-break: break-all; }
.share-bar .btn-primary { background: #f6f4ef; color: var(--ink); }
.share-tip { color: #a9aaa2; font-size: .82rem; }
.share-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fc79c; box-shadow: 0 0 0 4px rgba(95,199,156,.18); }
