/* ==========================================================================
   墨林 / Morning —— 白、绿、黑
   参考 Apple Music 的干净和网易云的直接：大图、留白、一个绿色贯穿。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6f4;
  --line: #e4e8e6;
  --line-strong: #d2d8d4;
  --text: #0a0a0a;
  --muted: #6e7478;
  --accent: #16a34a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(22, 163, 74, .10);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .05);
  --shadow: 0 1px 3px rgba(16, 24, 20, .06), 0 12px 30px rgba(16, 24, 20, .07);
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会盖掉浏览器给 [hidden] 的 display:none，统一兜住 */
[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", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

body { padding-bottom: 64px; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); font-size: 13px; }

/* ==================== 顶部 ==================== */

header.hero {
  padding: 26px 0 42px;
  background:
    radial-gradient(760px 320px at 8% -10%, rgba(22, 163, 74, .11), transparent 68%),
    radial-gradient(600px 260px at 92% 0%, rgba(22, 163, 74, .06), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: .01em;
}

.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.nav a {
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav a.hot { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.nav a.hot:hover { background: #128c3f; }

.brand-en { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .05em; }

h1 {
  margin: 42px 0 14px;
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 700;
}

h1 em { font-style: normal; color: var(--accent); }

.lede { margin: 0; max-width: 600px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.stats { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 36px; }
.stat b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ==================== 筛选栏 ==================== */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 13px 0;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.toolbar .row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

/* 全局给 input/select 设了 width:100%，筛选栏里要收回来，否则会各占一行 */
.toolbar select { width: auto; flex: 0 0 auto; padding-right: 34px; }
.toolbar input[type="search"] { flex: 1 1 200px; }

input[type="search"], select, input[type="text"], input[type="number"],
input[type="email"], input[type="password"], input[type="url"], textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="search"] { flex: 1 1 220px; min-width: 0; }
textarea { resize: vertical; line-height: 1.7; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.toggle i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.toggle.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.toggle.on i { background: var(--accent); }

.count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ==================== 卡片 ==================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
  padding: 30px 0 10px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  font-weight: 700;
  color: rgba(255, 255, 255, .94);
  letter-spacing: -.04em;
}

.cover.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; }

.cover .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0a0a0a;
  backdrop-filter: blur(8px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover .badge.hot { background: var(--accent); color: #fff; }

.body { padding: 17px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.titleline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.name { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.city { font-size: 12.5px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.chip.recruit { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.intro {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }

.link-pill {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
}

.join-card a.btn:hover { border-color: var(--accent); color: var(--accent); }

.empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty p { margin: 0; }

/* ==================== 首页底部 ==================== */

section.join { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--line); }
section.join h2 { font-size: 20px; margin: 0; letter-spacing: -.01em; }

/* 首页板块（后台可配的那几块） */
.sec { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.sec h2 { font-size: 20px; margin: 0 0 18px; letter-spacing: -.01em; }
.sec h2 .muted { font-size: 13px; font-weight: 400; margin-left: 8px; }
.sec .md { font-size: 15px; max-width: 720px; }

/* 找乐手 */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.recruit-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.recruit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.recruit-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.recruit-head b { font-size: 17px; letter-spacing: -.01em; }
.recruit-head .muted { font-size: 12.5px; }

.needs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.needs-label { font-size: 12.5px; color: var(--muted); }

.recruit-card .intro { -webkit-line-clamp: 3; }
.recruit-card .go { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: auto; }

#footerText { display: block; white-space: pre-line; margin-bottom: 3px; }

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.join-card b { font-size: 16.5px; }
.join-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.join-card .btn { align-self: flex-start; margin-top: auto; text-decoration: none; }

footer { margin-top: 46px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
footer a { color: var(--accent); }

/* ==================== 按钮 ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #128c3f; color: #fff; }
.btn.ghost { border-color: transparent; background: var(--surface-2); color: var(--muted); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn.danger { color: #c0392b; border-color: #f0c9c4; }
.btn.danger:hover { background: #fdf3f2; border-color: #c0392b; color: #c0392b; }

/* ==================== 乐队个人页面 ==================== */

.sheet {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sheet .cover { aspect-ratio: 16 / 7; font-size: 86px; }
.sheet .content { padding: 26px; }

.sheet h3 { margin: 0; font-size: 28px; letter-spacing: -.025em; font-weight: 700; }
.sheet .meta { color: var(--muted); font-size: 13px; margin-top: 7px; }

.sheet h4 {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 30px 0 11px;
  font-weight: 600;
}

.sheet .bio { color: var(--text); opacity: .9; line-height: 1.85; font-size: 14.5px; }
.sheet .bio > :first-child { margin-top: 0; }
.sheet .bio > :last-child { margin-bottom: 0; }
.sheet .bio p { margin: 0 0 12px; }
.sheet .bio h4 { font-size: 16px; margin: 22px 0 8px; letter-spacing: 0; text-transform: none; color: var(--text); }
.sheet .bio h5 { font-size: 14.5px; margin: 18px 0 6px; letter-spacing: 0; text-transform: none; color: var(--text); }
.sheet .bio ul { margin: 0 0 12px; padding-left: 20px; }
.sheet .bio li { margin: 4px 0; list-style: disc; }
.sheet .bio blockquote {
  margin: 0 0 12px;
  padding: 4px 0 4px 15px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.sheet .bio blockquote p { margin: 4px 0; }
.sheet .bio code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.sheet .bio a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sheet .bio b { font-weight: 650; }

.sheet .block > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.sheet .block > ul > li > a, .sheet .block > ul > li > .row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color .15s;
}

.sheet .block > ul > li > a:hover { border-color: var(--accent); }
.sheet .block > ul > li > a span, .sheet .block > ul > li > .row-item span { color: var(--muted); font-size: 12.5px; }

.empty-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: 12px;
  margin-top: 4px;
}

.empty-inline b { font-size: 15px; }
.empty-inline span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.sheet .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

/* 演出条目 */
.show-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
}

.show-when { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.show-when b { font-size: 15px; letter-spacing: -.01em; }
.show-time { font-size: 13px; color: var(--muted); }
.show-price {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(22, 163, 74, .1));
  color: var(--accent);
  font-weight: 600;
}

.show-where { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.show-where .muted { font-size: 12.5px; }
.show-lineup, .show-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.show-link { font-size: 12.5px; color: var(--accent); align-self: flex-start; margin-top: 2px; }

/* 首页的近期演出横条 */
.upcoming { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.upcoming h2 { font-size: 20px; margin: 0 0 16px; letter-spacing: -.01em; }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.upcoming-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.upcoming-card .date { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.upcoming-card .where { font-size: 13.5px; }
.upcoming-card .who { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.sheet .gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}

/* ==================== 专栏 ==================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 700;
  color: rgba(255, 255, 255, .94);
  background: linear-gradient(140deg, hsl(146 58% 30%), hsl(180 62% 44%));
}

.post-cover.has-image { background-size: cover; background-position: center; }

.post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; line-height: 1.4; }

.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.post-meta .muted { font-size: 12px; }

/* 单篇文章 */
.post-wrap { max-width: 720px; margin: 0 auto; padding: 30px 22px 70px; }
.post-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover { aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
.article-inner { padding: 30px; }

.article h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; letter-spacing: -.025em; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

a.chip:hover { color: var(--accent); }

/* Markdown 正文（文章页和预览共用） */
.md { color: var(--text); line-height: 1.9; font-size: 16px; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 18px; }
.md h4 { font-size: 20px; margin: 30px 0 12px; letter-spacing: -.01em; font-weight: 650; }
.md h5 { font-size: 17px; margin: 24px 0 10px; font-weight: 650; }
.md ul { margin: 0 0 18px; padding-left: 22px; }
.md li { margin: 6px 0; }
.md blockquote {
  margin: 0 0 18px;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.md blockquote p { margin: 6px 0; }
.md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.md b { font-weight: 650; }

/* 管理端的文章列表 */
.admin-post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.admin-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.admin-post b { font-size: 15.5px; }
.admin-box b { font-size: 15.5px; }
.admin-post .small { font-size: 12.5px; margin: 8px 0 0; }

.admin-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 28px;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-card-row input { font-size: 13px; padding: 8px 10px; }

@media (max-width: 900px) {
  .admin-card-row { grid-template-columns: 1fr 1fr; }
}

.pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

.pill.pending { background: #fdf8ec; color: #8a6d1f; }
.pill.published { background: #f1faf4; color: #16713c; }
.pill.hidden { background: #f3f4f5; color: #6b7280; }

/* ==================== 弹层 ==================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 20, .5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 50;
}

.overlay.open { display: flex; }

.close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .94);
  color: #0a0a0a;
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ==================== 六套皮肤 ====================
   都收在白 / 绿 / 黑这一族里，用户怎么换都跑不出品牌的调子。 */

[data-theme="morning"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f6f4;
  --line: #e4e8e6; --text: #0a0a0a; --muted: #6e7478; --accent: #16a34a;
}

[data-theme="ink"] {
  --bg: #0b0d0c; --surface: #111413; --surface-2: #191e1c;
  --line: #272f2b; --text: #f0f4f2; --muted: #94a29b; --accent: #2fbf6b;
}

[data-theme="forest"] {
  --bg: #0a1a12; --surface: #0f2318; --surface-2: #143020;
  --line: #1f4530; --text: #e9f6ef; --muted: #8fb4a1; --accent: #4ade80;
}

[data-theme="mint"] {
  --bg: #f1fbf5; --surface: #ffffff; --surface-2: #e5f6ec;
  --line: #cfe9da; --text: #0a2a1a; --muted: #5d7d6d; --accent: #0f9d58;
}

[data-theme="paper"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f4;
  --line: #e6e6e6; --text: #0a0a0a; --muted: #707070; --accent: #0a0a0a;
}

[data-theme="graphite"] {
  --bg: #f3f4f5; --surface: #ffffff; --surface-2: #ebedef;
  --line: #dcdfe2; --text: #111214; --muted: #6b7280; --accent: #111214;
}

/* ==================== 编辑页 / 管理端 ==================== */

.designer-body { padding-bottom: 40px; }

.designer-head {
  padding: 26px 0 32px;
  background: radial-gradient(700px 280px at 10% -20%, rgba(22, 163, 74, .11), transparent 68%);
  border-bottom: 1px solid var(--line);
}

.designer-head .back { font-size: 13.5px; color: var(--muted); }
.designer-head .back:hover { color: var(--accent); }
.designer-head h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 26px 0 10px; }
.designer-head p { margin: 0; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.designer {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 30px;
  padding: 30px 22px 0;
  align-items: start;
}

.panel { display: flex; flex-direction: column; gap: 24px; }
.group { display: flex; flex-direction: column; gap: 9px; }

.glabel { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rowline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rowline input[type="text"] { flex: 1 1 160px; width: auto; }

.mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

input[type="color"] {
  width: 48px; height: 40px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

input[type="range"] { flex: 1 1 150px; accent-color: var(--accent); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.theme-card .swatch {
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-left: 9px;
  margin-bottom: 5px;
}

.theme-card .swatch i { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.theme-card b { font-size: 13.5px; font-weight: 600; }
.theme-card span { font-size: 11.5px; color: var(--muted); }

.block-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }

.block-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
}

.block-list .bname { flex: 1; }

.arrow {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
}

.arrow:disabled { opacity: .3; cursor: default; }
.arrow:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }

.link-editor { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 122px 1fr 28px; gap: 8px; }

/* 编辑页里的演出卡片 */
.show-editor { display: flex; flex-direction: column; gap: 10px; }

.show-edit {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 12px;
}

.mini-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-field > span { font-size: 11.5px; color: var(--muted); }
.mini-field input { font-size: 13.5px; padding: 8px 10px; }
.gallery-row { display: grid; grid-template-columns: 1fr 28px 28px; gap: 8px; }
.gallery-row input[type="file"] { display: none; }

.preview-pane { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 12px; }
.preview-head { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

.preview-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-2);
}

.preview-scroll .sheet { margin: 0 auto; }

.md-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--surface-2);
  border-radius: 12px;
}

.md-bar button {
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}

.md-bar button:hover { border-color: var(--accent); color: var(--accent); }
.md-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.md-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.md-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 3px; }
.md-bar button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 「插图片」「插乐队」展开出来的一行 */
.md-extra {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 12px;
}

.md-extra input, .md-extra select { flex: 1 1 180px; width: auto; }

.md-stats {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.md-stats #mdSaved { margin-left: auto; }

/* 写作页的本地草稿提示 */
.draft-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #fdf8ec;
  border: 1px solid #f0dfb4;
  color: #8a6d1f;
  font-size: 13.5px;
}

/* 大纲 */
.outline { display: flex; flex-direction: column; gap: 5px; }

.outline-item {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 0;
  cursor: pointer;
  border-left: 2px solid transparent;
  padding-left: 9px;
}

.outline-item:hover { color: var(--accent); border-left-color: var(--accent); }
.outline-item.lv1 { font-weight: 650; color: var(--text); }
.outline-item.lv3 { padding-left: 21px; font-size: 12.5px; }

/* ==================== 登录卡 / 控制台 ==================== */

.auth-card {
  max-width: 460px;
  margin: 36px auto 0;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.auth-card h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.auth-card .sub { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.auth-card .glabel { margin-top: 6px; }
.auth-card .btn.primary { margin-top: 12px; padding: 12px; font-size: 15px; }

.console-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* ==================== 管理端 / 通用块 ==================== */

.card { background: var(--surface); }
.card h2 { font-size: 17px; letter-spacing: -.01em; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

.admin-table th {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  padding: 3px 7px;
  border-radius: 6px;
  word-break: break-all;
}

.notice {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 1px solid #f0dfb4;
  background: #fdf8ec;
  color: #8a6d1f;
  margin: 12px 0;
}

.notice.ok { border-color: #c6e9d4; background: #f1faf4; color: #16713c; }

.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.7; }
input[type="file"] { color: var(--muted); font-size: 13.5px; font-family: inherit; }

.section-title { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 30px 0 14px; }

/* ==================== 响应式 ==================== */

@media (max-width: 900px) {
  .designer { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
}

@media (max-width: 620px) {
  /* 手机上衣着要紧一点：导航别占掉半屏，标题别大得离谱 */
  header.hero { padding: 16px 0 26px; }
  .topbar { gap: 8px; }
  .brand { font-size: 14px; }
  .brand-en { display: none; }
  .nav { gap: 1px; }
  .nav a { padding: 6px 10px; font-size: 13px; }

  h1 { margin-top: 26px; font-size: clamp(26px, 8vw, 36px); }
  .lede { font-size: 14.5px; }
  .stats { gap: 24px; margin-top: 26px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; }

  .count { margin-left: 0; width: 100%; }
  .overlay { padding: 12px; }
  .sheet .cover { font-size: 64px; }
  .card { box-shadow: none; }
  .link-row { grid-template-columns: 1fr 1fr 28px; }
  .theme-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

  .toolbar { padding: 10px 0; }
  .grid { gap: 16px; padding-top: 22px; }
  .post-grid, .recruit-grid, .upcoming-grid, .join-grid { grid-template-columns: 1fr; }
  .sec { margin-top: 34px; padding-top: 24px; }
  .sec h2 { font-size: 18px; }

  .article-inner { padding: 20px; }
  .post-wrap { padding: 20px 18px 60px; }
  .designer { padding: 20px 18px 0; }
  .wrap { padding: 0 18px; }
}
