/* hepop 试玩反馈站 —— 极简暖灰 + 珊瑚粉→浅紫渐变 */
:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-soft: #fbfaf9;
  --line: #eae5df;
  --line-strong: #ded7cf;
  --text: #3b3634;
  --text-soft: #6b635e;
  --muted: #9a938d;
  --accent-a: #faa1bc;
  --accent-b: #a9a4ee;
  --apricot: #fdccbb;
  --sky: #96c1f4;
  --grad: linear-gradient(118deg, #faa1bc 0%, #c3a6e6 58%, #a9a4ee 100%);
  --grad-soft: linear-gradient(118deg, rgba(250, 161, 188, 0.14), rgba(169, 164, 238, 0.14));
  --shadow: 0 1px 2px rgba(59, 54, 52, 0.04), 0 8px 24px -12px rgba(59, 54, 52, 0.12);
  --radius: 12px;

  /* 毛玻璃 */
  --glass-blur: 18px;
  --glass-sat: 165%;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-ring: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 1px 2px rgba(59, 54, 52, 0.04), 0 14px 36px -18px rgba(59, 54, 52, 0.22);
}

* { box-sizing: border-box; }

/* 保证 hidden 属性一定生效（否则会被 .pill-count / .preview 等 display 规则覆盖） */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 50% at 82% -6%, rgba(169, 164, 238, 0.13), transparent 70%),
    radial-gradient(55% 40% at 8% 4%, rgba(250, 161, 188, 0.13), transparent 72%);
  z-index: 0;
}

/* 毛玻璃需要有东西可糊：铺一层很淡的光斑，让玻璃有透出来的层次 */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(250, 161, 188, 0.26), transparent 70%),
    radial-gradient(34% 30% at 82% 18%, rgba(169, 164, 238, 0.24), transparent 72%),
    radial-gradient(40% 34% at 72% 76%, rgba(150, 193, 244, 0.22), transparent 74%),
    radial-gradient(30% 26% at 26% 82%, rgba(253, 204, 187, 0.24), transparent 72%);
  filter: blur(24px);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px -18px rgba(59, 54, 52, 0.3);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 4px 12px -4px rgba(169, 164, 238, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; letter-spacing: 0.02em; }
.brand-text i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s;
  position: relative;
  padding: 2px 0;
}
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(169, 164, 238, 0.9);
}
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(169, 164, 238, 1); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); background: rgba(255, 255, 255, 0.6); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(59, 54, 52, 0.05); color: var(--text); }
.icon-btn.small { font-size: 15px; width: 24px; height: 24px; }

/* ---------------------------------------------------------------- Hero */

main { position: relative; z-index: 1; }

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 48px) 40px;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 15.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: flex;
  gap: 56px;
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stats dd { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- 列表区 */

.board {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px) 96px;
}
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.board-head h2 { font-size: 17px; letter-spacing: 0.01em; }

.toolbar { display: flex; align-items: center; gap: 10px; }
.toolbar input[type="search"] {
  width: 220px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.toolbar input:focus { border-color: var(--accent-b); box-shadow: 0 0 0 3px rgba(169, 164, 238, 0.16); }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(59, 54, 52, 0.1); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 0 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 12.5px;
  color: var(--text-soft);
  transition: all 0.18s;
}
.chip:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.62); }
.chip.on {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px -6px rgba(169, 164, 238, 0.9);
}

/* ---------------------------------------------------------------- 卡片 */

.list { display: flex; flex-direction: column; margin-top: 14px; }

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 var(--glass-ring) inset, var(--glass-shadow);
  transition: transform 0.18s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
}
.card:hover {
  transform: translateY(-1px);
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 var(--glass-ring) inset, 0 18px 44px -20px rgba(59, 54, 52, 0.28);
}
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.tag.cat-gameplay { background: rgba(250, 161, 188, 0.14); color: #c2557c; }
.tag.cat-art { background: rgba(169, 164, 238, 0.16); color: #6d66c4; }
.tag.cat-balance { background: rgba(150, 193, 244, 0.18); color: #4a7cb8; }
.tag.cat-story { background: rgba(253, 204, 187, 0.26); color: #b5764f; }
.tag.cat-bug { background: rgba(232, 138, 138, 0.16); color: #bf5b5b; }
.tag.cat-other { background: rgba(59, 54, 52, 0.06); color: var(--text-soft); }

.card h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.card-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.card-foot .spacer { flex: 1; }

.status-pill {
  font-size: 11.5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  white-space: nowrap;
}
.status-pill.st-open { }
.status-pill.st-discussing { border-color: rgba(150, 193, 244, 0.6); color: #4a7cb8; }
.status-pill.st-planned { border-color: rgba(169, 164, 238, 0.6); color: #6d66c4; }
.status-pill.st-done { border-color: rgba(140, 190, 160, 0.7); color: #4c8a67; }
.status-pill.st-closed { color: var(--muted); }

.like-mini { display: inline-flex; align-items: center; gap: 4px; }

.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.skeleton {
  height: 108px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: linear-gradient(100deg, #f2efec 20%, #f8f6f4 38%, #f2efec 56%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.pager button {
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  color: var(--text-soft);
}
.pager button.on { background: var(--surface); border-color: var(--muted); color: var(--text); }
.pager button[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------------------------------------------------------------- 弹层 */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(45, 41, 39, 0.22);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  animation: fade 0.2s ease;
}
.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--glass-ring) inset, 0 30px 80px -28px rgba(45, 41, 39, 0.45);
  animation: rise 0.24s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.modal-card.wide { width: min(720px, 100%); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.99); } }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 14px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  border-bottom: 1px solid transparent;
}
.modal-head h3 { font-size: 17px; }
.detail-title-wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.detail-title-wrap h3 { font-size: 19px; line-height: 1.4; }

/* ---------------------------------------------------------------- 表单 */

.form { display: flex; flex-direction: column; gap: 18px; padding: 6px 24px 24px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label > span { font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.04em; }
.form label > span em { font-style: normal; color: var(--muted); }
.form input[type="text"], .form input[type="password"], .form input:not([type]), .form textarea, .reply-form input, .reply-form textarea, .admin-login input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  resize: vertical;
}
.form input:focus, .form textarea:focus, .reply-form input:focus, .reply-form textarea:focus, .admin-login input:focus {
  border-color: var(--accent-b);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(169, 164, 238, 0.14);
}
.form input[type="file"] {
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: var(--surface-soft);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips.pick .chip { padding: 5px 14px; font-size: 13px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.error { margin: 0; min-height: 18px; font-size: 12.5px; color: #c2557c; }
.preview { position: relative; display: inline-block; }
.preview img { max-width: 160px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.preview .icon-btn { position: absolute; top: -8px; right: -8px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; }

/* 截图上传区：点击 / 拖拽 / 粘贴 */
.dropzone {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 10px 12px;
  transition: border-color 0.18s, background 0.18s;
}
.dropzone.dragging {
  border-color: var(--accent-b);
  background: rgba(169, 164, 238, 0.09);
}
.dropzone input[type="file"] { width: 100%; font-size: 13px; color: var(--text-soft); }
.dropzone-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.dropzone.has-images .dropzone-hint { display: none; }

.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-grid:not(:empty) { margin-top: 10px; }
.thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 18px;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 41, 39, 0.6);
  color: #fff;
  font-size: 14px;
}
.thumb-del:hover { background: rgba(45, 41, 39, 0.85); }

/* ---------------------------------------------------------------- 详情 */

.detail-body { padding: 4px 24px 26px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.detail-content { margin: 0 0 16px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; color: var(--text); }
.detail-image { display: flex; flex-direction: column; gap: 10px; }
.detail-image:empty { display: none; }
.detail-image img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.detail-actions { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-soft);
  transition: all 0.18s;
}
.like-btn:hover { border-color: var(--accent-a); color: #c2557c; }
.like-btn.liked { background: rgba(250, 161, 188, 0.14); border-color: transparent; color: #c2557c; }
.like-btn b { font-variant-numeric: tabular-nums; }

.section-title { font-size: 13px; color: var(--text-soft); letter-spacing: 0.06em; margin: 22px 0 12px; font-weight: 500; }
.section-title span { color: var(--muted); }

.replies { display: flex; flex-direction: column; gap: 4px; }
.reply {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.reply:last-child { border-bottom: 0; }
.reply-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.reply-head .badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--grad-soft);
  color: #6d66c4;
}
.reply p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.replies-empty { padding: 18px 0; color: var(--muted); font-size: 13px; }

.reply-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.reply-form input { padding: 8px 12px; font-size: 13px; }
.reply-form textarea { min-height: 76px; font-size: 13.5px; }
.reply-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------------- 管理端 */

.admin-wrap { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 7vw, 76px) clamp(20px, 5vw, 48px) 96px; }

.admin-login { max-width: 400px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-login h2 { font-size: 17px; margin-bottom: 6px; }
.admin-login .row { display: flex; gap: 10px; margin-top: 18px; }
.admin-login .row input { flex: 1; }

.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-actions { display: flex; gap: 8px; }

.admin-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.admin-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.admin-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.admin-item-head h4 { font-size: 15.5px; flex: 1; min-width: 200px; font-weight: 600; }
.admin-item p { margin: 0 0 10px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; color: var(--text-soft); }
.admin-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.admin-tools select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-size: 12.5px;
}
.link-btn { border: 0; background: transparent; font-size: 12.5px; color: var(--muted); padding: 4px 2px; }
.link-btn:hover { color: #c2557c; }

/* ---------------------------------------------------------------- Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(59, 54, 52, 0.9);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
  animation: rise 0.22s ease;
}

/* ---------------------------------------------------------------- 自定义分类 */

.chip-add {
  border-style: dashed;
  color: var(--muted);
}
.chip-add:hover { border-color: var(--accent-b); color: #6d66c4; }

.chip-pending {
  border-style: dashed;
  border-color: rgba(214, 158, 92, 0.7);
  color: #b5764f;
}
.chip-pending.on {
  background: linear-gradient(118deg, #f7b48f, #d9a06a);
  border-color: transparent;
  color: #fff;
}

.chip-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.chip-add-row[hidden] { display: none; }
.chip-add-row input {
  flex: 1 1 180px;
  min-width: 140px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-size: 13px;
  outline: none;
}
.chip-add-row input:focus {
  border-color: var(--accent-b);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(169, 164, 238, 0.14);
}

.tag.cat-custom {
  background: rgba(59, 54, 52, 0.06);
  color: var(--text-soft);
}
.tag.tag-pending-cat {
  background: rgba(214, 158, 92, 0.14);
  color: #b5764f;
  border-color: rgba(214, 158, 92, 0.3);
}

/* ---------------------------------------------------------------- 分类审核面板 */

.admin-cats {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.admin-cats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.admin-cats-head h3 { font-size: 14px; letter-spacing: 0.02em; }
.pill-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(214, 158, 92, 0.16);
  color: #b5764f;
  font-size: 11.5px;
  vertical-align: middle;
}

.cat-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.cat-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cat-item-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cat-item-actions { display: flex; align-items: center; gap: 8px; }
.muted-sm { font-size: 12px; color: var(--muted); }

.status-pill.st-cat-pending { border-color: rgba(214, 158, 92, 0.6); color: #b5764f; }
.status-pill.st-cat-approved { border-color: rgba(140, 190, 160, 0.7); color: #4c8a67; }
.status-pill.st-cat-rejected { border-color: rgba(232, 138, 138, 0.5); color: #bf5b5b; }

/* ---------------------------------------------------------------- 作品展示页 */

.show-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(64px, 11vw, 116px) clamp(20px, 5vw, 48px) 20px;
}
.show-hero h1 { font-size: clamp(32px, 5.4vw, 56px); }
.show-hero .lede { max-width: 640px; margin-top: 22px; font-size: 16px; }

/* 大卡：浅底页面上用更深的玫瑰→藕紫渐变，保证渐变标题的可读性 */
#view-work-kcal .show-hero .grad {
  background: linear-gradient(118deg, #c04a7c 0%, #8e3562 56%, #6d4a9c 100%);
  -webkit-background-clip: text; background-clip: text;
}

.show-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 48px) 8px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 17px; }
.section-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.feature {
  padding: 18px 20px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--glass-ring) inset, 0 10px 28px -22px rgba(59, 54, 52, 0.24);
}
.feature-num { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.feature h3 { font-size: 15.5px; margin: 8px 0 6px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.65; }

.timeline { list-style: none; margin: 20px 0 0; padding: 0 0 0 6px; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  bottom: -4px;
  width: 1px;
  background: var(--line-strong);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.timeline .done .tl-dot { background: #8cbe9f; }
.timeline .doing .tl-dot { background: var(--accent-a); box-shadow: 0 0 0 3px rgba(250, 161, 188, 0.22); }
.timeline .todo .tl-dot { background: var(--line-strong); }
.timeline b { font-size: 13.5px; }
.timeline p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-soft); }

.show-cta {
  max-width: 1080px;
  margin: 36px auto 72px;
  padding: 32px clamp(20px, 5vw, 40px);
  background: var(--grad-soft);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
}
.show-cta h2 { font-size: 19px; }
.show-cta p { max-width: 560px; margin: 10px auto 0; color: var(--text-soft); font-size: 14.5px; }
.show-cta .hero-actions { justify-content: center; margin-top: 22px; }

/* ---------------------------------------------------------------- 意见页头部 */

.page-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 48px) 8px;
}
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); }
.page-head .lede { max-width: 600px; margin: 14px 0 0; font-size: 14.5px; }
.page-head .hero-actions { margin-top: 22px; }
.page-head .stats { margin-top: 34px; }

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 28px 20px 46px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.footer-note { margin: 0; max-width: 640px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer-icp { margin: 0; font-size: 12.5px; }
.footer-icp a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.footer-icp a:hover { color: var(--text-soft); }

/* ---------------------------------------------------------------- 毛玻璃：次级面板 */

.admin-login,
.admin-item,
.cat-item,
.thumb,
.dropzone {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-ring) inset, 0 10px 28px -20px rgba(59, 54, 52, 0.22);
}

.admin-cats {
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-color: var(--glass-border);
}

.pager button,
.like-btn {
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--glass-border);
}
.pager button.on {
  background: var(--glass-bg-strong);
  border-color: var(--muted);
}
.like-btn:hover { background: rgba(255, 255, 255, 0.7); }

/* 不支持 backdrop-filter 的浏览器：退回浅色不透明底，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .card,
  .modal-card,
  .seg,
  .chip,
  .admin-login,
  .admin-item,
  .cat-item,
  .thumb,
  .dropzone,
  .admin-cats,
  .pager button,
  .like-btn {
    background: rgba(255, 255, 255, 0.94);
  }
  .modal-mask { background: rgba(45, 41, 39, 0.34); }
  body::after { display: none; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav { gap: 14px; }
  .nav a[data-nav="admin"] { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .show-hero { padding-top: 48px; }
  .page-head { padding-top: 36px; }
  .stats { gap: 30px; }
  .toolbar { width: 100%; }
  .toolbar input[type="search"] { flex: 1; width: auto; }
  .grid2 { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: 16px 16px 0 0; max-height: 92vh; }
  /* 移动端放宽模糊半径，降低 GPU 压力 */
  .topbar,
  .card,
  .modal-card {
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}

/* ---------------------------------------------------------------- 试玩 Demo */

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-card {
  position: relative;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-ring) inset, var(--glass-shadow);
}

.demo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.demo-card-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.01em;
}

.demo-badge {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: #c2557c;
  background: rgba(250, 161, 188, 0.18);
  border: 1px solid rgba(250, 161, 188, 0.34);
}

.demo-meta {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.demo-summary {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.demo-list {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.demo-list li { margin: 2px 0; }

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.demo-dl {
  min-width: 190px;
  text-align: center;
  text-decoration: none;
}

.demo-dl.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.demo-sha {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  word-break: break-all;
}

.demo-sha code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.demo-notes {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.demo-notes summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.demo-notes pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-soft);
}

.demo-history h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}

.demo-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-history li {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-soft);
}

.demo-history li b { color: var(--text); font-weight: 600; }
.demo-history li p { margin: 4px 0 0; }

@media (max-width: 680px) {
  .demo-card { padding: 20px 18px 18px; }
  .demo-card-head { flex-direction: column; gap: 8px; }
  .demo-actions { flex-direction: column; }
  .demo-dl { width: 100%; }
}

/* ---------------------------------------------------------------- 动效：首屏浮现 / 滚动入场 */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* 首屏：标题、说明、按钮逐行浮现（纯 CSS，无需等接口） */
.show-hero > * {
  opacity: 0;
  animation: heroRise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.show-hero > *:nth-child(1) { animation-delay: 0.04s; }
.show-hero > *:nth-child(2) { animation-delay: 0.14s; }
.show-hero > *:nth-child(3) { animation-delay: 0.24s; }
.show-hero > *:nth-child(4) { animation-delay: 0.34s; }

/* 滚动入场：app.js 先加 .reveal，进入视口再加 .is-in */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .show-hero > * { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 顶层视图切换（View Transitions API，不支持的浏览器自动直切） */
::view-transition-old(root) {
  animation: vtFadeOut 0.18s ease both;
}
::view-transition-new(root) {
  animation: vtFadeIn 0.28s ease both;
}
@keyframes vtFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes vtFadeIn  { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ============ 网页版在线试玩（Demo 页嵌入） ============ */
.play-embed{
  border-radius:18px;
  background:var(--glass-bg, rgba(255,255,255,.6));
  border:1px solid rgba(255,255,255,.5);
  padding:14px;
  margin-bottom:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.play-embed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.play-embed-head strong{font-size:16px}
.play-frame-wrap{position:relative;width:100%;aspect-ratio:768/432;background:#0b0e13;border-radius:12px;overflow:hidden}
.play-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.play-hint{margin:8px 2px 0;font-size:12px;color:var(--muted,#6b7280);line-height:1.5}
@media (max-width:680px){.play-embed{padding:10px}.play-frame-wrap{aspect-ratio:16/10}}

/* ---------------------------------------------------------------- 作品集：首页卡片与详情页 */
.home-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 104px) clamp(20px, 5vw, 48px) 12px;
}
.home-hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.22; letter-spacing: -0.02em; }
.home-hero .lede { max-width: 620px; margin-top: 22px; font-size: 16px; }

.work-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 48px) 76px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px -20px rgba(59, 54, 52, 0.35);
  border-color: var(--line-strong);
}
.work-cover { position: relative; aspect-ratio: 16 / 10; background: #15111c; overflow: hidden; }
.work-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-card:hover .work-cover img { transform: scale(1.04); }
.work-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: rgba(40, 36, 34, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px;
}
.work-body { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; }
.work-kicker {
  margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.work-body h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -0.01em; }
.work-desc { margin: 12px 0 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.work-tags li {
  font-size: 12px; color: var(--text-soft);
  padding: 4px 11px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--line);
}
.work-more {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.work-more .arrow { color: var(--accent-b); transition: transform 0.3s; }
.work-card:hover .work-more .arrow { transform: translateX(4px); }

/* 详情页返回条 */
.work-detail-bar {
  max-width: 1080px; margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 48px) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.back-link { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.back-link:hover { color: var(--text); }
.work-detail-tag { font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* 游戏截图网格 */
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.shot-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b0e13; }
.shot-grid img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-grid figcaption, .phone-gallery figcaption {
  font-size: 12px; color: var(--muted); padding: 8px 10px; background: var(--surface);
}

/* 手机竖屏截图墙 */
.phone-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.phone-gallery figure {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.phone-gallery img { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; }
.phone-gallery figcaption { text-align: center; }

/* 准确度说明表 */
.accuracy-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.acc-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: var(--glass-bg);
  border: 1px solid var(--line); border-radius: 12px;
}
.acc-row b {
  flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--grad); color: #fff; font-size: 15px;
}
.acc-row span { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.acc-note { margin: 16px 0 44px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 首页首屏逐行浮现 */
.home-hero > * { opacity: 0; animation: heroRise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.home-hero > *:nth-child(1) { animation-delay: 0.04s; }
.home-hero > *:nth-child(2) { animation-delay: 0.14s; }
.home-hero > *:nth-child(3) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .home-hero > * { opacity: 1; animation: none; } }

@media (max-width: 860px) {
  .work-card { grid-template-columns: 1fr; }
  .work-cover { aspect-ratio: 16 / 9; }
  .shot-grid { grid-template-columns: 1fr; }
  .phone-gallery { grid-template-columns: repeat(2, 1fr); }
  .accuracy-table { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .phone-gallery { gap: 10px; }
  .work-body { padding: 18px; }
}
/* 竖屏截图墙：手机上一列居中，截图才看得清 */
@media (max-width: 560px) {
  .phone-gallery:not(.cols-3) {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ---------------------------------------------------------------- 盒友圈：小程序 + 后台截图 */
.phone-gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.phone-gallery.cols-3 img { aspect-ratio: 760 / 1644; object-fit: cover; }
.phone-gallery.cols-3 figcaption { font-size: 12.5px; line-height: 1.5; padding: 9px 10px 11px; color: var(--muted); }

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
  margin: 22px 0 44px;
}
.admin-gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.admin-gallery figcaption {
  padding: 10px 12px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .admin-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .phone-gallery.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .phone-gallery.cols-3 figure:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}
