/* ============================================================
   AI 音乐课堂作品展示平台 · 移动端优先，中文界面，卡片风
   ============================================================ */
:root {
  --bg: #f6f5fb;
  --card: #ffffff;
  --ink: #1c1b22;
  --ink-2: #5b5a66;
  --ink-3: #8b8a97;
  --line: #e8e6f2;
  --brand: #5b21b6;
  --brand-2: #7c3aed;
  --brand-soft: #f1ebfe;
  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #b45309;
  --warn-bg: #fdf3e0;
  --err: #c02626;
  --err-bg: #fdeaea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(28, 27, 34, .05), 0 6px 18px rgba(91, 33, 182, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 20px; padding-bottom: 40px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: .86em; }
.center { text-align: center; }
.pad { padding: 12px 4px; }
.big { font-size: 1.25rem; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 17px;
}
.brand-text { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-nav a {
  padding: 6px 10px; border-radius: 999px; color: var(--ink-2);
  font-size: 14px; white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.site-nav a.active { background: var(--brand); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff; color: var(--ink-3);
  font-size: .82rem; text-align: center; padding: 18px 0;
}
.site-footer a { color: var(--ink-3); }
.site-footer p { margin: 2px 0; }

/* ---------- 卡片与通用 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.card-inner { background: var(--bg); border-radius: var(--radius-sm); padding: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--brand-2); color: var(--brand); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger:hover { color: #fff; background: #a11; border-color: #a11; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-mini {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; font-family: inherit;
}
.btn-mini:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 提示条 ---------- */
.alert { border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 14px; font-size: .95em; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe7cf; }
.alert-err { background: var(--err-bg); color: var(--err); border: 1px solid #f4c7c7; }
.alert-info { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0dcb4; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label, .label-like { display: block; font-weight: 600; font-size: .93em; margin-bottom: 6px; }
.req { color: var(--err); }
.hint { color: var(--ink-3); font-size: .82em; margin: 4px 0 0; }
input[type=text], input[type=password], input[type=url], input[type=file],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand-2);
}
textarea { resize: vertical; }
.counter { font-weight: 400; color: var(--ink-3); font-size: .82em; margin-left: 8px; }
.counter.ok { color: var(--ok); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.radio-row { display: flex; gap: 18px; margin-bottom: 8px; }
.radio-label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400 !important; }
.consent {
  display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 16px;
  background: var(--brand-soft); padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: .92em; cursor: pointer;
}
.consent input { margin-top: 4px; }
.form-error { color: var(--err); font-size: .93em; margin: 0 0 12px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; }
.login-card { max-width: 420px; margin: 6vh auto 0; }

/* ---------- 作品墙 ---------- */
.wall-head { margin-bottom: 14px; }
.wall-head h1 { margin-bottom: 2px; }
.filters {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-group label { font-size: .85em; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.filter-group select { width: auto; min-width: 130px; }
.sort-group { display: flex; gap: 6px; flex-wrap: wrap; }
.style-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; white-space: nowrap; line-height: 1.6;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover { text-decoration: none; }

.grid.wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(91, 33, 182, .14); text-decoration: none; }
.cover {
  position: relative; height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0 8px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}
.cover-0 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cover-1 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.cover-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.cover-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cover-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.cover-5 { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.cover-img { background-size: cover; background-position: center; }
.cover-icon { font-size: 24px; color: rgba(255,255,255,.9); line-height: 1; }
.cover-title {
  font-size: 12.5px; font-weight: 700; color: #fff; text-align: center; line-height: 1.25;
  max-height: 2.5em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.duration {
  position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.5);
  color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px;
}
.badge {
  position: absolute; left: 6px; top: 6px; font-size: 11px; padding: 1px 8px;
  border-radius: 999px; background: rgba(0,0,0,.45); color: #fff;
}
.work-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.work-title {
  font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.work-author { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }
.work-meta { font-size: 11.5px; color: var(--ink-3); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.work-stats {
  margin-top: auto; padding-top: 8px; display: flex; gap: 12px;
  font-size: 12px; color: var(--ink-2);
}
.work-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.work-tags .tag { font-size: 11px; padding: 0 7px; margin: 0; }

/* ---------- 详情页 ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.detail .player-box { margin: 6px 0 4px; }
.player { width: 100%; height: 46px; }
.stats-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 4px; border-bottom: 1px dashed var(--line); margin-bottom: 18px;
}
.like-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px;
  align-items: center; font-family: inherit;
}
.like-btn.liked { border-color: #f59e0b; background: #fff7e8; }
.stat-chip { font-size: 13px; color: var(--ink-2); background: var(--bg); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.block { margin-bottom: 20px; }
.block h2 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.h-icon { font-style: normal; }
.quote {
  background: var(--bg); border-left: 3px solid var(--brand-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px; white-space: pre-wrap; word-break: break-word;
  font-size: .95em; margin-bottom: 10px;
}
.block-teacher .quote { border-left-color: var(--warn); background: var(--warn-bg); }
.block-lyrics .quote { border-left-color: var(--ok); white-space: pre-wrap; }
.gen-params { margin: 0 0 10px; }

/* 详情页：歌词直接显示；提示词默认折叠（点击“查看提示词”展开，用原生 <details>） */
.tag {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; padding: 1px 9px; border-radius: 999px; margin-right: 4px;
  white-space: nowrap; line-height: 1.7;
}
.tag-status { background: var(--bg); color: var(--ink-2); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-err { background: var(--err-bg); color: var(--err); }
.tag-style { background: #eef2ff; color: #4338ca; }
.tag-method { background: #ecfdf5; color: #047857; }

/* ---------- 详情页分享区（移动端优先：按钮大、易点） ---------- */
.block-share {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fbfaff; padding: 14px;
}
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.share-btn:hover, .share-btn:active {
  border-color: var(--brand-2); color: var(--brand); text-decoration: none;
  background: var(--brand-soft);
}
.share-ico { font-size: 18px; line-height: 1; }
.share-tip {
  margin: 12px 0 0; padding: 10px 12px; font-size: 13.5px;
  background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm);
}
.share-msg { margin: 10px 0 0; font-size: 13.5px; color: var(--ok); font-weight: 600; }

/* ---------- 二维码弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(28, 27, 34, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: var(--radius); padding: 18px;
  width: 100%; max-width: 320px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.modal-card h3 { font-size: 1rem; margin-bottom: 12px; }
.qr-img {
  width: 240px; height: 240px; max-width: 78vw; max-height: 78vw;
  display: block; margin: 0 auto 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px;
}

/* ---------- 上传页 ---------- */
.upload-head { margin-bottom: 14px; }
.upload-head h1 { margin-bottom: 2px; }
.status-list { list-style: none; margin: 12px 0 0; padding: 0; }
.status-item { border-left: 3px solid var(--line); padding: 8px 12px; margin-bottom: 10px; }
.status-item.status-approved { border-left-color: var(--ok); }
.status-item.status-pending { border-left-color: var(--warn); }
.status-item.status-rejected { border-left-color: var(--err); }
.status-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-sub { margin-top: 2px; }
.reject-reason {
  margin-top: 6px; background: var(--err-bg); color: var(--err);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: .9em;
}
.form-card h2 { margin-bottom: 14px; }

/* ---------- 管理 ---------- */
.admin-body .site-header { background: #17152a; border-bottom-color: #26233f; }
.admin-body .brand-text, .admin-body .brand { color: #fff; }
.admin-body .site-nav a { color: #b7b2d4; }
.admin-body .site-nav a.active { background: var(--brand-2); color: #fff; }
.admin-body .site-nav a:hover { background: #2a2547; color: #fff; }
.page-title { font-size: 1.3rem; margin-bottom: 14px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat { text-align: center; padding: 14px 8px; margin: 0; }
.stat-num { font-size: 1.7rem; font-weight: 800; margin: 0; }
.stat-num.warn { color: var(--warn); }
.stat-num.ok { color: var(--ok); }
.stat-num.err { color: var(--err); }
.stat-label { color: var(--ink-2); font-size: .86em; margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.tab { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab:hover { text-decoration: none; }

.review-list, .work-admin-list, .mini-list { list-style: none; margin: 0; padding: 0; }
.review-item, .work-admin-item { padding: 0; overflow: hidden; }
.review-item summary, .work-admin-item summary {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; cursor: pointer; list-style: none;
}
.review-item summary::-webkit-details-marker, .work-admin-item summary::-webkit-details-marker { display: none; }
.review-item summary::before, .work-admin-item summary::before {
  content: "▸"; color: var(--ink-3); transition: transform .15s;
}
.review-item details[open] > summary::before, .work-admin-item details[open] > summary::before { transform: rotate(90deg); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-pending { background: var(--warn); }
.dot-approved { background: var(--ok); }
.dot-rejected { background: var(--err); }
.review-body { padding: 4px 16px 16px; border-top: 1px dashed var(--line); }
.review-meta { margin: 8px 0; }
.cover-thumb img { height: 72px; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; margin: 6px 0; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
.two-col h4 { margin: 0 0 6px; font-size: .9em; color: var(--ink-2); }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
/* 列表行内歌词编辑表单（教师改歌词）：与其它表单块留出间距 */
.lyrics-form { margin: 12px 0 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.reject-form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.reject-form input { flex: 1; }

.mini-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 4px; border-bottom: 1px dashed var(--line);
}
.mini-list li:last-child { border-bottom: none; }
.mini-main { display: flex; flex-direction: column; min-width: 0; }
.mini-actions { display: flex; gap: 8px; flex: none; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-title-row h2 { margin: 0; font-size: 1.05rem; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-inline > * { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92em; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--ink-2); font-weight: 600; white-space: nowrap; background: #faf9fe; }
.row-dim { opacity: .55; }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg); padding: 2px 8px; border-radius: 6px; font-size: .92em;
  color: var(--brand); letter-spacing: .5px;
}
.two-col-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sec-title { margin: 22px 0 12px; font-size: 1.15rem; }
.cohort-card h2 { font-size: 1.05rem; }
.add-form { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.add-form input { flex: 1; min-width: 110px; }
.import-form { display: flex; flex-direction: column; gap: 10px; }
.center-or { text-align: center; margin: 0; }
.empty { text-align: center; padding: 40px 16px; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col-grid { grid-template-columns: 1fr 1fr; }
  .cover { height: 110px; }
}
@media (min-width: 900px) {
  .grid.wall { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .filter-group { order: 1; }
  .sort-group { order: 2; }
  .style-filter { order: 3; flex: 1 1 100%; }
  .brand-text { font-size: 16.5px; }
}

/* ============================================================
   AI 增强：点评助手 / AI 设置 / 学情报告（2026-09-25 新增）
   ============================================================ */
.ai-actions { margin-top: 8px; }
.ai-actions .muted.small { margin: 0; }
.ai-msg-ok { color: var(--ok); }

.settings-form .field code, .kv-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
}
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.kv-list li:last-child { border-bottom: none; }
.kv-list .muted { min-width: 140px; }

.report-card .report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.report-body { line-height: 1.9; }
.report-body p { margin: 0 0 12px; }
.report-h { margin: 18px 0 8px; font-size: 1.05rem; color: var(--brand); }
.report-h:first-child { margin-top: 0; }
.report-raw summary { cursor: pointer; font-weight: 600; }
.raw-summary {
  white-space: pre-wrap; word-break: break-word; margin: 12px 0 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; font-size: .88em; line-height: 1.7; color: var(--ink-2);
}

/* 打印 / 另存为 PDF：只留报告正文 */
@media print {
  .site-header, .site-footer, .site-nav, .report-actions, .filters,
  .tab, .review-actions, .alert { display: none !important; }
  body { background: #fff; }
  .card, .report-card { box-shadow: none; border: none; padding: 0; }
  .report-body { font-size: 12.5pt; }
  .report-raw { display: none; }
}

/* 平台化第二批：可点击统计卡（总览页数字跳转到对应列表） */
.stat-link { display: block; text-decoration: none; color: inherit; }
.stat-link:hover { text-decoration: none; border-color: var(--brand); }
.stat-link .stat-label::after { content: " →"; color: var(--ink-2); }

/* 学生入班成功提示（上传页 / 我的提交） */
.joined-banner {
  background: var(--bg); border-left: 3px solid var(--ok);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px; margin: 8px 0 0; font-size: 14px;
}

/* 平台化第二批追加：作品墙搜索框（只有放大镜图标 + 输入框，无文字标签）
   图标与输入框始终同一行（flex + nowrap）；输入框可收缩（min-width:0）以免窄屏溢出 */
.search-box {
  display: flex; align-items: center; gap: 6px; flex: 1 1 220px;
  min-width: 0; padding: 6px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
}
.search-box:focus-within { border-color: var(--brand); }
.search-icon { flex: 0 0 auto; color: var(--ink-2); }
.search-box input[type="search"] {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0; outline: 0; background: transparent; font: inherit;
  padding: 2px 0; -webkit-appearance: none; appearance: none;
}
.search-box input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: 0 0 auto; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border-radius: 50%; background: var(--bg); color: var(--ink-2);
  font-size: 14px; text-decoration: none;
}
.search-clear:hover { background: var(--line); text-decoration: none; }
.search-scope { flex: 0 1 auto; }

/* ---------- 作品墙页头：机构名（右上角） ---------- */
.wall-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wall-org { font-size: 13px; color: var(--brand); background: var(--brand-soft); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .wall-org { font-size: 12px; padding: 4px 11px; } }
