:root {
  --bg: #f6f3fa;
  --surface: #ffffff;
  --surface-soft: #faf7fe;
  --brand-deep: #34195e;
  --brand: #5b3593;
  --brand-hover: #462577;
  --brand-light: #7f58bd;
  --brand-soft: #f3ecfc;
  --brand-border: #d7c7ee;
  --ink: #1e162b;
  --ink-2: #504661;
  --ink-3: #837996;
  --line: #eae3f4;
  --line-strong: #d4c8e6;
  --danger: #c62828;
  --danger-bg: #fff2f2;
  --danger-border: #fecaca;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --ok: #15803d;
  --ok-bg: #ecfdf5;
  --ok-border: #bbf7d0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(52, 25, 94, 0.06);
  --shadow-md: 0 10px 30px rgba(52, 25, 94, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== 通用按钮与徽章 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #6941a6, #3c1e6e);
  border-color: #3c1e6e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(52, 25, 94, 0.28);
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a3494, #2f1659);
  color: #fff;
}

.btn-danger {
  color: var(--danger);
  border-color: var(--danger-border);
  background: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 13px;
}

.btn-icon {
  padding: 7px 10px;
  min-width: 34px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.badge-high { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-muted { background: #f1eef5; color: var(--ink-2); border: 1px solid var(--line); }
.badge-brand { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border); }

/* ==================== 会员问卷页面 ==================== */
.survey-shell {
  min-height: 100vh;
  padding: 0 0 64px;
  background:
    radial-gradient(circle at 12% 0%, rgba(127, 88, 189, 0.14), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(52, 25, 94, 0.14), transparent 42%),
    var(--bg);
}

.survey-progress-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.survey-progress-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.progress-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}

.progress-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-light));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.survey-container {
  max-width: 780px;
  margin: 22px auto 0;
  padding: 0 16px;
}

.survey-hero {
  background: linear-gradient(145deg, #2d1454 0%, #4b2780 56%, #6a41a8 100%);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 32px 26px;
  position: relative;
  overflow: hidden;
}

.survey-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero-logo-circle {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(24, 9, 48, 0.24);
}

.hero-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-title-text {
  min-width: 0;
}

.hero-studio-tag {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(238, 226, 255, 0.9);
  margin-bottom: 3px;
}

.survey-hero h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.28;
}

.survey-hero p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.invite-banner {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(235, 220, 255, 0.36);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #f8f3ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.survey-card {
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  border-top: none;
  padding: 12px 32px 36px;
}

.question-block {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 66px;
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-block.has-error {
  background: #fff9f9;
  margin: 0 -16px;
  padding: 24px 16px 22px;
  border-radius: var(--radius-md);
  border-bottom-color: var(--danger-border);
}

.q-title {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.q-req {
  color: #e11d48;
  font-weight: 700;
}

.q-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.q-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.text-input, .select-input, .textarea-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input:focus, .select-input:focus, .textarea-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 58, 112, 0.12);
}

.options-grid {
  display: grid;
  gap: 10px;
}

.options-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.options-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opt-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opt-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.opt-item:hover {
  border-color: var(--brand-border);
  background: var(--surface-soft);
}

.opt-item.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #2f1a3e;
  font-weight: 500;
}

.opt-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-control {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.8px solid #b8aec7;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.opt-control.radio {
  border-radius: 50%;
}

.opt-control.checkbox {
  border-radius: 5px;
}

.opt-item.selected .opt-control {
  border-color: var(--brand);
  background: var(--brand);
}

.opt-item.selected .opt-control.radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.opt-item.selected .opt-control.checkbox::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.opt-label {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.45;
  word-break: break-word;
}

.detail-box {
  display: none;
  padding-left: 2px;
}

.detail-box.open {
  display: block;
}

.detail-box input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-sm);
  background: #fdfbfe;
}

.detail-box input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.survey-submit-wrap {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.survey-submit-btn {
  width: 100%;
  max-width: 340px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
}

.survey-privacy-tip {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.status-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 44px 28px;
  text-align: center;
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.status-icon.ok { background: var(--ok-bg); color: var(--ok); }
.status-icon.warn { background: var(--warn-bg); color: var(--warn); }
.status-icon.err { background: var(--danger-bg); color: var(--danger); }

/* ==================== 管理员后台 ==================== */
.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(91, 53, 147, 0.16), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(127, 88, 189, 0.14), transparent 42%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #34195e, #653da3);
  color: #fff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(52, 25, 94, 0.22);
}

.admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.admin-logo-light {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-border);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-logo-light img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-sheet-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 22px;
}

.detail-sheet-head img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.admin-title-group h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-tabs-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
}

.admin-tab {
  position: relative;
  padding: 14px 2px;
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--brand);
}

.admin-tab.active {
  color: var(--brand);
  font-weight: 700;
}

.admin-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
}

.admin-main {
  max-width: 1200px;
  margin: 22px auto 60px;
  padding: 0 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar input[type="date"],
.toolbar input[type="text"],
.toolbar select {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13.5px;
}

.pager-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.pager-input {
  width: 58px;
  text-align: center;
  padding: 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

/* 答卷详情头部条（复刻截图风格） */
.submission-meta-bar {
  background: #f5f3f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.risk-banner {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid;
}

.risk-banner.high { background: var(--danger-bg); border-color: var(--danger-border); color: #8b1a1a; }
.risk-banner.medium { background: var(--warn-bg); border-color: var(--warn-border); color: #854d0e; }
.risk-banner.low { background: var(--ok-bg); border-color: var(--ok-border); color: #166534; }

.risk-banner h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.risk-banner ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
}

.detail-sheet {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 10px;
}

.detail-sheet-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 22px;
  color: var(--ink);
}

.readonly-q {
  margin-bottom: 22px;
}

.readonly-q-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.readonly-text-box {
  background: #f6f7fa;
  border: 1px solid #e2e6ef;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}

.readonly-opts {
  display: grid;
  gap: 8px 18px;
}

.readonly-opts.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.readonly-opts.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ro-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #8b8796;
  padding: 4px 6px;
  border-radius: 6px;
}

.ro-opt.checked {
  color: var(--ink);
  font-weight: 600;
  background: #f4eef9;
}

.ro-dot {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1.5px solid #d4cfe0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ro-dot.radio { border-radius: 50%; }
.ro-dot.checkbox { border-radius: 4px; }

.ro-opt.checked .ro-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.ro-opt.checked .ro-dot.radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.ro-opt.checked .ro-dot.checkbox::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.ro-detail-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  color: var(--brand);
}

/* 统计条形图 */
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}

.stat-card h3 {
  margin: 0 0 14px;
  font-size: 15.5px;
}

.stat-row {
  margin-bottom: 10px;
}

.stat-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.stat-bar-bg {
  height: 9px;
  background: #f0ecf5;
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #432075, #8960c9);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data-table th,
table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.data-table th {
  background: #f7f4fb;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}

table.data-table tr:hover td {
  background: #fbf9fd;
}

/* 弹窗 & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 15, 34, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.code-box {
  background: #f6f4fa;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  word-break: break-all;
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #23182e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notice-box {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--brand-deep);
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 46px 20px;
  color: var(--ink-3);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 720px) {
  .survey-container {
    margin-top: 12px;
    padding: 0 10px;
  }
  .survey-hero {
    padding: 22px 18px 20px;
  }
  .hero-logo-circle {
    width: 48px;
    height: 48px;
    padding: 5px;
  }
  .survey-hero h1 {
    font-size: 20px;
  }
  .survey-card {
    padding: 8px 18px 28px;
  }
  .options-grid.cols-2,
  .options-grid.cols-3,
  .readonly-opts.cols-2,
  .readonly-opts.cols-3,
  .kpi-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 0 12px;
  }
}

/* ==================== 专用 A4 大字清晰打印档案（100%满幅防缩小，仅打印已选答案，留足手写区） ==================== */
.print-clipboard-sheet {
  display: none;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif !important;
  }
  .no-print,
  .screen-only,
  .admin-header,
  .admin-tabs-bar,
  .toolbar,
  .submission-meta-bar,
  .risk-banner,
  .detail-sheet,
  .staff-note-editor,
  .modal-backdrop,
  .toast,
  #pwdNoticeBanner {
    display: none !important;
  }
  #appView,
  .admin-main,
  #tabContent,
  .panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
  .print-clipboard-sheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 12px 18px 8px 18px;
    color: #000000 !important;
    background: #ffffff !important;
  }
  .pc-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid #000000;
  }
  .pc-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
  }
  .pc-meta {
    font-size: 13px;
    color: #222222;
  }
  .pc-risk-alert {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #000000;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #000000;
  }
  .pc-risk-alert strong {
    font-weight: 700;
  }
  .pc-item {
    margin-bottom: 18px;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .pc-q {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1.38;
    margin-bottom: 4px;
  }
  .pc-a {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.55;
    word-break: break-word;
  }
  .pc-a-line {
    margin: 2px 0;
  }
  .pc-detail {
    font-weight: 700;
    color: #000000;
  }
  .pc-staff-note {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1.5px dashed #000000;
    font-size: 15.5px;
    line-height: 1.55;
    color: #000000;
  }
}
