/* ==========================================================
   知产汇 · 商标转让交易平台
   ========================================================== */
:root {
  --ink: #0d1b2a;
  --ink-2: #16283d;
  --ink-3: #24384f;
  --muted: #66748a;
  --muted-2: #8e9bb0;
  --line: #e4e9f1;
  --line-2: #eef1f6;
  --bg: #f6f7fa;
  --card: #ffffff;
  --brand: #1d4ed8;
  --brand-dark: #163da8;
  --brand-soft: #eaf0ff;
  --gold: #a97c34;
  --gold-2: #c99a3f;
  --gold-soft: #f8f0dd;
  --red: #c0392b;
  --green: #0f7b5f;
  --green-soft: #e6f4ef;
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.05);
  --shadow: 0 12px 34px -16px rgba(13, 27, 42, 0.22);
  --shadow-lg: 0 32px 70px -30px rgba(13, 27, 42, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* 滚动进度 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--brand));
  z-index: 200; transition: width 0.1s linear;
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow 0.25s ease, border-color 0.25s;
}
.topbar.scrolled { box-shadow: 0 6px 24px -18px rgba(13, 27, 42, 0.5); border-color: transparent; }
.topbar-inner { display: flex; align-items: center; gap: 34px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(140deg, var(--ink) 10%, var(--ink-3) 90%);
  color: var(--gold-2); display: grid; place-items: center;
  font-family: "Songti SC", "SimSun", serif; font-size: 21px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(201, 154, 63, 0.35);
}
/* 上传了 Logo 图片时，图标改为白底展示图片 */
.brand-mark.has-img { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; padding: 3px; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.brand-sub { font-size: 9px; letter-spacing: 0.22em; color: var(--muted-2); text-transform: uppercase; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-3); font-size: 14.5px; font-weight: 500; transition: 0.2s;
}
.nav a:hover { background: var(--line-2); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

.top-actions { display: flex; align-items: center; gap: 10px; }

.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  transition: 0.2s;
}
.user-chip:hover { border-color: #c9d4e6; box-shadow: var(--shadow-sm); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #4f7cf0); color: #fff;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.avatar.admin { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: var(--gold-2); }
.user-chip-name { font-size: 13.5px; font-weight: 500; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 196px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: 0.18s ease; z-index: 120;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px;
  border: 0; background: none; border-radius: 8px; font-size: 13.5px; color: var(--ink-3);
  cursor: pointer; text-align: left; transition: 0.15s;
}
.dropdown a:hover, .dropdown button:hover { background: var(--line-2); color: var(--brand); }
.dropdown .sep { height: 1px; background: var(--line-2); margin: 5px 6px; }
.dropdown .danger:hover { background: #fdf0ef; color: var(--danger); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s ease;
  white-space: nowrap; background: #fff; color: var(--ink-3);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(29, 78, 216, 0.8); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-2); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), #b8863b); color: #fff; box-shadow: 0 6px 18px -8px rgba(184, 134, 59, 0.9); }
.btn-gold:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover:not(:disabled) { border-color: #b9c7dc; background: #fbfcfe; }
.btn-ghost { background: transparent; color: var(--ink-3); }
.btn-ghost:hover:not(:disabled) { background: var(--line-2); }
.btn-danger { background: #fdf0ef; color: var(--danger); border-color: #f6d7d3; }
.btn-danger:hover:not(:disabled) { background: #fbe3e0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-link { border: 0; background: none; color: var(--brand); font-size: 13.5px; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ============ 表单 ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); font-size: 14px; font-family: inherit;
  transition: 0.18s; outline: none;
}
.textarea { height: auto; padding: 10px 13px; resize: vertical; min-height: 88px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.input::placeholder, .textarea::placeholder { color: #a9b4c6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted-2); }
.error-text { font-size: 12.5px; color: var(--danger); min-height: 18px; }

/* ============ 通用块 ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: 27px; letter-spacing: -0.02em; }
.section-desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(201, 154, 63, 0.16), transparent 60%),
              radial-gradient(900px 400px at 10% 110%, rgba(29, 78, 216, 0.3), transparent 65%),
              linear-gradient(150deg, #0b1622 0%, #102236 55%, #0c1a29 100%);
  padding: 74px 0 62px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  border: 1px solid rgba(201, 154, 63, 0.35); background: rgba(201, 154, 63, 0.09);
  border-radius: 999px; font-size: 12.5px; color: #e8cf9d; margin-bottom: 22px;
}
.hero-badge b { background: var(--gold-2); color: #241a08; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.16; letter-spacing: -0.025em; }
.hero h1 .accent {
  background: linear-gradient(100deg, #f0d9a8, var(--gold-2) 60%, #e9c987);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 16px; color: #b9c7d8; font-size: 15.5px; max-width: 560px; }

.hero-search { margin-top: 32px; max-width: 780px; }
.searchbar {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: #fff; border-radius: 13px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.searchbar .s-icon { color: var(--muted-2); margin-left: 10px; display: flex; }
.searchbar input {
  flex: 1; min-width: 0; border: 0; outline: none; height: 42px; font-size: 15px;
  color: var(--ink); background: transparent;
}
.searchbar .s-cat { width: 128px; height: 42px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background-color: #fff; }
.hero-hot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #8fa1b7; }
.hero-hot button {
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  color: #cfdae7; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; transition: 0.2s;
}
.hero-hot button:hover { background: rgba(201, 154, 63, 0.16); border-color: rgba(201, 154, 63, 0.4); color: #f0d9a8; }

/* ============ 分类 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-item {
  display: flex; flex-direction: column; gap: 2px; padding: 15px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  transition: 0.2s; cursor: pointer;
}
.cat-item:hover { border-color: #b9c9e3; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-item .c-id { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; font-weight: 600; }
.cat-item .c-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cat-item .c-count { font-size: 11.5px; color: var(--muted-2); }

/* ============ 商标卡片 ============ */
.tm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tm-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: 0.24s ease; cursor: pointer;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdaea; }
.tm-thumb {
  position: relative; height: 128px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef2f9, #f8fafc);
  border-bottom: 1px solid var(--line-2); overflow: hidden;
}
.tm-thumb .mark {
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 30px; font-weight: 700; letter-spacing: 0.06em; color: #fff;
  width: 74px; height: 74px; border-radius: 16px; display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px rgba(13, 27, 42, 0.5);
}
.tm-thumb.has-img { background: linear-gradient(135deg, #f5f8fc, #fbfcfe); }
.tm-thumb.has-img::after { display: none; }
.tm-thumb .mark-img {
  position: absolute; left: 8px; top: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  max-width: none; max-height: none;
  object-fit: contain; object-position: center;
  background: #fff; border-radius: 10px;
  padding: 4px; box-sizing: border-box;
  border: 1px solid var(--line-2);
}
.tm-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 45%);
}
.tm-thumb .cat-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(255, 255, 255, 0.92); color: var(--ink-3);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.tm-thumb .fav-btn {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: 0.2s;
}
.tm-thumb .fav-btn:hover { color: var(--red); border-color: #f0c8c2; transform: scale(1.06); }
.tm-thumb .fav-btn.on { color: #e05b4a; background: #fff3f1; border-color: #f6cfc8; }
.tm-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tm-name { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.tm-name .chev { color: #c3cddd; font-size: 15px; transition: 0.2s; }
.tm-card:hover .tm-name .chev { transform: translateX(3px); color: var(--brand); }
.tm-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.price { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 12px; margin-right: 1px; }
.price .num { font-size: 21px; letter-spacing: -0.02em; }
.price .unit { font-size: 11.5px; color: var(--muted-2); margin-left: 3px; font-weight: 500; }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--line-2); color: var(--muted); white-space: nowrap;
}
.badge-listed { background: var(--green-soft); color: var(--green); }
.badge-sold { background: #f3f4f7; color: #6b7280; }
.badge-unlisted { background: #fdf3e7; color: #a2601a; }
.badge-draft { background: #eef1f7; color: #5b6b84; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============ 流程 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 26px 22px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.step-no {
  font-size: 11px; letter-spacing: 0.16em; color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.step-no i { display: block; width: 22px; height: 1px; background: var(--gold-2); }
.step h4 { margin-top: 12px; font-size: 16.5px; }
.step p { margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.assure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.assure { display: flex; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.assure-ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.assure-ico.gold { background: var(--gold-soft); color: var(--gold); }
.assure h4 { font-size: 15px; }
.assure p { margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 20px; padding: 52px 48px;
  background: linear-gradient(135deg, #0d1b2a, #17304a 70%, #12283d); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(201, 154, 63, 0.25);
  box-shadow: 0 0 0 40px rgba(201, 154, 63, 0.05), 0 0 0 90px rgba(201, 154, 63, 0.03);
}
.cta h3 { font-size: 27px; letter-spacing: -0.02em; }
.cta p { margin-top: 10px; color: #a8bacd; font-size: 14.5px; max-width: 520px; }
.cta .btn-gold { position: relative; z-index: 2; }

/* ============ 页脚 ============ */
.footer { background: #0b1622; color: #93a5bb; padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand-name { color: #fff; }
.footer h5 { color: #e3ebf4; font-size: 13px; letter-spacing: 0.06em; margin: 0 0 14px; font-weight: 600; }
.footer li { margin-bottom: 9px; font-size: 13px; }
.footer a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #6e8098; }
.footer-desc { margin-top: 14px; font-size: 13px; line-height: 1.8; max-width: 300px; }

/* ============ 页面头 ============ */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0; }
.breadcrumb { font-size: 12.5px; color: var(--muted-2); display: flex; gap: 7px; align-items: center; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--brand); }
.page-title { font-size: 25px; letter-spacing: -0.02em; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ============ 超市布局 ============ */
.market { display: grid; grid-template-columns: 236px 1fr; gap: 26px; align-items: start; padding: 26px 0 64px; }
.filters { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; }
.filter-block { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h5 { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; margin: 0 0 11px; font-weight: 600; }
.filter-list { max-height: 264px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: -4px -6px; padding: 4px 6px; }
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: #d5dde9; border-radius: 4px; }
.filter-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: 6px; font-size: 13.5px; color: var(--ink-3);
  cursor: pointer; border: 0; background: none; text-align: left; width: 100%; transition: 0.15s;
}
.filter-opt:hover { background: var(--line-2); }
.filter-opt.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.filter-opt .n { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.filter-opt.on .n { color: var(--brand); }

.market-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 0 16px; flex-wrap: wrap;
}
.result-count { font-size: 13.5px; color: var(--muted); }
.result-count b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.sorts { display: flex; gap: 2px; padding: 3px; background: #eef1f6; border-radius: 8px; }
.sorts button {
  border: 0; background: none; padding: 6px 13px; border-radius: 6px; font-size: 13px;
  color: var(--muted); cursor: pointer; transition: 0.18s; font-weight: 500;
}
.sorts button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 13.5px; color: var(--ink-3); cursor: pointer; transition: 0.15s;
}
.pager button:hover:not(:disabled) { border-color: #b9c7dc; }
.pager button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager .ellipsis { color: var(--muted-2); padding: 0 4px; }

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted-2); }
.empty h4 { font-size: 15.5px; }
.empty p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ============ 详情页 ============ */
.detail { display: grid; grid-template-columns: 1.65fr 1fr; gap: 26px; padding: 26px 0 70px; align-items: start; }
.detail-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-hero { padding: 32px; display: flex; gap: 26px; border-bottom: 1px solid var(--line-2); background: linear-gradient(160deg, #fbfcfe, #f5f8fc); }
.detail-mark {
  width: 108px; height: 108px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0;
  font-family: "Songti SC", "SimSun", serif; font-size: 42px; font-weight: 700; color: #fff;
  box-shadow: 0 18px 40px -20px rgba(13, 27, 42, 0.55);
}
.detail-mark-img {
  height: 132px; width: auto; min-width: 132px; max-width: 240px; border-radius: 18px; flex-shrink: 0;
  object-fit: contain; background: #fff; padding: 10px;
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px -24px rgba(13, 27, 42, 0.35);
}
.detail-head-info { flex: 1; min-width: 0; }
.detail-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-title { font-size: 30px; letter-spacing: 0.01em; }
.detail-meta-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.detail-meta-row b { color: var(--ink-3); font-weight: 600; }
.detail-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

.detail-section { padding: 26px 32px; border-bottom: 1px solid var(--line-2); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h4 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.detail-section h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--gold-2); }
.desc-text { color: #43536a; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.spec-item { background: #fff; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.spec-item span { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.spec-item b { font-weight: 600; color: var(--ink-3); text-align: right; min-width: 0; }
.spec-item.full { grid-column: 1 / -1; }
.spec-item.full b { line-height: 1.75; letter-spacing: 0.02em; word-break: break-word; }

/* 同名多类商标 */
.same-count {
  font-style: normal;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.01em;
}
.same-list { display: flex; flex-direction: column; gap: 9px; }
.same-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.same-item:hover {
  border-color: #d3ddec;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.same-thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #fff;
}
.same-thumb img { width: 100%; height: 100%; object-fit: contain; }
.same-info { flex: 1; min-width: 0; }
.same-cat { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.same-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.same-price { color: var(--red); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.same-sold {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.same-arrow { color: var(--muted-2); flex-shrink: 0; display: inline-flex; }
.same-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--brand);
  text-decoration: none;
}
.same-more:hover { text-decoration: underline; }

/* 右侧报价栏：整列 sticky，滚动时跟随视口；列本身不承压高度 */
.detail-side { position: sticky; top: 92px; align-self: start; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.quote-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.quote-price { margin-top: 4px; color: var(--red); display: flex; align-items: baseline; gap: 3px; }
.quote-price .cur { font-size: 17px; font-weight: 600; }
.quote-price .num { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.quote-price .unit { font-size: 12px; color: var(--muted-2); margin-left: 4px; }
.quote-note { margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.quote-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.quote-assure { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 9px; }
.quote-assure li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.quote-assure svg { color: var(--green); flex-shrink: 0; }

/* ============ 认证页 ============ */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 60px 56px;
  background: radial-gradient(700px 400px at 90% 10%, rgba(201, 154, 63, 0.18), transparent 60%),
              linear-gradient(150deg, #0b1622, #12283d);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side h2 { font-size: 32px; line-height: 1.3; letter-spacing: -0.02em; }
.auth-side h2 em { font-style: normal; color: var(--gold-2); }
.auth-side p { margin-top: 16px; color: #a4b6c9; font-size: 14.5px; line-height: 1.8; }
.auth-points { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point .ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(201, 154, 63, 0.14); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.auth-point b { display: block; font-size: 13.5px; font-weight: 600; }
.auth-point span { font-size: 12.5px; color: #8fa1b7; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px 32px; background: #fff; }
.auth-card { width: min(420px, 100%); }
.auth-card h3 { font-size: 25px; letter-spacing: -0.02em; }
.auth-card .sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }

/* 登录方式切换（手机号 / 邮箱） */
.auth-methods { display: inline-flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 10px; margin-top: 20px; }
.auth-method {
  border: 0; background: none; padding: 7px 20px; border-radius: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  font-family: inherit; transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.auth-method.on { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(13, 27, 42, 0.12); }
.auth-method:hover { color: var(--ink-3); }

/* 验证码一行 */
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-btn { flex-shrink: 0; width: 116px; height: 42px; padding: 0 10px; font-size: 13.5px; }
.code-btn.counting { color: var(--muted-2); border-color: var(--line); background: #f8fafc; }

/* 图形验证码 */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label-link { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--brand); cursor: pointer; }
.label-link:hover { text-decoration: underline; }
.cap-row { display: flex; gap: 8px; align-items: stretch; }
.cap-row .input { flex: 1; min-width: 0; }
.cap-img {
  flex-shrink: 0; width: 116px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: 9px; background: #f2f5fa; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; font-size: 12px; color: var(--muted);
}
.cap-img svg { width: 100%; height: 100%; display: block; }
.cap-img.is-loading { opacity: 0.45; }

/* 图形验证码弹层（点「获取验证码」才出现） */
.cap-tip { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin-bottom: 14px; }
.cap-tip b { color: var(--ink); font-weight: 600; }
.cap-field .cap-img { width: 132px; }
.cap-field .cap-row { max-width: 360px; }

/* 注册协议勾选 */
.agree-row {
  display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 4px;
  font-size: 12.5px; color: var(--muted); line-height: 1.75; cursor: pointer;
}
.agree-row input {
  width: 15px; height: 15px; margin: 3px 0 0; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer;
}
.agree-row .agree-link {
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: var(--brand); cursor: pointer;
}
.agree-row .agree-link:hover { text-decoration: underline; }
.agree-row.shake { animation: agreeShake 0.42s ease; }
@keyframes agreeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* 协议正文 */
.legal-doc { font-size: 13px; color: #43536a; line-height: 1.9; }
.legal-doc .legal-meta { font-size: 12px; color: var(--muted-2); margin-bottom: 10px; }
.legal-doc .legal-intro {
  padding: 12px 14px; background: var(--line-2); border-radius: 9px;
  margin-bottom: 16px; color: var(--ink-3);
}
.legal-doc h4 { font-size: 13.5px; color: var(--ink); margin: 18px 0 6px; }
.legal-doc h4:first-of-type { margin-top: 0; }
.legal-doc p { margin: 0 0 8px; }
.legal-doc ul { margin: 0 0 8px; padding-left: 19px; list-style: disc outside; }
.legal-doc li { margin-bottom: 6px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch button { border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; font-size: 13.5px; padding: 0 3px; }
.auth-demo b { color: var(--ink-3); }

/* ============ 会员中心 ============ */
.member { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 28px 0 70px; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 92px; }
.side-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.side-user .avatar { width: 42px; height: 42px; font-size: 16px; }
.side-user b { display: block; font-size: 14.5px; }
.side-user span { font-size: 12px; color: var(--muted-2); }
.side-nav { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
  border: 0; background: none; font-size: 13.5px; color: var(--ink-3); cursor: pointer; text-align: left; transition: 0.15s;
}
.side-nav button:hover { background: var(--line-2); }
.side-nav button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 16px; }
.panel-body { padding: 22px; }

/* ============ 后台 ============ */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 68px); }
.admin-side { background: #0c1a29; color: #8fa3b9; padding: 22px 14px; position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; }
.admin-side-head { padding: 0 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 16px; }
.admin-side-head b { color: #fff; font-size: 14px; display: block; }
.admin-side-head span { font-size: 11px; letter-spacing: 0.1em; color: #6e8299; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  border: 0; background: none; color: #9db0c6; font-size: 13.5px; cursor: pointer; text-align: left; transition: 0.16s;
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav button.on { background: rgba(201, 154, 63, 0.14); color: #f0d9a8; font-weight: 600; }
.admin-nav .badge-dot { margin-left: auto; background: #c0392b; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; }
.admin-side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 11.5px; color: #5f7288; line-height: 1.7; }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.admin-head p { margin-top: 5px; font-size: 13px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--brand-soft); opacity: 0.5; }
.stat-card.gold::after { background: var(--gold-soft); }
.stat-card.green::after { background: var(--green-soft); }
.stat-card.dark::after { background: #e8ecf3; }
.stat-label { font-size: 12.5px; color: var(--muted); position: relative; z-index: 2; }
.stat-value { margin-top: 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; position: relative; z-index: 2; }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.stat-foot { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); position: relative; z-index: 2; }

.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar .grow { flex: 1; min-width: 180px; }
.admin-toolbar .input, .admin-toolbar .select { height: 38px; font-size: 13.5px; }
.bulkbar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px;
  background: var(--brand-soft); border: 1px solid #cfdcff; border-radius: 9px; font-size: 13px; color: #23418f;
}
.bulkbar b { font-variant-numeric: tabular-nums; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  text-align: left; padding: 11px 14px; background: #fafbfd; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; white-space: nowrap;
}
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfe; }
.table tbody tr.selected { background: #f4f7ff; }
.table .tname { font-weight: 600; color: var(--ink); }
.table .tname small { display: block; font-weight: 400; color: var(--muted-2); font-size: 11.5px; margin-top: 1px; }
.table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.checkbox { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfd; font-size: 12.5px; color: var(--muted); }

/* 导入 */
.dropzone {
  border: 1.5px dashed #c9d5e6; border-radius: 12px; padding: 40px 24px; text-align: center;
  background: #fbfcfe; transition: 0.2s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); }
.dropzone h4 { font-size: 15px; }
.dropzone p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.import-tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 9px; margin-bottom: 16px; width: fit-content; }
.import-tabs button { border: 0; background: none; padding: 7px 15px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.import-tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.import-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.preview-table { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.preview-table table { font-size: 12.5px; white-space: nowrap; }
.preview-table td, .preview-table th { padding-left: 10px; padding-right: 10px; }
.preview-table .thumb-s {
  width: 34px; height: 34px; min-width: 34px; max-width: none;
  border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line-2);
}
.preview-table .thumb-empty { color: var(--muted-2); font-size: 11px; }
.preview-table th.col-img, .preview-table td.col-img { width: 42px; padding-left: 6px; padding-right: 6px; }

/* 商标缩略图 / 图片选择器 */
.tm-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-thumb-s {
  width: 42px; height: 42px; border-radius: 9px; object-fit: contain; background: #fff;
  border: 1px solid var(--line-2); padding: 3px; flex-shrink: 0;
}
.tm-thumb-s.ph {
  display: grid; place-items: center; color: var(--muted-2); font-size: 11px; font-family: "Songti SC", serif;
  background: var(--line-2); border-style: dashed;
}
.img-picker { display: flex; gap: 14px; align-items: center; }
.img-picker-box {
  width: 92px; height: 92px; border-radius: 10px; border: 1px dashed var(--line); background: #fbfcfe;
  display: grid; place-items: center; overflow: hidden; color: var(--muted-2); font-size: 11.5px; flex-shrink: 0; text-align: center;
}
.img-picker-box img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.import-summary { display: flex; gap: 20px; padding: 14px 16px; background: var(--green-soft); border: 1px solid #c8e6db; border-radius: 10px; font-size: 13px; color: #0b5c47; margin-bottom: 14px; }
.import-error { background: #fdf2f0; border: 1px solid #f6d7d3; color: #8c2f22; padding: 12px 16px; border-radius: 10px; font-size: 12.5px; max-height: 180px; overflow: auto; }
.import-error li { padding: 3px 0; }

/* 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #c4d0e2; }
.tl-item:first-child::before { border-color: var(--gold-2); background: var(--gold-2); }
.tl-item b { font-size: 13.5px; }
.tl-item span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* ============ 模态 & 提示 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 20, 33, 0.5);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px;
  animation: fadeIn 0.16s ease;
}
.modal {
  width: min(620px, 100%); max-height: calc(100vh - 60px); overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: popIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal.wide { width: min(880px, 100%); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 16px 16px 0 0; flex: 0 0 auto; }
.modal-head h3 { font-size: 17px; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--line-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: #e4e9f1; color: var(--ink); }
.modal-body { padding: 22px 24px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fbfcfe; border-radius: 0 0 16px 16px; flex: 0 0 auto; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

.toast-root { position: fixed; top: 84px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 360px;
  padding: 12px 15px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; animation: slideIn 0.22s ease;
}
.toast .t-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.toast.success .t-ico { background: var(--green); }
.toast.error .t-ico { background: var(--danger); }
.toast.info .t-ico { background: var(--brand); }
.toast.out { animation: slideOut 0.2s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(20px); } }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { height: 258px; border-radius: var(--radius); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .import-grid { grid-template-columns: 1fr; }
  .tm-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .market { grid-template-columns: 210px 1fr; }
  .admin-shell { grid-template-columns: 200px 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .nav { display: none; }
  .hero { padding-top: 52px; }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .market { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-list { max-height: 170px; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .member { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 8px; padding: 12px; }
  .admin-side-head, .admin-side-foot { display: none; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-nav button { white-space: nowrap; }
  .admin-main { padding: 18px 16px 50px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 40px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .assure-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta h3 { font-size: 22px; }
}
@media (max-width: 560px) {
  .tm-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar .s-cat { display: none; }
  .section { padding: 48px 0; }
  .section-title { font-size: 22px; }
  .detail-hero { flex-direction: column; padding: 22px; }
  .detail-section { padding: 20px 22px; }
  .top-actions .btn span { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item.full { flex-direction: column; align-items: flex-start; gap: 6px; }
  .same-item { gap: 10px; padding: 10px 12px; }
  .same-sub { display: none; }
  .same-price { font-size: 13px; }
  .spec-item.full b { text-align: left; }
  .toast-root { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================
   商标详情页 v2（交易详情结构）
   ========================================================== */
.dt-page { padding-bottom: 70px; }

/* ---------- 首屏 ---------- */
.dt-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
/* 主图固定 300×300，窄屏按容器等比缩小并保持正方形 */
.dt-gallery { width: 300px; max-width: 100%; min-width: 0; margin: 0 auto; }
.dt-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(0deg, rgba(246, 247, 250, 0.7), rgba(255, 255, 255, 0.9)),
    repeating-conic-gradient(#f4f6fa 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dt-shot:hover { border-color: #cfdcef; box-shadow: 0 10px 26px -18px rgba(13, 27, 42, 0.35); }
.dt-shot img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.dt-letter {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 64px; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.dt-zoom {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 7px;
  background: rgba(13, 27, 42, 0.66); color: #fff;
  font-size: 11.5px; opacity: 0; transition: opacity 0.18s ease;
}
.dt-shot:hover .dt-zoom { opacity: 1; }
.dt-shot-tip { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.6; }

.dt-info { min-width: 0; padding-top: 2px; }
.dt-eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; letter-spacing: 0.06em; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px; padding: 4px 9px; font-weight: 600;
}
.dt-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.dt-title { font-size: 32px; letter-spacing: 0.01em; line-height: 1.25; margin: 0; }
.dt-subrow {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.dt-subrow b { color: var(--ink-3); font-weight: 600; }
.dt-dot { color: var(--line); }
.dt-views { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); }

.dt-price-box {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: linear-gradient(102deg, #fdf5f3 0%, #fbf8f1 58%, #f7faf8 100%);
  border: 1px solid #f2e2dd;
}
.dt-price { display: flex; align-items: baseline; gap: 4px; color: var(--red); }
.dt-price .cur { font-size: 18px; font-weight: 600; }
.dt-price .num { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.dt-price .unit { font-size: 13px; color: #a8756c; margin-left: 3px; }
.dt-price-suffix {
  margin-left: 10px; align-self: flex-end; margin-bottom: 7px;
  font-size: 11.5px; color: #a05a4e; background: rgba(192, 57, 43, 0.08);
  padding: 2px 8px; border-radius: 5px; letter-spacing: 0.02em;
}
.dt-price-note { margin-top: 8px; font-size: 12.5px; color: #7b6a63; line-height: 1.7; }
.dt-price-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.dt-price-chips span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green); }

.dt-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 30px; margin: 20px 0 0; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.dt-facts > div { display: flex; gap: 10px; min-width: 0; font-size: 13.5px; }
.dt-facts > div.full { grid-column: 1 / -1; }
.dt-facts dt { color: var(--muted); flex-shrink: 0; width: 62px; }
.dt-facts dd { margin: 0; color: var(--ink-3); font-weight: 600; min-width: 0; word-break: break-word; text-align: left; }
.dt-facts dd.dt-scope { font-weight: 400; color: #43536a; line-height: 1.75; }
.dt-dim { color: var(--muted-2); font-weight: 400; font-size: 12px; }
.dt-warn { color: #b4652a; }

.dt-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.dt-actions .btn { min-width: 0; }
.dt-actions .btn-primary { flex: 1; min-width: 190px; }
.dt-assure-row {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.dt-assure-row li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.dt-assure-row svg { color: var(--green); }

/* ---------- 主体 ---------- */
.dt-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px; margin-top: 22px; align-items: start;
}
.dt-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dt-sec {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 26px;
}
.dt-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.dt-sec-head h2 { margin: 0; font-size: 17.5px; letter-spacing: 0.01em; display: flex; align-items: baseline; gap: 9px; }
.dt-sec-head .en { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.dt-count { font-style: normal; font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 5px; }
.dt-lead { margin: -6px 0 14px; font-size: 13px; color: var(--muted); line-height: 1.8; }

.dt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.dt-table th, .dt-table td { border: 1px solid var(--line-2); padding: 11px 14px; text-align: left; vertical-align: middle; }
.dt-table th { width: 104px; background: #fafbfd; color: var(--muted); font-weight: 500; white-space: nowrap; }
.dt-table td { color: var(--ink-3); font-weight: 500; }
.dt-table td.dt-scope { font-weight: 400; line-height: 1.8; color: #43536a; }
.dt-table-mat th { width: auto; }
.dt-table-mat thead th:first-child { width: 88px; }
.dt-table-mat thead th:nth-child(2) { width: 33%; }
.dt-table-mat thead th:nth-child(3) { width: 26%; }
.dt-table-mat thead th { background: #f7f9fc; color: var(--ink-3); font-weight: 600; }
.dt-table-mat tbody th { width: 74px; color: var(--ink-3); font-weight: 600; background: #fafbfd; }
.dt-ok { color: var(--green); font-weight: 600; }
.dt-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.75;
}
.dt-note svg { flex-shrink: 0; margin-top: 3px; }
.dt-tagrow { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }

/* 交易流程 */
.dt-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dt-flow-item {
  position: relative; padding: 15px 16px 17px;
  border: 1px solid var(--line-2); border-radius: 11px; background: #fcfdff;
}
.dt-flow-no {
  font-size: 15px; font-weight: 700; color: var(--brand);
  letter-spacing: 0.04em; opacity: 0.55;
}
.dt-flow-item h4 { margin: 4px 0 0; font-size: 14.5px; }
.dt-flow-item p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* 好处 */
.dt-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dt-benefit { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 11px; }
.dt-benefit-ico {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--gold-soft); color: var(--gold);
}
.dt-benefit h4 { margin: 10px 0 0; font-size: 14.5px; }
.dt-benefit p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.78; }

/* FAQ */
.dt-faq details { border-bottom: 1px solid var(--line-2); }
.dt-faq details:last-child { border-bottom: 0; }
.dt-faq summary {
  list-style: none; cursor: pointer; padding: 13px 26px 13px 0;
  position: relative; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.dt-faq summary::-webkit-details-marker { display: none; }
.dt-faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 400; color: var(--muted-2); line-height: 1;
}
.dt-faq details[open] summary::after { content: "−"; color: var(--brand); }
.dt-faq details[open] summary { color: var(--brand); }
.dt-faq p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.85; padding-right: 24px; }

/* ---------- 侧栏 ---------- */
.dt-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.dt-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm);
}
.dt-card-title { margin: 0 0 14px; font-size: 14.5px; }
.dt-advisor-top { display: flex; align-items: center; gap: 11px; }
.dt-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(150deg, #e8efff, #dbe7ff); color: var(--brand);
}
.dt-advisor-name { font-size: 14px; font-weight: 600; }
.dt-advisor-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.dt-live { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.dt-advisor-tip { margin: 12px 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.dt-advisor-hours { margin-top: 9px; text-align: center; font-size: 11.5px; color: var(--muted-2); }

.dt-guarantee { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.dt-guarantee li { display: flex; gap: 10px; }
.dt-guarantee svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.dt-guarantee b { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.dt-guarantee span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted-2); line-height: 1.65; }

/* 图样放大 */
.dt-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 40px;
  background: rgba(9, 17, 28, 0.82); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.dt-lightbox img {
  max-width: min(680px, 86vw); max-height: 82vh;
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1080px) {
  .dt-hero { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; padding: 22px; }
  .dt-title { font-size: 27px; }
  .dt-body { grid-template-columns: minmax(0, 1fr); }
  .dt-side { position: static; }
  .dt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .dt-hero { grid-template-columns: minmax(0, 1fr); }
  .dt-facts { grid-template-columns: minmax(0, 1fr); }
  .dt-flow, .dt-benefits { grid-template-columns: minmax(0, 1fr); }
  .dt-table { table-layout: auto; }
}
