:root {
  --bg: #fdf6ee;
  --ink: #33261d;
  --ink-soft: #8a7a6d;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(51, 38, 29, 0.1);
  --accent: #ff8a3d;
  --accent-deep: #f2691e;
  --peach: #ffd7b5;
  --mint: #6dd3b5;
  --blue: #6aa9ff;
  --violet: #a78bfa;
  --rose: #ff7d9c;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(120, 72, 30, 0.14);
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, #ffe3c4 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 30%, #d9ecff 0%, transparent 50%),
    radial-gradient(800px 600px at 60% 110%, #ffe0ea 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.en { color: var(--ink-soft); font-weight: 400; }

/* ---------- 背景光斑 ---------- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 380px; height: 380px; background: #ffc48a; top: -80px; right: -60px; }
.orb-2 { width: 320px; height: 320px; background: #a5c8ff; bottom: 10%; left: -100px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: #ffb3c7; bottom: -60px; right: 15%; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, -28px) scale(1.12); } }

.glass {
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.view { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 20px 24px; position: relative; z-index: 1; }
.view[hidden] { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; cursor: pointer; border-radius: 999px;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  padding: 0.75rem 1.6rem; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
}
.btn .en { font-size: 0.82rem; opacity: 0.75; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 10px 26px rgba(242, 105, 30, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 105, 30, 0.45); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.6); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-lg { font-size: 1.1rem; padding: 0.95rem 2.4rem; }

/* ---------- 封面 ---------- */
.cover-card { text-align: center; padding: 56px 36px 44px; animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.cover-logo { display: block; width: 88px; height: auto; margin: 0 auto 18px; }
.cover-kicker { letter-spacing: 0.35em; font-size: 0.75rem; color: var(--accent-deep); font-weight: 700; margin-bottom: 18px; }
.cover-title { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.title-zh {
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1.15;
  background: linear-gradient(120deg, #f2691e, #ff9d5c 40%, #e0559a 75%, #8a6cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-en { font-size: clamp(0.95rem, 2.6vw, 1.15rem); color: var(--ink-soft); letter-spacing: 0.06em; }
.cover-desc { font-size: 1.02rem; line-height: 1.7; margin-bottom: 26px; }
.cover-desc .en { font-size: 0.85rem; }
.cover-dims { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.cover-dims li { font-size: 0.86rem; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px; }
.cover-dims .en { font-size: 0.74rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.d1 { background: var(--accent); } .d2 { background: var(--mint); } .d3 { background: var(--blue); } .d4 { background: var(--violet); } .d5 { background: var(--rose); }
.cover-note { margin-top: 26px; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 问卷 ---------- */
.survey-head { position: sticky; top: 0; z-index: 5; padding: 14px 4px 12px; background: linear-gradient(to bottom, var(--bg) 65%, transparent); }
.progress-track { height: 10px; border-radius: 999px; background: rgba(51, 38, 29, 0.08); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #ffb066, var(--accent-deep), #e0559a);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }

.stage { min-height: 420px; }
.dim-step { animation: slide-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.dim-step.leaving { animation: slide-out 0.25s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { to { opacity: 0; transform: translateX(-40px); } }

.dim-head { display: flex; align-items: baseline; gap: 12px; margin: 10px 4px 18px; flex-wrap: wrap; }
.dim-badge { font-size: 0.75rem; font-weight: 700; color: #fff; border-radius: 999px; padding: 4px 12px; }
.dim-head h2 { font-size: 1.3rem; }
.dim-head .en { font-size: 0.85rem; }

.q-card {
  padding: 26px 26px 22px; margin-bottom: 18px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.q-card:nth-child(3) { animation-delay: 0.06s; }
.q-card:nth-child(4) { animation-delay: 0.12s; }
.q-card:hover { transform: translateY(-3px); }
.q-card.answered { border-color: rgba(255, 138, 61, 0.5); }
.q-card.shake { animation: shake 0.4s ease; }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 100% { transform: none; } }

.q-no { position: absolute; top: -13px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 14px rgba(242, 105, 30, 0.4); }
.q-zh { font-size: 1.06rem; font-weight: 650; line-height: 1.65; margin: 6px 0 6px; }
.q-en { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 18px; }
.q-tag { position: absolute; top: 22px; right: 22px; font-size: 0.68rem; border-radius: 999px; padding: 3px 10px; background: rgba(51, 38, 29, 0.06); color: var(--ink-soft); }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.likert label { position: relative; cursor: pointer; }
.likert input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.likert .pill {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 4px 8px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
}
.likert .face { font-size: 1.35rem; line-height: 1; transition: transform 0.2s ease; }
.likert .val { font-size: 0.68rem; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.likert input:hover + .pill { border-color: var(--accent); transform: translateY(-2px); }
.likert input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }
.likert input:checked + .pill {
  background: linear-gradient(160deg, #fff1e2, #ffe0c2);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(242, 105, 30, 0.22);
}
.likert input:checked + .pill .face { transform: scale(1.28) rotate(-6deg); }
.likert input:checked + .pill .val { color: var(--accent-deep); font-weight: 700; }

.survey-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 30px; }
.step-dots { display: flex; gap: 8px; }
.step-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(51, 38, 29, 0.15); transition: all 0.3s ease; }
.step-dots i.done { background: var(--mint); }
.step-dots i.active { background: var(--accent); transform: scale(1.35); }

/* ---------- 结果 ---------- */
.result-card { text-align: center; padding: 46px 32px 40px; animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.result-kicker { letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 22px; }
.score-ring { position: relative; width: 210px; margin: 0 auto 18px; }
.score-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(51, 38, 29, 0.08); stroke-width: 12; }
.ring-fg { fill: none; stroke: url(#none); stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 540; stroke-dashoffset: 540; transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.1rem; font-weight: 800; }
.sn-inner { display: flex; align-items: baseline; line-height: 1; gap: 2px; }
.score-num small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.result-tier { font-size: 1.5rem; margin-bottom: 8px; }
.result-comment { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; max-width: 480px; margin: 0 auto 8px; }
.save-warn { margin: 14px auto; max-width: 460px; background: #fff4e0; border: 1px solid #ffd9a0; color: #8a5a10; border-radius: 14px; padding: 12px 16px; font-size: 0.85rem; line-height: 1.6; text-align: left; }

.radar-block { margin-top: 30px; text-align: left; }
.block-title { font-size: 1.02rem; margin-bottom: 12px; text-align: center; }
.block-title .en { font-size: 0.78rem; margin-left: 6px; }
#radar, #admin-radar { display: block; width: 100%; max-width: 340px; margin: 0 auto; }

.dim-bars { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.dim-bars li { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 12px; font-size: 0.85rem; }
.dim-bars .en { display: block; font-size: 0.68rem; }
.bar-track { height: 10px; background: rgba(51, 38, 29, 0.07); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dim-bars .num { font-weight: 700; text-align: right; }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- 自评滑杆 ---------- */
.slider-wrap { padding: 8px 6px 2px; }
.slider-value {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ffb066, #e0559a);
  box-shadow: 0 8px 20px rgba(224, 85, 154, 0.35);
  transform: scale(calc(0.85 + var(--k, 0.5) * 0.35));
  transition: transform 0.2s ease;
}
#self-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #8a9bb5, #ffd7b5 45%, #ff8a3d 75%, #e0559a);
}
#self-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(242, 105, 30, 0.4);
  transition: transform 0.15s ease;
}
#self-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
#self-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(242, 105, 30, 0.4);
}
.slider-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.72rem; color: var(--ink-soft); }
.slider-scale .en { font-size: 0.64rem; }

/* ---------- 匹配度 ---------- */
.match-block { margin-top: 26px; padding: 24px 26px; text-align: center; }
.match-nums { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.match-nums strong { font-size: 1.7rem; color: var(--ink); margin: 0 2px; }
.match-nums small { font-size: 0.75rem; }
.match-vs { font-weight: 800; font-size: 0.78rem; color: var(--accent-deep); letter-spacing: 0.08em; }
.match-bar { height: 12px; border-radius: 999px; background: rgba(51, 38, 29, 0.07); overflow: hidden; }
.match-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #6dd3b5, #ffb066 55%, #e0559a);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.match-pct-line { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.match-pct-line strong { color: var(--accent-deep); font-size: 1.05rem; }
.match-label { margin-top: 10px; font-size: 0.9rem; line-height: 1.7; }
.match-label strong { font-size: 1rem; }

.match-panel { margin-bottom: 18px; }
.match-bars { display: flex; flex-direction: column; gap: 14px; }
.match-row { display: grid; grid-template-columns: 170px 1fr 90px; align-items: center; gap: 12px; font-size: 0.85rem; }
.match-row .en { display: block; font-size: 0.68rem; }
.match-row .cnt { text-align: right; font-weight: 700; }
.match-row .cnt small { color: var(--ink-soft); font-weight: 400; }

/* ---------- 管理员 ---------- */
#view-admin { max-width: 980px; }
.admin-login { max-width: 400px; margin: 8vh auto; padding: 44px 36px; text-align: center; animation: rise 0.5s ease both; }
.admin-lock { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, #ffe0c2, #ffd0dd); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; }
.admin-login h2 { font-size: 1.25rem; margin-bottom: 22px; }
.admin-login h2 .en { font-size: 0.8rem; display: block; margin-top: 4px; }
#join-form, #admin-login-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 0.8rem; font-weight: 700; color: var(--ink); padding-left: 4px; letter-spacing: 0.02em; }
.field-label i { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 0.72rem; margin-left: 4px; }
.field-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0 16px; height: 54px;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(120, 72, 30, 0.05);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.field-box:hover { border-color: rgba(255, 138, 61, 0.45); }
.field-box:focus-within {
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.14), 0 6px 16px rgba(242, 105, 30, 0.1);
  transform: translateY(-1px);
}
.field-box input, .field-box select {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 0.98rem; font-family: inherit; color: var(--ink); height: 100%;
}
.field-box input::placeholder { color: #b7a899; }
.field-box select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7a6d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.field-box select:invalid, .field-box select option[value=""] { color: #b7a899; }
.btn-block { width: 100%; height: 52px; border-radius: 16px; font-size: 1.02rem; margin-top: 4px; }
.mbti-chip { display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 700; color: var(--accent-deep); background: #fff1e2; border: 1px solid #ffd9b0; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.admin-error { color: #c0392b; font-size: 0.85rem; margin-top: 12px; }
.admin-back { display: inline-block; margin-top: 22px; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.admin-back:hover { color: var(--accent-deep); }

.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h2 { font-size: 1.3rem; }
.dash-head h2 .en { font-size: 0.8rem; }
.dash-sub { color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; }
.dash-actions { display: flex; gap: 10px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 20px 22px; animation: rise 0.5s ease both; }
.stat-card .k { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card .v { font-size: 1.9rem; font-weight: 800; }
.stat-card .v small { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 24px; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }

.hist { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.hist-bar { width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(to top, #ffb066, var(--accent-deep)); min-height: 2px; transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hist-num { font-size: 0.78rem; font-weight: 700; }
.hist-label { font-size: 0.66rem; color: var(--ink-soft); text-align: center; line-height: 1.3; }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.panel-head .block-title { margin-bottom: 8px; text-align: left; }
.sort-toggle { display: inline-flex; background: rgba(51, 38, 29, 0.06); border-radius: 999px; padding: 3px; gap: 2px; }
.sort-toggle button {
  border: none; cursor: pointer; font-family: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--ink-soft); background: transparent; border-radius: 999px; padding: 6px 14px;
  transition: all 0.2s ease; white-space: nowrap;
}
.sort-toggle button .en { font-size: 0.66rem; }
.sort-toggle button.active { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px rgba(120, 72, 30, 0.15); }

.table-wrap { overflow-x: auto; }
.recent-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.recent-table th { text-align: left; color: var(--ink-soft); font-weight: 600; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.recent-table th .en { font-size: 0.68rem; }
.recent-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.recent-table tr:last-child td { border-bottom: none; }
.mini-dims { display: flex; gap: 4px; }
.mini-dims i { width: 34px; height: 7px; border-radius: 999px; background: rgba(51, 38, 29, 0.08); display: inline-block; overflow: hidden; position: relative; }
.mini-dims i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); border-radius: 999px; background: var(--c, var(--accent)); }
.tier-chip { font-size: 0.72rem; border-radius: 999px; padding: 3px 10px; font-weight: 700; white-space: nowrap; }
.empty-note { color: var(--ink-soft); font-size: 0.88rem; padding: 26px 0; text-align: center; }
.recent-table .th-action { text-align: right; }
.td-actions { text-align: right; white-space: nowrap; }
.btn-detail {
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.1);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-detail .en { font-size: 0.64rem; opacity: 0.75; }
.btn-detail:hover { background: rgba(255, 138, 61, 0.2); border-color: rgba(255, 138, 61, 0.6); transform: translateY(-1px); }
.btn-detail:active { transform: translateY(0); }
.btn-detail:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.btn-del {
  border: 1px solid rgba(214, 69, 92, 0.28);
  background: rgba(214, 69, 92, 0.07);
  color: #c2334d;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.btn-del .en { font-size: 0.64rem; opacity: 0.75; }
.btn-del:hover { background: rgba(214, 69, 92, 0.15); border-color: rgba(214, 69, 92, 0.5); transform: translateY(-1px); }
.btn-del:active { transform: translateY(0); }
.btn-del:disabled { opacity: 0.45; cursor: progress; transform: none; }
.btn-del:focus-visible { outline: 2px solid #d6455c; outline-offset: 2px; }

body.modal-open { overflow: hidden; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(51, 38, 29, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 26px 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.modal-close:hover { background: #fff1e2; color: var(--accent-deep); transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 30px; }
.detail-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.detail-time { margin-top: 6px; font-size: 0.76rem; color: var(--ink-soft); }
.detail-time .en { font-size: 0.7rem; }
.detail-total { text-align: right; flex-shrink: 0; }
.dt-num { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--accent-deep); }
.dt-num small { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }
.detail-meta {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 214, 177, 0.24);
  font-size: 0.82rem;
  color: var(--ink);
}
.detail-meta .en { font-size: 0.7rem; color: var(--ink-soft); }
.detail-meta .dot { margin: 0 6px; color: var(--ink-soft); }
.detail-sub { margin: 20px 0 10px; font-size: 0.95rem; font-weight: 700; }
.detail-sub .en { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.detail-dims { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.detail-dims li { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 2fr) 40px; align-items: center; gap: 12px; }
.dd-name { font-size: 0.84rem; font-weight: 600; }
.dd-name .en { display: block; font-size: 0.68rem; font-weight: 400; color: var(--ink-soft); }
.dd-track { height: 9px; border-radius: 999px; background: rgba(51, 38, 29, 0.08); overflow: hidden; }
.dd-track i { display: block; height: 100%; border-radius: 999px; }
.dd-val { font-size: 0.92rem; font-weight: 700; text-align: right; }
.detail-note { margin-top: 16px; font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .modal-card { padding: 22px 18px 18px; }
  .detail-head { flex-direction: column; gap: 10px; }
  .detail-total { text-align: left; }
  .detail-dims li { grid-template-columns: 1fr 44px; grid-template-areas: "name val" "track track"; gap: 6px 10px; }
  .dd-name { grid-area: name; }
  .dd-val { grid-area: val; }
  .dd-track { grid-area: track; }
}

/* ---------- 页脚 ---------- */
.site-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 26px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }
.admin-link { color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(255, 255, 255, 0.5); transition: all 0.2s; }
.admin-link:hover { color: var(--accent-deep); border-color: var(--accent); }
.icp-link { color: var(--ink-soft); text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s; }
.icp-link:hover, .icp-link:focus-visible { color: var(--accent-deep); text-decoration: underline; }

@media (max-width: 560px) {
  .view { padding: 24px 14px 16px; }
  .cover-card { padding: 40px 22px 34px; }
  .cover-logo { width: 72px; margin-bottom: 14px; }
  .q-card { padding: 24px 18px 18px; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .likert .val { font-size: 0.58rem; }
  .likert .face { font-size: 1.1rem; }
  .dim-bars li { grid-template-columns: 96px 1fr 40px; }
  .survey-nav .btn { padding: 0.65rem 1rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
