/* ==========================================================================
   滤镜失效 · 前台样式
   调性参考：开心网 / QQ空间 / 早期博客 ——
     · 有明确「人格」的头像与昵称，不像现在的信息流那么冷
     · 卡片有边界感，但不用重阴影（那太"现代 APP"）
     · 主色用一个偏暖的珊瑚红（"滤镜碎掉"的警示感），不用冷蓝
   移动端优先（要打包 APK）。桌面端居中 720px 阅读宽度。
   ========================================================================== */

:root {
  --bg:        #0e1116;
  --bg-soft:   #151a22;
  --card:      #1a2029;
  --card-2:    #212832;
  --line:      #2a3441;
  --line-soft: #222b36;
  --text:      #e8edf3;
  --text-2:    #9aa7b6;
  --text-3:    #66748a;
  --brand:     #ff5a5f;
  --brand-2:   #ff8a5b;
  --brand-dim: rgba(255, 90, 95, .14);
  --ok:        #39c98a;
  --warn:      #ffb020;
  --bad:       #ff5470;
  --radius:    14px;
  --radius-sm: 9px;
  --wrap:      720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: rgba(14, 17, 22, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-icon { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 15px; letter-spacing: .5px; }
.brand-text em {
  font-style: normal; font-size: 11px; color: var(--text-3);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-search { flex: 1 1 auto; display: flex; max-width: 300px; }
.top-search input {
  flex: 1; min-width: 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-right: none; border-radius: 999px 0 0 999px;
  padding: 7px 13px; outline: none; font-size: 13.5px;
}
.top-search input:focus { border-color: var(--brand); }
.top-search input::-webkit-search-cancel-button { filter: invert(.5); }
.top-search button {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: none;
  border-radius: 0 999px 999px 0; padding: 7px 14px;
  color: var(--text-2); cursor: pointer; font-size: 13.5px;
}
.top-search button:hover { color: var(--text); }
.topnav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topnav a {
  padding: 6px 11px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; white-space: nowrap;
}
.topnav a:hover { color: var(--text); background: var(--bg-soft); }
.topnav a.on { color: var(--text); background: var(--bg-soft); }
.topnav a.btn-primary { margin-left: 4px; }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-text em { display: none; }
  .topnav { margin-left: auto; }
  .topnav a:not(.btn-primary) { display: none; }
}

/* ---------------------------------------------------------------- 容器 */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 60px; }

/* ---------------------------------------------------------------- 按钮 */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none; border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity .15s, transform .1s;
}
.btn-primary:hover { opacity: .92; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--line); color: var(--text-3);
  cursor: not-allowed; opacity: 1;
}
.btn-ghost {
  display: inline-block; background: transparent;
  border: 1px solid var(--line); color: var(--text-2);
  border-radius: 999px; padding: 8px 18px; font-size: 14px;
  cursor: pointer; white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 30px 0 18px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: .5px; }
.hero-sub { margin: 0; color: var(--text-2); font-size: 14px; }
.hero-tabs { display: flex; gap: 8px; margin-top: 16px; }
.hero-tabs a {
  padding: 6px 15px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px;
}
.hero-tabs a.on { color: var(--text); border-color: var(--brand); background: var(--brand-dim); }
.filter-note {
  margin: 6px 0 14px; padding: 9px 14px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px;
}
.filter-note a { color: var(--brand); margin-left: 6px; }

/* ---------------------------------------------------------------- 卡片流 */
.feed { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 15px 16px 8px;
}
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.card-author { font-size: 14px; font-weight: 600; }
.card-time { font-size: 12.5px; color: var(--text-3); }
.tag-state {
  margin-left: auto; font-size: 11.5px; padding: 2px 9px;
  border-radius: 999px; background: var(--bg-soft); color: var(--text-3);
}
.tag-state.pending { color: var(--warn); background: rgba(255,176,32,.12); }
.tag-state.rejected { color: var(--bad); background: rgba(255,84,112,.12); }
.spot-pill {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 11px; border-radius: 999px;
  background: var(--brand-dim); color: var(--brand);
  font-size: 12.5px; font-weight: 500;
}
.spot-pill:hover { background: rgba(255,90,95,.22); }
.card-title { margin: 0 0 8px; font-size: 16.5px; line-height: 1.45; }
.card-text { margin: 0 0 10px; color: #cfd8e3; font-size: 14.5px; white-space: pre-wrap; }
.card-imgs { display: grid; gap: 4px; margin-bottom: 10px; }
.card-imgs:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
.card-imgs:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.card-img { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.ai-mark {
  display: inline-block; margin: 0 0 8px;
  font-size: 11.5px; color: var(--text-3);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
}
.card-foot {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 0 6px; border-top: 1px solid var(--line-soft);
}
.act, .act-like, .act-danger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-2); font-size: 13.5px;
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.act:hover, .act-like:hover { color: var(--text); background: var(--bg-soft); }
.act-like.on { color: var(--brand); }
.act-like.on svg path { fill: var(--brand); stroke: var(--brand); }
.act-danger { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.act-danger:hover { color: var(--bad); }
.card-mini { padding: 13px 15px 8px; }
.card-mini .card-foot {
  display: flex; gap: 10px; font-size: 12.5px; color: var(--text-3);
}
.card-mini .card-stat { margin-left: auto; }

/* ---------------------------------------------------------------- 骨架/空态 */
.skeleton-card {
  height: 150px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%);
  background-size: 200% 100%;
  animation: sk 1.3s ease-in-out infinite;
}
@keyframes sk { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.empty { text-align: center; padding: 46px 20px; }
/*
 * ⚠️ 这两个「顶部留白」修饰类，是为了**消除内联 style=""** 而存在的。
 *    线上 CSP 是 `style-src 'self'`（不含 'unsafe-inline'）⇒ 内联 style
 *    属性会被**静默忽略**（元素照常显示，只是没样式），表现为
 *    「404 页的提示块贴在顶栏上」这种说不清是 bug 还是设计的观感问题。
 *    ⇒ 铁律：**不要写内联 style**，需要差异化留白就加修饰类。
 *    守卫见 test/csp_test.js。
 */
.empty--top-60 { margin-top: 60px; }
.empty--top-70 { margin-top: 70px; }
.empty-title { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.empty-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--text-3); }
.feed-more { text-align: center; padding: 20px 0; }
.feed-more button {
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-2); border-radius: 999px; padding: 8px 22px;
  cursor: pointer; font-size: 13.5px;
}
.feed-more button:hover { color: var(--text); }
.roadmap-note {
  margin-top: 22px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--text-2); font-size: 13.5px;
}
.roadmap-note b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.roadmap-note p { margin: 0; }

/* ---------------------------------------------------------------- 投稿页 */
.editor { padding: 26px 0; }
.editor-head h1 { margin: 0 0 6px; font-size: 24px; }
.editor-sub { margin: 0 0 22px; color: var(--text-2); font-size: 13.5px; }
.editor-form { display: flex; flex-direction: column; gap: 22px; }
.field > label {
  display: block; margin-bottom: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.req, .opt {
  font-size: 11.5px; font-weight: 400; padding: 1px 7px;
  border-radius: 999px; margin-left: 5px;
}
.req { color: var(--brand); background: var(--brand-dim); }
.opt { color: var(--text-3); background: var(--bg-soft); }
.field input[type=text], .field input[type=search], .field select, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px; outline: none;
  font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; line-height: 1.6; }
.field-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.counter { font-size: 12.5px; color: var(--text-3); }
.hint { font-size: 12.5px; color: var(--text-3); }

/* 景点选择 */
.spot-picker { position: relative; }
.spot-sug {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.sug-item {
  padding: 9px 13px; cursor: pointer; font-size: 14px;
  display: flex; justify-content: space-between; gap: 10px;
}
.sug-item:hover { background: var(--bg-soft); }
.sug-item em { font-style: normal; color: var(--text-3); font-size: 12.5px; }
.sug-item.none { color: var(--text-3); cursor: default; font-size: 13px; }
.sug-item.none:hover { background: transparent; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-2); border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.on { color: var(--brand); border-color: var(--brand); background: var(--brand-dim); }
.chips-tag { display: flex; flex-wrap: wrap; }

/* 拖拽上传 */
.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 26px 18px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-dim); }
.drop-title { margin: 0 0 4px; font-size: 14.5px; }
.drop-sub { margin: 0; font-size: 12.5px; color: var(--text-3); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 520px) { .thumbs { grid-template-columns: repeat(3, 1fr); } }
.thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.65); color: #fff; font-size: 15px;
  line-height: 1; cursor: pointer;
}

/* AI 盒子 */
.btn-ai {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-dim); border: 1px solid rgba(255,90,95,.3);
  color: var(--brand); border-radius: 999px;
  padding: 6px 15px; font-size: 13.5px; cursor: pointer;
}
.btn-ai:hover { background: rgba(255,90,95,.2); }
.ai-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
}
.ai-box {
  margin-top: 12px; padding: 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 13px;
}
.ai-box-head { display: flex; align-items: center; justify-content: space-between; }
.ai-box-note { margin: 0; font-size: 12.5px; color: var(--text-3); }
.ai-close {
  background: transparent; border: none; color: var(--text-3);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.ai-result {
  padding: 13px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ai-text { margin: 0 0 10px; white-space: pre-wrap; font-size: 14.5px; }
.ai-warn {
  margin: 0 0 10px; font-size: 12.5px; color: var(--warn);
  background: rgba(255,176,32,.1); padding: 8px 11px; border-radius: var(--radius-sm);
}
.ai-actions { display: flex; gap: 9px; }

/* 免责声明 */
.disclaimer {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 16px;
}
.ck { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck-box {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px;
  border: 1.5px solid var(--text-3); border-radius: 5px;
  position: relative; transition: all .15s;
}
.ck input:checked + .ck-box { background: var(--brand); border-color: var(--brand); }
.ck input:checked + .ck-box::after {
  content: ''; position: absolute; left: 5.5px; top: 1.5px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ck input:focus-visible + .ck-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.ck-text { font-size: 14px; font-weight: 600; }
.disclaimer-body {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.form-msg {
  margin: 0; padding: 13px 15px; border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.65;
}
.form-msg.bad { background: rgba(255,84,112,.1); border: 1px solid rgba(255,84,112,.3); color: #ffb3c0; }
.form-msg b { color: var(--bad); }

/* ---------------------------------------------------------------- 详情页 */
.detail { padding: 24px 0; }
.status-banner {
  margin-bottom: 16px; padding: 12px 15px; border-radius: var(--radius);
  background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.3);
  color: #ffd79a; font-size: 13.5px;
}
.status-banner.bad {
  background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.3); color: #ffb3c0;
}
.status-banner em { display: block; font-style: normal; color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.detail-author { display: flex; align-items: center; gap: 10px; }
.detail-author b { display: block; font-size: 14.5px; }
.detail-author em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.detail-title { margin: 0 0 14px; font-size: 23px; line-height: 1.4; }
.detail-imgs { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.detail-img { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.detail-body { font-size: 16px; line-height: 1.85; color: #dbe3ec; margin-bottom: 16px; }
.detail-disclaimer {
  margin: 0 0 18px; padding: 11px 14px;
  background: var(--bg-soft); border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px; color: var(--text-3); line-height: 1.7;
}
.detail-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); margin-bottom: 26px;
}

/* 评论区 */
.comments { padding-top: 6px; }
.cm-h { margin: 0 0 14px; font-size: 17px; }
.cm-h em { font-style: normal; color: var(--text-3); font-size: 14px; margin-left: 4px; }
.cm-form { margin-bottom: 22px; }
.cm-form textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; outline: none;
  resize: vertical; font-size: 14.5px;
}
.cm-form textarea:focus { border-color: var(--brand); }
.cm-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px;
}
.cm-list { display: flex; flex-direction: column; gap: 15px; }
.cm-item { display: flex; gap: 10px; }
.cm-main { flex: 1; min-width: 0; }
.cm-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.cm-meta b { font-size: 13.5px; }
.cm-meta em { font-style: normal; font-size: 12px; color: var(--text-3); }
.cm-text { margin: 0; font-size: 14.5px; color: #cfd8e3; white-space: pre-wrap; }
.cm-empty { text-align: center; color: var(--text-3); font-size: 13.5px; padding: 26px 0; }

/* ---------------------------------------------------------------- 榜单 */
.rank-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
@media (max-width: 700px) { .rank-wrap { grid-template-columns: 1fr; } }
.rank-h { margin: 0 0 12px; font-size: 16px; color: var(--text-2); font-weight: 600; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
.rank-no {
  flex: 0 0 auto; width: 24px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--text-3);
}
.rank-no.top { color: var(--brand); }
.rank-main { flex: 1; min-width: 0; }
.rank-main b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-main em {
  font-style: normal; font-size: 12.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.rank-score { flex: 0 0 auto; font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- 景点 */
.spot { padding: 24px 0; }
.spot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.spot-head h1 { margin: 0 0 6px; font-size: 25px; }
.spot-meta { margin: 0 0 4px; font-size: 13.5px; color: var(--text-2); }
.spot-addr { margin: 0; font-size: 12.5px; color: var(--text-3); }
.spot-stat { text-align: center; flex: 0 0 auto; }
.spot-stat b { display: block; font-size: 26px; color: var(--brand); }
.spot-stat span { font-size: 12.5px; color: var(--text-3); }
.spot-intro {
  margin: 0 0 18px; padding: 13px 15px;
  background: var(--bg-soft); border-radius: var(--radius);
  font-size: 14px; color: var(--text-2); line-height: 1.75;
}
.spot-actions { margin-bottom: 26px; }

/* ---------------------------------------------------------------- 空间 */
.space { padding: 26px 0; }
.space-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.space-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff; flex: 0 0 auto;
}
.space-head h1 { margin: 0 0 3px; font-size: 21px; }
.space-sub { margin: 0; font-size: 13px; color: var(--text-3); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 520px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 14px 10px; text-align: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
.stat b { display: block; font-size: 21px; margin-bottom: 2px; }
.stat span { font-size: 12.5px; color: var(--text-3); }
.space-tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.tab {
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-2); border-radius: 999px;
  padding: 6px 16px; font-size: 13.5px; cursor: pointer;
}
.tab.on { color: var(--text); border-color: var(--brand); background: var(--brand-dim); }

/* ---------------------------------------------------------------- 弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 9, 13, .72);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-box {
  width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px;
}
.modal-head b { font-size: 16.5px; }
.modal-x {
  background: transparent; border: none; color: var(--text-3);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-note {
  margin: 0 0 16px; padding: 11px 13px; font-size: 12.5px; line-height: 1.7;
  background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--text-2);
}
.modal-box .field { margin-bottom: 15px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 4px; }

/* ---------------------------------------------------------------- 提示 */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 200;
  transform: translate(-50%, 16px);
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--text); padding: 10px 20px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255,84,112,.5); color: #ffb3c0; }

/* ---------------------------------------------------------------- 页脚 */
.foot { margin-top: 50px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 34px; }
.foot-slogan { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.foot-note { margin: 0 0 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.75; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.foot-nav a { font-size: 13px; color: var(--text-2); }
.foot-nav a:hover { color: var(--brand); }
.foot-copy { margin: 0; font-size: 12px; color: var(--text-3); }
