:root {
  --ink: #17201c;
  --muted: #69736d;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dfe4df;
  --yellow: #f7c948;
  --green: #48b8a0;
  --coral: #f28c6f;
  --blue: #8db9e8;
  --shadow: 0 18px 55px rgba(23, 32, 28, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.94);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; width: max-content; }
.brand-mark { width: 30px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--yellow) 0 28%, var(--green) 28% 52%, var(--coral) 52% 74%, var(--blue) 74%); display: grid; place-items: center; border: 2px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.brand-mark i { position: absolute; width: 7px; height: 8px; background: var(--ink); top: -7px; clip-path: polygon(0 0, 100% 0, 50% 100%); }

.mode-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #eef1ed; border-radius: 6px; }
.mode-link { min-width: 92px; padding: 8px 14px; border-radius: 4px; color: var(--muted); text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; }
.mode-link.is-active { color: var(--ink); background: var(--white); box-shadow: 0 2px 8px rgba(23, 32, 28, 0.08); }
.topbar-meta { justify-self: end; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; color: #89918d; }

.page { min-height: calc(100vh - 72px); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.button { min-height: 42px; border: 1px solid transparent; border-radius: 5px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.button-primary { background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.button-primary:hover { box-shadow: 5px 5px 0 var(--ink); }
.button-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button-secondary { background: var(--white); border-color: var(--line); }
.button-quiet { min-height: 36px; padding: 7px 12px; background: transparent; border-color: var(--line); }
.button-full { width: 100%; }
.text-button { border: 0; padding: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); display: grid; place-items: center; font-size: 18px; font-weight: 800; cursor: pointer; }
.icon-button:hover { border-color: var(--ink); }
.icon-button-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.field-error { min-height: 18px; margin: 7px 0 0; color: #b8493a; font-size: 12px; font-weight: 700; }

/* 游客入口 */
.access-view { max-width: 1320px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 76px clamp(24px, 6vw, 90px) 54px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(50px, 8vw, 120px); overflow: hidden; }
.access-copy { position: relative; z-index: 2; }
.access-copy h1 { margin: 0; font-size: clamp(54px, 6.4vw, 92px); line-height: 1.03; letter-spacing: 0; font-weight: 900; }
.access-copy h1 span { color: var(--green); }
.access-subtitle { max-width: 500px; margin: 28px 0 34px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.code-form { max-width: 560px; }
.code-form > label, .login-form > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.code-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.code-input-row input, .login-form input { min-width: 0; height: 52px; border: 1px solid #cdd4ce; border-radius: 5px; background: #fff; padding: 0 16px; color: var(--ink); font-weight: 800; outline: none; text-transform: uppercase; }
.code-input-row input:focus, .login-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(72, 184, 160, 0.16); }
.demo-code { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.demo-code button { padding: 3px 8px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-family: ui-monospace, monospace; color: var(--ink); font-weight: 800; cursor: pointer; }
.access-visual { width: min(48vw, 570px); aspect-ratio: 1; justify-self: center; position: relative; display: grid; place-items: center; }
.mini-wheel { width: 78%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from -30deg, var(--yellow) 0 25%, var(--green) 25% 48%, #e9ece7 48% 65%, var(--coral) 65% 82%, var(--blue) 82%); border: 12px solid var(--ink); box-shadow: 18px 22px 0 rgba(23, 32, 28, 0.13); position: relative; transform: rotate(7deg); }
.mini-wheel::before, .mini-wheel::after { content: ""; position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.mini-wheel::before { width: 32%; height: 32%; background: var(--white); border: 8px solid var(--ink); }
.mini-wheel::after { width: 9%; height: 9%; background: var(--yellow); border: 4px solid var(--ink); }
.mini-wheel-core { position: absolute; left: 50%; top: -34px; width: 42px; height: 52px; background: var(--ink); transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 2; }
.orbit { position: absolute; border: 1px dashed #abb4ae; border-radius: 50%; }
.orbit-one { inset: 2%; }
.orbit-two { inset: 12%; }
.visual-ticket { position: absolute; min-width: 105px; height: 50px; display: grid; place-items: center; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); font-weight: 900; font-size: 13px; }
.ticket-one { top: 8%; right: 1%; transform: rotate(8deg); }
.ticket-two { left: 0; bottom: 17%; transform: rotate(-9deg); background: var(--yellow); }

/* 公共转盘 */
.play-view { max-width: 1320px; margin: 0 auto; padding: 34px clamp(22px, 5vw, 64px) 56px; }
.play-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.play-header h1 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; letter-spacing: 0; }
.play-header .text-button { margin-bottom: 23px; }
.active-code { min-width: 190px; padding: 12px 15px; border-left: 3px solid var(--yellow); background: #ecefeb; }
.active-code span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.active-code strong { font-family: ui-monospace, monospace; font-size: 15px; }
.play-layout { display: grid; grid-template-columns: minmax(460px, 1.4fr) minmax(290px, 0.6fr); align-items: center; gap: clamp(36px, 7vw, 100px); padding-top: 38px; }
.wheel-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.guest-wheel-stage { width: min(62vw, 610px); justify-self: center; }
.wheel { width: 88%; aspect-ratio: 1; border-radius: 50%; position: relative; overflow: visible; box-shadow: 12px 16px 0 rgba(23, 32, 28, 0.11); transition: transform 4.8s cubic-bezier(0.12, 0.66, 0.14, 1); }
.wheel-pointer { width: 56px; height: 70px; position: absolute; top: 0; left: 50%; transform: translate(-50%, -16%); background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 5; filter: drop-shadow(0 5px 0 rgba(255, 255, 255, 0.5)); }
.spin-button { width: 104px; aspect-ratio: 1; border: 7px solid var(--ink); border-radius: 50%; background: var(--white); position: absolute; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 7px 0 rgba(23, 32, 28, 0.28); transition: transform 160ms ease; }
.spin-button:hover { transform: scale(1.04); }
.spin-button:disabled { cursor: wait; }
.spin-button span { font-size: 20px; font-weight: 900; }
.spin-button small { margin-top: 2px; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: var(--muted); }
.prize-panel { align-self: stretch; border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.panel-heading, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2, .preview-heading h2, .section-heading h2 { margin: 0; font-size: 22px; }
.count-badge { min-width: 34px; height: 26px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.prize-list { margin-top: 17px; border-top: 1px solid var(--line); }
.prize-row { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.prize-swatch { width: 15px; height: 15px; border: 1px solid rgba(23, 32, 28, 0.18); }
.prize-row strong { font-size: 14px; overflow-wrap: anywhere; }
.prize-row span:last-child { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.fairness-note { margin-top: 22px; padding: 12px 14px; background: #e8f3ef; color: #28715f; font-size: 11px; font-weight: 800; }

/* 管理登录 */
.login-layout { max-width: 1160px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 70px 40px; display: grid; grid-template-columns: 1.3fr minmax(340px, 0.7fr); gap: 80px; align-items: center; }
.login-intro h1 { max-width: 600px; margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: 1; letter-spacing: 0; }
.login-intro > p:not(.eyebrow) { max-width: 480px; margin: 25px 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.login-numbers { margin-top: 50px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.login-numbers i { width: 54px; height: 1px; background: var(--line); }
.login-form { padding: 32px; border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--yellow); }
.login-form-heading { margin-bottom: 32px; display: flex; align-items: center; gap: 9px; font-weight: 900; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(72, 184, 160, 0.16); }
.login-form input { width: 100%; margin-bottom: 2px; text-transform: none; }
.login-hint { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.login-hint code { color: var(--ink); }

/* 管理后台 */
.dashboard { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.dashboard-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); border-right: 1px solid var(--line); background: #f0f2ee; display: flex; flex-direction: column; }
.sidebar-heading { padding: 26px 22px 18px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-heading h2 { margin: 0; font-size: 20px; }
.wheel-list { flex: 1; padding: 4px 12px; overflow-y: auto; }
.wheel-list-empty { padding: 42px 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }
.wheel-list-item { width: 100%; padding: 13px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; }
.wheel-list-item:hover { background: rgba(255,255,255,.6); }
.wheel-list-item.is-active { border-color: var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.list-status { width: 8px; height: 8px; border-radius: 50%; background: #a9b0ac; }
.list-status.active { background: var(--green); }
.list-copy { min-width: 0; }
.list-copy strong, .list-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-copy strong { font-size: 13px; }
.list-copy small { margin-top: 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.list-count { color: var(--muted); font-size: 10px; font-weight: 800; }
.sidebar-footer { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.sidebar-footer > span { display: flex; align-items: center; gap: 8px; }
.editor-shell { min-width: 0; }
.editor-toolbar { min-height: 102px; padding: 18px clamp(22px, 3vw, 44px); border-bottom: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 72px; z-index: 20; }
.title-input { width: min(420px, 42vw); padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font-size: 25px; font-weight: 900; outline: none; }
.title-input:focus { border-bottom-color: var(--ink); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.status-toggle { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.status-toggle input { position: absolute; opacity: 0; }
.toggle-track { width: 38px; height: 21px; padding: 2px; border-radius: 11px; background: #b8bfba; transition: background 160ms ease; }
.toggle-track i { display: block; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform 160ms ease; }
.status-toggle input:checked + .toggle-track { background: var(--green); }
.status-toggle input:checked + .toggle-track i { transform: translateX(17px); }
.editor-content { display: grid; grid-template-columns: minmax(500px, 1fr) minmax(390px, 0.86fr); min-height: calc(100vh - 174px); }
.config-panel { min-width: 0; padding: 34px clamp(24px, 4vw, 52px) 60px; border-right: 1px solid var(--line); background: var(--white); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading > div { display: flex; align-items: center; gap: 14px; }
.step-index { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--yellow); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; }
.section-heading .eyebrow { margin-bottom: 3px; }
.code-box { margin-top: 17px; padding: 16px 18px; border: 1px solid var(--line); background: #f5f7f3; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.code-box span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.code-box strong { font-family: ui-monospace, monospace; font-size: 17px; }
.code-actions { display: flex; gap: 7px; }
.prizes-heading { margin-top: 40px; }
.item-table-head, .item-row { display: grid; grid-template-columns: 46px minmax(120px, 1fr) 86px 58px 34px; gap: 10px; align-items: center; }
.item-table-head { margin-top: 20px; padding: 0 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.item-editor { border-top: 1px solid var(--line); }
.item-row { padding: 10px; border-bottom: 1px solid var(--line); transition: background 150ms ease; }
.item-row:focus-within { background: #fafbf8; }
.color-control { width: 32px; height: 32px; padding: 0; border: 1px solid #cbd2cc; border-radius: 4px; background: transparent; overflow: hidden; cursor: pointer; }
.color-control::-webkit-color-swatch-wrapper { padding: 0; }
.color-control::-webkit-color-swatch { border: 3px solid white; border-radius: 3px; }
.item-input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #d8ddd8; border-radius: 4px; background: var(--white); outline: none; font-size: 12px; font-weight: 700; }
.item-input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(72, 184, 160, .14); }
.item-probability { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; text-align: right; }
.remove-item { width: 30px; height: 30px; border: 0; background: transparent; color: #a95649; font-size: 19px; cursor: pointer; }
.remove-item:hover { background: #faece8; }
.weight-summary { padding: 13px 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.weight-summary strong { color: var(--ink); font-family: ui-monospace, monospace; }
.danger-button { margin-top: 32px; padding: 5px 0; border: 0; border-bottom: 1px solid #c85b4c; background: transparent; color: #a84235; font-size: 11px; font-weight: 800; cursor: pointer; }
.preview-panel { min-width: 0; padding: 34px clamp(26px, 4vw, 54px); background: #eef1ed; }
.live-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #cad2cc; background: rgba(255,255,255,.62); color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; font-weight: 900; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #3aa88d; box-shadow: 0 0 0 3px rgba(58,168,141,.15); }
.preview-canvas { margin: 26px 0 20px; padding: 20px; border: 1px solid #d5dbd6; background-image: linear-gradient(#dde2dd 1px, transparent 1px), linear-gradient(90deg, #dde2dd 1px, transparent 1px); background-size: 24px 24px; }
.admin-wheel-stage { width: min(32vw, 440px); margin: 0 auto; }
.admin-wheel-stage .wheel { width: 90%; border-width: 9px; }
.admin-wheel-stage .wheel-pointer { width: 44px; height: 56px; }
.spin-button-small { width: 82px; border-width: 6px; }
.spin-button-small span { font-size: 16px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d5dbd6; background: rgba(255,255,255,.52); }
.preview-stats > div { padding: 14px; border-right: 1px solid #d5dbd6; }
.preview-stats > div:last-child { border: 0; }
.preview-stats span, .preview-stats strong { display: block; }
.preview-stats span { color: var(--muted); font-size: 9px; font-weight: 800; }
.preview-stats strong { margin-top: 6px; font-size: 17px; }

/* 弹窗与提示 */
.result-dialog { width: min(420px, calc(100vw - 36px)); padding: 40px 36px 34px; border: 2px solid var(--ink); border-radius: 5px; background: var(--white); color: var(--ink); box-shadow: 12px 12px 0 var(--ink); text-align: center; }
.result-dialog::backdrop { background: rgba(23, 32, 28, .56); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 23px; cursor: pointer; }
.result-kicker { font-size: 9px; font-weight: 900; letter-spacing: 1.7px; color: var(--muted); }
.result-color { width: 72px; height: 72px; margin: 20px auto 17px; border: 5px solid var(--ink); border-radius: 50%; }
.result-dialog p { margin: 0; color: var(--muted); font-size: 12px; }
.result-dialog h2 { margin: 8px 0 26px; font-size: 32px; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; max-width: calc(100vw - 36px); padding: 11px 16px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: white; box-shadow: 5px 5px 0 var(--yellow); font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .topbar-meta { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .access-view { grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr); gap: 32px; }
  .access-copy h1 { font-size: 56px; }
  .dashboard { grid-template-columns: 230px minmax(0, 1fr); }
  .editor-toolbar { align-items: flex-start; }
  .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .editor-content { grid-template-columns: 1fr; }
  .config-panel { border-right: 0; }
  .preview-panel { border-top: 1px solid var(--line); }
  .admin-wheel-stage { width: min(58vw, 470px); }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 15px; }
  .brand > span:last-child { display: none; }
  .mode-link { min-width: 82px; padding: 7px 10px; font-size: 12px; }
  .page { min-height: calc(100vh - 64px); }
  .access-view { min-height: calc(100vh - 64px); padding: 44px 22px 36px; grid-template-columns: 1fr; gap: 40px; }
  .access-copy h1 { font-size: clamp(43px, 13vw, 62px); }
  .access-subtitle { margin: 20px 0 26px; font-size: 14px; }
  .access-visual { width: min(84vw, 430px); grid-row: 1; }
  .code-input-row { grid-template-columns: 1fr; }
  .code-input-row .button { width: 100%; }
  .play-view { padding: 22px 18px 42px; }
  .play-header { align-items: flex-start; }
  .play-header h1 { font-size: 32px; }
  .active-code { display: none; }
  .play-layout { grid-template-columns: 1fr; padding-top: 24px; gap: 30px; }
  .guest-wheel-stage { width: min(94vw, 520px); }
  .prize-panel { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .wheel-pointer { width: 45px; height: 58px; }
  .spin-button { width: 86px; border-width: 6px; }
  .spin-button span { font-size: 17px; }
  .login-layout { min-height: calc(100vh - 64px); padding: 42px 20px; grid-template-columns: 1fr; gap: 38px; }
  .login-intro h1 { font-size: 50px; }
  .login-intro > p:not(.eyebrow) { font-size: 14px; }
  .login-numbers { display: none; }
  .dashboard { display: block; }
  .dashboard-sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .wheel-list { display: flex; gap: 8px; padding: 2px 14px 15px; overflow-x: auto; }
  .wheel-list-item { min-width: 190px; }
  .sidebar-footer { display: none; }
  .editor-toolbar { top: 64px; padding: 14px 18px; display: block; }
  .title-input { width: 100%; font-size: 21px; }
  .toolbar-actions { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; }
  .status-toggle { grid-column: 1 / -1; margin-bottom: 2px; }
  .editor-content { min-height: auto; }
  .config-panel { padding: 26px 16px 44px; }
  .preview-panel { padding: 28px 16px 38px; }
  .item-table-head { display: none; }
  .item-editor { margin-top: 18px; }
  .item-row { grid-template-columns: 36px minmax(0, 1fr) 70px 34px; gap: 8px; }
  .item-probability { grid-column: 2 / 4; text-align: left; color: var(--muted); }
  .admin-wheel-stage { width: min(84vw, 430px); }
  .preview-canvas { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 公布结果对话框 ---------- */
.share-dialog {
  border: 0;
  border-radius: 28px;
  padding: 0;
  max-width: 400px;
  width: 92vw;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.share-dialog::backdrop { background: rgba(23, 32, 28, 0.45); }
.share-dialog form { padding: 38px 30px 34px; text-align: center; }
.share-dialog .share-icon { font-size: 38px; display: block; margin-bottom: 12px; }
.share-dialog h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.share-dialog p { margin: 0 0 24px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.share-qq-input {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  text-align: center;
  outline: none;
  letter-spacing: 0.5px;
}
.share-qq-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(72, 184, 160, 0.18); }

/* ---------- 大家的手气 ---------- */
.public-results-section {
  max-width: 900px;
  width: 100%;
  margin: 28px auto 16px;
  padding: 0 clamp(16px, 3vw, 32px);
}
.public-results-section .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.public-results-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.public-result-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 14px 6px 6px;
  font-size: 13px;
  color: var(--ink);
}
.qq-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.public-result-qq {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}
.public-result-prize strong { color: var(--coral); font-weight: 700; }
.public-results-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
