/* ============================================================
   今天吃什么 · Cute Menu — 主样式（移动端优先）
   ============================================================ */

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font);
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  min-height: 44px;
  touch-action: manipulation;
}
button:active { transform: scale(.94); }
button:disabled { opacity: .65; cursor: not-allowed; }

input, textarea {
  font-family: var(--font);
  font-size: 16px; /* 防止 iOS 聚焦放大 */
  border: 2px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--primary); }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ============ 布局骨架 ============ */
#app {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px calc(108px + env(safe-area-inset-bottom));
}

.page { display: none; animation: pageIn .3s ease; }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ 主题切换 ============ */
.theme-toggle {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--bounce);
}
[data-theme="pink"] .tt-pink { display: none; }
[data-theme="purple"] .tt-purple { display: none; }

/* ============ 首页 ============ */
.home-head { padding: 14px 4px 6px; }
.greeting {
  font-size: 26px;
  font-weight: 800;
  color: var(--on-bg-text);
  letter-spacing: .5px;
}
.date-line { margin-top: 4px; font-size: 14px; color: var(--text-soft); font-weight: 600; }

.hero-card {
  margin-top: 18px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 14px, var(--primary-soft) 14px 28px);
  opacity: .8;
}
.hero-title { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 6px; }
.hero-img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 36px;
  margin: 14px auto 10px;
  box-shadow: var(--shadow-sm);
  background: var(--card-soft);
}
.hero-dish { font-size: 19px; font-weight: 800; }
.hero-price { color: var(--accent); font-weight: 800; margin-top: 2px; }
.hero-btns { display: flex; gap: 12px; margin-top: 16px; }

.btn {
  flex: 1;
  height: 50px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .18s var(--bounce), box-shadow .2s, opacity .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost:hover { transform: translateY(-2px); }
}

.home-section { margin-top: 26px; }
.home-section h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--on-bg-text);
  padding: 0 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.h-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 4px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-row::-webkit-scrollbar { display: none; }
.h-card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  text-align: left;
  transition: transform .18s var(--bounce);
}
@media (hover: hover) { .h-card:hover { transform: translateY(-3px); } }
.h-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--card-soft);
}
.h-card .n { font-size: 13px; font-weight: 700; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-card .p { font-size: 13px; color: var(--accent); font-weight: 800; margin-top: 2px; }

.random-entry {
  margin-top: 26px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============ 菜单页 ============ */
.menu-head { padding: 14px 4px 4px; }
.menu-title { font-size: 26px; font-weight: 800; color: var(--on-bg-text); }
.search-box { margin-top: 12px; position: relative; }
.search-box input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  padding: 0 18px 0 44px;
}
.search-box::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: .6;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
}
.chip.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.dish-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  text-align: left;
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
  transition: transform .18s var(--bounce), box-shadow .2s;
}
@media (hover: hover) {
  .dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.dish-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--card-soft);
}
.dish-info { padding: 10px 12px 0; flex: 1; }
.dish-name { font-size: 15px; font-weight: 800; }
.dish-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 0;
}
.dish-price { color: var(--accent); font-weight: 800; font-size: 15px; }
.add-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-btn svg { width: 18px; height: 18px; color: #D9C6CE; transition: color .2s; }
.fav-btn.on svg { color: var(--accent); }
.fav-btn.pop svg { animation: heartPop .45s var(--bounce); }
@keyframes heartPop {
  0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.empty-state .emo { font-size: 44px; display: block; margin-bottom: 10px; }
.empty-state p { font-weight: 700; font-size: 15px; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  width: min(430px, calc(100% - 24px));
  background: var(--tabbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  padding: 6px;
}
.tab {
  flex: 1;
  height: 52px;
  min-height: 52px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  position: relative;
  transition: background .2s, color .2s;
}
.tab-ico { font-size: 19px; }
.tab.on {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 26px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ 底部弹层 / 模态 ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--overlay);
  opacity: 0;
  transition: opacity .25s;
}
.overlay.show { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .32s var(--bounce);
  overscroll-behavior: contain;
}
.sheet.show { transform: translateY(0); }
.sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--border);
  margin: 0 auto 12px;
}

.detail-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--card-soft);
}
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 14px; gap: 10px; }
.detail-name { font-size: 21px; font-weight: 800; }
.detail-price { color: var(--accent); font-weight: 800; font-size: 19px; white-space: nowrap; }
.detail-desc { color: var(--text-soft); font-size: 14px; margin-top: 6px; line-height: 1.6; }

.spec-group { margin-top: 16px; }
.spec-label { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-opt {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
}
.spec-opt.on {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.qty-label { font-size: 14px; font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper .q { font-size: 17px; font-weight: 800; min-width: 22px; text-align: center; }

.note-input { margin-top: 14px; width: 100%; padding: 12px 14px; resize: none; height: 68px; }

.sheet .btn { width: 100%; margin-top: 16px; height: 52px; }

/* 桌面端模态形态 */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.modal-box {
  pointer-events: auto;
  background: var(--card);
  border-radius: 26px;
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow);
  transform: scale(.9);
  opacity: 0;
  transition: transform .28s var(--bounce), opacity .2s;
}
.modal-wrap.show .modal-box { transform: scale(1); opacity: 1; }

/* ============ 购物车 ============ */
.cart-head { padding: 14px 4px 10px; }
.cart-title { font-size: 26px; font-weight: 800; color: var(--on-bg-text); }
.cart-item {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}
.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--card-soft);
  flex: 0 0 auto;
}
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 15px; font-weight: 800; }
.ci-specs { font-size: 12px; color: var(--text-soft); margin-top: 3px; line-height: 1.5; word-break: break-all; }
.ci-price { color: var(--accent); font-weight: 800; font-size: 14px; margin-top: 4px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-del {
  min-height: 32px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-stepper { display: flex; align-items: center; gap: 10px; }
.ci-stepper button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 800;
}
.ci-stepper .q { font-weight: 800; min-width: 18px; text-align: center; }

.cart-foot {
  position: sticky;
  bottom: calc(86px + env(safe-area-inset-bottom));
  margin-top: 16px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  z-index: 5;
}
.cart-sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.cart-sum .t { color: var(--accent); font-size: 18px; }
.cart-foot .btn { width: 100%; height: 52px; }

/* ============ 下单确认 ============ */
.co-title { font-size: 20px; font-weight: 800; text-align: center; }
.co-sub { text-align: center; color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.co-field { margin-top: 16px; }
.co-field label { font-size: 14px; font-weight: 800; display: block; margin-bottom: 6px; }
.co-field input { width: 100%; height: 48px; padding: 0 14px; }
.co-field textarea { width: 100%; padding: 12px 14px; height: 76px; resize: none; }
.co-summary {
  margin-top: 16px;
  background: var(--card-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 15px;
}
.co-summary .t { color: var(--accent); }
.co-error {
  display: none;
  margin-top: 12px;
  background: #FFF0F3;
  border: 2px dashed var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.co-error.show { display: block; animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); } 75% { transform: translateX(5px); }
}
.modal-box .btn { width: 100%; margin-top: 16px; height: 52px; }

/* ============ 成功页 ============ */
.success-page {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.success-page.show { opacity: 1; pointer-events: auto; }
.success-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px 26px 26px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
  animation: popIn .5s var(--bounce);
}
@keyframes popIn {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-emo { font-size: 52px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.success-title { font-size: 24px; font-weight: 800; margin-top: 8px; }
.success-sub { color: var(--text-soft); font-size: 14px; margin-top: 6px; font-weight: 600; }
.success-info {
  margin-top: 18px;
  background: var(--card-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  gap: 8px;
}
.success-info .row { display: flex; justify-content: space-between; gap: 10px; }
.success-info .v { color: var(--primary-deep); word-break: break-all; text-align: right; }
.success-card .btn { width: 100%; margin-top: 18px; height: 52px; }

.confetti-piece {
  position: absolute;
  top: -30px;
  z-index: 1;
  animation: confettiFall linear forwards;
  pointer-events: none;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(560deg); opacity: .9; }
}

/* ============ 随机抽卡 ============ */
.lucky-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.lucky-card {
  margin-top: 16px;
  background: var(--card-soft);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lucky-card img { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; }
.lucky-card.rolling img { animation: flip .12s linear infinite; }
@keyframes flip {
  0% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.06) rotate(3deg); }
  100% { transform: scale(1) rotate(-3deg); }
}
.lucky-name { font-size: 18px; font-weight: 800; }
.lucky-tag { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.lucky-btns { display: flex; gap: 12px; margin-top: 16px; }
.lucky-btns .btn { margin-top: 0; }

/* ============ Toast ============ */
#toast-root {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 40px);
}
.toast {
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  animation: toastIn .3s var(--bounce);
  max-width: 100%;
}
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateY(10px); opacity: 0; }
}

/* ============ 桌面端适配 ============ */
@media (min-width: 768px) {
  #app { padding-top: 34px; }
  .greeting { font-size: 34px; }
  .menu-title, .cart-title { font-size: 34px; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .home-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
  .h-card { flex-basis: 148px; }
  .chips { flex-wrap: wrap; overflow: visible; }

  /* 菜品详情在桌面端使用居中 Modal */
  .sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 480px;
    max-height: 86vh;
    border-radius: 26px;
    transform: translate(-50%, -46%) scale(.92);
    opacity: 0;
    transition: transform .28s var(--bounce), opacity .2s;
    padding: 20px;
  }
  .sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet-grip { display: none; }
}
@media (min-width: 1100px) {
  .dish-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .dish-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ 菜单管理 ============ */
.admin-sub { font-size: 13px; color: var(--text-soft); font-weight: 600; margin-top: 4px; }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.admin-actions .btn {
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  margin-top: 0;
}
.ad-danger { color: var(--danger); }
.admin-stats {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  padding: 0 4px;
}
.ad-row {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.ad-row.off { opacity: .55; }
.ad-row img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--card-soft);
  flex: 0 0 auto;
}
.ad-main { flex: 1; min-width: 0; }
.ad-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ad-cat {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  padding: 2px 8px;
}
.ad-off-badge {
  font-size: 11px;
  font-weight: 700;
  background: #F0E4E8;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.ad-meta { font-size: 12px; color: var(--text-soft); margin-top: 4px; font-weight: 600; }
.ad-btns { display: flex; flex-direction: column; gap: 6px; }
.ad-btn {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}
.ad-btn.ad-del { color: var(--danger); }
.ad-btn.ad-del[data-arm="1"] { background: var(--danger); color: #fff; }
.ad-danger[data-arm="1"] { background: var(--danger) !important; color: #fff !important; }

/* 编辑器表单 */
.co-field select {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  padding: 0 12px;
  outline: none;
}
.co-field select:focus { border-color: var(--primary); }
.co-field input[type="file"] {
  border: none;
  background: none;
  padding: 0;
  font-size: 14px;
}
.de-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.de-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
}
.de-check input { width: 16px; height: 16px; accent-color: var(--primary); border: none; background: none; }
.de-check:has(input:checked) { background: var(--primary-soft); color: var(--primary-deep); }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}
