﻿/* ==========================================================================
   当代艺术项目工坊 · style.css
   简约杂志风：大留白 · 衬线标题 · 黑白灰 + 一个强调色（朱砂红）
   响应式：课堂投影 / 学生笔记本
   ========================================================================== */

:root {
  --paper: #faf8f3;      /* 纸张底色 */
  --card: #ffffff;
  --ink: #1d1b18;        /* 主文字 */
  --ink-soft: #55504a;
  --muted: #8d877c;      /* 次级灰 */
  --line: #e4dfd3;       /* 分隔线 */
  --line-dark: #c9c2b4;
  --accent: #b03a2e;     /* 朱砂红 · 强调色 */
  --accent-dark: #8f2d24;
  --accent-soft: #f4e3de;
  --ok: #3e6b4f;
  --warn: #9a6b1f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --shadow: 0 2px 10px rgba(29, 27, 24, .06);
  --radius: 2px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 .4em;
}

button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); font-size: 14px; color: var(--ink); }

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- 顶栏 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 12px; height: 44px;
  background: var(--accent);
  display: inline-block;
}
.brand-title { font-size: 26px; margin: 0; line-height: 1.15; }
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .18em; }

/* 页签 */
.tabs { display: flex; gap: 4px; }
.tab-btn {
  background: none; border: none;
  padding: 10px 16px 12px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  letter-spacing: .08em;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- 主体 ---------- */
.site-main { max-width: 1200px; margin: 0 auto; padding: 34px 24px 60px; }
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}

.tab-panel { display: none; animation: fadeIn .25s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 22px; }
.panel-head h2 { font-size: 30px; margin-bottom: 2px; }
.panel-sub { color: var(--muted); margin: 0; letter-spacing: .04em; }

/* 工具栏 */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search {
  flex: 1 1 220px;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  background: var(--card);
  border-radius: var(--radius);
}
.search:focus, .select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.select {
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  background: var(--card);
  border-radius: var(--radius);
  max-width: 200px;
}
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); white-space: nowrap; }
.toolbar-count { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }

/* 按钮 */
.btn {
  padding: 8px 18px;
  border: 1px solid var(--line-dark);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: .04em;
  transition: all .15s;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn-block { display: block; width: 100%; }
.btn.danger { color: var(--accent); }
.btn.danger:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- ① 案例库 ---------- */
.case-group { margin-bottom: 36px; }
.case-group-title {
  font-size: 20px;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.case-group-title .idx {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  background: var(--accent); color: #fff;
  padding: 1px 8px; border-radius: 10px; letter-spacing: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  overflow: hidden;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-dark); }
.case-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee8de;
}
.case-card-visual { margin: -18px -18px 12px; }
.case-detail-visual { margin-bottom: 18px; }
.case-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-visual-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a99d8c;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}
.case-visual-noimg .case-visual-fallback { display: flex; }
.case-visual:not(.case-visual-noimg) .case-visual-fallback { display: none; }
.case-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.case-card-title { font-family: var(--serif); font-size: 18px; margin: 0; line-height: 1.35; }
.case-card-artist { color: var(--ink-soft); font-size: 14px; }
.case-card-meta { color: var(--muted); font-size: 13px; }
.case-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line-dark);
  padding: 1px 8px; border-radius: 10px;
}
.badge-forum {
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); padding: 0 7px; border-radius: 10px;
  white-space: nowrap; flex-shrink: 0;
}
.badge-verify { font-size: 11px; color: var(--warn); border: 1px solid var(--warn); padding: 0 7px; border-radius: 10px; white-space: nowrap; }
.fav-btn {
  background: none; border: none; font-size: 18px; line-height: 1;
  color: var(--line-dark); padding: 0 2px; flex-shrink: 0;
  transition: transform .12s;
}
.fav-btn:hover { transform: scale(1.2); }
.fav-btn.on { color: var(--accent); }

.empty {
  padding: 60px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-dark); border-radius: var(--radius);
}

/* 抽屉 */
.overlay {
  position: fixed; inset: 0;
  background: rgba(29, 27, 24, .45);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(560px, 94vw);
  height: 100%;
  background: var(--paper);
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-body { padding: 34px 34px 60px; }
.drawer-close {
  position: sticky; top: 14px; float: right;
  background: var(--card); border: 1px solid var(--line-dark);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; color: var(--ink);
}
.drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.drawer h2 { font-size: 24px; margin-bottom: 2px; }
.drawer .en { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 74px 1fr; gap: 10px 12px; margin: 14px 0; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); }
.kv-section { margin-top: 18px; }
.kv-section h4 {
  font-size: 14px; letter-spacing: .1em; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 8px;
}
.kv-section p { margin: 0 0 10px; font-size: 14.5px; }
.drawer-foot { margin-top: 26px; display: flex; gap: 10px; align-items: center; }

/* 模态 */
.overlay.center { justify-content: center; align-items: center; }
.modal {
  background: var(--paper);
  width: min(460px, 92vw);
  padding: 26px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  animation: fadeIn .18s ease;
}
.modal-title { font-size: 20px; }
.modal-body .field { margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 表单字段 */
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; letter-spacing: .05em; }
.field input[type=text], .field textarea, .modal-body input[type=text] {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-dark); background: var(--card);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .modal-body input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

/* ---------- ② 项目工坊 ---------- */
.ws-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.ws-side {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  position: sticky; top: 84px;
}
.ws-side-head h3 { font-size: 16px; }
.ws-side-head .btn { margin-top: 10px; }
.ws-project-list { margin: 14px 0; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ws-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ws-item:hover { border-color: var(--line-dark); }
.ws-item.active { border-color: var(--accent); background: var(--accent-soft); }
.ws-item-name { font-family: var(--serif); font-size: 15px; font-weight: 700; }
.ws-item-meta { font-size: 12px; color: var(--muted); }
.ws-item-actions { display: flex; gap: 6px; margin-top: 8px; }
.ws-item-actions button {
  font-size: 12px; background: none; border: 1px solid var(--line-dark);
  padding: 2px 8px; border-radius: var(--radius); color: var(--ink-soft);
}
.ws-item-actions button:hover { border-color: var(--ink); color: var(--ink); }
.ws-item-actions button.danger:hover { border-color: var(--accent); color: var(--accent); }

.ws-empty {
  border: 1px dashed var(--line-dark);
  padding: 70px 20px; text-align: center; color: var(--muted);
}
.ws-empty-mark { font-size: 40px; margin: 0 0 8px; color: var(--line-dark); }

.ws-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px;
}
.ws-head h3 { font-size: 22px; margin-bottom: 2px; }
.ws-head-meta { color: var(--muted); font-size: 13px; margin: 0; }

.ws-stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stage-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-dark); background: var(--card);
  border-radius: 20px; font-size: 13px; color: var(--ink-soft);
  transition: all .15s;
}
.stage-tab .st-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.stage-tab:hover { border-color: var(--ink); color: var(--ink); }
.stage-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.stage-tab.active .st-num { background: var(--accent); color: #fff; }
.stage-tab.done .st-ok { color: var(--ok); font-weight: 700; }

.ws-stage-form { background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.stage-head { margin-bottom: 14px; }
.stage-head h3 { font-size: 21px; margin-bottom: 0; }
.stage-en { color: var(--muted); font-size: 12px; letter-spacing: .15em; margin: 2px 0 0; }
.stage-prompt, .stage-example {
  border-left: 3px solid var(--line-dark);
  padding: 10px 14px; margin: 12px 0;
  background: #f6f3ec;
  font-size: 14px;
}
.stage-prompt strong, .stage-example strong { display: block; font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-bottom: 4px; }
.stage-prompt p, .stage-example p { margin: 0; color: var(--ink-soft); }
.stage-example { border-left-color: var(--accent); background: var(--accent-soft); }
.stage-example p { color: var(--ink); }
.stage-fields { margin-top: 18px; }

.ws-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ws-progress-track { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ws-progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .3s ease; }
.ws-progress-text { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }

/* ---------- ③ 材料库 ---------- */
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line-dark);
  background: var(--card); border-radius: 20px; font-size: 13px; color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mat-group { margin-bottom: 32px; }
.mat-group-title { font-size: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.mat-group-title .idx { font-family: var(--sans); font-size: 12px; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 10px; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.mat-card { background: var(--card); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 9px; }
.mat-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mat-name { font-family: var(--serif); font-size: 18px; margin: 0; }
.mat-en { color: var(--muted); font-size: 12px; }
.mat-row { font-size: 13.5px; }
.mat-row .k { color: var(--accent); font-weight: 600; letter-spacing: .06em; margin-right: 6px; }
.mat-row .v { color: var(--ink-soft); }

/* ---------- ④ 灵感 ---------- */
.inspire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.inspire-block { border: 1px solid var(--line); background: var(--card); padding: 22px; border-radius: var(--radius); }
.inspire-title { font-size: 19px; }
.inspire-desc { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.inspire-card { margin-top: 16px; }
.inspire-case, .inspire-mat {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  padding: 16px 18px; margin-bottom: 12px;
}
.inspire-case h4, .inspire-mat h4 { font-size: 17px; margin-bottom: 2px; }
.inspire-mat { border-left-color: var(--line-dark); }
.inspire-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inspire-pair .inspire-case, .inspire-pair .inspire-mat { margin-bottom: 0; }
.inspire-meta { color: var(--muted); font-size: 13px; }
.inspire-body { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- ⑤ 教师端 ---------- */
.t-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.t-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--card);
  padding: 10px 14px; border-radius: var(--radius);
}
.t-li-main { min-width: 0; cursor: pointer; }
.t-li-name { font-family: var(--serif); font-weight: 700; }
.t-li-meta { font-size: 12px; color: var(--muted); }
.t-li-actions { display: flex; gap: 8px; flex-shrink: 0; }

.t-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.t-wall-card {
  border: 1px solid var(--line); background: var(--card);
  padding: 16px; cursor: pointer; border-radius: var(--radius);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.t-wall-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-dark); }
.t-wall-title { font-family: var(--serif); font-size: 16px; margin: 0 0 4px; }
.t-wall-meta { font-size: 12px; color: var(--muted); }
.t-wall-progress { margin-top: 10px; }
.t-wall-progress .bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.t-wall-progress .bar i { display: block; height: 100%; background: var(--accent); }
.t-wall-comment { margin-top: 8px; font-size: 12px; color: var(--ok); }

.t-detail { border: 1px solid var(--line); background: var(--card); padding: 24px; border-radius: var(--radius); }
.t-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.t-detail-head h3 { font-size: 22px; margin-bottom: 2px; }
.t-detail-meta { color: var(--muted); font-size: 13px; margin: 0; }
.t-stage { border: 1px solid var(--line); margin-bottom: 10px; border-radius: var(--radius); }
.t-stage summary {
  cursor: pointer; padding: 12px 16px; font-family: var(--serif);
  font-weight: 700; font-size: 15px; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.t-stage summary::-webkit-details-marker { display: none; }
.t-stage summary::before { content: "＋"; color: var(--accent); font-family: var(--sans); }
.t-stage[open] summary::before { content: "－"; }
.t-stage-body { padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.t-field-label { font-size: 12px; color: var(--muted); display: block; }
.t-field-value { font-size: 14px; color: var(--ink); margin-top: 2px; }
.t-comment { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.t-comment h4 { font-size: 16px; }
.t-comment textarea {
  width: 100%; min-height: 90px; resize: vertical;
  border: 1px solid var(--line-dark); background: #fff;
  padding: 10px 12px; border-radius: var(--radius);
}
.t-comment textarea:focus { outline: 1px solid var(--accent); }
.t-comment-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- T-APP-003 在线提交 + 在线批改 ---------- */
.online-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
  align-items: start;
}
.online-panel {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
}
.online-panel h3 { font-size: 18px; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.online-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.online-panel input,
.online-panel select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}
.online-submit-row, .online-check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.online-check-row input { min-width: 220px; }
.online-info { margin-top: 10px; font-size: 12px; color: var(--muted); }
.online-result {
  margin-top: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper);
}
.online-empty { color: var(--muted); font-size: 13px; }
.online-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.online-badge.pending, .badge-pending { background: var(--accent-soft); color: var(--accent-dark); }
.online-badge.graded, .badge-graded { background: #e2efe5; color: var(--ok); }
.online-result-meta { font-size: 13px; color: var(--muted); }
.online-score { margin-top: 8px; font-size: 14px; color: var(--ink); }
.online-comment {
  margin-top: 8px;
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink-soft);
}

.t-online-view { margin-top: 16px; }
.t-online-top {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
}
.t-online-top h3 { font-size: 18px; margin-bottom: 2px; }
.t-key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.t-filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.t-filter-row input { flex: 1; min-width: 140px; padding: 8px 12px; border: 1px solid #d8d2c8; border-radius: 8px; font-size: 14px; background: #fff; }
.t-filter-row .net-status { flex-basis: 100%; }
.t-key-row input {
  min-width: 240px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: var(--radius);
}
.t-online-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.t-online-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.t-online-item.active { border-color: var(--accent); }
.t-online-main { min-width: 0; cursor: pointer; }
.t-online-name { font-family: var(--serif); font-weight: 700; }
.t-online-meta { font-size: 12px; color: var(--muted); }
.t-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.t-online-detail {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 22px;
  margin-top: 14px;
  border-radius: var(--radius);
}
.t-online-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.t-online-detail-head h3 { font-size: 21px; margin-bottom: 2px; }
.t-online-score-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}
.t-online-score-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.t-online-score-row input {
  width: 160px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: var(--radius);
}

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 10px 22px; border-radius: 22px; font-size: 14px;
  z-index: 200; box-shadow: var(--shadow);
  animation: fadeIn .2s ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding-top: 14px; }
  .tabs { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); margin-top: 8px; }
  .ws-layout { grid-template-columns: 1fr; }
  .ws-side { position: static; }
  .inspire-grid { grid-template-columns: 1fr; }
  .inspire-pair { grid-template-columns: 1fr; }
  .online-grid { grid-template-columns: 1fr; }
  .t-online-item { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .site-main { padding: 22px 14px 50px; }
  .panel-head h2 { font-size: 24px; }
  .case-grid, .mat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .t-key-row input, .online-check-row input { min-width: 0; width: 100%; }
  .toolbar-count { margin-left: 0; }
}

/* ==================== T-APP-002 网络资讯 + 灵感生成器 ==================== */
.inspire-block { margin-bottom: 22px; }
.net-bar, .gen-bar { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.net-status { font-size: 12px; color: #7a6f5f; }
.net-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.net-card { display: flex; gap: 12px; border: 1px solid #e5ded2; border-radius: 10px; padding: 10px; background: #fff; }
.net-img-wrap { width: 84px; height: 84px; flex: none; display: flex; align-items: center; justify-content: center; background: #f4efe7; border-radius: 8px; overflow: hidden; }
.net-img { width: 100%; height: 100%; object-fit: cover; }
.net-noimg { color: #b3a896; font-size: 12px; }
.net-body { min-width: 0; }
.net-meta { font-size: 12px; color: #7a6f5f; margin: 2px 0; }
.badge-src { display: inline-block; background: #2b2b2b; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.net-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.net-link { font-size: 12px; color: #8a6d3b; text-decoration: none; }
.gen-card { line-height: 1.8; }
.gen-steps { margin: 10px 0 0 18px; padding: 0; }
.gen-steps li { margin-bottom: 6px; }
.btn.small { padding: 4px 10px; font-size: 12px; }

/* ===== 多图上传（小稿、影像）===== */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.img-cell { position: relative; width: 84px; height: 84px; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #ddd); cursor: zoom-in; }
.img-del { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; background: #c0392b; color: #fff; border: none; cursor: pointer; font-size: 13px; padding: 0; }
.img-add { margin-top: 2px; }
.t-field-img { max-width: 140px; max-height: 140px; margin: 4px 6px 4px 0; border-radius: 6px; border: 1px solid var(--line, #ddd); vertical-align: middle; cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.t-field-img:hover { transform: scale(1.05); box-shadow: 0 3px 10px rgba(0,0,0,.25); }

/* ===== 作品图集画廊（应用内查看艺术家作品） ===== */
.gallery-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 16, 13, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.gallery {
  background: var(--paper, #faf6ee);
  border-radius: 14px;
  width: min(900px, 96vw);
  max-height: 94vh;
  display: flex; flex-direction: column;
  padding: 16px 20px 14px;
  box-shadow: 0 14px 60px rgba(0,0,0,.45);
}
.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.gallery-title { font-size: 16px; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-dark, #d8cfc0); background: var(--card, #fff);
  font-size: 15px; color: var(--ink, #1c1b1a); cursor: pointer; line-height: 1;
}
.gallery-close:hover { border-color: var(--accent, #9e3b2c); color: var(--accent, #9e3b2c); }
.gallery-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: #111; border-radius: 10px; min-height: 280px; overflow: hidden;
}
.gallery-img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.gallery-img.err { display: none; }
.gallery-stage:has(.gallery-img.err)::after {
  content: '图片暂时无法加载'; color: #9a938a; font-size: 13px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav:hover { background: rgba(0,0,0,.62); }
.gallery-count { text-align: center; font-size: 13px; color: var(--muted, #8a857c); margin: 10px 0 8px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; }
.gallery-thumbs .thumb {
  flex: none; width: 58px; height: 58px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: var(--card, #fff); cursor: pointer;
}
.gallery-thumbs .thumb.on { border-color: var(--accent, #9e3b2c); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.net-card { cursor: pointer; }
.gallery-hint { text-align: center; font-size: 12px; color: #a29b90; margin: 2px 0 6px; }
.gallery-img { user-select: none; -webkit-user-select: none; touch-action: none; }

/* ===== 创作方案助手 ===== */
.assistant-overlay { justify-content: center; align-items: center; }
.assistant-modal { width: min(720px, 94vw); max-height: 92vh; overflow-y: auto; }
.assistant-sub { font-size: 13.5px; color: var(--muted, #8a857c); margin: 6px 0 12px; line-height: 1.7; }
.assistant-hint { font-size: 12.5px; color: var(--muted, #8a857c); margin: 4px 0 6px; }
.assistant-ctx-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.assistant-ctx-item { background: var(--card, #fff); border: 1px solid var(--line-dark, #e0d8c8); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; color: var(--ink, #1c1b1a); }
.assistant-label { font-size: 13px; color: var(--ink-soft, #555); margin: 4px 0 8px; }
.assistant-upload { margin: 10px 0 14px; }
.assistant-actions { margin: 12px 0; }
.assistant-result { margin-top: 14px; border-top: 1px dashed var(--line-dark, #d8cfc0); padding-top: 12px; }
.assistant-loading { color: var(--muted, #8a857c); font-size: 13px; }
.assistant-err { color: #c0392b; font-size: 13px; }
.assistant-plan h4.assistant-sec { font-size: 14.5px; color: var(--accent, #9e3b2c); margin: 14px 0 6px; border-bottom: 1px solid var(--line, #eee); padding-bottom: 4px; }
.assistant-plan p { font-size: 13.5px; line-height: 1.85; margin: 4px 0; color: var(--ink, #1c1b1a); white-space: pre-wrap; }
.assistant-inline { background: var(--card, #fff); border: 1px solid var(--line-dark, #e5ded2); border-radius: 12px; padding: 18px; }
.assistant-kw { margin: 10px 0; }
.assistant-kw-input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-dark, #e5ded2); border-radius: 8px; font-size: 13.5px; background: var(--paper, #faf6ee); }
.assistant-inline-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
/* ===== 展览资讯 ===== */
.exh-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.exh-card { border: 1px solid var(--line-dark, #e5ded2); border-radius: 10px; padding: 14px 16px; background: var(--card, #fff); }
.exh-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.exh-title h4 { margin: 0; font-size: 16px; }
.exh-en { font-size: 12.5px; color: var(--muted, #8a857c); font-weight: normal; }
.exh-meta { font-size: 12.5px; color: var(--muted, #8a857c); margin: 4px 0 0; }
.exh-dates { font-size: 12.5px; color: var(--ink-soft, #555); margin: 8px 0 4px; }
.exh-brief { font-size: 13.5px; color: var(--ink, #1c1b1a); margin: 0 0 10px; line-height: 1.7; }
.badge-exh { flex: none; background: var(--accent, #9e3b2c); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.exh-detail { margin-top: 14px; }
.exh-detail-card { border: 1px solid var(--line-dark, #e5ded2); border-radius: 12px; padding: 18px 20px; background: var(--card, #fff); }
.exh-detail-card h4 { margin: 0 0 4px; font-size: 18px; }
.exh-sec { margin-top: 14px; }
.exh-sec h5 { font-size: 14px; letter-spacing: .08em; color: var(--accent, #9e3b2c); border-bottom: 1px solid var(--line, #eee); padding-bottom: 4px; margin: 0 0 8px; }
.exh-sec p { font-size: 14px; line-height: 1.85; margin: 0; }
.exh-source { font-size: 12px; color: var(--muted, #8a857c); margin-top: 14px; }
.exh-badges { display: flex; gap: 6px; flex: none; align-items: center; }
.badge-status { border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.status-正在展出 { background: #2e7d32; color: #fff; }
.status-即将开展 { background: #1565c0; color: #fff; }
.status-已闭幕 { background: #9e9e9e; color: #fff; }
.status- { background: #8a6d3b; color: #fff; }
.badge-auto { background: #6a5acd; color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.exh-card { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.exh-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.exh-open-hint { font-size: 12.5px; color: var(--accent, #9e3b2c); }
.exh-modal-overlay { justify-content: center; align-items: center; z-index: 300; }
.exh-modal { position: relative; width: min(680px, 94vw); max-height: 90vh; overflow-y: auto; padding: 22px 24px; }
.exh-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-dark, #d8cfc0); background: var(--card, #fff); font-size: 16px; color: var(--ink, #1c1b1a); cursor: pointer; line-height: 1; }
.exh-modal-close:hover { border-color: var(--accent, #9e3b2c); color: var(--accent, #9e3b2c); }

/* ==========================================================================
   CONTEMPORARY GALLERY · 当代美术馆视觉层（2026-08-31）
   基调：画廊白盒 + 墨黑块面 + 朱砂红 + 酸性青点缀 · 网格底纹 · 微动效
   ========================================================================== */
:root {
  --paper: #f5f3ed;
  --card: #ffffff;
  --ink: #141210;
  --ink-soft: #4a463f;
  --muted: #8b857a;
  --line: #dcd6c9;
  --line-dark: #b9b1a1;
  --accent: #c8432f;
  --accent-dark: #9e3222;
  --accent-soft: #f6e4df;
  --cool: #6fb8a5;
  --shadow: 0 1px 0 rgba(20,18,16,.04), 0 10px 30px rgba(20,18,16,.09);
  --radius: 3px;
}

/* 背景：极淡网格（当代排版底纹） */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20,18,16,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,18,16,.02) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- 顶栏：墨黑块面 ---------- */
.site-header {
  background: #141210;
  border-bottom: 1px solid rgba(245,243,237,.09);
}
.header-inner { padding-top: 22px; }
.brand-mark { width: 14px; height: 50px; background: var(--accent); }
.brand-title { color: #f5f3ed; font-size: 31px; letter-spacing: .12em; }
.brand-sub { color: rgba(245,243,237,.55); letter-spacing: .32em; font-size: 11px; }
.brand-en {
  margin: 5px 0 0; font-size: 10px; letter-spacing: .42em;
  color: rgba(245,243,237,.35);
  font-family: var(--serif);
}
.tab-btn { color: rgba(245,243,237,.58); padding: 12px 18px 14px; }
.tab-btn:hover { color: #f5f3ed; }
.tab-btn.active { color: #f5f3ed; border-bottom-color: var(--accent); }

/* ---------- 面板标题：超大衬线 + 字距 ---------- */
.panel-head h2 { font-size: 42px; letter-spacing: .08em; position: relative; }
.panel-sub { letter-spacing: .14em; font-size: 13px; }
.panel-head { position: relative; }

/* ---------- 卡片：细边框 + 悬浮上浮 + 红边 ---------- */
.case-card, .mat-card, .net-card, .exh-card, .inspire-card, .gen-card {
  border-color: var(--line);
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case-card:hover, .mat-card:hover, .exh-card:hover, .net-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.case-card-visual, .net-img-wrap { overflow: hidden; }
.case-card-visual img, .net-img { transition: transform .45s ease; }
.case-card:hover .case-card-visual img, .net-card:hover .net-img { transform: scale(1.05); }

/* ---------- 按钮：线性 → 填充 ---------- */
.btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all .18s ease;
  letter-spacing: .08em;
}
.btn:hover { background: var(--ink); color: #f5f3ed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { border-color: var(--line-dark); color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.chip { border: 1px solid var(--line-dark); background: transparent; color: var(--ink-soft); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #f5f3ed; }

/* ---------- 细节点缀 ---------- */
.toolbar { border-color: var(--line); }
.badge-src { background: var(--ink); }
.badge-exh { background: var(--accent); }
.badge-auto { background: var(--cool); }
.gallery-count, .assistant-hint { letter-spacing: .06em; }
.drawer h2 { font-size: 26px; letter-spacing: .06em; }
.drawer .en { letter-spacing: .22em; font-size: 11px; }

/* ---------- 页脚：墨黑块面 ---------- */
.site-footer {
  background: #141210;
  color: rgba(245,243,237,.5);
  border-top: none;
  max-width: none;
  margin-top: 48px;
  padding: 30px 24px 48px;
  letter-spacing: .08em;
}
.site-footer a { color: rgba(245,243,237,.7); }

/* ---------- 项目工坊进度条 ---------- */
.ws-progress-fill { background: linear-gradient(90deg, var(--accent), var(--cool)); }
