/* ============================================================
   前3秒 · 钩子文案设计平台
   视觉：宣纸白底 / 靛青主色 / 鎏金点缀 / 朱砂方印
   展板式作品展 + 上传页，共用一套顶栏、按钮与排版
   ============================================================ */

:root {
  --bg: #f4f2ec;
  --paper: #faf8f1;
  --surface: #ffffff;
  --surface-2: #f6efdd;
  --line: #dfd4b8;
  --line-soft: #e9e1cd;
  --line-strong: #c8b795;
  --ink: #173c40;
  --text: #1d3b3e;
  --muted: #6b5f45;
  --muted-2: #8a7c60;
  --teal: #1b6a6d;
  --teal-deep: #125356;
  --teal-soft: #e3f0ed;
  --gold: #b08a45;
  --gold-deep: #8c692d;
  --gold-light: #d9bc7e;
  --accent: #c2543a;
  --accent-soft: #fbece7;
  --green: #2f8b62;
  --red: #c2543a;
  --radius: 16px;
  --radius-sm: 10px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

button { -webkit-tap-highlight-color: transparent; }

img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- 通用控件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-deep);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn.small { height: 32px; padding: 0 14px; font-size: 12px; }
.btn:hover { border-color: var(--teal); background: var(--teal-soft); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #ffffff; box-shadow: 0 6px 16px rgba(27, 106, 109, .18); }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.ghost { background: #ffffff; }

.chip {
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-deep);
  font-size: 12.5px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #ffffff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(23, 60, 64, .92);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: .5px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 12px 30px rgba(23, 60, 64, .26);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(194, 84, 58, .94); }

/* ---------- 展板页 ---------- */

body.board-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 6% -12%, rgba(176, 138, 69, .13), transparent 66%),
    radial-gradient(880px 460px at 96% 0%, rgba(27, 106, 109, .07), transparent 68%),
    linear-gradient(180deg, #faf8f1 0%, #f5f0e4 52%, #efe9da 100%);
  background-attachment: fixed;
}

/* 底部鎏金水波暗纹 */
body.board-page::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60' viewBox='0 0 300 60'%3E%3Cpath d='M0 30 Q37.5 6 75 30 T150 30 T225 30 T300 30' fill='none' stroke='%231b6a6d' stroke-opacity='0.12' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x left 0 bottom 46px / 300px 48px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60' viewBox='0 0 300 60'%3E%3Cpath d='M0 30 Q37.5 54 75 30 T150 30 T225 30 T300 30' fill='none' stroke='%23b08a45' stroke-opacity='0.10' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x left 14px bottom 6px / 300px 48px;
}

.board {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.4vh, 26px) clamp(16px, 2.4vw, 36px) clamp(10px, 1.6vh, 18px);
}

/* ---- 页头 ---- */

.board-head {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(4px, 1.2vh, 14px) 0 clamp(8px, 1.6vh, 18px);
  flex-wrap: wrap;
}

.board-title-row { display: flex; align-items: center; gap: 16px; }

.board-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 6px;
  text-indent: 6px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}

/* 朱砂方印 */
.board-seal {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 3px;
  border-radius: 9px;
  background: linear-gradient(135deg, #c2543a, #a3412a);
  box-shadow: inset 0 0 0 2px rgba(253, 243, 227, .55), 0 4px 12px rgba(194, 84, 58, .32);
  transform: rotate(3deg);
}
.board-seal b {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(253, 243, 227, .5);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #fdf3e3;
  text-align: center;
}

/* 鎏金装饰线 */
.board-title-ornament { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.board-title-ornament::before {
  content: "";
  width: 216px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 138, 69, .08));
}
.board-title-ornament i {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 1px 3px rgba(140, 105, 45, .35);
  transform: rotate(45deg);
}
.board-title-ornament i:nth-child(2) { width: 9px; height: 9px; }

.board-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.board-tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }

.board-nav { display: flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: .5px; }
.board-nav a { color: var(--muted); transition: color .16s ease; }
.board-nav a:hover { color: var(--teal); }
.board-nav a.active { color: var(--teal-deep); font-weight: 600; }
.board-nav i { font-style: normal; color: var(--line-strong); }

/* 分段胶囊筛选 */
.board-filters {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #d9cdb0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf7, #f6efdd);
  box-shadow: 0 3px 12px rgba(23, 60, 64, .08);
}
.board-filters .chip {
  padding: 7px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.board-filters .chip:hover { background: rgba(176, 138, 69, .15); color: var(--gold-deep); }
.board-filters .chip.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #f4e9c8;
  box-shadow: 0 3px 9px rgba(18, 83, 86, .28);
}

/* ---- 五组网格 ---- */

.board-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 22px);
  padding-left: 26px;      /* 给竖排「优化前 / 优化后」让位 */
}

.board-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.board-col-head { flex: none; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 0 0 clamp(6px, 1vh, 10px); }

.board-col-name {
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-col-state { flex: none; font-size: 11px; letter-spacing: .5px; color: var(--muted-2); }

.board-shots {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: clamp(8px, 1.4vh, 16px);
  grid-template-rows: 1fr;
}
.board-grid.is-compare .board-shots { grid-template-rows: 1fr 1fr; }
/* 单轮：作品按 4:5 自然高度，整列在版面里垂直居中 */
.board-grid:not(.is-compare) .board-shots { flex: 0 1 auto; grid-template-rows: auto; }
.board-grid:not(.is-compare) .board-col { justify-content: center; }

.board-round {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* 对比模式：两行等高，图片按行高收缩，不越出展板 */
.board-grid.is-compare .board-round { height: 100%; }

/* 图片卡：4:5，五列等大 */
.board-shot {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 5;
  max-height: 100%;
  align-self: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 22px rgba(23, 60, 64, .15);
  transition: box-shadow .25s ease, transform .25s ease;
}
.board-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.board-shot.is-zoomable { cursor: zoom-in; }
.board-shot.is-zoomable:hover img { transform: scale(1.02); filter: brightness(1.03); }
.board-shot.is-zoomable::after {
  content: "全屏";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(20, 40, 42, .62);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.board-shot.is-zoomable:hover::after { opacity: 1; transform: translateY(0); }
.board-col:hover .board-shot { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23, 60, 64, .24); }

.board-shot.is-empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(147, 181, 172, .65);
  background: rgba(255, 255, 255, .34);
  box-shadow: none;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.board-col:hover .board-shot.is-empty { transform: none; box-shadow: none; }

/* 竖排轮次标签：只在最左一列写一遍，占列间空白 */
.board-round-tag {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--gold-deep);
  text-align: center;
  pointer-events: none;
}

/* 钩子文案只在点开图片后的全屏右侧展示，展板卡片上不再压文字 */

/* 空展板提示 */
.board-tip {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 10px 26px rgba(23, 60, 64, .14);
  font-size: 13px;
  color: var(--muted);
}
.board-tip-actions { display: flex; gap: 8px; }

/* 投影模式：只留标题与展板 */
body.is-clean .board-nav { display: none; }
body.is-clean .board-sub { display: none; }

/* 投影模式下才出现「退出投影」，平时不占位 */
.board-exit {
  display: none;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
}
.board-exit:hover { color: var(--teal-deep); border-color: var(--teal); }
body.is-clean .board-exit { display: inline-flex; align-items: center; }

/* ---------- 全屏查看：左侧作品，右侧钩子文案 ---------- */

.shotbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b181a;
  color: #f6efe0;
  overflow: hidden;
}
.shotbox::backdrop { background: #0b181a; }
.shotbox[open] { display: block; }

.shotbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 48px);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(30px, 5vh, 62px) clamp(40px, 5vw, 80px) clamp(26px, 4vh, 52px);
}

/* 左：作品舞台 */
.shotbox-stage {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  max-width: 700px;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4px, 1vh, 14px) clamp(10px, 1vw, 16px);
}
.shotbox-stage img {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
  animation: shotbox-zoom .28s cubic-bezier(.22, .8, .3, 1);
}

/* 右：只放组名和文案，不做装饰 */
.shotbox-side {
  flex: 0 0 clamp(280px, 25vw, 400px);
  flex-shrink: 0;
  min-width: 0;
  align-self: center;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.shotbox-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(244, 238, 225, .55);
}
.shotbox-copy {
  margin: 0;
  max-height: 58vh;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.85;
  color: #f4eee1;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.shotbox-copy.is-none { color: rgba(244, 238, 225, .38); }
.shotbox-count {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(244, 238, 225, .32);
}

/* 关闭与翻页 */
.shotbox-close {
  position: fixed;
  top: clamp(14px, 2.2vh, 26px);
  right: clamp(14px, 2vw, 30px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 239, 224, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #f6efe0;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, transform .2s ease;
}
.shotbox-close:hover { background: rgba(255, 255, 255, .18); transform: scale(1.05); }

.shotbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 239, 224, .2);
  border-radius: 50%;
  background: none;
  color: rgba(246, 239, 224, .82);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, color .2s ease;
}
.shotbox-arrow:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
.shotbox-arrow[hidden] { display: none; }
.shotbox-arrow.prev { left: clamp(12px, 2vw, 30px); }
.shotbox-arrow.next { right: clamp(12px, 2vw, 30px); }

@keyframes shotbox-zoom {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- 上传页 ---------- */

body.upload-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 6% -10%, rgba(27, 106, 109, .09), transparent 68%),
    radial-gradient(820px 420px at 96% 4%, rgba(194, 84, 58, .055), transparent 70%),
    linear-gradient(180deg, #faf9f5 0%, #f4f2ec 58%, #eef1ec 100%);
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: clamp(16px, 2.4vh, 26px) clamp(18px, 3vw, 40px) 0;
  flex-wrap: wrap;
}
.upload-brand { display: flex; align-items: center; gap: 14px; }
.upload-brand .board-seal { width: 44px; height: 44px; padding: 2px; }
.upload-brand .board-seal b { font-size: 10px; line-height: 1.28; letter-spacing: 0; white-space: nowrap; }
.upload-brand b { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 2.5px; color: var(--ink); }

.upload {
  width: min(100%, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
  padding: clamp(28px, 5vh, 56px) clamp(18px, 3vw, 40px) clamp(56px, 8vh, 90px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: 4px;
  color: var(--teal);
  text-transform: uppercase;
}

.upload-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.3;
  color: var(--ink);
}
.upload-intro h1 span { color: var(--teal); }
.upload-lede {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.steps { list-style: none; margin: clamp(28px, 4vh, 44px) 0 0; padding: 0; max-width: 320px; border-top: 1px solid var(--line); }
.steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--muted);
}
.steps .num { font-family: var(--serif); font-size: 12px; color: var(--gold-deep); }

.upload-panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 40px rgba(23, 60, 64, .08);
}

.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field-label {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.field-label .opt { margin-left: 6px; letter-spacing: 0; color: var(--muted-2); font-size: 10.5px; }

.opt-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.group-opt, .round-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.group-opt:hover, .round-opt:hover { border-color: var(--teal); color: var(--teal-deep); }
.group-opt[aria-pressed="true"], .round-opt[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 83, 86, .22);
}
.group-opt__num { font-family: var(--serif); font-size: 19px; line-height: 1; }
.group-opt__unit { font-size: 9px; letter-spacing: 2px; opacity: .75; }
/* 分组按钮直接写组名，不再用编号 */
.group-opt__name {
  padding: 0 4px;
  font-family: var(--sans);
  font-size: clamp(11px, 1vw, 13.5px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.round-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round-opt { height: 58px; flex-direction: row; gap: 8px; font-size: 13.5px; letter-spacing: 1px; }
.round-opt b { font-family: var(--serif); font-size: 15px; font-weight: 500; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 180px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(246, 239, 221, .4);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--teal); background: var(--teal-soft); }
.dropzone__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}
.dropzone__title { font-size: 13.5px; letter-spacing: .5px; }
.dropzone__hint { font-size: 11px; letter-spacing: .5px; color: var(--muted-2); }

.preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #ffffff; }
.preview__media { display: flex; align-items: center; justify-content: center; max-height: 320px; background: #f7f2e6; }
.preview__media img { width: auto; height: auto; max-width: 100%; max-height: 320px; }
.preview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted);
}
.preview__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__remove {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy-field { position: relative; }
.copy-input {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.75;
  resize: vertical;
}
.copy-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 106, 109, .12); }
.copy-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--muted-2);
  pointer-events: none;
}

.submit {
  width: 100%;
  height: 50px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13.5px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
  box-shadow: 0 10px 24px rgba(18, 83, 86, .2);
}
.submit:not(:disabled):hover { background: var(--teal-deep); }
.submit:disabled { background: #ffffff; border-color: var(--line-strong); color: var(--muted-2); box-shadow: none; cursor: not-allowed; }

.form-status { min-height: 20px; margin: 10px 0 0; font-size: 12px; color: var(--accent); letter-spacing: .5px; }
.form-note { margin: 6px 0 0; font-size: 11px; line-height: 1.8; color: var(--muted-2); letter-spacing: .3px; }

.success { padding: 6px 0 14px; }
.success h2 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: 2px; color: var(--ink); }
.success__meta { margin: 0 0 24px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.link-danger {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .2s ease;
}
.link-danger:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .board-grid { gap: 10px; }
}

@media (max-width: 980px) {
  .upload { grid-template-columns: 1fr; }
  .steps { max-width: none; }
}

@media (max-width: 900px) {
  body.board-page { height: auto; overflow: auto; }
  .board { height: auto; min-height: 100vh; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; row-gap: 22px; }
  .board-head { align-items: flex-start; }
  .board-tools { width: 100%; justify-content: space-between; }
  .board-shots { grid-auto-rows: min-content; }
  .board-round-tag {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 2px;
    margin-bottom: 2px;
  }
  /* 全屏：屏幕不够宽时改为上下排，图片在上、文案在下 */
  .shotbox-body {
    flex-direction: column;
    gap: 14px;
    padding: 58px 18px 18px;
  }
  .shotbox-stage {
    flex: 0 1 auto;
    height: 48vh;
    padding: 0 clamp(22px, 6vw, 46px);
  }
  .shotbox-side {
    flex: 0 1 auto;
    align-self: stretch;
    width: 100%;
    max-height: 42vh;
    gap: 12px;
  }
  .shotbox-copy { font-size: 17px; line-height: 1.8; }
}

@media (max-width: 620px) {
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .board-filters .chip { padding: 6px 12px; letter-spacing: 1px; }
  .opt-row { gap: 6px; }
  .group-opt { height: 58px; }
  .shotbox-stage { height: 42vh; }
  .shotbox-arrow { width: 36px; height: 36px; font-size: 20px; }
  .shotbox-close { width: 38px; height: 38px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
