/* ============================================================
   壁纸工坊 WallpaperCraft · 暗色画廊
   深墨背景让壁纸成为主角；宋体展示字 + 朱砂单一强调色
   ============================================================ */

:root {
  --ink: #0b0d12;          /* 深墨底 */
  --ink-raise: #12151d;    /* 略抬升的底 */
  --panel: #141824;        /* 卡片面板 */
  --panel-2: #1a1f2e;      /* 高亮面板 */
  --line: #262d3d;         /* 发丝描边 */
  --line-soft: rgba(38, 45, 61, .6);
  --text: #eae4d6;         /* 暖纸白 */
  --muted: #8b92a5;        /* 灰蓝辅助 */
  --accent: #e8503a;       /* 朱砂红 */
  --accent-hi: #ff6a4d;    /* 朱砂亮部 */
  --accent-tint: rgba(232, 80, 58, .13);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(232, 80, 58, .07), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(62, 118, 138, .09), transparent 60%),
    var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 全局噪点颗粒，让大面积深色有胶片质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}

::selection { background: rgba(232, 80, 58, .45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3140; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a4358; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- 导航 ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 18, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.seal {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232, 80, 58, .35);
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; }
.brand-en { font-size: 10px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px;
  transition: color .2s; padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-hi); border-bottom: 1px solid var(--accent); }

/* ---------- 通用组件 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-family: var(--sans); font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s, color .18s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover {
  background: var(--accent-hi); border-color: var(--accent-hi);
  box-shadow: 0 10px 26px rgba(232, 80, 58, .35);
}
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 7px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-family: var(--sans); font-size: 13px;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: #3a4358; }
.chip.active {
  background: var(--accent-tint); border-color: var(--accent);
  color: var(--accent-hi);
}

.input, select.input {
  background: var(--ink-raise); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 9px 13px;
  font-family: var(--sans); font-size: 14px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 80, 58, .15); }
.input::placeholder { color: #5b6274; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%238b92a5' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}

.sec { padding: 64px 0 8px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.sec-index { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: .04em; }
.sec-note { color: var(--muted); font-size: 13px; margin-left: auto; }

/* 入场 stagger reveal */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .65s cubic-bezier(.2, .7, .3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 主页 hero ---------- */

.hero { padding: 88px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: .42em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(46px, 6.4vw, 82px); line-height: 1.12; letter-spacing: .03em;
}
.hero-title .dot { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 16.5px; line-height: 1.95; max-width: 560px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 12.5px; color: #5b6274; font-family: var(--mono); }

/* 多屏装置艺术：纯 CSS 渐变“壁纸”，缓慢漂移 */
.rig { display: grid; gap: 14px; }
.rig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.screen {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
  background-size: 180% 180%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.screen-a { aspect-ratio: 16 / 10;
  background-image: radial-gradient(120% 90% at 18% 8%, #2c4a63, transparent 60%),
    linear-gradient(200deg, #0d1420, #1d3a4a 55%, #7a3b2e); }
.screen-b { aspect-ratio: 16 / 10; animation-delay: -6s;
  background-image: radial-gradient(110% 100% at 85% 15%, #d9a44133, transparent 55%),
    linear-gradient(150deg, #101820, #274058 48%, #b0562f); }
.screen-wide { aspect-ratio: 32 / 9; animation-delay: -11s;
  background-image: linear-gradient(90deg, #0b1524, #123a4e 34%, #54372a 68%, #c2452e); }
.screen .tag {
  position: absolute; left: 10px; bottom: 8px;
  font-family: var(--mono); font-size: 10.5px; color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .38); padding: 2px 8px; border-radius: 4px;
}

/* ---------- 功能区块 ---------- */

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.feature { background: var(--ink-raise); padding: 28px 26px; transition: background .25s; }
.feature:hover { background: var(--panel); }
.feature-num { font-family: var(--serif); color: var(--accent); font-size: 21px; margin-bottom: 12px; }
.feature h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .05em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ---------- 下载区 ---------- */

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px;
  background: linear-gradient(180deg, var(--panel), var(--ink-raise));
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.dl-kind { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.dl-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dl-arrow { color: var(--accent); font-size: 22px; font-family: var(--serif); }

/* ---------- API 文档表 ---------- */

.api-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-raise); }
.api-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.api-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  letter-spacing: .1em; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.api-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.api-table tr:last-child td { border-bottom: none; }
.api-table tr:hover td { background: rgba(26, 31, 46, .5); }
.m {
  font-family: var(--mono); font-size: 10.5px; padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.m-post { color: var(--accent-hi); border-color: rgba(232, 80, 58, .5); }
.path { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.api-desc { color: var(--muted); }

/* ---------- 页脚 ---------- */

.footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 34px 0 42px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-inner .seal { width: 26px; height: 26px; font-size: 14px; border-radius: 5px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-hi); }

/* ---------- 社区页 ---------- */

.page-head { padding: 46px 0 10px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); letter-spacing: .05em; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.page-sub b { color: var(--accent-hi); font-weight: 600; font-family: var(--mono); }

.toolbar {
  position: sticky; top: 64px; z-index: 60;
  background: rgba(11, 13, 18, .87);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px; margin-bottom: 24px;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 9px; }
.chips-row:last-child { margin-bottom: 0; }
.chips-label { font-size: 12px; color: #5b6274; width: 34px; flex: none; letter-spacing: .1em; }
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.filters-row .input { flex: 1; min-width: 150px; }
.filters-row select.input { flex: 0 0 158px; }

/* 瀑布流：CSS columns 实现 masonry */
.masonry { columns: 4; column-gap: 18px; }
.card {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #3a4358; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
/* 卡片媒体区按壁纸真实宽高比等比例缩放（aspect-ratio 由内联样式注入） */
.card-media { overflow: hidden; background: var(--ink-raise); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 12px 14px 14px; }
.card-title { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; letter-spacing: .03em; }
.card-author { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-author .dim { color: #5b6274; }

.counters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 11px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.counter { display: inline-flex; align-items: center; gap: 4px; }
.counter svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }

.card-actions { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 11px; }
.act {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 8px; cursor: pointer; transition: all .18s;
}
.act:hover { color: var(--text); border-color: #3a4358; transform: translateY(-1px); }
.act.on { color: var(--accent-hi); border-color: rgba(232, 80, 58, .55); background: var(--accent-tint); }
.act.on svg { fill: currentColor; }
.act svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.load-wrap { text-align: center; padding: 24px 0 64px; }
.load-hint { color: #5b6274; font-size: 12.5px; margin-top: 12px; font-family: var(--mono); }

.empty { text-align: center; padding: 84px 20px; color: var(--muted); }
.empty-mark { font-family: var(--serif); font-size: 46px; color: var(--accent); opacity: .65; margin-bottom: 14px; }
.empty p { font-size: 14px; line-height: 2; }
.empty a { color: var(--accent-hi); }

/* ---------- 弹窗 / 提示 ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fade .2s both;
}
.modal {
  width: min(960px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  animation: pop .28s cubic-bezier(.2, .7, .3, 1) both;
}
/* 详情大图等比例完整展示（不裁切） */
.modal-media {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-raise); border-bottom: 1px solid var(--line);
}
.modal-media img { max-width: 100%; max-height: 56vh; width: auto; height: auto; display: block; }
.modal-acts { border-top: none; padding-top: 0; margin: 0 0 14px; }
.modal-body { padding: 20px 24px 24px; }
.modal-title { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.modal-meta { color: var(--muted); font-size: 12.5px; margin: 6px 0 14px; }
.modal-meta .tagx { border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; margin-right: 6px; font-size: 11.5px; }
.prompt-box {
  background: var(--ink-raise); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; font-size: 14px; line-height: 1.95; white-space: pre-wrap;
  max-height: 36vh; overflow: auto;
}
.modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions .spacer { flex: 1; }
.modal-sub {
  font-size: 12px; letter-spacing: .12em; color: #5b6274;
  margin: 16px 0 8px; font-weight: 600;
}
.modal-layout {
  background: var(--ink-raise); border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.modal-layout img { max-width: 100%; max-height: 34vh; width: auto; height: auto; display: block; }
.split-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.split-thumb {
  margin: 0; flex: 1 1 180px; max-width: 260px;
  background: var(--ink-raise); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.split-thumb img { width: 100%; height: 110px; object-fit: cover; display: block; }
.split-thumb figcaption { font-size: 11.5px; color: var(--muted); padding: 6px 9px; }
.detail-box {
  background: var(--ink-raise); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; font-size: 13px; line-height: 1.9; white-space: pre-wrap;
  max-height: 30vh; overflow: auto; color: var(--text);
}

/* ---------- 放大查看器 ---------- */

/* 详情弹窗内所有图片可点击放大 */
.modal-media img, .modal-layout img, .split-thumb img { cursor: zoom-in; }

.vwr {
  position: fixed; inset: 0; z-index: 400;
  display: flex;
  background: rgba(6, 8, 12, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .2s both;
}
.vwr-stage {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; cursor: grab; touch-action: none;
}
.vwr-stage.dragging { cursor: grabbing; }
.vwr-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  user-select: none; -webkit-user-drag: none;
  will-change: transform;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.vwr-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: var(--muted); font-size: 12px; white-space: nowrap;
  background: rgba(11, 13, 18, .72); border: 1px solid var(--line);
  padding: 4px 14px; border-radius: 999px; pointer-events: none;
}
.vwr-side {
  width: 292px; flex: none; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line);
}
.vwr-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.vwr-title {
  flex: 1; font-family: var(--serif); font-size: 16px; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vwr-tools {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.vwr-tools .icon-btn { display: inline-flex; align-items: center; padding: 5px 8px; }
.vwr-tools .icon-btn svg {
  width: 14px; height: 14px; display: block;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.vwr-zoom { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 44px; text-align: center; }
.vwr-list {
  flex: 1; overflow: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.vwr-item {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--ink-raise); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--text); font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.vwr-item:hover { border-color: #3a4358; }
.vwr-item.active { border-color: var(--accent); background: var(--accent-tint); }
.vwr-item img {
  width: 72px; height: 48px; object-fit: cover; border-radius: 5px;
  flex: none; background: var(--panel-2); display: block;
}
.vwr-item-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.vwr-item-label .dim { font-size: 11px; font-family: var(--mono); }
.vwr-meta {
  padding: 10px 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; font-family: var(--mono);
}
@media (max-width: 760px) {
  .vwr { flex-direction: column; }
  .vwr-side { width: 100%; max-height: 42vh; border-left: none; border-top: 1px solid var(--line); }
  .vwr-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .vwr-item { flex: 0 0 200px; }
}
.group-name {
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  font-family: var(--serif); font-size: 19px; letter-spacing: .05em; color: var(--text);
  padding: 2px 8px; outline: none; min-width: 120px;
}
.group-name:hover { border-color: var(--line); }
.group-name:focus { border-color: var(--accent); background: var(--ink-raise); }
.panel-head .icon-btn { margin-left: auto; }

/* 管理台密码门禁 */
.gate-panel { max-width: 440px; margin: 48px auto 64px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 20px; }
.gate-note { margin: 0; font-size: 12.5px; line-height: 1.8; }
.api-auth-note { margin-top: 12px; font-size: 12.5px; line-height: 1.8; }

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 10px); } }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--text); padding: 11px 18px; border-radius: 8px;
  font-size: 13.5px; z-index: 300; max-width: 86vw;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  animation: toast-in .25s both;
}
.toast.out { animation: toast-out .3s both; }

/* ---------- 管理台 ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: border-color .2s; }
.stat:hover { border-color: #3a4358; }
.stat-num { font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.stat-num.hot { color: var(--accent-hi); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .08em; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.panel-head h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .05em; }
.panel-head .cnt { color: #5b6274; font-size: 12px; font-family: var(--mono); }
.tax-form { display: flex; gap: 8px; margin-bottom: 12px; }
.tax-form .input { flex: 1; min-width: 0; }
.tax-list { max-height: 430px; overflow: auto; }
.tax-row {
  display: grid; grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.7fr) auto;
  gap: 8px; align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tax-row:last-child { border-bottom: none; }
.tax-row input {
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 6px 8px; color: var(--text); font-family: var(--sans); font-size: 13.5px;
  width: 100%; outline: none; transition: all .15s;
}
.tax-row input:hover { border-color: var(--line); }
.tax-row input:focus { border-color: var(--accent); background: var(--ink-raise); }
.tax-row input.hint { color: var(--muted); font-size: 12.5px; }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12px;
  font-family: var(--sans); transition: all .15s; white-space: nowrap;
}
.icon-btn:hover { color: var(--accent-hi); border-color: var(--accent); }

.users-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.users-head .input { flex: 1; min-width: 180px; }
.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.table tr:hover td { background: rgba(26, 31, 46, .5); }
.cid { font-family: var(--mono); font-size: 11px; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-family: var(--mono); color: var(--accent-hi); }
.dim { color: #5b6274; }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .masonry { columns: 3; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 40px; }
  .panels { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .dl-grid { grid-template-columns: 1fr; }
  .toolbar { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; gap: 14px; }
  .brand-en { display: none; }
  .nav-links { gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .filters-row select.input { flex: 1; }
}
