:root {
  --ink: #08131c;
  --ink-soft: #10202b;
  --ink-mid: #172b38;
  --panel: #0e1b25;
  --panel-light: #13232e;
  --paper: #f5f0e6;
  --paper-deep: #e9e0d2;
  --white: #fffdf8;
  --gold: #d8ae65;
  --gold-bright: #f0cd88;
  --gold-soft: #a78048;
  --red: #ad3b30;
  --red-bright: #d45445;
  --sage: #8fa893;
  --text: #1c2930;
  --muted: #6e7779;
  --line: rgba(26, 42, 50, 0.12);
  --dark-line: rgba(231, 210, 170, 0.14);
  --shadow: 0 24px 65px rgba(6, 17, 24, 0.14);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  /* 图片懒加载会让页面高度突变，滚动锚定会把视图拽到接近底部，关掉它 */
  overflow-anchor: none;
  /* 这里必须是 auto：浏览器做滚动恢复/锚点定位时会沿用这个值，
     smooth 会让恢复过程变成动画，页面越高越容易被带到页尾。
     站内锚点的平滑滚动改由 app.js 的 scrollIntoView 接管。 */
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 5%, rgba(197, 162, 100, 0.09), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 34, 41, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 34, 41, 0.022) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  pointer-events: none;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

button {
  border: 0;
}

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-one {
  top: 36rem;
  right: -18rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(186, 145, 78, 0.13), transparent 68%);
}

.ambient-two {
  top: 84rem;
  left: -20rem;
  width: 45rem;
  height: 45rem;
  background: radial-gradient(circle, rgba(61, 104, 102, 0.1), transparent 68%);
}

.topbar {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(235, 216, 178, 0.12);
  color: var(--white);
  background: rgba(7, 18, 27, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  max-width: var(--container);
  height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 30px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(247, 223, 178, 0.65);
  border-radius: 4px;
  color: #fff2d9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 45%),
    var(--red);
  box-shadow: inset 0 0 0 3px rgba(89, 20, 15, 0.25);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.brand-copy .brand-name {
  font-size: 15px;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(239, 223, 194, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: rgba(250, 245, 233, 0.66);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 28px 0;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 18px;
  left: 50%;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  right: 0;
  left: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.text-action {
  color: rgba(250, 245, 233, 0.72);
  font-size: 13px;
  transition: color 160ms ease;
}

.text-action:hover {
  color: var(--gold-bright);
}

.logout-form {
  display: flex;
  margin: 0 0 0 2px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: rgba(255, 250, 240, 0.7);
  background: transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  border-color: rgba(220, 181, 112, 0.55);
  color: var(--gold-bright);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-small {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 6px;
  font-size: 12px;
}

.button-large {
  min-height: 52px;
  padding: 0 28px;
}

.button-block {
  width: 100%;
}

.button-gold {
  color: #21190e;
  background: linear-gradient(135deg, #f1d08e, #c79851);
  box-shadow: 0 8px 25px rgba(167, 122, 62, 0.16);
}

.button-gold:hover {
  background: linear-gradient(135deg, #f8db9d, #d2a25a);
  box-shadow: 0 10px 30px rgba(167, 122, 62, 0.25);
}

.button-ghost {
  border-color: rgba(24, 40, 48, 0.18);
  color: #24333a;
  background: rgba(255, 255, 255, 0.4);
}

.button-ghost:hover {
  border-color: rgba(24, 40, 48, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.button-danger {
  border-color: #ad3b30;
  color: #fff;
  background: linear-gradient(135deg, #c04437, #9c2f26);
  box-shadow: 0 8px 22px rgba(173, 59, 48, 0.28);
}

.button-danger:hover {
  background: linear-gradient(135deg, #cf4c3d, #a8362b);
}

.topbar .button-ghost {
  border-color: rgba(240, 221, 185, 0.21);
  color: rgba(255, 251, 243, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.topbar .button-ghost:hover {
  border-color: rgba(240, 221, 185, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.flash-stack {
  position: fixed;
  z-index: 90;
  top: 96px;
  right: 24px;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 10px;
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 19px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  color: var(--white);
  background: rgba(12, 29, 39, 0.96);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  animation: flash-in 240ms ease both;
}

.flash-error {
  border-left-color: var(--red-bright);
}

.flash-success {
  border-left-color: #71a77a;
}

.flash.is-leaving {
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.flash-close {
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  font-size: 21px;
  line-height: 1;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 17, 25, 0.97) 0%, rgba(7, 19, 28, 0.92) 40%, rgba(8, 20, 29, 0.75) 68%, rgba(8, 20, 29, 0.88) 100%),
    url("../images/hero-bg.svg") center 43% / cover no-repeat,
    #08131c;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, transparent 0 40%, rgba(222, 181, 106, 0.03) 40% 40.1%, transparent 40.1%),
    linear-gradient(0deg, rgba(7, 17, 25, 0.9), transparent 35%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 174, 101, 0.6), transparent);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: var(--container);
  min-height: 590px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 72px;
  padding: 70px 30px 78px;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #8d6c3e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 27px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: var(--gold-bright);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 5.3vw, 78px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.17;
}

.hero h1 em {
  position: relative;
  color: var(--gold-bright);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 2px;
  height: 8px;
  background: linear-gradient(90deg, rgba(217, 172, 96, 0.32), transparent);
  content: "";
  transform: skewX(-24deg);
}

.hero-lead {
  max-width: 560px;
  margin: 22px 0 34px;
  color: rgba(247, 242, 231, 0.65);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.hero-search {
  position: relative;
  display: flex;
  max-width: 610px;
  height: 62px;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(236, 211, 165, 0.28);
  border-radius: 9px;
  background: rgba(255, 254, 248, 0.095);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 14px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search:focus-within {
  border-color: rgba(240, 205, 136, 0.65);
  box-shadow: 0 0 0 3px rgba(222, 181, 106, 0.1), 0 16px 45px rgba(0, 0, 0, 0.18);
}

.hero-search > svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: rgba(239, 221, 184, 0.65);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 14px;
}

.hero-search input::placeholder {
  color: rgba(246, 240, 229, 0.42);
}

.search-clear {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}

.hero-search .button {
  flex: none;
  height: 48px;
  min-height: 48px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  color: rgba(245, 240, 229, 0.48);
  font-size: 11px;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-proof svg {
  width: 15px;
  height: 15px;
  color: rgba(218, 180, 112, 0.72);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(220, 181, 108, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-visual::after {
  width: 250px;
  height: 250px;
  border-style: dashed;
  animation: spin 45s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit {
  position: absolute;
  border: 1px solid rgba(220, 181, 108, 0.1);
  border-radius: 50%;
}

.orbit-one {
  width: 410px;
  height: 410px;
}

.orbit-two {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(216, 174, 101, 0.12), transparent 69%);
}

.hero-emblem {
  position: relative;
  z-index: 2;
  display: flex;
  width: 206px;
  height: 256px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 186, 115, 0.38);
  color: var(--gold-bright);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(9, 22, 30, 0.7);
  box-shadow:
    inset 0 0 0 5px rgba(222, 181, 106, 0.04),
    0 20px 55px rgba(0, 0, 0, 0.24);
  clip-path: polygon(50% 0, 92% 14%, 96% 80%, 50% 100%, 4% 80%, 8% 14%);
}

.emblem-small {
  color: rgba(238, 219, 183, 0.4);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.hero-emblem strong {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.emblem-line {
  width: 62px;
  height: 1px;
  margin: 10px 0 9px;
  background: linear-gradient(90deg, transparent, rgba(231, 198, 133, 0.8), transparent);
}

.emblem-copy {
  color: rgba(245, 231, 204, 0.64);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
}

.floating-tag {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(231, 208, 166, 0.16);
  background: rgba(11, 27, 36, 0.85);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.floating-tag-left {
  bottom: 52px;
  left: -10px;
  display: grid;
  min-width: 145px;
  padding: 14px 18px;
  grid-template-columns: auto 1fr;
  border-radius: 10px;
}

.floating-tag-left > span {
  grid-column: 1 / -1;
  color: rgba(246, 238, 222, 0.45);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.floating-tag-left strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.3;
}

.floating-tag-left small {
  align-self: end;
  padding-bottom: 5px;
  color: rgba(246, 238, 222, 0.48);
  font-size: 10px;
}

.floating-tag-right {
  top: 55px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: 8px;
}

.floating-tag-right strong,
.floating-tag-right small {
  display: block;
}

.floating-tag-right strong {
  color: rgba(255, 250, 239, 0.9);
  font-size: 11px;
}

.floating-tag-right small {
  color: rgba(244, 233, 211, 0.4);
  font-size: 9px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #75b47f;
  box-shadow: 0 0 0 5px rgba(117, 180, 127, 0.09);
}

.contact-team-section {
  position: relative;
  overflow: hidden;
  padding: 72px 30px 78px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 5%, rgba(216, 174, 101, 0.11), transparent 28rem),
    linear-gradient(135deg, #091923, #0d202a 55%, #111d22);
}

.contact-team-section::before {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 174, 101, 0.45), transparent);
  content: "";
}

.contact-team-heading,
.contact-team-grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.contact-team-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.contact-team-heading .eyebrow {
  color: var(--gold-bright);
}

.contact-team-heading h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.04em;
}

.contact-team-heading > div > p:last-child {
  max-width: 630px;
  margin: 0;
  color: rgba(245, 238, 225, 0.52);
  font-size: 10px;
  line-height: 1.8;
}

.contact-team-note {
  flex: none;
  padding: 7px 11px;
  border: 1px solid rgba(230, 203, 155, 0.18);
  border-radius: 4px;
  color: rgba(245, 232, 210, 0.55);
  font-size: 9px;
}

.contact-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-contact-card {
  position: relative;
  padding: 19px;
  border: 1px solid rgba(244, 230, 204, 0.16);
  border-radius: 12px;
  color: #26373c;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(241, 235, 223, 0.95)),
    #f7f1e5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.team-contact-card.is-featured {
  border-color: rgba(232, 195, 124, 0.62);
  box-shadow: 0 19px 46px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(226, 183, 106, 0.12);
}

.recommended-label {
  position: absolute;
  top: -1px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 0 0 4px 4px;
  color: #fff3dc;
  background: var(--red);
  font-size: 8px;
  font-weight: 700;
}

.team-contact-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}

.team-contact-index {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(144, 101, 45, 0.2);
  border-radius: 50%;
  color: #966d37;
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
}

.team-contact-top > div > span {
  display: block;
  color: #a58b68;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.team-contact-top h3 {
  margin: 2px 0 2px;
  font-family: var(--serif);
  font-size: 18px;
}

.team-contact-top p {
  margin: 0;
  color: #8e938f;
  font-size: 8px;
}

.team-contact-qr {
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(34, 53, 59, 0.1);
  border-radius: 8px;
  background: #fff;
}

.team-contact-qr img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  transition: transform 240ms ease;
}

.team-contact-qr:hover img {
  transform: scale(1.018);
}

.team-contact-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}

.team-contact-id span,
.team-contact-id strong {
  display: block;
}

.team-contact-id span {
  color: #9a9d98;
  font-size: 7px;
}

.team-contact-id strong {
  overflow: hidden;
  max-width: 180px;
  color: #2c3d42;
  font-family: var(--serif);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-contact-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 190px;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 23px 21px 18px;
  border: 1px solid rgba(240, 223, 191, 0.18);
  border-radius: 12px;
  color: #26373c;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(238, 230, 215, 0.94)),
    #f7f1e5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.team-contact-button:hover {
  border-color: rgba(229, 189, 115, 0.7);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.team-contact-button:focus-visible {
  outline: 3px solid rgba(228, 188, 112, 0.68);
  outline-offset: 3px;
}

.team-contact-button.is-featured {
  border-color: rgba(235, 197, 126, 0.7);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(226, 183, 106, 0.11);
}

.team-button-index {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgba(138, 101, 51, 0.38);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

.team-button-icon {
  display: grid;
  width: 54px;
  height: 54px;
  grid-row: 1;
  place-items: center;
  border: 1px solid rgba(128, 88, 39, 0.22);
  border-radius: 50%;
  color: #8e642f;
  background: rgba(211, 168, 96, 0.11);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.is-featured .team-button-icon {
  border-color: rgba(255, 241, 216, 0.4);
  color: #fff0d4;
  background: var(--red);
}

.team-button-copy {
  min-width: 0;
  align-self: center;
  padding-right: 10px;
}

.team-button-copy small,
.team-button-copy strong,
.team-button-copy em {
  display: block;
}

.team-button-copy small {
  color: #a68a65;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.team-button-copy strong {
  margin: 3px 0 2px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.team-button-copy em {
  color: #888f8b;
  font-size: 9px;
  font-style: normal;
}

.team-button-action {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 58, 62, 0.1);
  color: #866037;
  font-size: 9px;
  font-weight: 700;
}

.team-button-action svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.team-contact-button:hover .team-button-action svg {
  transform: translateX(3px);
}

.contact-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(227, 200, 153, 0.26);
  border-radius: 16px;
  color: var(--text);
  background: #f8f3e9;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
}

.contact-dialog::backdrop {
  background: rgba(3, 12, 18, 0.78);
  backdrop-filter: blur(7px);
}

.contact-dialog-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 440px;
}

.contact-dialog-qr-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 174, 101, 0.16), transparent 60%),
    #0d2029;
}

.contact-dialog-qr-wrap img {
  width: 100%;
  max-width: 260px;
  max-height: 62vh;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.contact-dialog-qr-wrap > span {
  position: absolute;
  bottom: 17px;
  left: 50%;
  color: rgba(244, 233, 211, 0.55);
  font-size: 8px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.contact-dialog-info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 44px 39px;
}

.contact-dialog-overline {
  color: #a0835b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-dialog-info h3 {
  margin: 5px 0 5px;
  font-family: var(--serif);
  font-size: 29px;
}

.contact-dialog-info > p:not(.contact-dialog-safety) {
  margin: 0 0 20px;
  color: #7f8784;
  font-size: 10px;
  line-height: 1.8;
}

.contact-dialog-id {
  padding: 14px 16px;
  border: 1px solid rgba(132, 93, 42, 0.16);
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(216, 174, 101, 0.07);
}

.contact-dialog-id span,
.contact-dialog-id strong {
  display: block;
}

.contact-dialog-id span {
  color: #a39b8e;
  font-size: 8px;
}

.contact-dialog-id strong {
  overflow-wrap: anywhere;
  color: #714f28;
  font-family: var(--serif);
  font-size: 19px;
}

.contact-dialog-image-link {
  display: block;
  margin-top: 10px;
  color: #8d6a3d;
  font-size: 9px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-dialog-safety {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin: 19px 0 0;
  color: #999d98;
  font-size: 8px;
  line-height: 1.7;
}

.contact-dialog-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(71, 64, 53, 0.14);
  border-radius: 50%;
  color: #6f6458;
  background: rgba(255, 255, 255, 0.78);
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.market-section {
  max-width: var(--container);
  padding: 88px 30px 104px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-count {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #7a827f;
  background: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.result-count strong {
  color: #304047;
  font-size: 14px;
}

.filter-panel {
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 40px rgba(12, 31, 39, 0.04);
}

.server-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 7px 9px 0;
  border-bottom: 1px solid var(--line);
}

.server-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 23px 14px;
  color: #687371;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  transition: color 160ms ease;
}

.server-tabs a::after {
  position: absolute;
  right: 23px;
  bottom: -1px;
  left: 23px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
}

.server-tabs a:hover,
.server-tabs a.is-active {
  color: #1f3036;
}

.server-tabs a.is-active::after {
  opacity: 1;
}

.server-tabs span {
  display: inline-grid;
  min-width: 21px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: #a17744;
  background: rgba(215, 175, 104, 0.12);
  font-family: var(--sans);
  font-size: 9px;
}

.tier-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tier-filter::-webkit-scrollbar {
  display: none;
}

.filter-label {
  flex: none;
  margin-right: 6px;
  color: #929794;
  font-size: 11px;
}

.tier-filter a {
  flex: none;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #707976;
  font-size: 11px;
  transition: all 160ms ease;
}

.tier-filter a:hover {
  color: #26353b;
  background: rgba(22, 39, 46, 0.05);
}

.tier-filter a.is-active {
  border-color: rgba(173, 59, 48, 0.16);
  color: var(--red);
  background: rgba(173, 59, 48, 0.07);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.listing-card {
  overflow: hidden;
  border: 1px solid rgba(23, 39, 46, 0.11);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 13px 30px rgba(10, 28, 37, 0.045);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.listing-card:hover {
  border-color: rgba(152, 111, 56, 0.25);
  box-shadow: 0 22px 48px rgba(10, 28, 37, 0.1);
  transform: translateY(-4px);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #10202b;
}

.card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 15, 23, 0.32));
  content: "";
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.listing-card:hover .card-media img {
  transform: scale(1.035);
}

.server-badge,
.tier-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.card-media .server-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #fff6e6;
  background: rgba(8, 22, 31, 0.7);
  backdrop-filter: blur(8px);
}

.server-channel {
  border-color: rgba(102, 171, 186, 0.3) !important;
  color: #c9edf2 !important;
  background: rgba(24, 82, 95, 0.72) !important;
}

.server-lingxi {
  border-color: rgba(209, 171, 105, 0.34) !important;
  color: #ffe8ba !important;
  background: rgba(116, 76, 37, 0.75) !important;
}

.image-count {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(4, 14, 20, 0.55);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.image-count svg {
  width: 12px;
  height: 12px;
}

.sold-stamp {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  padding: 7px 14px;
  border: 2px solid rgba(244, 218, 170, 0.85);
  color: #faedcf;
  background: rgba(147, 43, 34, 0.86);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.sold-stamp.large {
  padding: 10px 24px;
  font-size: 21px;
}

.card-body {
  padding: 17px 17px 15px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #1e2d33;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--red);
}

.card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  min-height: 37px;
  margin: 8px 0 12px;
  color: #7c8582;
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(26, 42, 50, 0.075);
  color: #9a9f9c;
  font-size: 9px;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.price-wrap strong {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}

.price-wrap span {
  display: block;
  margin-top: 4px;
  color: #a08055;
  font-size: 9px;
}

.card-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #8b928e;
  transition: all 180ms ease;
}

.card-arrow svg {
  width: 15px;
  height: 15px;
}

.listing-card:hover .card-arrow {
  border-color: #293a40;
  color: #fff;
  background: #293a40;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.pagination a,
.pagination > span {
  display: inline-flex;
  min-width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.pagination a:hover {
  border-color: #8e744b;
  color: #6f4f26;
}

.pagination .is-disabled {
  color: #a8aba8;
  opacity: 0.55;
}

.pagination .page-number {
  border: 0;
  background: transparent;
  font-family: var(--serif);
}

.empty-state {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 20px;
  border: 1px dashed rgba(28, 43, 50, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.empty-state.compact {
  min-height: 300px;
}

.empty-mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(168, 128, 72, 0.22);
  border-radius: 50%;
  color: #a17b47;
  background: rgba(216, 174, 101, 0.08);
}

.empty-mark svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 23px;
}

.empty-state p {
  max-width: 480px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.policy-section {
  display: grid;
  max-width: var(--container);
  grid-template-columns: 0.82fr 1.18fr;
  align-items: stretch;
  gap: 26px;
  padding: 72px 30px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.policy-intro {
  padding: 28px 30px;
  border: 1px solid rgba(151, 105, 48, 0.17);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(207, 165, 96, 0.09), transparent 60%),
    rgba(255, 253, 248, 0.6);
}

.policy-intro h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 29px;
}

.policy-intro > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.policy-intro > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #805b2d;
  font-size: 10px;
  font-weight: 700;
}

.policy-intro > a:hover {
  color: var(--red);
}

.policy-intro > a svg {
  width: 13px;
  height: 13px;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.policy-grid article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(43, 57, 61, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.policy-grid article > span {
  color: rgba(173, 59, 48, 0.54);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

.policy-grid strong {
  display: block;
  color: #27383e;
  font-family: var(--serif);
  font-size: 14px;
}

.policy-grid p {
  margin: 4px 0 0;
  color: #858c88;
  font-size: 9px;
  line-height: 1.7;
}

.trust-band {
  display: grid;
  max-width: var(--container);
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 30px 80px;
  margin: 0 auto;
}

.trust-band > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 36px;
  border-right: 1px solid var(--line);
}

.trust-band > div:first-child {
  padding-left: 0;
}

.trust-band > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-number {
  color: rgba(160, 121, 65, 0.38);
  font-family: var(--serif);
  font-size: 31px;
  font-style: italic;
}

.trust-band strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
}

.trust-band p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  color: rgba(245, 238, 224, 0.65);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 35%),
    #091720;
}

.footer-inner {
  display: grid;
  max-width: var(--container);
  grid-template-columns: 1fr 1.6fr auto;
  align-items: center;
  gap: 60px;
  padding: 48px 30px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand .brand-seal {
  width: 38px;
  height: 38px;
  font-size: 21px;
}

.footer-brand strong {
  display: block;
  max-width: 310px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.footer-brand p {
  margin: 2px 0 0;
  color: rgba(237, 222, 194, 0.4);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.footer-notes {
  font-size: 9px;
  line-height: 1.8;
}

.footer-notes p {
  margin: 0;
}

.footer-notes p:first-child {
  color: rgba(245, 238, 224, 0.66);
}

.footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  font-size: 9px;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.page-container {
  width: 100%;
  max-width: var(--container);
  padding: 0 30px;
  margin: 0 auto;
}

.narrow-container {
  max-width: 1040px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 29px 0 20px;
  color: #8d9390;
  font-size: 10px;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb span:nth-child(even) {
  color: rgba(31, 45, 52, 0.28);
}

.detail-page {
  padding-bottom: 90px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.75fr);
  align-items: start;
  gap: 36px;
}

.gallery-panel {
  min-width: 0;
}

.main-image-button,
.placeholder-main {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #101e27;
  box-shadow: var(--shadow);
}

.main-image-button:not(.placeholder-main) {
  cursor: zoom-in;
}

.main-image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.main-image-button.is-long-image img {
  object-position: top center;
}

.placeholder-main img {
  cursor: default;
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(4, 13, 20, 0.57);
  font-size: 9px;
  backdrop-filter: blur(7px);
}

.zoom-hint svg {
  width: 13px;
  height: 13px;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.original-image-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #7e5a30;
  font-size: 9px;
  font-weight: 700;
}

.original-image-link:hover {
  color: var(--red);
}

.original-image-link svg {
  width: 13px;
  height: 13px;
}

.thumbnail {
  overflow: hidden;
  flex: 0 0 80px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #15242c;
  opacity: 0.55;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.thumbnail.is-active {
  border-color: var(--gold);
  opacity: 1;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-summary {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.detail-tags .server-badge,
.detail-tags .tier-badge {
  padding: 5px 10px;
  border-radius: 4px;
}

.detail-tags .server-badge {
  color: #bce5e5 !important;
}

.tier-badge {
  color: #7f5b2f;
  background: rgba(207, 165, 96, 0.13);
}

.status-active {
  color: #4f8059;
  background: rgba(78, 130, 88, 0.1);
}

.status-sold {
  color: #a43a30;
  background: rgba(173, 59, 48, 0.09);
}

.status-hidden {
  color: #777d7b;
  background: rgba(90, 98, 96, 0.09);
}

.detail-tags .status-badge {
  padding: 5px 10px;
  border-radius: 4px;
}

.detail-summary h1 {
  margin: 0;
  color: #1b2c32;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.5;
}

.summary-id {
  margin: 7px 0 22px;
  color: #969b97;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.detail-price {
  padding: 17px 19px;
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(173, 59, 48, 0.055), transparent);
}

.detail-price span,
.detail-price small {
  display: block;
}

.detail-price span {
  color: #87745a;
  font-size: 10px;
}

.detail-price strong {
  display: inline-block;
  margin: 2px 0 1px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
}

.detail-price small {
  color: #a2a49f;
  font-size: 9px;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-facts div {
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  color: #9ca09d;
  font-size: 9px;
}

.detail-facts dd {
  margin: 2px 0 0;
  color: #3b4a4f;
  font-size: 11px;
  font-weight: 700;
}

.contact-box {
  padding: 16px;
  border: 1px solid rgba(157, 119, 66, 0.15);
  border-radius: 9px;
  background: rgba(217, 175, 105, 0.055);
}

.contact-title {
  margin: 0 0 11px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.wechat-contact-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(150, 108, 52, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.48);
}

.wechat-qr-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(31, 45, 51, 0.12);
  border-radius: 7px;
  background: #fff;
}

.wechat-qr-link img {
  width: 100%;
  aspect-ratio: 820 / 1214;
  object-fit: cover;
  transition: transform 220ms ease;
}

.wechat-qr-link:hover img {
  transform: scale(1.025);
}

.wechat-qr-link span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  padding: 4px 3px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 22, 31, 0.62);
  font-size: 7px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.wechat-contact-copy {
  min-width: 0;
}

.contact-overline {
  display: block;
  color: #98754b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wechat-contact-copy > strong {
  display: block;
  overflow: hidden;
  margin: 4px 0 8px;
  color: #24363c;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-contact-copy > p {
  margin: 8px 0 0;
  color: #8f928e;
  font-size: 8px;
  line-height: 1.7;
}

.copy-button-wide {
  padding: 6px 11px;
  border-color: rgba(111, 79, 38, 0.22);
  color: #77582f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 700;
}

.detail-service-list {
  display: grid;
  gap: 6px;
}

.detail-service-list a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 54, 60, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 160ms ease, background 160ms ease;
}

.detail-service-list a:hover {
  border-color: rgba(143, 101, 45, 0.35);
  background: rgba(255, 255, 255, 0.86);
}

.detail-service-list a.is-primary {
  border-color: rgba(173, 59, 48, 0.2);
  background: rgba(173, 59, 48, 0.045);
}

.detail-service-list span {
  color: #35454a;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

.detail-service-list strong {
  grid-row: 2;
  color: #72522d;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.detail-service-list em {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #a0a29e;
  font-size: 8px;
  font-style: normal;
}

.contact-team-link {
  min-height: 40px;
  margin-top: 10px;
  font-size: 10px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(38, 52, 57, 0.1);
  font-size: 11px;
}

.contact-line > span {
  color: #9b9e9a;
}

.contact-line strong {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  padding: 3px 8px;
  border: 1px solid rgba(111, 79, 38, 0.2);
  border-radius: 4px;
  color: #77582f;
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.copy-button.is-copied {
  color: #46744f;
}

.contact-empty {
  margin: 0;
  color: #7a7e7a;
  font-size: 10px;
}

.safety-note {
  margin: 10px 0 0;
  color: #a2a09a;
  font-size: 8px;
  line-height: 1.6;
}

.detail-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.description-panel {
  margin-top: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.panel-heading small {
  color: #9b9f9c;
  font-size: 9px;
}

.description-text {
  padding-top: 22px;
  color: #455256;
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.related-section {
  margin-top: 70px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading.compact h2 {
  font-size: 30px;
}

.section-heading.compact > a {
  color: #87663a;
  font-size: 11px;
}

.section-heading.compact > a:hover {
  color: var(--red);
}

.image-dialog {
  width: min(1000px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #07131b;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.image-dialog::backdrop {
  background: rgba(1, 8, 12, 0.82);
  backdrop-filter: blur(5px);
}

.image-dialog img {
  max-width: 100%;
  max-height: 88vh;
  margin: auto;
  object-fit: contain;
}

.image-dialog.is-long-image {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.image-dialog.is-long-image img {
  width: 100%;
  max-height: none;
  height: auto;
}

.image-dialog.is-long-image .dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px -46px 0;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 14, 20, 0.65);
  font-size: 23px;
}

/* Authentication */
.auth-page {
  background: #08131c;
}

.auth-page main {
  min-height: calc(100vh - 82px);
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 82px);
  max-width: 1180px;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: stretch;
  padding: 48px 30px;
  margin: 0 auto;
}

.auth-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 65px 70px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 18, 27, 0.91), rgba(7, 18, 27, 0.66)),
    url("../images/hero-bg.svg") 58% center / cover;
  border-radius: 16px 0 0 16px;
}

.auth-story::after {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(218, 175, 101, 0.3);
  content: "";
  transform: rotate(12deg);
}

.eyebrow.light {
  color: var(--gold-bright);
}

.auth-story h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 63px);
  font-weight: 700;
  line-height: 1.3;
}

.auth-story h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.auth-story > p:not(.eyebrow) {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(244, 237, 222, 0.6);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.auth-quote {
  display: flex;
  gap: 12px;
  margin-top: 65px;
  padding-top: 23px;
  border-top: 1px solid rgba(235, 211, 170, 0.15);
  color: rgba(235, 219, 189, 0.54);
}

.auth-quote > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 40px;
  line-height: 0.9;
}

.auth-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.9;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  border-radius: 0 16px 16px 0;
  background: #f7f3eb;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.23);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-bottom: 42px;
  color: #8f9591;
  font-size: 10px;
}

.auth-back:hover {
  color: var(--red);
}

.auth-back svg {
  width: 14px;
  height: 14px;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
}

.auth-hint {
  margin: 7px 0 27px;
  color: #8b918e;
  font-size: 11px;
}

.stack-form {
  display: grid;
  gap: 17px;
}

.field {
  min-width: 0;
}

.field > label,
.field > legend,
.action-popover label {
  display: block;
  margin: 0 0 7px;
  color: #4a575a;
  font-size: 11px;
  font-weight: 700;
}

.field > small {
  display: block;
  margin-top: 6px;
  color: #989c98;
  font-size: 9px;
}

.field input,
.field textarea,
.settings-card input,
.settings-card textarea {
  width: 100%;
  border: 1px solid rgba(27, 43, 49, 0.14);
  border-radius: 7px;
  outline: none;
  color: #29383d;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.settings-card input {
  height: 47px;
  padding: 0 14px;
}

.field textarea,
.settings-card textarea {
  display: block;
  min-height: 120px;
  padding: 13px 14px;
  line-height: 1.8;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.settings-card input::placeholder {
  color: #b0b2ae;
}

.field input:focus,
.field textarea:focus,
.settings-card input:focus,
.settings-card textarea:focus {
  border-color: rgba(160, 112, 53, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 140, 76, 0.08);
}

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #a6aaa6;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  padding-right: 43px;
  padding-left: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #a2a6a2;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 17px;
  height: 17px;
}

.password-toggle.is-showing {
  color: #80623a;
}

.auth-card .button {
  margin-top: 9px;
}

.auth-footnote {
  margin: 25px 0 0;
  color: #969a96;
  font-size: 9px;
  line-height: 1.7;
}

/* Dashboard and management */
.dashboard-container {
  padding-top: 40px;
  padding-bottom: 90px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}

.dashboard-header h1,
.form-page-heading h1 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 37px;
  letter-spacing: 0.03em;
}

.dashboard-header > div > p:last-child,
.form-page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-header-actions {
  display: flex;
  gap: 9px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 26px rgba(10, 28, 37, 0.035);
}

.stat-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 10px;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon-green {
  color: #568565;
  background: rgba(83, 137, 101, 0.1);
}

.stat-icon-gold {
  color: #9b7339;
  background: rgba(198, 151, 76, 0.11);
}

.stat-icon-blue {
  color: #547b89;
  background: rgba(74, 121, 139, 0.1);
}

.stat-card small,
.stat-card strong {
  display: block;
}

.stat-card small {
  color: #909591;
  font-size: 9px;
}

.stat-card strong {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
}

.admin-quickbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 17px 19px;
  border: 1px solid rgba(177, 132, 70, 0.18);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(209, 168, 98, 0.09), rgba(255, 255, 255, 0.3));
}

.quickbar-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quickbar-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(145, 99, 44, 0.22);
  color: #7d582e;
  font-family: var(--serif);
  font-size: 16px;
}

.quickbar-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
}

.quickbar-copy p {
  margin: 1px 0 0;
  color: #8a8f8b;
  font-size: 9px;
}

.quickbar-actions {
  display: flex;
  gap: 7px;
}

.quickbar-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(45, 62, 66, 0.13);
  border-radius: 5px;
  color: #59645f;
  background: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.quickbar-actions a:hover {
  border-color: rgba(147, 105, 49, 0.32);
  color: #79572f;
}

.quickbar-actions svg {
  width: 12px;
  height: 12px;
}

.management-panel {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.75);
  box-shadow: 0 15px 35px rgba(9, 28, 37, 0.035);
}

.management-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}

.management-heading h2,
.create-user-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.management-heading p {
  margin: 1px 0 0;
  color: #989c99;
  font-size: 9px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #86653b;
  font-size: 10px;
}

.text-link svg {
  width: 13px;
  height: 13px;
}

.management-list {
  padding: 0 22px;
}

.management-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px 105px;
  align-items: center;
  gap: 17px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(24, 41, 47, 0.08);
}

.management-row:last-child {
  border-bottom: 0;
}

.manage-thumb {
  overflow: hidden;
  width: 72px;
  height: 55px;
  border-radius: 6px;
  background: #152630;
}

.manage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-main {
  min-width: 0;
}

.manage-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manage-title-line > a {
  overflow: hidden;
  color: #25363c;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-title-line > a:hover {
  color: var(--red);
}

.manage-title-line .status-badge {
  flex: none;
  padding: 2px 6px;
  border-radius: 3px;
}

.manage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  color: #9b9f9c;
  font-size: 8px;
}

.manage-price {
  color: var(--red);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  text-align: right;
}

.manage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mini-action {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #67706c;
  background: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.mini-action:hover {
  border-color: rgba(144, 100, 45, 0.35);
  color: #7d582e;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  display: grid;
  width: 31px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #8a918e;
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu[open] summary {
  border-color: rgba(141, 99, 46, 0.35);
}

.action-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  min-width: 135px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf9;
  box-shadow: 0 14px 35px rgba(10, 28, 36, 0.17);
}

.action-popover form {
  margin: 0;
}

.action-popover button {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  color: #55605d;
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.action-popover button:hover {
  background: rgba(30, 48, 54, 0.06);
}

.action-popover .danger-action {
  color: #a13d33;
}

.action-popover .success-action {
  color: #4a8058;
}

.form-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.listing-editor,
.settings-card {
  display: grid;
  gap: 16px;
}

.editor-card,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 30px rgba(8, 27, 35, 0.035);
}

.editor-card {
  padding: 26px;
}

.editor-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.section-number {
  display: inline-grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(150, 106, 48, 0.2);
  border-radius: 50%;
  color: #926a35;
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
}

.editor-section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.editor-section-heading p {
  margin: 2px 0 0;
  color: #969a97;
  font-size: 9px;
}

.optional-label {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 3px;
  color: #999e9a;
  background: rgba(30, 45, 50, 0.05);
  font-size: 8px;
}

.upload-zone {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  border: 1px dashed rgba(43, 62, 67, 0.23);
  border-radius: 9px;
  color: #8b928e;
  background:
    linear-gradient(135deg, rgba(216, 174, 101, 0.025), transparent),
    rgba(255, 255, 255, 0.33);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: rgba(154, 108, 47, 0.55);
  background: rgba(216, 174, 101, 0.07);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 50%;
  color: #97703a;
  background: rgba(216, 174, 101, 0.1);
}

.upload-icon svg {
  width: 20px;
  height: 20px;
}

.upload-zone strong {
  color: #4c595c;
  font-size: 11px;
}

.upload-zone > span:last-child {
  margin-top: 3px;
  color: #a3a6a2;
  font-size: 8px;
}

.new-image-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.upload-selection-row {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #8f9692;
  font-size: 9px;
}

.upload-selection-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-selection-row strong {
  color: #8e6330;
  font-size: 12px;
}

.upload-selection-row small {
  text-align: right;
}

.new-image-previews:empty {
  display: none;
}

.new-image-previews figure {
  position: relative;
  overflow: hidden;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.new-image-previews img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.new-image-previews figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px 5px 7px;
  color: #989c98;
  font-size: 8px;
}

.preview-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 手机上点不中小圆叉是老大难，这里给它一个带文字的实心按钮，并放大到 44px 触控区 */
.preview-delete {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(173, 59, 48, 0.35);
  border-radius: 999px;
  color: #a8382e;
  background: rgba(173, 59, 48, 0.08);
  font-size: 9px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}

.preview-delete:active,
.preview-delete:hover {
  color: #fff;
  background: #ad3b30;
  border-color: #ad3b30;
}

.preview-index {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 20, 27, 0.68);
  font-size: 8px;
  backdrop-filter: blur(5px);
}

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #fff;
  background: rgba(173, 59, 48, 0.92);
  box-shadow: 0 4px 12px rgba(6, 12, 16, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}

.preview-remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.preview-remove:hover,
.preview-remove:active {
  background: #c0392b;
  transform: scale(1.06);
}

.preview-clear {
  padding: 4px 9px;
  border: 1px solid rgba(43, 62, 67, 0.2);
  border-radius: 999px;
  color: #6b7472;
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}

.preview-clear:hover,
.preview-clear:active {
  color: #a8382e;
  border-color: rgba(173, 59, 48, 0.4);
  background: rgba(173, 59, 48, 0.08);
}

/* 点缩略图看大图，再决定删不删；手机上比小叉可靠得多 */
.photo-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  padding: 12px;
  background: rgba(4, 10, 14, 0.92);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pinch-zoom;
}

.photo-dialog.is-open {
  display: grid;
  align-items: start;
  justify-items: center;
}

.photo-dialog-body {
  display: flex;
  width: min(100%, 560px);
  flex-direction: column;
  gap: 10px;
  margin: auto 0;
}

/* 不压高度：长图也要原宽度铺满，压到 70vh 就变成一条看不清的细线 */
.photo-dialog-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #0a1319;
}

.photo-dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 8px 0 2px;
  background: linear-gradient(180deg, rgba(4, 10, 14, 0), rgba(4, 10, 14, 0.9) 40%);
}

.photo-dialog-actions .button {
  flex: 1 1 96px;
  white-space: nowrap;
}

.existing-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.existing-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #142630;
  cursor: pointer;
}

.existing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.existing-image input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.remove-overlay {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(173, 59, 48, 0.92);
  font-size: 9px;
  box-shadow: 0 4px 12px rgba(6, 12, 16, 0.3);
}

.remove-overlay svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.remove-label-checked {
  display: none;
}

.existing-image input:checked ~ .remove-overlay {
  color: #fff;
  background: #c0392b;
}

.existing-image input:checked ~ .remove-overlay .remove-label {
  display: none;
}

.existing-image input:checked ~ .remove-overlay .remove-label-checked {
  display: inline;
}

.existing-image:has(input:checked) img {
  opacity: 0.4;
  filter: grayscale(1);
}

.existing-image:has(input:checked) {
  outline: 3px solid rgba(173, 59, 48, 0.55);
}

.form-tip {
  margin: 0 0 12px;
  color: #9b9f9b;
  font-size: 8px;
}

.field textarea[data-description] {
  min-height: 250px;
  resize: vertical;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: #a2a5a1;
  font-size: 8px;
}

.textarea-footer b {
  color: #7e694b;
  font-weight: 700;
}

.publisher-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
  gap: 18px;
}

.publisher-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publisher-account-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 52, 58, 0.1);
  border-radius: 8px;
  background: rgba(23, 43, 50, 0.035);
}

.publisher-account-note small,
.publisher-account-note strong,
.publisher-account-note span {
  display: block;
}

.publisher-account-note small {
  color: #9a9e9a;
  font-size: 8px;
}

.publisher-account-note strong {
  color: #314148;
  font-family: var(--serif);
  font-size: 13px;
}

.publisher-account-note span {
  color: #9b9e99;
  font-size: 8px;
}

.contact-qr-editor {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(31, 49, 55, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.36);
  text-align: center;
}

.contact-qr-preview {
  display: grid;
  overflow: hidden;
  width: 120px;
  height: 156px;
  place-items: center;
  border: 1px dashed rgba(44, 64, 69, 0.2);
  border-radius: 7px;
  background: #fff;
}

.contact-qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #a2a49f;
}

.qr-placeholder svg {
  width: 35px;
  height: 35px;
  color: #aa895d;
  stroke-width: 1.4;
}

.qr-placeholder span {
  max-width: 90px;
  font-size: 8px;
  line-height: 1.5;
}

.qr-upload-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(132, 94, 45, 0.22);
  border-radius: 5px;
  margin-top: 10px;
  color: #7f5a2f;
  background: rgba(217, 175, 104, 0.08);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.qr-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-qr-editor > small {
  margin-top: 6px;
  color: #a1a39e;
  font-size: 7px;
}

fieldset.field {
  padding: 0;
  border: 0;
  margin: 0 0 20px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.choice-card {
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 15px;
  border: 1px solid rgba(31, 49, 55, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-card input:checked + .choice-content {
  border-color: rgba(151, 107, 49, 0.55);
  background: rgba(217, 175, 104, 0.08);
  box-shadow: inset 0 0 0 1px rgba(151, 107, 49, 0.09);
}

.choice-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(37, 57, 63, 0.13);
  border-radius: 50%;
  color: #5c6e70;
  font-family: var(--serif);
  font-size: 15px;
}

.choice-card input:checked + .choice-content .choice-icon {
  border-color: rgba(162, 115, 53, 0.3);
  color: #815c2e;
  background: rgba(216, 174, 101, 0.1);
}

.choice-content > span:nth-child(2) {
  min-width: 0;
}

.choice-content strong,
.choice-content small {
  display: block;
}

.choice-content strong {
  font-family: var(--serif);
  font-size: 13px;
}

.choice-content small {
  margin-top: 1px;
  color: #969b97;
  font-size: 8px;
}

.choice-check {
  width: 16px;
  height: 16px;
  margin-left: auto;
  border: 1px solid rgba(36, 55, 60, 0.22);
  border-radius: 50%;
}

.choice-card input:checked + .choice-content .choice-check {
  border: 5px solid #a57737;
}

.price-tier-layout {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: end;
  gap: 14px;
}

.price-input {
  position: relative;
}

.price-input > span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #936839;
  font-family: var(--serif);
  font-size: 17px;
  transform: translateY(-50%);
}

.price-input input {
  padding-left: 34px;
  font-family: var(--serif);
  font-size: 16px;
}

.price-input input::-webkit-inner-spin-button {
  display: none;
}

.auto-tier {
  min-height: 74px;
  padding: 11px 15px;
  border: 1px solid rgba(167, 125, 67, 0.18);
  border-radius: 8px;
  background: rgba(216, 174, 101, 0.065);
}

.auto-tier span,
.auto-tier strong,
.auto-tier small {
  display: block;
}

.auto-tier span {
  color: #9b805c;
  font-size: 8px;
}

.auto-tier strong {
  margin: 2px 0;
  color: #7e592f;
  font-family: var(--serif);
  font-size: 16px;
}

.auto-tier strong[data-tier="low"] { color: #53805f; }
.auto-tier strong[data-tier="mid"] { color: #8c6a39; }
.auto-tier strong[data-tier="high"] { color: #a4513e; }
.auto-tier strong[data-tier="premium"] { color: #8b3540; }

.auto-tier small {
  color: #aaa99f;
  font-size: 7px;
}

.tier-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.tier-guide span {
  padding: 6px 4px;
  border-right: 1px solid var(--line);
  color: #9a9d99;
  font-size: 8px;
  text-align: center;
}

.tier-guide span:last-child {
  border-right: 0;
}

.editor-submit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 6px 2px 0;
}

.editor-submit > p {
  max-width: 520px;
  margin: 0;
  color: #9a9d99;
  font-size: 8px;
  line-height: 1.7;
}

.editor-submit > p span {
  margin-right: 5px;
  color: #956c36;
  font-weight: 700;
}

.publish-policy-check {
  max-width: 570px;
}

.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #777f7b;
  font-size: 9px;
  line-height: 1.75;
  cursor: pointer;
}

.policy-consent input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--red);
}

.policy-consent a {
  color: #8a5f2d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editor-submit > div:last-child {
  display: flex;
  flex: none;
  gap: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
}

.user-list-panel {
  overflow: visible;
}

.user-list {
  padding: 0 22px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.user-row:last-child {
  border-bottom: 0;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(143, 102, 48, 0.17);
  border-radius: 50%;
  color: #77562f;
  background: rgba(216, 174, 101, 0.1);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.user-avatar.large {
  width: 54px;
  height: 54px;
  font-size: 21px;
}

.user-main {
  min-width: 0;
}

.user-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.user-name-line strong {
  font-family: var(--serif);
  font-size: 14px;
}

.role-chip {
  padding: 1px 5px;
  border-radius: 3px;
  color: #507261;
  background: rgba(70, 126, 88, 0.09);
  font-size: 7px;
}

.role-chip.role-admin {
  color: #946c33;
  background: rgba(183, 133, 67, 0.12);
}

.user-main p {
  margin: 2px 0 0;
  color: #9b9f9b;
  font-size: 8px;
}

.user-actions {
  margin-left: auto;
}

.user-popover {
  width: 190px;
  padding: 10px;
}

.user-popover form + form {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.user-popover input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 9px;
}

.create-user-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 13px 32px rgba(8, 26, 35, 0.04);
}

.side-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 9px;
  color: #8b6433;
  background: rgba(200, 154, 80, 0.11);
}

.side-card-icon svg {
  width: 21px;
  height: 21px;
}

.create-user-card > p {
  margin: 6px 0 18px;
  color: #929793;
  font-size: 9px;
  line-height: 1.7;
}

.create-user-card .field {
  margin-bottom: 0;
}

.create-user-card .button {
  margin-top: 3px;
}

.form-security-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 18px !important;
}

.form-security-note svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: #7c9b7d;
}

.settings-card {
  overflow: hidden;
}

.settings-section {
  padding: 27px;
  border-bottom: 1px solid var(--line);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 27px;
  background: rgba(216, 174, 101, 0.045);
}

.settings-submit p {
  margin: 0;
  color: #979b97;
  font-size: 9px;
}

.settings-submit > div {
  display: flex;
  gap: 8px;
}

.password-container {
  padding-bottom: 90px;
}

.password-card {
  max-width: 680px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow);
}

.password-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.password-card-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
}

.password-card-heading p:last-child {
  margin: 2px 0 0;
  color: #999d99;
  font-size: 9px;
}

.password-card .stack-form {
  gap: 16px;
}

.password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 7px;
}

.error-page main {
  min-height: calc(100vh - 82px);
}

.error-shell {
  display: flex;
  min-height: 620px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  text-align: center;
}

.error-seal {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(146, 104, 49, 0.3);
  color: var(--red);
  font-family: var(--serif);
  font-size: 31px;
  transform: rotate(-4deg);
}

.error-code {
  margin-top: 20px;
  color: #ba9a68;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.error-shell h1 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: 32px;
}

.error-shell p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.rules-hero {
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(7, 19, 28, 0.97), rgba(9, 25, 33, 0.82)),
    url("../images/hero-bg.svg") center 53% / cover;
}

.rules-hero-inner {
  padding-top: 68px;
  padding-bottom: 58px;
}

.rules-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: 0.04em;
}

.rules-hero-inner > p:not(.eyebrow) {
  max-width: 700px;
  margin: 15px 0 26px;
  color: rgba(247, 241, 229, 0.62);
  font-size: 12px;
  line-height: 1.9;
}

.rules-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rules-alert strong,
.rules-alert span {
  padding: 6px 11px;
  border: 1px solid rgba(230, 204, 158, 0.18);
  border-radius: 4px;
  font-size: 9px;
}

.rules-alert strong {
  border-color: rgba(185, 61, 49, 0.6);
  color: #ffe9d0;
  background: rgba(173, 59, 48, 0.55);
}

.rules-alert span {
  color: rgba(250, 242, 227, 0.69);
  background: rgba(255, 255, 255, 0.04);
}

.rules-layout {
  display: grid;
  max-width: 1060px;
  grid-template-columns: minmax(0, 1fr) 275px;
  align-items: start;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 90px;
}

.rules-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.77);
}

.rules-content > section {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 14px;
  padding: 25px 27px;
  border-bottom: 1px solid var(--line);
}

.rules-content > section:last-child {
  border-bottom: 0;
}

.rule-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(154, 110, 50, 0.2);
  border-radius: 50%;
  color: #946b35;
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
}

.rules-content h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 19px;
}

.rules-content p {
  margin: 0;
  color: #707a77;
  font-size: 11px;
  line-height: 1.9;
}

.rules-content .button {
  min-height: 37px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 10px;
}

.rules-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
}

.rules-side-card {
  padding: 22px;
  border: 1px solid rgba(150, 108, 52, 0.17);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.72);
}

.rules-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(241, 217, 172, 0.55);
  border-radius: 3px;
  margin-bottom: 13px;
  color: #ffebc8;
  background: var(--red);
  font-family: var(--serif);
  font-size: 19px;
}

.rules-side-card h2 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: 18px;
}

.rules-side-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rules-side-card li {
  position: relative;
  padding-left: 16px;
  color: #7e8682;
  font-size: 9px;
}

.rules-side-card li::before {
  position: absolute;
  top: 0.65em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

@media (max-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 35px;
  }

  .hero-visual {
    transform: scale(0.9);
  }

  .main-nav {
    gap: 22px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  }

  .auth-story {
    padding: 55px 45px;
  }

  .auth-card {
    padding: 55px 45px;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    height: 70px;
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 62px 24px 55px;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .hero-visual {
    display: none;
  }

  .hero-lead {
    margin-bottom: 27px;
  }

  .market-section {
    padding: 60px 22px 75px;
  }

  .contact-team-section {
    padding: 55px 22px 60px;
  }

  .contact-team-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .contact-team-grid {
    grid-template-columns: 1fr;
  }

  .team-contact-card {
    max-width: 460px;
  }

  .team-contact-button {
    max-width: 460px;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .trust-band {
    grid-template-columns: 1fr;
    padding: 0 22px 60px;
  }

  .trust-band > div,
  .trust-band > div:first-child,
  .trust-band > div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band > div:last-child {
    border-bottom: 0;
  }

  .policy-section {
    grid-template-columns: 1fr;
    padding: 55px 22px;
  }

  .rules-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .rules-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 22px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .page-container {
    padding-right: 22px;
    padding-left: 22px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-summary {
    padding: 24px;
  }

  .auth-shell {
    display: block;
    max-width: 620px;
    padding: 30px 20px;
  }

  .auth-story {
    display: none;
  }

  .auth-card {
    border-radius: 14px;
  }

  .auth-page main {
    min-height: calc(100vh - 70px);
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-stats {
    gap: 10px;
  }

  .management-row {
    grid-template-columns: 64px minmax(0, 1fr) 85px auto;
    gap: 12px;
  }

  .manage-thumb {
    width: 64px;
    height: 50px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .create-user-card {
    grid-row: 1;
  }

  .editor-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-submit > div:last-child {
    width: 100%;
    justify-content: flex-end;
  }

  .publish-policy-check {
    max-width: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .topbar-inner {
    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy .brand-name {
    font-size: 11px;
    letter-spacing: 0.01em;
  }

  .top-actions {
    gap: 8px;
  }

  .text-action,
  .hide-mobile {
    display: none;
  }

  .topbar .button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }

  .topbar .logout-form {
    display: none;
  }

  .flash-stack {
    top: 82px;
    right: 16px;
  }

  .hero-inner {
    padding: 51px 18px 46px;
  }

  .hero .eyebrow {
    margin-bottom: 13px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-search {
    height: 56px;
    gap: 8px;
    padding: 6px 6px 6px 14px;
  }

  .hero-search input {
    font-size: 12px;
  }

  .hero-search .button {
    height: 44px;
    min-height: 44px;
    padding: 0 15px;
    font-size: 11px;
  }

  .hero-proof {
    gap: 14px;
    margin-top: 18px;
  }

  .market-section {
    padding: 49px 16px 62px;
  }

  .contact-team-section {
    padding: 45px 16px 52px;
  }

  .contact-team-heading h2 {
    font-size: 27px;
  }

  .contact-team-heading > div > p:last-child {
    font-size: 9px;
  }

  .contact-team-grid {
    gap: 12px;
  }

  .team-contact-card {
    padding: 17px;
  }

  .team-contact-qr img {
    aspect-ratio: 3 / 4;
  }

  .team-contact-id strong {
    font-size: 13px;
  }

  .team-contact-button {
    min-height: 168px;
    padding: 20px 17px 16px;
  }

  .team-button-copy strong {
    font-size: 20px;
  }

  .contact-dialog {
    width: min(430px, calc(100vw - 24px));
    max-height: 92vh;
  }

  .contact-dialog-body {
    display: block;
    min-height: 0;
  }

  .contact-dialog-qr-wrap {
    padding: 24px 24px 35px;
  }

  .contact-dialog-qr-wrap img {
    width: 200px;
    max-height: 40vh;
  }

  .contact-dialog-info {
    padding: 25px 21px 24px;
  }

  .contact-dialog-info h3 {
    font-size: 25px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading > div > p:last-child {
    max-width: 290px;
    font-size: 11px;
  }

  .result-count {
    padding: 5px 9px;
  }

  .filter-panel {
    margin-bottom: 18px;
  }

  .server-tabs {
    justify-content: space-between;
    padding: 5px 6px 0;
  }

  .server-tabs a {
    flex: 1;
    justify-content: center;
    gap: 5px;
    padding: 12px 7px;
    font-size: 12px;
  }

  .server-tabs a::after {
    right: 10px;
    left: 10px;
  }

  .server-tabs span {
    min-width: 18px;
    height: 17px;
    font-size: 8px;
  }

  .tier-filter {
    gap: 3px;
    padding: 10px 11px;
  }

  .filter-label {
    display: none;
  }

  .tier-filter a {
    padding: 5px 10px;
    font-size: 9px;
  }

  .listing-grid {
    gap: 10px;
  }

  .listing-card {
    border-radius: 10px;
  }

  .card-media .server-badge {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .image-count {
    right: 8px;
    bottom: 8px;
  }

  .card-body {
    padding: 12px 11px 11px;
  }

  .card-title {
    min-height: 41px;
    font-size: 14px;
    line-height: 1.45;
  }

  .card-excerpt {
    min-height: 30px;
    margin: 5px 0 8px;
    font-size: 9px;
  }

  .card-meta {
    padding-top: 7px;
    font-size: 7px;
  }

  .card-meta span:last-child {
    display: none;
  }

  .card-footer {
    margin-top: 8px;
  }

  .price-wrap strong {
    font-size: 18px;
  }

  .price-wrap span {
    font-size: 7px;
  }

  .card-arrow {
    width: 27px;
    height: 27px;
  }

  .sold-stamp {
    padding: 5px 9px;
    font-size: 11px;
  }

  .pagination {
    margin-top: 30px;
  }

  .empty-state {
    min-height: 330px;
    padding: 40px 16px;
  }

  .trust-band {
    padding: 0 18px 50px;
  }

  .policy-section {
    gap: 15px;
    padding: 45px 16px;
  }

  .policy-intro {
    padding: 22px 18px;
  }

  .policy-intro h2 {
    font-size: 25px;
  }

  .policy-grid {
    gap: 8px;
  }

  .policy-grid article {
    gap: 7px;
    padding: 13px 10px;
  }

  .policy-grid article > span {
    font-size: 9px;
  }

  .policy-grid strong {
    font-size: 12px;
  }

  .policy-grid p {
    font-size: 8px;
  }

  .footer-inner {
    padding: 33px 18px;
  }

  .page-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .breadcrumb {
    padding: 20px 0 15px;
  }

  .main-image-button,
  .placeholder-main {
    border-radius: 10px;
  }

  .detail-summary {
    padding: 19px;
    border-radius: 11px;
  }

  .wechat-contact-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .detail-summary h1 {
    font-size: 21px;
  }

  .detail-price strong {
    font-size: 31px;
  }

  .description-panel {
    padding: 20px;
    margin-top: 18px;
  }

  .description-text {
    font-size: 12px;
    line-height: 1.9;
  }

  .related-section {
    margin-top: 45px;
  }

  .section-heading.compact {
    flex-direction: row;
    align-items: flex-end;
  }

  .section-heading.compact h2 {
    font-size: 24px;
  }

  .section-heading.compact > a {
    padding-bottom: 5px;
    font-size: 9px;
  }

  .auth-shell {
    min-height: calc(100vh - 70px);
    padding: 20px 14px 35px;
  }

  .auth-card {
    padding: 33px 22px;
    border-radius: 11px;
  }

  .auth-back {
    margin-bottom: 29px;
  }

  .auth-card h2 {
    font-size: 27px;
    line-height: 1.4;
  }

  .dashboard-container {
    padding-top: 27px;
    padding-bottom: 60px;
  }

  .dashboard-header h1,
  .form-page-heading h1 {
    font-size: 31px;
  }

  .dashboard-header-actions {
    width: 100%;
  }

  .dashboard-header-actions .button {
    flex: 1;
    padding: 0 12px;
    font-size: 11px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    gap: 9px;
    padding: 13px;
  }

  .stat-card:last-child {
    display: none;
  }

  .stat-icon {
    width: 37px;
    height: 37px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-card strong {
    font-size: 21px;
  }

  .admin-quickbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .quickbar-copy p {
    max-width: 240px;
  }

  .quickbar-actions {
    width: 100%;
  }

  .quickbar-actions a {
    flex: 1;
    justify-content: center;
  }

  .management-heading {
    padding: 17px;
  }

  .management-list {
    padding: 0 14px;
  }

  .management-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 0;
  }

  .manage-thumb {
    width: 58px;
    height: 48px;
  }

  .manage-title-line > a {
    max-width: 180px;
    font-size: 12px;
  }

  .manage-meta {
    gap: 3px 8px;
    font-size: 7px;
  }

  .manage-price {
    display: none;
  }

  .manage-actions {
    gap: 4px;
  }

  .mini-action {
    padding: 4px 7px;
    font-size: 8px;
  }

  .action-menu summary {
    width: 27px;
    height: 27px;
  }

  .form-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .editor-card {
    padding: 19px 15px;
  }

  .editor-section-heading {
    gap: 9px;
  }

  .editor-section-heading h2 {
    font-size: 17px;
  }

  .editor-section-heading p {
    max-width: 240px;
    line-height: 1.5;
  }

  .existing-images,
  .new-image-previews {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 手指比鼠标粗，删除按钮在小屏上再加一档 */
  .preview-remove {
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
  }

  .preview-remove svg {
    width: 15px;
    height: 15px;
  }

  .preview-delete {
    padding: 5px 9px;
    font-size: 10px;
  }

  .preview-clear {
    padding: 6px 11px;
    font-size: 10px;
  }

  .remove-overlay {
    padding: 5px 9px;
    font-size: 10px;
  }

  .field textarea[data-description] {
    min-height: 220px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .publisher-contact-layout {
    grid-template-columns: 1fr;
  }

  .publisher-contact-fields {
    gap: 13px;
  }

  .contact-qr-editor {
    display: grid;
    grid-template-columns: 105px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: start;
    column-gap: 14px;
    text-align: left;
  }

  .contact-qr-preview {
    width: 105px;
    height: 138px;
    grid-row: 1 / 3;
  }

  .qr-upload-button {
    align-self: end;
    margin-top: 0;
  }

  .contact-qr-editor > small {
    align-self: start;
    margin-top: 6px;
  }

  .choice-content {
    min-height: 62px;
  }

  .price-tier-layout {
    grid-template-columns: 1fr;
  }

  .auto-tier {
    min-height: 64px;
  }

  .editor-submit {
    gap: 15px;
  }

  .policy-consent {
    font-size: 8px;
  }

  .editor-submit > div:last-child {
    position: sticky;
    z-index: 15;
    bottom: 10px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(245, 240, 230, 0.94);
    backdrop-filter: blur(12px);
  }

  .editor-submit .button {
    flex: 1;
    padding: 0 12px;
  }

  .admin-grid {
    gap: 14px;
  }

  .create-user-card {
    padding: 19px;
  }

  .user-list {
    padding: 0 14px;
  }

  .user-row {
    gap: 9px;
  }

  .user-popover {
    position: fixed;
    top: 50%;
    right: 16px;
    left: 16px;
    width: auto;
    transform: translateY(-50%);
  }

  .two-fields {
    grid-template-columns: 1fr;
  }

  .settings-section {
    padding: 21px 17px;
  }

  .settings-submit {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 17px;
  }

  .settings-submit > div {
    width: 100%;
  }

  .settings-submit .button {
    flex: 1;
  }

  .password-card {
    padding: 21px 17px;
  }

  .password-card-heading {
    align-items: flex-start;
  }

  .error-shell {
    min-height: calc(100vh - 70px);
  }

  .rules-hero-inner {
    padding-top: 45px;
    padding-bottom: 41px;
  }

  .rules-hero h1 {
    font-size: 35px;
  }

  .rules-alert {
    gap: 5px;
  }

  .rules-alert strong,
  .rules-alert span {
    padding: 5px 8px;
    font-size: 8px;
  }

  .rules-layout {
    padding-bottom: 60px;
  }

  .rules-content > section {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 16px;
  }

  .rule-number {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .rules-content h2 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 交易猫导入 + 推广文案 / 推广图 ===== */
.promo-card {
  border: 1px solid rgba(197, 162, 100, 0.42);
  background:
    radial-gradient(circle at 96% 0%, rgba(216, 174, 101, 0.16), transparent 42%),
    var(--white);
}

.promo-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(197, 162, 100, 0.45);
  color: var(--gold-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.promo-input-row .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.promo-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(245, 240, 230, 0.7);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
}

.promo-status.is-ok {
  border-color: rgba(143, 168, 147, 0.55);
  background: rgba(143, 168, 147, 0.12);
}

.promo-status.is-error {
  border-color: rgba(196, 92, 65, 0.45);
  background: rgba(196, 92, 65, 0.09);
  color: #8f3d2c;
}

.promo-status.is-busy {
  border-color: rgba(216, 174, 101, 0.55);
  background: rgba(216, 174, 101, 0.12);
}

.promo-notes {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--muted);
}

.promo-notes li {
  margin: 2px 0;
}

.promo-result {
  margin-top: 14px;
  display: grid;
  gap: 18px;
}

.promo-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.promo-block-head strong {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.promo-copy {
  margin: 0;
  padding: 14px 16px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 12px;
}

.promo-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.promo-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0d12;
}

.promo-frame iframe {
  display: block;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
}

.promo-tile figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.promo-tile-name {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-tile-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.promo-tile-actions .button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 10px;
}

@media (max-width: 600px) {
  .promo-input-row {
    flex-direction: column;
  }

  .promo-input-row .button {
    width: 100%;
  }

  .promo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .promo-tile figcaption {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
  }

  .promo-tile-actions .button {
    flex: 1;
    padding: 0 4px;
    font-size: 9px;
  }
}
