/* ============================================================
   特殊资源库 · 通用样式
   ============================================================ */
:root {
  --bg: #0e1014;
  --bg-soft: #14171d;
  --panel: #191d25;
  --panel-2: #1f242e;
  --line: #2a3040;
  /* 比 --line 略亮一档的「可交互细线」：分页胶囊描边、分组竖线用它，
     否则 #2a3040 压在 #1f242e 上几乎看不见（对比度只有 1.16） */
  --line-2: #3a4351;
  --text: #e8e6e1;
  --text-dim: #9aa3b2;
  --text-mute: #6b7484;
  --gold: #c9a45c;
  --gold-2: #e3c583;
  --gold-dim: rgba(201, 164, 92, .16);
  --accent: #c9a45c;
  --danger: #d9534f;
  --ok: #4caf82;
  /* 待核价：收费项还没拿到官网价，标黄提醒定制师自己填 */
  --todo: #d99a2b;
  --todo-dim: rgba(217, 154, 43, .12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  /* 金色底上的文字色：深色主题用近黑，浅色主题必须换成白字，否则金底深字看不清 */
  --on-gold: #1a1508;

  /* 分段按钮（用车 / 不用车、车型、资质、季节等）专用配色 */
  --seg-track: #1c212b;
  --seg-edge: #333c4c;
  --seg-fg: #aab3c2;
  --seg-fg-hover: #e8e6e1;
  --seg-on-bg: #c9a45c;
  --seg-on-fg: #1a1508;
  --seg-on-edge: rgba(0, 0, 0, .28);

  /* 表格隔行底色（斑马纹）：比面板略亮一点，鼠标悬停时仍用 --panel-2 */
  --row-alt: #1d222b;
}

html[data-theme="light"] {
  --bg: #f5f3ef;
  --bg-soft: #ece9e3;
  --panel: #ffffff;
  --panel-2: #faf8f4;
  --line: #e2ddd3;
  --line-2: #d3ccbe;
  --text: #23262c;
  --text-dim: #5d6470;
  --text-mute: #8b919c;
  --gold: #a97f2e;
  --gold-2: #8a6620;
  --gold-dim: rgba(169, 127, 46, .12);
  --todo: #b8791a;
  --todo-dim: rgba(184, 121, 26, .12);
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);

  /* 浅色主题金色变深，深色字压不住，统一翻成白字 */
  --on-gold: #ffffff;

  --seg-track: #ece8e0;
  --seg-edge: #d2cabb;
  --seg-fg: #4b515e;
  --seg-fg-hover: #23262c;
  --seg-on-bg: #a97f2e;
  --seg-on-fg: #ffffff;
  --seg-on-edge: rgba(0, 0, 0, .2);

  /* 表格隔行底色（斑马纹）：比面板略暗一点 */
  --row-alt: #f7f5f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 500px at 80% -10%, var(--gold-dim), transparent 70%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::scrollbar { width: 8px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 基础控件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: transparent; color: var(--on-gold); font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.08); color: var(--on-gold); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(217, 83, 79, .4); }
.btn.danger:hover { background: rgba(217, 83, 79, .12); border-color: var(--danger); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 分段按钮（深浅两色都要看得见） ----------
   选中态：金底 + 主题自适应文字色（深底用黑字 / 浅底用白字）
   未选中态：独立的文字色变量，保证在两种底色上都有足够对比度       */
.seg {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--seg-track);
  border: 1px solid var(--seg-edge);
  border-radius: 11px;
}
.seg-btn {
  border: 0; background: transparent;
  color: var(--seg-fg); cursor: pointer;
  font-size: 13px; padding: 7px 15px; border-radius: 8px;
  transition: .16s; font-family: inherit; line-height: 1.2;
  white-space: nowrap;
}
.seg-btn:hover { color: var(--seg-fg-hover); background: color-mix(in srgb, var(--seg-fg) 12%, transparent); }
.seg-btn.on {
  background: var(--seg-on-bg);
  color: var(--seg-on-fg);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--seg-on-edge);
}
.seg-btn.on:hover { color: var(--seg-on-fg); background: var(--seg-on-bg); }
.seg-btn:disabled { opacity: .38; cursor: not-allowed; }
.seg.sm .seg-btn { font-size: 12px; padding: 5px 11px; border-radius: 7px; }

/* 分段按钮组前面的说明文字 */
.seg-label {
  font-size: 12.5px; color: var(--text-dim); margin-right: 10px;
}

.field {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  outline: none; transition: .16s;
}
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
textarea.field { resize: vertical; min-height: 76px; line-height: 1.6; }
select.field { cursor: pointer; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; border: 1px solid var(--line); color: var(--text-dim);
  background: var(--panel-2);
}
.tag.gold { border-color: rgba(201,164,92,.45); color: var(--gold-2); background: var(--gold-dim); }
.tag.todo { border-color: rgba(217,154,43,.5); color: var(--todo); background: var(--todo-dim); font-weight: 600; }

/* ---------- 顶栏 ----------
   两行：
     ① .topbar-row  头部信息（品牌 / 搜索框 / 主题 / 账号区）
     ② .topbar-nav  主导航，单独一行、整行居中
   搜索框仍留在第一行原来的位置，导航下移到头部信息下面 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 9px;
  padding: 12px 24px 9px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex; align-items: center; gap: 16px;
  /* 元素多时自动换行，别把「主题」按钮和右侧账号区挤出屏幕 */
  flex-wrap: wrap; row-gap: 8px;
  width: 100%;
}
/* 导航整行居中 */
.topbar-nav { display: flex; justify-content: center; width: 100%; }
.topbar-nav .nav { margin-left: 0; justify-content: center; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .5px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--on-gold); font-size: 15px; font-weight: 800;
}
.brand .sub { font-size: 11.5px; font-weight: 400; color: var(--text-mute); letter-spacing: 2px; }
/* 站点 Logo（config.php 的 site.logo） */
.brand .logo-img { display: block; width: auto; object-fit: contain; border-radius: 8px; background: transparent; }
.topbar .spacer { flex: 1; }

.search-wrap { position: relative; flex: 1; max-width: 460px; }
.search-wrap .field { padding-left: 38px; width: 100%; }
.search-wrap .ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); font-size: 14px; pointer-events: none;
}


/* 顶部导航 */
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 6px 14px; border-radius: 9px; font-size: 13.5px;
  color: var(--text-dim); transition: .16s; white-space: nowrap;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.on { background: var(--gold-dim); color: var(--gold-2); font-weight: 600; }

/* ---------- 居中的内容容器（新栏目统一用它） ---------- */
.wrap-center { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; }
/* 居中工具栏下的一段标题 / 说明 */
.panel-hd { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.ctr-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 布局 ---------- */
.layout { display: flex; align-items: flex-start; gap: 22px; padding: 22px 24px 60px; position: relative; z-index: 1; }
.side {
  width: 232px; flex: none; position: sticky; top: 76px;
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.side h4 { margin: 6px 10px 10px; font-size: 11.5px; letter-spacing: 2px; color: var(--text-mute); font-weight: 600; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 9px; cursor: pointer; color: var(--text-dim);
  transition: .14s; font-size: 13.5px;
}
.cat-item:hover { background: var(--panel-2); color: var(--text); }
.cat-item.on { background: var(--gold-dim); color: var(--gold-2); font-weight: 600; }
.cat-item .n { font-size: 11.5px; color: var(--text-mute); }
.main { flex: 1; min-width: 0; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .count { color: var(--text-dim); font-size: 13px; }
.toolbar .count b { color: var(--gold-2); font-size: 15px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
/* ===== 国家 / 城市 分组排版 ===== */
.geo-block { margin-bottom: 30px; }
.geo-head {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(90deg, var(--gold-dim), transparent 70%);
  border-left: 3px solid var(--gold); transition: .16s;
}
.geo-head:hover { background: linear-gradient(90deg, var(--gold-dim), var(--panel-2) 70%); }
.geo-head .fl { font-size: 24px; line-height: 1; }
.geo-head h3 { margin: 0; font-size: 19px; letter-spacing: 1px; }
.geo-head .n { font-size: 12.5px; color: var(--text-mute); margin-left: auto; }

.city-block { margin: 0 0 16px 6px; }
.city-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; transition: .14s;
}
.city-head:hover { background: var(--panel-2); }
.city-head .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none;
}
.city-head b { font-size: 14.5px; font-weight: 600; }
.city-head .n { font-size: 12px; color: var(--text-mute); }
.city-head::after {
  content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 8px;
}

/* 侧边树的展开箭头 */
.cat-item .tw { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.caret { display: inline-block; transition: .16s; color: var(--text-mute); font-size: 10px; }
.caret.op { transform: rotate(90deg); color: var(--gold); }
.sublist { margin: 2px 0 4px 18px; border-left: 1px dashed var(--line); padding-left: 4px; }
.cat-item.sub { padding: 5px 9px; font-size: 12.5px; }

/* 国家首字徽章（没有国旗时的兜底，现已基本被下面的国旗图替代） */
.cflag {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--on-gold); font-size: 12px; font-weight: 700; line-height: 1;
}
.cflag.lg { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.tag .cflag { width: 15px; height: 15px; border-radius: 4px; font-size: 10px; margin-right: 2px; vertical-align: -1px; }

/* 国旗图片：替代原来的「国家首字」简写。
   高 16px、宽度自适应（瑞士 1:1、英国 2:1，强行拉成同宽会变形），
   加一圈极淡的描边，浅色旗（如日本、芬兰）在深底上才不会糊进背景。 */
.cflag-i {
  height: 16px; width: auto; min-width: 21px; max-width: 30px;
  object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
  vertical-align: -3px; margin-right: 5px; flex: none;
}
.cflag-i.lg { height: 22px; min-width: 29px; max-width: 42px; border-radius: 4px; vertical-align: -5px; }
.tag .cflag-i { height: 13px; min-width: 17px; max-width: 24px; margin-right: 4px; vertical-align: -2px; }
.cflag-e { margin-right: 5px; }

/* 面包屑 */
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumb .sep { color: var(--text-mute); font-size: 13px; }

/* 紧凑视图下取消城市分块留白 */
.board .grid { margin-bottom: 6px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; cursor: pointer; transition: .18s; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold), transparent); opacity: 0; transition: .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .cat { font-size: 11.5px; color: var(--gold); letter-spacing: .5px; }
.card h3 { margin: 5px 0 6px; font-size: 16px; line-height: 1.45; font-weight: 650; }
.card .area { font-size: 12.5px; color: var(--text-mute); margin-bottom: 8px; }
.card .desc {
  font-size: 13px; color: var(--text-dim); display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .foot { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* 列表视图 */
.list .card { padding: 13px 16px; }
.list .card h3 { font-size: 15px; margin: 3px 0 4px; }
.list .card .desc { -webkit-line-clamp: 1; }

mark { background: rgba(201,164,92,.3); color: var(--gold-2); border-radius: 3px; padding: 0 2px; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-mute); }
.empty .big { font-size: 40px; opacity: .35; margin-bottom: 12px; }

/* ---------- 详情抽屉 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  z-index: 60; opacity: 0; pointer-events: none; transition: .2s;
}
.mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw);
  background: var(--panel); border-left: 1px solid var(--line);
  z-index: 61; transform: translateX(103%);
  transition: transform .26s cubic-bezier(.3,.8,.3,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.4);
}
.drawer.on { transform: none; }
/* 表头区：费用说明可能很长（机票/酒店/用车明细），限高后自己滚，
   否则会把下面的行程表挤成一条缝 */
.drawer .dh { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); max-height: 54vh; overflow-y: auto; overscroll-behavior: contain; }
.drawer .dh h2 { margin: 4px 0 8px; font-size: 20px; line-height: 1.4; }
.drawer .db { padding: 6px 22px 30px; overflow-y: auto; flex: 1; }
.drawer .sec { margin: 18px 0; }
.drawer .sec .lb {
  font-size: 11.5px; letter-spacing: 2px; color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.drawer .sec .tx { color: var(--text-dim); white-space: pre-wrap; font-size: 13.5px; }
.drawer .close {
  position: absolute; right: 16px; top: 16px; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2);
  cursor: pointer; display: grid; place-items: center;
}
.drawer .close:hover { border-color: var(--gold); color: var(--gold); }
/* 详情抽屉里的「编辑 / 删除」（普通用户也能改资源，2026-11-12 晚） */
.drawer .d-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.drawer .d-acts .hint-sm { color: var(--text-mute); font-size: 11.5px; }

/* ---------- 后台 ---------- */
.admin-wrap { max-width: 1280px; margin: 0 auto; }
/* 后台内容居中：面板统一宽度，表格与说明都对齐中线 */
.admin-wrap .main > .panel { margin-left: auto; margin-right: auto; }
.admin-wrap .main > .panel > h3,
.admin-wrap .main > .panel > .hint,
.admin-wrap .main > .panel > .toolbar { text-align: left; }
.admin-wrap .main > .panel > h3 { display: flex; align-items: center; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px;
}
.panel h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel h3 .bar { width: 3px; height: 15px; background: var(--gold); border-radius: 2px; }

table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th, table.tb td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.tb th { color: var(--text-mute); font-weight: 600; font-size: 12px; letter-spacing: .5px; }
table.tb tbody tr:hover { background: var(--panel-2); }
table.tb td.ell { max-width: 320px; }
table.tb .ell span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.on { display: flex; }
.modal .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  width: min(680px, 96vw); max-height: 90vh; overflow-y: auto; padding: 20px 22px;
  box-shadow: var(--shadow);
}
.modal .box h3 { margin: 0 0 16px; font-size: 17px; }
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frm .full { grid-column: 1 / -1; }
.frm label { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 5px; letter-spacing: .5px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--panel); border: 1px solid var(--gold); color: var(--text);
  padding: 11px 20px; border-radius: 12px; z-index: 90; box-shadow: var(--shadow);
  opacity: 0; transition: .22s; pointer-events: none; font-size: 13.5px;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--danger); }

.login { max-width: 340px; margin: 12vh auto; text-align: center; }
.login h2 { margin: 0 0 6px; font-size: 21px; }
.login p { color: var(--text-mute); font-size: 13px; margin: 0 0 18px; }

.hint { font-size: 12.5px; color: var(--text-mute); line-height: 1.7; }
.hint-sm { font-size: 11.5px; color: var(--text-mute); line-height: 1.6; }
.hint code {
  background: var(--panel-2); padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line); font-size: 12px;
}
.src-note { font-size: 12px; color: var(--text-mute); }
/* 顶栏右侧的部署版本：v2.0.1.<发包时间>，只做标识，不抢按钮的注意力 */
.ver-note {
  font-size: 11px; font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--text-mute); letter-spacing: 0; white-space: nowrap;
  padding: 0 2px; opacity: .8;
}

/* 顶栏账号区 */
.topbar .who {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--gold, #c9a45c); font-weight: 600;
  white-space: nowrap; padding: 0 2px;
}
.topbar .who .who-av {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--gold, #c9a45c); flex: none;
}
.topbar .who .who-ico { font-size: 14px; }

/* 用户中心 */
.frm .val { font-size: 14px; font-weight: 600; color: var(--text); }
.panel code {
  background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12px;
}

/* 用户中心 */
.uc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .uc-grid { grid-template-columns: 1fr; } }

/* 用户中心 · 账号信息（左头像 + 右资料 + 修改密码链接） */
.uc-acct { display: flex; align-items: flex-start; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.uc-acct-frm { flex: 1; min-width: 260px; }
.uc-acct-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.link-pwd {
  font-size: 13px; font-weight: 600; color: var(--gold, #c9a45c);
  text-decoration: none; border-bottom: 1px dashed var(--gold, #c9a45c);
  padding-bottom: 1px; transition: .16s;
}
.link-pwd:hover { color: var(--gold-2, #d9b978); }

/* 头像 */
.uc-av { width: 118px; flex: none; text-align: center; }
.uc-av-img,
.uc-av-ph {
  width: 96px; height: 96px; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-2, rgba(255,255,255,.03));
}
.uc-av-img { display: flex; align-items: center; justify-content: center; }
.uc-av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-av-ph {
  display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: var(--on-gold, #1a1a1a);
  background: linear-gradient(135deg, var(--gold, #c9a45c), var(--gold-2, #d9b978));
}
.uc-av-acts { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* 用户中心：页签居中 */
.uc-tabs-c { justify-content: center; }
.uc-main { text-align: left; }
.uc-main .uc-filter { justify-content: center; }

/* 用户中心「内容居中」的板块（我的行程 / 资料中心…）：
   整块居中、说明与计数居中，列表卡片内部仍左对齐，保证好读 */
.uc-sec-c { text-align: center; }
.uc-sec-c .uc-hint { text-align: center; margin: 0 0 12px; }
.uc-sec-c .uc-cnt { text-align: center; }
.uc-sec-c #planWrap .panel,
.uc-sec-c #caseWrap .panel { max-width: 940px; margin-left: auto; margin-right: auto; text-align: left; }
.uc-sec-c .tut-grid { max-width: 1040px; margin-left: auto; margin-right: auto; }
.uc-sec-c .tut-card { text-align: left; }
.uc-sec-c .uc-empty { text-align: center; }

.ver-line {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px;
  background: var(--panel-2, rgba(255,255,255,.02));
}
.ver-line.is-latest { border-color: var(--gold, #c9a45c); box-shadow: 0 0 0 1px rgba(201,164,92,.25) inset; }
.ver-line .vn { font-weight: 700; color: var(--gold, #c9a45c); font-size: 13px; }
.ver-line .vmeta { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.ver-badge {
  font-size: 10px; letter-spacing: 1px; padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--gold, #c9a45c); color: var(--gold, #c9a45c);
}
.ver-old .ver-badge { border-color: var(--line); color: var(--text-mute); }
.uc-empty { padding: 26px 14px; text-align: center; color: var(--text-mute); font-size: 13px; }

/* 用户中心页签（需求4：做成按钮模式 —— 胶囊按钮，选中金底） */
.uc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.uc-tab {
  appearance: none; cursor: pointer; font-family: inherit; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: var(--panel-2, rgba(255,255,255,.03));
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 9px;
  transition: all .16s; white-space: nowrap;
}
.uc-tab:hover { color: var(--text, #e8e6e1); border-color: var(--gold, #c9a45c); }
.uc-tab.on {
  color: var(--on-gold); background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: transparent; box-shadow: 0 2px 10px rgba(201, 164, 92, .22);
}
.uc-tab.on:hover { filter: brightness(1.06); color: var(--on-gold); }
.uc-tab .badge-n { margin-left: 2px; }
.uc-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.uc-filter .field { min-width: 150px; }
.uc-filter select.field { width: auto; }
/* 搜索框：缩短、固定宽度，和筛选下拉在同一行显示（以后新增板块也照这个来） */
.uc-filter .field.kw { width: 240px; min-width: 240px; flex: 0 0 auto; }
.uc-cnt { font-size: 11.5px; color: var(--text-mute); margin-bottom: 10px; }

/* 我的案例卡片 */
.mycase {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px;
  background: var(--panel-2, rgba(255,255,255,.02));
}
.mycase .mc-ico { font-size: 18px; width: 26px; text-align: center; }
.mycase .mc-main { flex: 1; min-width: 0; }
.mycase .mc-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mycase .mc-title .pen { opacity: .45; margin-left: 6px; font-size: 11px; }
.mycase .mc-title:hover { color: var(--gold, #c9a45c); }
.mycase .mc-title:hover .pen { opacity: 1; }
.mycase .mc-meta { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.mycase .mc-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--line);
  color: var(--text-mute); white-space: nowrap;
}
.mycase .mc-tag.plan { border-color: var(--gold, #c9a45c); color: var(--gold, #c9a45c); }

/* 后台：案例逐日编辑 */
.cday { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.cday .cd-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--gold, #c9a45c);
}
.cday .cd-head .sp { flex: 1; }
.cday .cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .cday .cd-grid { grid-template-columns: 1fr 1fr; } }
.cday .cd-grid .full { grid-column: 1 / -1; }
.cday label { display: block; font-size: 11.5px; color: var(--text-mute); margin-bottom: 3px; }
.cday .field { width: 100%; }
.citem { display: grid; grid-template-columns: 92px minmax(0,1fr) 110px 28px; gap: 6px; margin-top: 6px; }
.citem .field { font-size: 12.5px; padding: 5px 8px; }
.citem .ci-del { cursor: pointer; color: var(--text-mute); text-align: center; line-height: 30px; }
.citem .ci-del:hover { color: #e05c5c; }

/* 后台：案例版本历史 */
.cver {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px;
}
.cver .cv-n { font-weight: 700; color: var(--gold, #c9a45c); font-size: 13px; white-space: nowrap; }
.cver .cv-main { flex: 1; min-width: 0; }
.cver .cv-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cver .cv-meta { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.cver .cv-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-mute);
}
.cver .cv-tag.plan { border-color: var(--gold, #c9a45c); color: var(--gold, #c9a45c); }

@media (max-width: 900px) {
  .layout { flex-direction: column; padding: 16px; }
  .side { width: 100%; position: static; max-height: none; }
  .frm { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
}

/* ---------- 资源类型 + 用车报价表格 ---------- */
.tico { display: inline-block; width: 18px; text-align: center; opacity: .85; margin-right: 2px; }
.car-table td { vertical-align: top; padding: 10px; }
.car-table td.ccity { max-width: 140px; white-space: normal; overflow-wrap: anywhere; color: var(--text-dim); font-size: 12.5px; }
.car-table tbody tr { cursor: pointer; }
.car-table .price-line { line-height: 1.75; color: var(--text-dim); font-size: 12.5px; }
.car-table .price-line:first-child { color: var(--text); }
.car-table .price-line + .price-line { border-top: 1px dashed var(--line); padding-top: 3px; margin-top: 3px; }
.car-table .tnote { color: var(--text-mute); font-size: 12.5px; line-height: 1.7; max-width: 260px; }
.car-table .dim { color: var(--text-mute); }

/* ---------- 后台：自动保存状态条 ---------- */
.autobar {
  max-width: 1280px; margin: 14px auto -6px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--text-dim); line-height: 1.6;
}
.autobar .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--text-mute); box-shadow: 0 0 0 3px rgba(150,150,150,.12);
  transition: .2s;
}
.autobar.on { border-color: rgba(76,175,125,.42); }
.autobar.on .dot { background: #4caf7d; box-shadow: 0 0 0 3px rgba(76,175,125,.18); }
.autobar.warn .dot { background: #d0a03a; box-shadow: 0 0 0 3px rgba(208,160,58,.18); }
.autobar code {
  background: var(--panel-2); padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line); font-size: 11.5px;
}
.autobar b { color: var(--gold); font-weight: 600; }
.autobar .btn { margin-left: auto; flex: none; }

/* ---------- 案例名称：列表内直接改名 ---------- */
.tb td.cname { cursor: text; }
.tb td.cname .cn-t {
  border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s;
}
.tb td.cname:hover .cn-t { color: var(--gold); border-bottom-color: var(--gold); }
.tb td.cname .cn-pen {
  opacity: .45; margin-left: 7px; font-size: 12px; color: var(--gold);
  transition: opacity .15s; vertical-align: 1px;
}
.tb td.cname:hover .cn-pen { opacity: 1; }
.inline-edit { width: 100%; min-width: 240px; padding: 6px 9px; font-size: 13px; }
.pv-name { width: 100%; min-width: 240px; padding: 5px 8px; font-size: 12.5px; }

/* ---------- 景点配图（列表封面 + 详情 6 图） ---------- */
.card.has-ph { padding-top: 0; }
.card-ph {
  position: relative; margin: 0 -17px 13px; aspect-ratio: 16 / 9;
  background: #0b0b0d; overflow: hidden; border-bottom: 1px solid var(--line);
}
.card-ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.card-ph::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .58)); pointer-events: none;
}
.card:hover .card-ph img { transform: scale(1.045); }
.card-ph .n {
  position: absolute; right: 9px; bottom: 8px; z-index: 2;
  font-size: 11px; letter-spacing: .4px; color: #f4e2ae;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px; padding: 2px 8px; backdrop-filter: blur(6px);
}

/* 列表视图：封面压成细长横幅，别把行撑得太高 */
.list .card.has-ph { padding-top: 13px; }
.list .card-ph { margin: -13px -16px 10px; aspect-ratio: auto; height: 96px; }

/* 详情抽屉 */
.ph-sec .ph-num {
  margin-left: 8px; font-size: 11px; font-weight: 400;
  color: var(--text-mute); letter-spacing: 0;
}
.ph-wrap { margin-top: 9px; }
.ph-hero {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #0b0b0d; cursor: zoom-in;
}
.ph-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-hero.ph-fail::after {
  content: "图片加载失败：请确认 spot.php 与 assets/spot 已上传到服务器";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--text-mute);
}

.ph-hero .ph-tip {
  position: absolute; right: 9px; bottom: 8px;
  font-size: 11px; color: rgba(255, 255, 255, .78);
  background: rgba(0, 0, 0, .5); border-radius: 999px; padding: 2px 9px;
  opacity: 0; transition: opacity .2s;
}
.ph-hero:hover .ph-tip { opacity: 1; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ph-cell {
  padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #0b0b0d; cursor: zoom-in; aspect-ratio: 16 / 9; display: block;
  transition: border-color .18s;
}
.ph-cell:hover { border-color: var(--gold); }
.ph-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.ph-cell:hover img { transform: scale(1.07); }

/* 「打开相册」按钮：缩略图只放得下几张，这里给一个明确的入口 */
.ph-more {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 9px;
  padding: 9px 12px; cursor: pointer; text-align: left; font-size: 12.5px;
  background: rgba(212, 175, 55, .06); border: 1px solid rgba(212, 175, 55, .26);
  border-radius: 9px; color: var(--text);
  transition: background .16s, border-color .16s;
}
.ph-more:hover { background: rgba(212, 175, 55, .13); border-color: var(--gold); }
.ph-more span { color: var(--gold); font-weight: 600; letter-spacing: .3px; }
.ph-more em { font-style: normal; margin-left: auto; color: var(--text-mute); font-size: 11.5px; }
.ph-empty {
  font-size: 12.5px; color: var(--text-mute); padding: 16px;
  text-align: center; border: 1px dashed var(--line); border-radius: 10px;
}

/* 详情图灯箱 */
.phbox {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(6, 6, 8, .94); backdrop-filter: blur(6px); padding: 4vmin;
}
.phbox.on { display: flex; }
.phbox-img {
  max-width: 94vw; max-height: 72vh; object-fit: contain; cursor: pointer;
  border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); background: #000;
}
/* 相册缩略条：一家酒店 10 张图一眼看全，点哪张跳哪张 */
.phbox-thumbs {
  margin-top: 12px; display: flex; gap: 6px; max-width: 92vw;
  overflow-x: auto; padding: 2px; scrollbar-width: thin;
}
.phbox-thumbs::-webkit-scrollbar { height: 6px; }
.phbox-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 99px; }
.phbox-th {
  flex: none; width: 74px; aspect-ratio: 16 / 9; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; overflow: hidden;
  background: #000; opacity: .55; transition: opacity .16s, border-color .16s, box-shadow .16s;
}
.phbox-th:hover { opacity: .92; }
.phbox-th.on {
  opacity: 1; border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .45), 0 6px 18px rgba(0, 0, 0, .5);
}
.phbox-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phbox-bar {
  margin-top: 14px; display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: rgba(255, 255, 255, .72);
}
.phbox-cap { max-width: 64vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phbox-no {
  color: var(--gold); border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px; padding: 1px 9px; flex: none;
}
.phbox-x, .phbox-nav {
  position: absolute; background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  width: 42px; height: 42px; font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.phbox-x:hover, .phbox-nav:hover { background: var(--gold); color: #1a1508; border-color: transparent; }
.phbox-x { top: 18px; right: 18px; font-size: 16px; }
.phbox-prev { left: 18px; top: 50%; margin-top: -21px; }
.phbox-next { right: 18px; top: 50%; margin-top: -21px; }
@media (max-width: 720px) {
  .phbox-prev { left: 8px; }
  .phbox-next { right: 8px; }
  .phbox-img { max-height: 74vh; }
}

/* ============================================================
   统一分页组件（assets/js/pager.js）
   ------------------------------------------------------------
   结构：共 N 项   每页 [24▾] 条   ‹  1 2 3 … 9  ›   转到 [ ] 页
   颜色全部走主题变量，深浅两套主题通用；当前页用金色实底。
   注意：本段必须留在 style.css —— 所有页面都加载它。
   以前放在 apps.css（只有后台/案例/行程等页面加载），
   前台资源查询压根拿不到这些规则，翻页按钮就退化成浏览器默认样式。
   ============================================================ */
/* 没有分页时不要留一条空白 */
.pg-box:empty { display: none; }
.pg-box { width: 100%; }

/* 分页条：一条横贯的细线 + 居中的三组控件（统计 / 页码 / 跳转） */
.pg {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0; width: 100%;
  margin: 18px 0 0; padding: 13px 2px 2px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
/* 控件分组：组内窄间距，组与组之间用细竖线隔开 */
.pg-grp { display: inline-flex; align-items: center; gap: 5px; }
.pg-meta { gap: 10px; }
.pg-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 12px; }

.pg-total { white-space: nowrap; color: var(--text-mute); letter-spacing: .2px; }
.pg-total b { color: var(--gold-2); font-weight: 600; margin: 0 2px; font-size: 13px; }

/* 每页条数选择 */
.pg-size { gap: 6px; white-space: nowrap; }
.pg-size label { color: var(--text-mute); }
.pg-sel {
  height: 28px; padding: 0 21px 0 9px; border-radius: 8px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background-color: var(--panel-2); color: var(--text);
  font-family: inherit; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 10px 10px;
  transition: border-color .15s, background-color .15s;
}
.pg-sel:hover { border-color: var(--gold); }
.pg-sel:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }

/* 页码 / 上下页按钮：同一套 28px 胶囊，描边比底色亮一档 */
.pg-btn, .pg-in {
  height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-dim);
  font-size: 12.5px; line-height: 1; font-family: inherit;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s, transform .1s;
}
.pg-btn { min-width: 28px; padding: 0 8px; }
.pg-btn:hover:not(:disabled) {
  border-color: var(--gold); color: var(--gold-2); background: var(--bg-soft);
}
.pg-btn:active:not(:disabled) { transform: translateY(1px); }
.pg-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }

/* 不可用的上一页 / 下一页：留壳但收起颜色，仍看得出是「到头了」而不是消失了 */
.pg-nav:disabled {
  cursor: default; color: var(--text-mute); background: transparent;
  border-color: var(--line); opacity: .55;
}

/* 当前页：金色实底 + 极轻的投影，作为整条里唯一的强调点 */
.pg-num.on {
  border-color: var(--gold); background: var(--gold); color: var(--on-gold);
  font-weight: 700; box-shadow: 0 2px 10px var(--gold-dim);
}
.pg-num.on:hover { color: var(--on-gold); border-color: var(--gold); background: var(--gold); }

/* 上下页箭头：用 SVG，几何对齐比字符稳 */
.pg-nav { display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.pg-nav svg { display: block; }

/* 省略号：不占位、不设边框 */
.pg-dots {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 28px; color: var(--text-mute);
  letter-spacing: 1px; user-select: none;
}

/* 转到第 N 页 */
.pg-jump { white-space: nowrap; gap: 6px; }
.pg-jump label { color: var(--text-mute); }
.pg-in { width: 44px; text-align: center; color: var(--text); padding: 0 4px; }
.pg-in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }
.pg-in::-webkit-outer-spin-button, .pg-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 亮色主题：描边由 --line-2 统一给出，这里只换下拉箭头颜色、减弱金色投影 */
html[data-theme="light"] .pg-sel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b919c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
html[data-theme="light"] .pg-num.on { box-shadow: 0 2px 8px rgba(169, 127, 46, .18); }

@media (max-width: 780px) {
  .pg { padding-top: 12px; }
  .pg-grp { flex-wrap: wrap; justify-content: center; }
  .pg-sep { display: none; }
  .pg-total { width: 100%; text-align: center; margin-bottom: 8px; }
  .pg-grp + .pg-grp { margin-top: 8px; }
}

/* ============================================================
   资源新增弹窗（assets/js/itemform.js）
   ------------------------------------------------------------
   字段与后台「新增资源」一致，但前台只有 style.css 这一套样式，
   因此这里补三样东西：弹窗加宽、配图格子、脚注文字。
   其余（.modal / .frm / .field / .btn / .acts）直接复用基础样式。
   ============================================================ */
.modal.res .box { width: min(880px, 96vw); }
.ifm-note { font-size: 11.5px; color: var(--text-mute); font-weight: 400; margin-left: 4px; }
.ifm-hint { font-size: 11.5px; color: var(--text-mute); line-height: 1.7; margin-top: 6px; }
.ifm-hint b { color: var(--gold-2); font-weight: 600; }

/* 六宫格：已选 / 待传统一按 16:9 摆 */
.phg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.phg-c {
  position: relative; height: 78px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.phg-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phg-c .n {
  position: absolute; left: 5px; bottom: 4px; padding: 0 5px; border-radius: 6px;
  font-size: 10.5px; line-height: 16px; background: rgba(0, 0, 0, .58); color: #fff;
}
.phg-c .phg-x {
  position: absolute; right: 4px; top: 4px; width: 19px; height: 19px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 11px; line-height: 19px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s;
}
.phg-c:hover .phg-x { opacity: 1; }
.phg-c .phg-x:hover { background: var(--danger); }

/* 编辑已有资源时：标记为「待删除」的那张压暗并划掉，
   右上角按钮变成金色的「↺」，点一下就能撤销 —— 免得删错了没法回头 */
.phg-c.gone { border-color: var(--danger, #d9534f); }
.phg-c.gone img { opacity: .35; filter: grayscale(1); }
.phg-c.gone .n { background: var(--danger, #d9534f); color: #fff; }
.phg-c.gone .phg-x { opacity: 1; background: var(--gold); color: var(--on-gold, #1a1508); font-size: 12px; }
.phg-c.gone .phg-x:hover { background: var(--gold-2); color: var(--on-gold, #1a1508); }

.phg-add {
  height: 78px; border-radius: 8px; border: 1px dashed var(--line);
  background: transparent; color: var(--text-mute); font-size: 20px; line-height: 1;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.phg-add:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

@media (max-width: 720px) {
  .phg { grid-template-columns: repeat(3, 1fr); }
  .phg-c, .phg-add { height: 68px; }
  /* 触屏没有 hover：删除 / 撤销按钮常显，否则手机上点不到 */
  .phg-c .phg-x { opacity: 1; }
  /* 手机顶栏本来就挤，版本号让位给按钮；需要核对时看 install.php / upgrade.php 页头 */
  .ver-note { display: none; }
}
