:root {
  --bg: #f4f6f8;
  --ink: #172033;
  --muted: #64748b;
  --line: #d8dee8;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --danger: #b42318;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.nav nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a:not(.brand) { padding: 10px 14px; border-radius: 6px; color: var(--muted); }
.nav a.on, .nav a:hover { background: #e7f5f3; color: var(--primary-dark); }
.hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  margin: 24px 0;
  padding: 32px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #155e75);
  border-radius: 8px;
}
.hero h1 { margin: 0 0 12px; font-size: 38px; }
.hero p { margin: 0; max-width: 620px; line-height: 1.7; }
.panel, .admin-panel, .login-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}
.two-col { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
button, .button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
button:hover, .button-link:hover { background: var(--primary-dark); }
button.ghost { width: 100%; background: transparent; color: #dbeafe; border: 1px solid #475569; }
button.danger { background: var(--danger); }
.message, .error { color: var(--danger); }
.success { color: var(--primary-dark); }
.muted { color: var(--muted); }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.query-captcha-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  align-items: center;
  gap: 10px;
}
.query-captcha-row img {
  width: 128px;
  height: 42px;
  object-fit: cover;
  cursor: pointer;
}
.goods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.goods-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 140px; }
.goods-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.goods-card h3 { margin: 0 0 8px; }
.goods-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(135deg, #eef3f4 0%, #f8fafc 46%, #e7ecef 100%);
}
.login-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}
.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.9)),
    url("/uploads/config/1778824209457-75aec4cd7fcbf8.jpg") center / cover;
}
.login-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.35));
}
.login-intro > * {
  position: relative;
  z-index: 1;
}
.login-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-intro h1 {
  max-width: 520px;
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}
.login-copy {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}
.login-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.login-points span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  white-space: nowrap;
}
.login-points svg {
  width: 16px;
  height: 16px;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
  background: #fff;
}
.login-card-head p {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}
.login-card-head h2 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
}
.login-error {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  border-radius: 6px;
  color: #b42318;
}
.login-error svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.login-form {
  display: grid;
  gap: 10px;
}
.login-form label {
  margin-top: 6px;
  color: #374151;
  font-size: 14px;
}
.login-field {
  position: relative;
}
.login-field svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.login-field input {
  height: 46px;
  padding-left: 42px;
  border-color: #d7dde6;
  border-radius: 6px;
  background: #f9fafb;
}
.login-field input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: #0f766e;
  background: #fff;
}
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border-radius: 6px;
  font-weight: 700;
}
.login-footnote {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.admin-body { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: #eeeeee; }
.sidebar {
  background: #20232b;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.brand-block {
  height: 50px;
  margin: 0;
  display: grid;
  place-items: center;
  background: #20232b;
  border-bottom: 1px solid #151820;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-block img {
  max-width: 180px;
  max-height: 38px;
  object-fit: contain;
  display: block;
}
.sidebar a, .menu-title {
  min-height: 45px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: #d9dde6;
  font-size: 14px;
}
.sidebar a {
  gap: 10px;
}
.sidebar svg,
.menu-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}
.sidebar a:hover, .sidebar a.active, .sub-link.active { background: #009b8b; color: #fff; }
.menu-title {
  width: 100%;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px solid #1b1e26;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.menu-title > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-title:hover {
  background: #181b22;
}
.menu-arrow {
  font-size: 12px;
  line-height: 1;
}
.menu-group.is-collapsed .sub-link {
  display: none;
}
.menu-group.is-collapsed .menu-arrow {
  transform: rotate(-90deg);
}
.sub-link { padding-left: 44px !important; background: #181b22; }
.admin-shell { min-width: 900px; }
.admin-topbar {
  height: 50px;
  background: #1f222a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-left: 1px solid #151820;
}
.top-left { display: flex; align-items: center; gap: 18px; }
.top-left strong { font-size: 18px; }
.top-left span { color: #aab0bd; font-size: 13px; }
.admin-version {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #dde2ea;
  border-radius: 999px;
  background: #f7f8fa;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.top-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 420px;
  color: #f5f7fb;
  font-size: 14px;
  white-space: nowrap;
}
.top-dropdown strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.top-dropdown-toggle {
  min-height: 34px;
  padding: 0 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #f5f7fb;
  border-radius: 2px;
}
.top-dropdown-toggle:hover {
  background: transparent;
  color: #fff;
}
.top-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.top-dropdown-arrow {
  color: #aab0bd;
  transition: transform .16s ease;
}
.top-dropdown.is-open .top-dropdown-arrow {
  transform: rotate(180deg);
}
.top-dropdown-menu {
  position: absolute;
  z-index: 30;
  top: 44px;
  right: 0;
  width: 168px;
  display: none;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #d8dee8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.top-dropdown.is-open .top-dropdown-menu {
  display: block;
}
.top-dropdown-menu a,
.top-dropdown-menu button,
.top-dropdown-empty {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 0;
  background: #fff;
  color: #172033;
  font-size: 13px;
}
.top-dropdown-menu a:hover,
.top-dropdown-menu button:hover {
  background: #f4f6f8;
  color: #0f766e;
}
.top-dropdown-menu svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.top-dropdown-menu form {
  margin: 0;
}
.top-dropdown-empty {
  color: #8a94a3;
}
.quick-entry-menu {
  width: 180px;
}
.tabbar {
  height: 41px;
  background: #f8f8f8;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d9d9d9;
}
.tabbar a {
  color: #333;
}
.tab-home {
  min-width: 98px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e3e3e3;
  font-size: 14px;
}
.tab-item {
  min-width: 98px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e3e3e3;
  font-size: 14px;
}
.tab-link {
  height: 100%;
  padding: 0 8px 0 14px;
  display: inline-flex;
  align-items: center;
}
.tab-close {
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  height: 22px;
  margin-right: 8px;
  padding: 0;
  border-radius: 2px;
  background: transparent;
  color: #9a9a9a;
  line-height: 1;
}
.tab-close:hover {
  background: #e9e9e9;
  color: #333;
}
.tabbar .tab-on { background: #fff; border-top: 2px solid #1f4fbf; }
.admin-main { padding: 10px; overflow-x: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.stat strong { display: block; font-size: 32px; }
.stat span { color: var(--muted); }
.dashboard-page {
  display: grid;
  gap: 8px;
  color: #111;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding: 12px 8px 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
}
.dashboard-stat {
  min-height: 74px;
  display: grid;
  grid-template-columns: 40% 60%;
  background: #f7f7f7;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
}
.dashboard-stat-icon {
  display: grid;
  place-items: center;
  color: #fff;
}
.dashboard-stat-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
}
.dashboard-stat-body {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}
.dashboard-stat-body strong {
  color: #ff5722;
  font-size: 18px;
  font-weight: 500;
}
.dashboard-stat-body em {
  font-style: normal;
  font-size: 14px;
}
.stat-teal .dashboard-stat-icon { background: #46988b; }
.stat-coral .dashboard-stat-icon { background: #ec705f; }
.stat-blue .dashboard-stat-icon { background: #4c7fb8; }
.stat-gold .dashboard-stat-icon { background: #f0bd3e; }
.dashboard-help,
.dashboard-card {
  background: #fff;
  border: 1px solid #e5e5e5;
}
.dashboard-section-title {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  font-size: 13px;
}
.dashboard-section-title span {
  color: #6b7280;
  font-weight: 400;
}
.dashboard-flow {
  margin: 18px;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 3px;
  background: #6d80bd;
  color: #fff;
  font-size: 14px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dashboard-chart {
  height: 254px;
  margin: 10px 12px;
  display: grid;
  place-items: center;
  background: #fafafa;
}
.dashboard-map-chart {
  height: 282px;
}
.province-bars {
  min-height: 254px;
  margin: 10px 12px;
  padding: 18px;
  background: #fafafa;
  display: grid;
  align-content: center;
  gap: 10px;
}
.province-row {
  display: grid;
  grid-template-columns: 78px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.province-row b {
  height: 14px;
  display: block;
  background: #eee;
}
.province-row i {
  height: 14px;
  display: block;
  background: linear-gradient(90deg, #f2c94c, #d9534f);
}
.province-row em {
  font-style: normal;
  color: #ff5722;
}
.dashboard-empty {
  text-align: center;
  color: #888;
}
.dashboard-qr {
  min-height: 254px;
  margin: 10px 12px;
  padding: 18px 26px;
  background: #fafafa;
  text-align: center;
}
.dashboard-qr img {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto 16px;
}
.dashboard-qr p {
  margin: 6px 0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}
.dashboard-qr a,
.dashboard-tip {
  color: #0f63d8 !important;
}
.dashboard-qr strong {
  color: #ff5722;
  font-weight: 500;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.inline-form { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; align-items: start; }
.inline-form textarea { grid-column: 1 / -1; }
.stack-form { display: grid; gap: 8px; min-width: 170px; }

.legacy-panel {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  padding: 10px;
  min-height: 655px;
}
.goods-form {
  width: 870px;
  padding-top: 0;
}
.form-line {
  display: grid;
  grid-template-columns: 160px 500px max-content 200px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.form-line > label:first-child {
  justify-self: end;
  font-weight: 400;
  color: #000;
}
.goods-form input[type="text"],
.goods-form input[type="number"],
.goods-form input[type="date"],
.goods-form input:not([type]),
.goods-form textarea {
  height: 38px;
  border-radius: 0;
  border-color: #ddd;
}
.date-input {
  width: 200px !important;
  cursor: pointer;
}
.date-line {
  grid-template-columns: 160px 200px 20px 200px;
  gap: 10px;
}
.date-line span {
  text-align: center;
}
.upload-button {
  width: 113px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #009b8b;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.hidden-file { display: none; }
.image-preview-line { margin-top: -8px; }
.image-upload-state {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
}
.image-upload-state img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #ddd;
}
.is-hidden { display: none !important; }
.editor-line { align-items: start; grid-template-columns: 160px 1fr; }
.rich-editor { width: 795px; border: 1px solid #cfcfcf; }
#goods-editor-toolbar {
  border-bottom: 1px solid #cfcfcf;
  background: #f7f7f7;
}
#goods-editor { height: 260px; overflow-y: auto; }
#goods-detail { display: none; }
.radio {
  display: inline-flex;
  width: auto;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.radio input { width: 20px; height: 20px; accent-color: #20b486; }
.legacy-primary,
.legacy-danger,
.toolbar-link,
.search-button,
.clear-button,
.blue-button,
.success-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 18px;
  color: #fff;
  border-radius: 2px;
  font-size: 14px;
  line-height: 38px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}
.legacy-primary, .toolbar-link {
  background: #009b8b;
  min-width: 100px;
}
.legacy-danger { background: #ff4b28; min-width: 100px; }
.search-button { min-width: 64px; background: #009b8b; }
.icon-search-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}
.icon-search-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}
.icon-only {
  width: 38px;
  min-width: 38px;
  padding: 0;
  gap: 0;
  font-size: 0;
  line-height: 1;
}
.icon-only svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.clear-button { min-width: 68px; background: #ff4b28; }
.blue-button { background: #58a7ff; min-width: 100px; }
.success-button { background: #62b875; min-width: 100px; }
.legacy-primary:hover,
.toolbar-link:hover,
.search-button:hover {
  background: #008b7d;
  box-shadow: 0 2px 6px rgba(0, 155, 139, .22);
  transform: translateY(-1px);
}
.legacy-danger:hover,
.clear-button:hover {
  background: #e63f20;
  box-shadow: 0 2px 6px rgba(255, 75, 40, .22);
  transform: translateY(-1px);
}
.blue-button:hover {
  background: #3f96ee;
  box-shadow: 0 2px 6px rgba(88, 167, 255, .22);
  transform: translateY(-1px);
}
.success-button:hover {
  background: #4da965;
  box-shadow: 0 2px 6px rgba(98, 184, 117, .22);
  transform: translateY(-1px);
}
.refresh:hover {
  background: #3aac6a;
  box-shadow: 0 2px 6px rgba(79, 192, 123, .22);
  transform: translateY(-1px);
}
.legacy-primary:disabled:hover,
.legacy-danger:disabled:hover,
.blue-button:disabled:hover,
.success-button:disabled:hover {
  box-shadow: none;
  transform: none;
}
.legacy-primary.icon-only,
.legacy-danger.icon-only,
.toolbar-link.icon-only,
.search-button.icon-only,
.clear-button.icon-only,
.blue-button.icon-only,
.success-button.icon-only,
.refresh.icon-only {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 0;
  line-height: 1;
}
.legacy-primary.icon-only svg,
.legacy-danger.icon-only svg,
.toolbar-link.icon-only svg,
.search-button.icon-only svg,
.clear-button.icon-only svg,
.blue-button.icon-only svg,
.success-button.icon-only svg,
.refresh.icon-only svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.legacy-danger:disabled,
.legacy-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.list-panel { min-height: 760px; }
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
}
.refresh {
  min-width: 57px;
  background: #4fc07b;
  font-size: 24px;
}
.toolbar-link { min-height: 38px; }
.toolbar-spacer { flex: 1; }
.list-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.list-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.list-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-action {
  min-width: 48px;
}
.list-quick-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.list-quick-search input {
  box-sizing: border-box;
  width: 260px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 12px;
}
.list-filter-panel {
  border: 1px solid #e7e7e7;
  background: #fbfbfb;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.filter-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.filter-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 130px;
}
.filter-field label {
  display: block;
  min-height: 20px;
  line-height: 20px;
  padding-top: 1px;
  overflow: visible;
  font-size: 13px;
  color: #6d7480;
}
.filter-field input,
.filter-field select {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
}
.filter-field-wide {
  min-width: 240px;
  flex: 0 1 360px;
}
.filter-field-time,
.filter-field-status {
  min-width: 120px;
}
.filter-field-range {
  min-width: 260px;
}
.filter-date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.filter-date-pair input {
  min-width: 0;
}
.filter-date-pair span {
  text-align: center;
  color: #7c8490;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-left: auto;
}
.filter-main-row > .pagination {
  margin-left: auto;
  align-self: end;
}
.filter-main-row > .table-pagination {
  margin-bottom: 0;
  padding: 0;
}
.filter-advanced-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ececec;
}
.filter-advanced-line .filter-advanced {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.filter-advanced-line .table-pagination {
  margin: 0;
  padding: 0;
  align-self: start;
}
.filter-advanced {
  margin-top: 10px;
  border-top: 1px solid #ececec;
  padding-top: 8px;
}
.filter-advanced summary {
  width: max-content;
  cursor: pointer;
  color: #008577;
  font-size: 13px;
  user-select: none;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding-top: 10px;
}
.search-box { display: flex; gap: 10px; align-items: center; }
.search-box input {
  width: 250px;
  height: 38px;
  border-radius: 0;
}
.search-box select {
  width: 110px;
  height: 38px;
  border-radius: 0;
}
.date-click-input,
.js-date,
.date-picker,
.date-input {
  cursor: pointer;
}
.legacy-table th, .legacy-table td {
  border: 1px solid #e4e4e4;
  height: 84px;
  padding: 10px 15px;
  color: #333;
  font-size: 13px;
  vertical-align: middle;
}
.legacy-table th {
  height: 40px;
  background: #f6f6f6;
  font-size: 14px;
}
.check-col { width: 60px; text-align: center; }
.thumb {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border: 1px solid #ddd;
  display: block;
}
.empty-thumb {
  display: grid;
  place-items: center;
  color: #999;
  font-size: 12px;
}
.state-on { color: #00a000; font-weight: 700; }
.ops-col {
  width: 230px;
}
.ops {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 50px;
  padding: 0 8px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  border: 0;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}
.op.icon-only {
  width: 30px;
  min-width: 30px;
  height: 28px;
  padding: 0;
}
.op.icon-only svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}
.op.edit { background: #009b8b; }
.op.copy { background: #2d96e8; min-height: 22px; }
.op.preview { background: #ff5722; }
.op.danger { background: #ff4b28; }
.op:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}
.op.edit:hover { background: #008b7d; }
.op.copy:hover { background: #247fd0; }
.op.preview:hover { background: #e64d1e; }
.op.danger:hover { background: #e63f20; }
.empty-cell { text-align: center; color: #999; }
.preview-panel { max-width: 900px; margin: 0 auto; }
.preview-img { max-width: 240px; display: block; margin-bottom: 20px; }
.preview-detail { border-top: 1px solid #eee; margin-top: 20px; padding-top: 20px; line-height: 1.7; }
.product-preview {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.product-preview-image {
  background: #e5e5e5;
  padding: 8px;
}
.product-preview-image img,
.product-preview-empty {
  width: 100%;
  min-height: 360px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: #fffef5;
  border: 1px solid #c9d9d9;
}
.product-preview-empty strong {
  font-size: 34px;
  color: #b40d1d;
}
.product-preview-empty span {
  color: #64748b;
}
.product-preview-card {
  background: #fff;
  padding: 24px 28px;
  border: 1px solid #e0e0e0;
}
.product-preview-card h1 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 500;
}
.product-preview-detail {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  line-height: 1.8;
  font-weight: 600;
}
.product-preview-detail img {
  max-width: 100%;
  height: auto;
}

.card-admin-panel {
  padding: 10px 10px 28px;
}
.notice-line {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid #009b8b;
  background: #eefaf8;
  color: #075f55;
}
.warm-tip {
  margin: 0 0 28px;
  padding: 4px 0 8px;
  color: #000;
  font-size: 14px;
}
.warm-tip strong {
  font-weight: 700;
}
.warm-tip span {
  color: #ff2b00;
  padding: 0 4px;
}
.card-form {
  width: 950px;
  padding-top: 4px;
}
.card-line {
  display: grid;
  grid-template-columns: 160px 190px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-line > label:first-child {
  justify-self: end;
  font-weight: 400;
  color: #000;
}
.card-line > label.multi-line-label {
  line-height: 1.45;
  text-align: center;
  justify-self: end;
}
.card-line input,
.card-line select,
.batch-row input,
.batch-row select,
.batch-update-grid input,
.batch-update-grid select,
.card-list-toolbar input,
.card-list-toolbar select {
  height: 38px;
  border-radius: 0;
  border-color: #ddd;
}
.card-line input:disabled {
  background: #dedede;
}
.plain-value {
  height: 38px;
  display: inline-flex;
  align-items: center;
  color: #000;
}
.help-text {
  color: #8a94a3;
  font-size: 14px;
}
.success-text {
  color: #50b86a;
}
.required-line span,
.required-line label span {
  color: #ff2b00;
}
.required-line {
  grid-template-columns: 160px 100px max-content 1fr;
}
.required-line::before {
  content: "*";
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 74px;
  color: #ff2b00;
}
.required-line > label {
  grid-column: 1;
  grid-row: 1;
}
.required-line > input {
  grid-column: 2;
}
.required-line > .help-text {
  grid-column: 3;
}
.wide-line {
  grid-template-columns: 160px 350px 1fr;
}
.card-form .date-line {
  grid-template-columns: 160px 200px 20px 200px;
}
.card-form .date-line input {
  cursor: pointer;
}
.card-form .radio-line {
  grid-template-columns: 160px max-content max-content 1fr;
}
.batch-action-form {
  display: grid;
  gap: 28px;
}
.batch-section h2,
.batch-update-box h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #009b8b;
  color: #ff3b16;
  font-size: 20px;
  font-weight: 400;
}
.batch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 6px 88px;
  min-height: 54px;
  flex-wrap: wrap;
}
.batch-row > label:not(.radio) {
  min-width: 72px;
  text-align: right;
  font-weight: 400;
}
.batch-row input,
.batch-row select {
  width: 300px;
}
.batch-row input[type="hidden"] {
  display: none;
  width: 0;
}
.batch-row .legacy-primary {
  margin-left: 0;
}
.import-guide {
  margin: 0 0 20px;
  padding: 6px 0 0;
  color: #000;
  line-height: 1.55;
}
.import-guide strong {
  display: block;
}
.import-guide ol {
  margin: 0;
  padding-left: 18px;
}
.import-guide li:first-child {
  color: #ff2b00;
  font-weight: 700;
}
.import-upload {
  width: 113px;
  min-height: 38px;
  border-radius: 2px;
  background: #58a7ff;
}
.required-line-soft label span {
  color: #ff2b00;
}
.export-panel .batch-action-form {
  margin-bottom: 34px;
}
.export-panel .batch-section {
  margin-bottom: 30px;
}
.export-row select,
.export-row input {
  width: 300px;
}
.export-fields {
  gap: 8px;
}
.field-check {
  width: auto;
  height: 32px;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 0;
  font-weight: 400;
}
.field-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.field-check span {
  min-width: 58px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  border-left: 0;
  background: #d9d9d9;
  color: #fff;
}
.field-check::before {
  content: "";
  width: 44px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  background: #d9d9d9;
  color: #fff;
}
.field-check.is-checked span,
.field-check.is-checked::before {
  background: #62b875;
  border-color: #62b875;
}
.field-check.is-checked::after {
  content: "✓";
  width: 28px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  border-left: 0;
  color: #62b875;
  background: #fff;
}
.export-file-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.export-file-toolbar input {
  height: 38px;
  border-radius: 0;
}
.export-files-table th,
.export-files-table td {
  height: 52px;
  padding: 10px 14px;
}
.batch-update-box {
  padding-bottom: 4px;
}
.batch-update-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 10px;
}
.card-list-panel {
  padding: 10px;
}
.card-action-bar {
  padding-bottom: 10px;
}
.card-filter-panel .filter-main-row {
  display: grid;
  grid-template-columns: 240px 150px 170px 320px 118px 118px auto;
  align-items: end;
  gap: 12px 14px;
  justify-content: start;
}
.card-filter-panel .filter-field {
  min-width: 0;
}
.card-filter-panel .filter-field-wide {
  min-width: 0;
  width: 260px;
  flex: none;
}
.card-filter-panel .keyword-filter-field {
  width: 240px;
}
.card-filter-panel .card-no-field {
  width: 150px;
}
.card-filter-panel .card-name-field {
  width: 170px;
}
.card-filter-panel .goods-filter-field {
  width: 320px;
}
.card-filter-panel .filter-actions {
  margin-left: 0;
}
.card-filter-panel .filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
}
.card-filter-panel .filter-grid > .filter-field {
  width: 240px;
}
.card-filter-panel .filter-grid > .filter-field-range {
  width: 420px;
}
@media (max-width: 1320px) {
  .card-filter-panel .filter-main-row {
    grid-template-columns: 240px 150px 170px;
  }
  .card-filter-panel .filter-actions {
    justify-content: flex-start;
  }
}
.card-list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
}
.card-list-toolbar input {
  width: 140px;
}
.card-list-toolbar select {
  width: 140px;
}
.card-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 12px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #333;
}
.pagination a,
.pagination span {
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e2e2;
  border-right: 0;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
}
.pagination .disabled {
  color: #a8aeb8;
  background: #f7f7f7;
  cursor: not-allowed;
}
.pagination .on {
  background: #009b8b;
  border-color: #009b8b;
  color: #fff;
}
.pagination span:first-child {
  border: 0;
  background: transparent;
  width: auto;
  min-width: 0;
  margin-right: 8px;
  padding: 0 2px;
  color: #555;
}
.pagination a:last-child,
.pagination span:last-child {
  border-right: 1px solid #e2e2e2;
}
.pagination .on {
  background: #009b8b;
  color: #fff;
}
.pagination .disabled {
  color: #bbb;
  background: #f7f7f7;
}
.table-pagination {
  justify-content: flex-end;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
}
.list-action-bar .pagination {
  margin-left: auto;
}
.list-action-bar .table-pagination {
  margin: 0;
  padding: 0;
}
.compact-info-panel {
  color: #4b5563;
  line-height: 22px;
}
.table-top-pagination {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}
.table-top-pagination .table-pagination {
  padding: 0;
}
.card-table th,
.card-table td {
  height: 52px;
  padding: 10px 14px;
}
.qr-mark {
  color: #ff5722;
  font-weight: 700;
}
.qr-link {
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff5722;
  font-weight: 700;
  cursor: pointer;
  vertical-align: baseline;
}
.qr-link:hover {
  background: transparent;
  color: #d94216;
}
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
  background: rgba(0, 0, 0, .18);
}
.qr-modal.show {
  display: flex;
}
.qr-dialog {
  width: 360px;
  position: absolute;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.qr-dialog.dragging {
  user-select: none;
}
.qr-dialog-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 24px;
  background: #009b8b;
  color: #fff;
  cursor: move;
}
.qr-dialog-head strong {
  font-size: 14px;
}
.qr-dialog-head button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #12343b;
  font-size: 28px;
  line-height: 1;
}
.qr-dialog-head button:hover {
  background: transparent;
  color: #fff;
}
.qr-dialog-body {
  min-height: 218px;
  padding: 14px 20px 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.qr-dialog-body img {
  width: 154px;
  height: 154px;
}
.qr-url-text {
  max-width: 310px;
  overflow-wrap: anywhere;
  color: #111;
  font-size: 14px;
  text-align: center;
}
.pickup-body {
  background: #cfcfcf;
}
.pickup-page {
  width: 780px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 12px;
  background: #e9e9e9;
}
.pickup-header {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  align-items: center;
  padding: 0 18px;
  background: #fff;
}
.pickup-logo {
  font-size: 32px;
  font-weight: 700;
  color: #111;
}
.pickup-header strong {
  justify-self: center;
  color: #2e69b5;
  font-size: 20px;
}
.pickup-header a {
  justify-self: end;
  color: #888;
  font-size: 28px;
}
.pickup-steps {
  height: 59px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #fff;
  color: #1d3758;
}
.pickup-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 34px;
  color: #3b7cb5;
}
.pickup-steps span:nth-child(2) {
  color: #ff5b00;
}
.pickup-steps em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.2;
  color: #1d3758;
}
.pickup-card {
  margin-top: 10px;
  padding: 14px 0;
  background: #fff;
}
.pickup-form {
  width: 350px;
  margin: 0 auto;
  border-top: 2px solid #2e69b5;
  padding-top: 10px;
}
.pickup-form h1 {
  margin: 0 0 12px;
  color: #2e69b5;
  font-size: 18px;
}
.pickup-form label {
  height: 39px;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  border: 1px solid #b8c3d1;
  font-weight: 400;
}
.pickup-form label span {
  text-align: center;
  color: #b6bec8;
}
.pickup-form input {
  height: 37px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
}
.pickup-captcha {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.pickup-captcha input {
  height: 40px;
  border: 1px solid #b8c3d1;
  border-radius: 0;
}
.pickup-captcha img {
  height: 40px;
  cursor: pointer;
}
.pickup-form button {
  width: 100%;
  height: 41px;
  border-radius: 4px;
  background: #ff5b00;
  font-weight: 700;
}
.pickup-notice {
  margin-top: 10px;
  padding: 20px 12px 14px;
  background: #fff;
  color: #31455f;
}
.pickup-notice h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dotted #cfd6df;
  color: #2e69b5;
  font-size: 17px;
}
.pickup-notice ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  font-size: 14px;
}
.toggle-form {
  margin: 0;
}
.switch {
  display: inline-flex;
  align-items: center;
  width: 52px;
  min-width: 52px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #56b76f;
  justify-content: flex-start;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 23px;
  margin-left: 2px;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  font-size: 12px;
}
.switch.off {
  background: #a0a7b2;
  justify-content: flex-end;
}
.switch.off span {
  margin-left: 0;
  margin-right: 2px;
  color: #64748b;
}
.switch:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.switch.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.logistics-form {
  width: 760px;
  padding-top: 0;
}
.logistics-form input[type="text"],
.logistics-form input[type="number"],
.logistics-form input:not([type]) {
  height: 38px;
  border-radius: 0;
  border-color: #ddd;
}
.logistics-toggle {
  width: 64px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 400;
}
.logistics-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.logistics-toggle span {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9d9d9;
  color: #fff;
}
.logistics-toggle::after {
  content: "";
  width: 31px;
  height: 30px;
  border: 1px solid #d8d8d8;
  border-left: 0;
  background: #fff;
}
.logistics-toggle:has(input:checked) span {
  background: #bfc3c7;
}
.logistics-list-panel {
  min-height: 560px;
}
.logistics-table th,
.logistics-table td {
  height: 41px;
  padding: 8px 14px;
}
.logistics-table .ops-col {
  width: 140px;
}
.default-yes {
  color: #ff2b00;
  font-weight: 700;
}
.list-count {
  padding: 12px 8px 0;
  color: #111;
}

.order-list-panel {
  min-height: 760px;
}
.order-toolbar {
  align-items: center;
  flex-wrap: wrap;
}
.order-toolbar .toolbar-spacer {
  flex-basis: 100%;
  height: 0;
}
.order-search-box {
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.order-search-primary {
  flex-basis: 100%;
}
.order-search-box input {
  width: 118px;
}
.order-search-box select {
  width: 118px;
}
.order-search-box input[name="keyword"] {
  width: 260px;
}
.order-search-box input[name="goods_name"] {
  width: 160px;
}
.order-search-box input[name="logistics_keyword"] {
  width: 190px;
}
.export-order-link {
  background: #009b8b;
}
.order-filter-panel .filter-field-wide {
  max-width: 360px;
}
.order-filter-panel .filter-grid .filter-field-wide {
  max-width: none;
}
.order-table th,
.order-table td {
  height: 48px;
  padding: 9px 12px;
  font-size: 13px;
}
.order-table th {
  text-align: left;
}
.order-table tr:nth-child(even) td {
  background: #f4f4f4;
}
.order-state {
  font-weight: 700;
}
.order-state.pending {
  color: #ff5722;
}
.order-state.shipped {
  color: #003bff;
}
.order-state.completed {
  color: #009b8b;
}
.order-state.cancelled {
  color: #888;
}
.track-link {
  color: #e5441c;
}
.track-button,
.home-track-button {
  width: auto;
  min-height: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #e5441c;
  font-size: 12px;
  line-height: 1.4;
}
.track-button.icon-only {
  width: 30px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 2px;
  background: #fff1ed;
}
.track-button.icon-only svg {
  width: 15px;
  height: 15px;
}
.track-button:hover,
.home-track-button:hover {
  background: transparent;
  color: #b52822;
}
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .5);
}
.admin-modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.order-dialog-backdrop {
  display: block;
  background: transparent;
  pointer-events: none;
}
.order-dialog-window {
  position: fixed;
  width: min(980px, calc(100vw - 280px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  pointer-events: auto;
}
.admin-modal-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #46988b;
  color: #fff;
}
.order-dialog-head {
  cursor: move;
  user-select: none;
}
.admin-modal-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
}
.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .38);
}
.admin-confirm-modal {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #d8dee8;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .28);
}
.admin-confirm-head {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  background: #20232b;
  color: #fff;
}
.admin-confirm-head strong {
  font-size: 14px;
}
.admin-confirm-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
}
.admin-confirm-close:hover {
  background: transparent;
}
.admin-confirm-body {
  min-height: 96px;
  display: grid;
  align-items: center;
  padding: 20px 24px;
  color: #172033;
}
.admin-confirm-body p {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}
.admin-confirm-actions {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}
.admin-confirm-actions button {
  width: auto;
  min-width: 76px;
  min-height: 34px;
  height: 34px;
  border-radius: 2px;
}
.admin-confirm-cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #333;
}
.admin-confirm-cancel:hover {
  background: #f3f4f6;
}
.admin-confirm-ok {
  background: #009b8b;
  color: #fff;
}
.admin-confirm-ok:hover {
  background: #067a70;
}
.track-modal-body,
.home-track-body {
  max-height: 660px;
  overflow: auto;
  padding: 18px 22px 24px;
  color: #333;
}
.order-dialog-body {
  max-height: calc(100vh - 138px);
  overflow: auto;
  padding: 14px 18px 20px;
  background: #fff;
}
.track-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 15px;
}
.track-empty {
  min-height: 220px;
  margin: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #64748b;
}
.track-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4ed;
  color: #e5441c;
  font-weight: 700;
}
.track-empty strong {
  color: #172033;
  font-size: 16px;
}
.track-empty span {
  font-size: 13px;
}
.track-summary {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #f6fbfa;
  border: 1px solid #d7ece8;
}
.track-summary > div {
  display: grid;
  gap: 6px;
}
.track-summary > div span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}
.track-summary > div strong {
  color: #172033;
  line-height: 1.55;
  font-size: 15px;
}
.track-summary dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.track-summary dl div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.track-summary dt {
  color: #64748b;
  font-size: 12px;
}
.track-summary dd {
  min-width: 0;
  margin: 0;
  color: #172033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.track-timeline {
  margin: 0;
  padding: 0 0 0 118px;
  list-style: none;
}
.track-timeline li {
  position: relative;
  min-height: 62px;
  padding: 0 0 20px 28px;
  border-left: 2px solid #d8dee8;
  line-height: 1.6;
}
.track-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 4px #fff;
}
.track-timeline li.is-latest::before {
  background: #0f766e;
  box-shadow: 0 0 0 4px #dff3ef;
}
.track-timeline li:last-child {
  min-height: 0;
  padding-bottom: 0;
  border-left-color: transparent;
}
.track-timeline time {
  position: absolute;
  left: -118px;
  top: -1px;
  width: 88px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.track-timeline p {
  margin: 0;
  color: #344256;
  font-size: 13px;
}
.track-timeline li.is-latest p {
  color: #172033;
  font-weight: 700;
}
.order-ops {
  min-width: 90px;
  gap: 8px;
}
.order-ops .edit {
  background: #d9d9d9;
}
.order-ops .ship {
  background: #28a745;
}
.order-ops .ship:hover {
  background: #218838;
}
.order-ops .complete {
  min-height: 22px;
  height: 22px;
  min-width: 50px;
  padding: 0 8px;
  background: #28a745;
}
.order-ops .complete:hover {
  background: #218838;
}
.order-form {
  width: 900px;
  padding-top: 0;
}
.order-modal-panel {
  min-height: 0;
  border: 0;
  padding: 0;
}
.order-dialog-window .order-form {
  width: 100%;
}
.order-dialog-window .form-line {
  grid-template-columns: 120px minmax(0, 1fr);
}
.order-dialog-window .address-line {
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
}
.order-dialog-window .notice-line {
  margin-left: 0;
}
.order-form input,
.order-form select {
  height: 38px;
  border-radius: 0;
  border-color: #ddd;
}
.order-form input:disabled,
.order-form select:disabled {
  background: #f3f3f3;
  color: #555;
}
.address-line {
  grid-template-columns: 160px 155px 155px 155px;
}
.pickup-admin-form {
  width: 760px;
}
.order-import-panel h2 {
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #009b8b;
  text-align: center;
  font-size: 20px;
}
.order-import-form {
  width: 620px;
  margin-top: 18px;
}
.feedback-panel,
.admin-user-panel,
.admin-role-panel {
  min-height: 760px;
}
.feedback-table th,
.feedback-table td,
.admin-user-table th,
.admin-user-table td,
.admin-role-table th,
.admin-role-table td {
  height: 47px;
  padding: 9px 14px;
  font-size: 13px;
}
.feedback-table tr:nth-child(even) td,
.admin-user-table tr:nth-child(even) td,
.admin-role-table tr:nth-child(even) td {
  background: #f4f4f4;
}
.feedback-table .ops-col {
  width: 150px;
}
.feedback-detail-form {
  width: 900px;
}
.feedback-detail-form input,
.feedback-detail-form textarea,
.admin-form input,
.admin-form select {
  border-radius: 0;
  border-color: #ddd;
}
.feedback-detail-form textarea {
  width: 620px;
}
.admin-user-table .ops-col,
.admin-role-table .ops-col {
  width: 260px;
}
.admin-ops {
  min-width: 120px;
  gap: 8px;
}
.admin-ops button.op {
  min-height: 22px;
  width: auto;
}
.admin-form {
  width: 820px;
}
.admin-form input,
.admin-form select {
  height: 38px;
}
.admin-form input:disabled {
  background: #dedede;
  color: #555;
}
.system-log-panel {
  min-height: 760px;
  padding: 10px;
}
.system-log-toolbar {
  gap: 14px;
}
.system-log-toolbar .legacy-danger {
  min-width: 86px;
  height: 38px;
  border-radius: 2px;
}
.backup-panel {
  min-height: 760px;
  padding: 10px;
}
.backup-toolbar {
  gap: 14px;
  align-items: center;
}
.backup-dir {
  color: #666;
  font-size: 13px;
}
.backup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.backup-actions form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.backup-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 12px;
}
.backup-option input {
  margin: 0;
}
.upload-file-panel {
  min-height: 760px;
  padding: 10px;
}
.upload-file-toolbar {
  gap: 14px;
  align-items: center;
}
.upload-file-filter {
  align-items: center;
  gap: 18px;
}
.upload-clean-form {
  margin: 0;
  display: inline-flex;
}
.upload-clean-summary {
  color: #777;
  font-size: 12px;
  white-space: nowrap;
}
.upload-file-table th,
.upload-file-table td {
  height: 68px;
}
.upload-file-table th:first-child,
.upload-file-table td:first-child {
  width: 90px;
  text-align: center;
}
.upload-file-preview {
  width: 64px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e1e1e1;
  background: #fafafa;
}
.upload-file-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.upload-file-name {
  max-width: 260px;
  color: #222;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-file-url {
  max-width: 320px;
  margin-top: 5px;
  display: block;
  color: #2970b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-state {
  display: inline-flex;
  min-width: 78px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
}
.upload-state.in-use {
  background: #e8f6ee;
  color: #15944a;
}
.upload-state.idle {
  background: #f4f4f4;
  color: #777;
}
.upload-type {
  display: inline-flex;
  min-width: 78px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 2px;
  background: #fff6e6;
  color: #9a5c00;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.upload-usage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 360px;
}
.upload-usage-list span {
  padding: 4px 7px;
  background: #eef5ff;
  color: #2b5f9e;
  border-radius: 2px;
  font-size: 12px;
}
.muted-text {
  color: #999;
}
.system-init-panel {
  min-height: 760px;
  padding: 10px;
}
.system-changelog-panel {
  min-height: 760px;
  padding: 10px;
}
.system-changelog-toolbar {
  padding-bottom: 10px;
}
.system-changelog-content {
  max-width: 980px;
  padding: 18px 24px 34px;
  color: #222;
  line-height: 1.75;
}
.system-changelog-content h1 {
  margin: 0 0 18px;
  font-size: 24px;
}
.system-changelog-content h2 {
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 20px;
}
.system-changelog-content h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}
.system-changelog-content p {
  margin: 8px 0;
}
.system-changelog-content ul {
  margin: 8px 0 14px 22px;
  padding: 0;
}
.system-changelog-content li {
  margin: 5px 0;
}
.system-changelog-content code {
  padding: 2px 5px;
  border-radius: 2px;
  background: #f3f3f3;
  color: #111;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}
.system-init-toolbar {
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
}
.system-init-table th,
.system-init-table td {
  height: 42px;
  padding: 9px 14px;
}
.system-init-table th:nth-child(1),
.system-init-table th:nth-child(3),
.system-init-check {
  width: 70px;
  text-align: center;
}
.system-init-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
.system-init-warning {
  margin: 20px 0 14px 42px;
  color: #ff5722;
  font-size: 18px;
  font-weight: 700;
}
.system-init-confirm,
.system-init-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 78px;
}
.system-init-confirm {
  margin-bottom: 14px;
}
.system-init-confirm label {
  width: 58px;
  text-align: right;
  font-weight: 700;
}
.system-init-confirm input {
  width: 150px;
  height: 42px;
  border: 1px solid #ddd;
  padding: 0 10px;
}
.system-init-confirm img {
  width: 128px;
  height: 42px;
  cursor: pointer;
}
.system-init-actions {
  padding-left: 72px;
}
.system-log-table th,
.system-log-table td {
  height: 59px;
  padding: 10px 15px;
}
.system-log-table th:nth-child(2) {
  width: 125px;
}
.system-log-table th:nth-child(4) {
  width: 180px;
}
.system-log-table th:nth-child(5) {
  width: 165px;
}
.role-permission-line {
  align-items: start;
}
.permission-box {
  width: 650px;
  border: 1px solid #ddd;
  background: #f5f5f5;
}
.permission-all {
  min-height: 42px;
  display: flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 400;
  background: #fff;
}
.permission-all input,
.permission-row input {
  width: 18px;
  height: 18px;
}
.permission-row {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid #e4e4e4;
  font-weight: 400;
}
.permission-row span {
  color: #333;
}

.settings-panel {
  min-height: 760px;
  padding: 18px 10px 26px;
}
.settings-form {
  width: 980px;
}
.settings-tabs {
  height: 42px;
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e5e5;
  border-bottom: 0;
  background: #f6f6f6;
  margin-bottom: 10px;
}
.settings-tabs span,
.settings-tabs button {
  min-width: 95px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}
.settings-tabs .active,
.settings-tabs button.active {
  color: #000;
  font-weight: 700;
}
.settings-pane {
  display: none;
  padding-top: 8px;
}
.settings-pane.active {
  display: block;
}
.settings-empty {
  padding: 28px 0 32px 170px;
  color: #777;
}
.settings-section-title {
  margin: 22px 0 14px 170px;
  font-weight: 700;
  color: #333;
}
.settings-line {
  display: grid;
  grid-template-columns: 170px 600px max-content 180px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.settings-line > label:first-child {
  justify-self: end;
  text-align: right;
  font-weight: 400;
  color: #000;
}
.settings-line label small {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: #000;
}
.settings-line input {
  height: 38px;
  border-radius: 0;
  border-color: #ddd;
}
.settings-line textarea {
  min-height: 118px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  resize: vertical;
  font: inherit;
}
.settings-line input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
}
.radio-setting-line {
  grid-template-columns: 170px 48px 48px;
}
.compact-setting-line {
  grid-template-columns: 170px 90px max-content 1fr;
}
.settings-textarea-line {
  grid-template-columns: 170px 600px;
  align-items: start;
}
.settings-help-line {
  grid-template-columns: 170px 600px;
  align-items: start;
  margin-top: -8px;
}
.settings-help-line small {
  color: #6b7280;
  line-height: 1.6;
}
.settings-unit {
  color: #8a94a3;
}
.settings-checkbox-line {
  grid-template-columns: 170px 760px;
  align-items: start;
}
.settings-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px 14px;
  padding-top: 4px;
}
.settings-checkbox-grid label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}
.settings-checkbox-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #009b8b;
}
.settings-editor-line {
  grid-template-columns: 170px 1fr;
  align-items: start;
}
.settings-rich-editor {
  width: 980px;
  max-width: calc(100vw - 430px);
  border: 1px solid #cfcfcf;
  background: #fff;
}
.settings-rich-editor [id$="-toolbar"] {
  border-bottom: 1px solid #cfcfcf;
  background: #f7f7f7;
}
.settings-rich-editor [id$="-editor"] {
  height: 122px;
  overflow-y: auto;
}
.settings-rich-editor textarea {
  display: none;
}
.radio-setting-line .radio {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.settings-line .legacy-primary {
  width: 92px;
  min-width: 92px;
  height: 38px;
  border-radius: 2px;
}
.settings-preview {
  min-height: 54px;
  display: flex;
  align-items: center;
}
.settings-preview img {
  max-width: 150px;
  max-height: 54px;
  object-fit: contain;
  display: block;
}
.settings-preview.hero-preview img {
  width: 100px;
  height: 70px;
  object-fit: cover;
}
.settings-actions {
  padding: 6px 0 0 300px;
}
.settings-actions button {
  width: 92px;
  border-radius: 2px;
}
.captcha-line img {
  width: 128px;
  height: 42px;
  cursor: pointer;
}

.home-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.home-body main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-header {
  border-top: 8px solid #c80f25;
  background: #fff;
}
.home-nav {
  max-width: 1220px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.home-brand {
  width: 270px;
  display: flex;
  align-items: center;
  padding-left: 32px;
  background: #fff;
}
.home-brand img {
  max-width: 185px;
  max-height: 42px;
  object-fit: contain;
  display: block;
}
.home-brand span {
  color: #111;
  font-size: 28px;
  font-weight: 700;
}
.home-nav nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1;
}
.home-nav nav a {
  min-width: 112px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}
.home-nav nav a.on,
.home-nav nav a:hover {
  background: #c80f25;
  color: #fff;
}
.home-identity-bar {
  background: #fff7f7;
  border-bottom: 1px solid #f2d5d5;
  color: #5f1d24;
}
.home-identity-bar p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.home-footer {
  margin-top: auto;
  padding: 18px 18px 22px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.home-footer p {
  max-width: 1120px;
  margin: 0 auto 6px;
}
.home-footer p:last-child {
  margin-bottom: 0;
}
.footer-beian {
  font-size: 12px;
  color: #9ca3af;
}
.footer-beian a {
  color: #9ca3af;
  text-decoration: none;
}
.footer-beian a:hover {
  color: #6b7280;
  text-decoration: underline;
}
.exchange-hero {
  min-height: 498px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(38px, calc((100vw - 1220px) / 2 + 38px));
  background-color: #171717;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.32) 52%, rgba(0,0,0,.12) 100%),
    linear-gradient(135deg, #161616, #7b4a31 62%, #d18a40);
  background-position: center;
  background-size: cover;
}
.exchange-box {
  width: 360px;
  padding: 34px 30px;
  background: rgba(79, 63, 53, .72);
}
.exchange-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 45px;
  margin-bottom: 10px;
  border-top: 2px solid rgba(255,255,255,.9);
}
.exchange-tabs button,
.exchange-tabs a {
  height: 43px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.exchange-tabs .active {
  border-top: 2px solid #d10d22;
  margin-top: -2px;
  color: #e50020;
}
.exchange-form {
  display: grid;
  gap: 20px;
}
.exchange-form label {
  height: 40px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0;
  font-weight: 400;
  background: #fff;
}
.exchange-form label span {
  height: 40px;
  display: grid;
  place-items: center;
  background: #a3a4a7;
  color: #fff;
  font-size: 18px;
}
.exchange-form label:has(img) {
  grid-template-columns: 40px 1fr 112px;
}
.exchange-form input {
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
}
.exchange-form img {
  width: 112px;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
}
.exchange-form button {
  height: 46px;
  border-radius: 5px;
  background: #c80f25;
  font-weight: 700;
}
.exchange-form button:hover {
  background: #a90d1f;
}
.exchange-form .message {
  min-height: 18px;
  margin: -8px 0 0;
  color: #fff;
  font-size: 13px;
}
.function-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: #ddd;
}
.function-box {
  width: min(1044px, 100%);
  min-height: 350px;
  display: grid;
  place-items: center;
  background: #fff;
}
.function-form-wrap {
  width: 324px;
  padding: 26px 0;
}
.function-form-wrap:has(.query-result) {
  width: min(620px, calc(100% - 32px));
}
.function-form-wrap h1 {
  width: 324px;
  margin: 0 auto 14px;
  padding-top: 10px;
  border-top: 2px solid #9f1f1a;
  color: #9f1f1a;
  font-size: 16px;
  text-align: center;
}
.function-form {
  width: 324px;
  margin: 0 auto;
  gap: 12px;
}
.function-form button {
  height: 37px;
  border-radius: 3px;
  background: #b52822;
}
.function-form button:hover {
  background: #981f1a;
}
.function-form .message {
  color: #b52822;
}
.query-result {
  width: min(520px, 100%);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
  color: #333;
  font-size: 14px;
}
.query-result h2 {
  margin: 0 0 10px;
  color: #9f1f1a;
  font-size: 16px;
  text-align: center;
}
.query-result p {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  margin: 0 0 7px;
  line-height: 1.6;
}
.query-result strong {
  text-align: right;
}
.feedback-hero {
  min-height: 640px;
  display: grid;
  place-items: start center;
  padding: 16px 16px;
  background: #ddd;
}
.feedback-box {
  width: min(696px, 100%);
  padding: 12px;
  background: #fff;
}
.feedback-form {
  display: grid;
  gap: 14px;
}
.feedback-form label {
  display: grid;
  gap: 7px;
  color: #344256;
  font-size: 14px;
  font-weight: 700;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  padding: 0 12px;
  color: #111;
  font-size: 14px;
}
.feedback-form input {
  height: 38px;
}
.feedback-form textarea {
  height: 96px;
  padding: 12px;
  resize: vertical;
}
.feedback-captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
}
.feedback-captcha-row img {
  width: 150px;
  height: 38px;
  object-fit: cover;
  cursor: pointer;
}
.feedback-form button {
  height: 38px;
  border-radius: 4px;
  background: #b52822;
  font-weight: 700;
}
.feedback-form button:hover {
  background: #981f1a;
}
.feedback-success,
.feedback-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 3px solid #b52822;
  background: #fff1f0;
  color: #b52822;
  font-size: 14px;
}
.feedback-success {
  border-left-color: #0f766e;
  background: #eefaf8;
  color: #0f766e;
}
.verify-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: #9d9d9d;
}
.verify-box {
  width: min(1044px, 100%);
  min-height: 300px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .28);
}
.verify-box h1 {
  width: 324px;
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 2px solid #9f1f1a;
  color: #9f1f1a;
  font-size: 16px;
  text-align: center;
}
.verify-form {
  width: 324px;
  gap: 12px;
}
.verify-form button {
  height: 37px;
  border-radius: 3px;
  background: #8f1d18;
}
.service-strip {
  width: min(1120px, 100%);
  max-width: 1120px;
  min-height: 205px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #fff;
}
.service-strip div {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #111;
  font-size: 20px;
}
.service-strip svg {
  width: 56px;
  height: 56px;
  color: #c80f25;
  stroke-width: 2.5;
}
.notice-section {
  background: #eee;
  padding: 44px max(38px, calc((100vw - 1120px) / 2)) 58px;
  color: #4b5563;
}
.notice-section h2 {
  margin: 0 0 22px;
  font-size: 26px;
  color: #4b5563;
}
.notice-section ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  line-height: 1.9;
  font-size: 14px;
}
.exchange-order-page {
  padding: 18px 16px 26px;
  background: #ddd;
}
.exchange-order-panel {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 12px;
  background: #fff;
}
.exchange-product-section h1 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #172033;
  font-size: 24px;
  font-weight: 500;
}
.exchange-product-summary {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 300px);
  gap: 26px;
  align-items: start;
  min-height: 210px;
}
.exchange-product-meta {
  padding-top: 4px;
  color: #111;
  font-size: 14px;
  line-height: 1.9;
}
.exchange-product-meta p {
  margin: 0;
}
.exchange-product-meta span {
  color: #4b5563;
}
.exchange-product-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}
.exchange-product-detail {
  margin-top: 18px;
  color: #111;
  font-size: 14px;
  line-height: 1.8;
}
.exchange-product-detail > strong {
  display: block;
  margin-bottom: 8px;
}
.exchange-product-rich {
  overflow: hidden;
}
.exchange-product-rich img {
  max-width: 100%;
  height: auto;
  display: block;
}
.exchange-product-rich p {
  margin: 0 0 10px;
}
.exchange-recipient-form {
  margin-top: 0;
  display: grid;
  gap: 12px;
}
.exchange-recipient-form label {
  display: grid;
  gap: 5px;
  color: #344256;
  font-size: 14px;
  font-weight: 700;
}
.exchange-recipient-form input,
.exchange-recipient-form textarea {
  height: 34px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  padding: 0 10px;
  color: #111;
  font-size: 14px;
}
.exchange-recipient-form textarea {
  height: 80px;
  padding: 10px;
}
.exchange-address-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exchange-captcha-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: center;
}
.exchange-captcha-row img {
  width: 132px;
  height: 34px;
  object-fit: cover;
  cursor: pointer;
}
.exchange-recipient-form button {
  width: 100%;
  height: 38px;
  margin-top: 2px;
  border-radius: 4px;
  background: #b52822;
  font-weight: 700;
}
.exchange-recipient-form button:hover {
  background: #981f1a;
}
.exchange-form-error {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #b52822;
  background: #fff1f0;
  color: #b52822;
}
.pickup-guide-content {
  line-height: 1.9;
  font-size: 14px;
}
.pickup-guide-content ol,
.pickup-guide-content ul {
  margin: 0;
  padding-left: 18px;
}
.notice-section .pickup-guide-content ol,
.notice-section .pickup-guide-content ul {
  columns: 2;
}
.pickup-guide-content p {
  margin: 0 0 8px;
}
.home-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .68);
}
.home-modal-backdrop.is-hidden {
  display: none;
}
.home-modal {
  width: min(410px, 100%);
  min-height: 245px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.prompt-modal {
  min-height: 0;
}
.home-track-modal {
  width: min(680px, 100%);
}
.home-modal-head {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #b52822;
  color: #fff;
}
.home-modal-head strong {
  font-size: 13px;
}
.home-modal-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.home-modal-close:hover {
  background: transparent;
}
.home-modal-body {
  padding: 16px 28px 26px;
  color: #333;
  line-height: 1.8;
  font-size: 14px;
}
.home-modal-body p {
  margin: 0 0 8px;
}
.prompt-modal-body {
  min-height: 98px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px 24px;
  text-align: center;
  color: #555;
  font-size: 16px;
}
.prompt-modal-body p {
  margin: 0 0 8px;
}
.prompt-modal-actions {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid #ddd;
  background: #f7f7f7;
}
.prompt-modal-actions button {
  width: auto;
  min-width: 72px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: #b52822;
}
.prompt-modal-actions button:hover {
  background: #eee;
}
.order-success-space {
  min-height: 260px;
  background: #eee;
}

@media (max-width: 820px) {
  .nav, .two-col, .admin-body { display: block; }
  .nav nav { margin-top: 12px; }
  .hero h1 { font-size: 30px; }
  .row, .stat-grid, .inline-form { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .admin-main { padding: 16px; }
  .home-nav {
    height: auto;
    display: block;
  }
  .home-brand {
    width: auto;
    height: 58px;
    padding-left: 18px;
  }
  .home-nav nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .home-nav nav a {
    min-width: 98px;
  }
  .exchange-hero {
    min-height: 520px;
    justify-content: center;
    padding: 24px 16px;
  }
  .exchange-box {
    width: min(360px, 100%);
  }
  .function-hero {
    min-height: 420px;
    padding: 18px 12px;
  }
  .function-box {
    min-height: 350px;
  }
  .function-form-wrap,
  .function-form-wrap h1,
  .function-form {
    width: min(324px, 100%);
  }
  .query-result p {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .query-result strong {
    text-align: left;
  }
  .track-modal-body,
  .home-track-body {
    padding: 14px;
  }
  .track-summary {
    padding: 14px;
  }
  .track-summary dl {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .track-timeline {
    padding-left: 0;
  }
  .track-timeline li {
    padding-left: 22px;
  }
  .track-timeline time {
    position: static;
    width: auto;
    display: block;
    margin-bottom: 3px;
  }
  .feedback-hero {
    min-height: 0;
    padding: 12px;
  }
  .feedback-captcha-row {
    grid-template-columns: 1fr 118px;
  }
  .feedback-captcha-row img {
    width: 118px;
  }
  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    min-height: 300px;
  }
  .notice-section ol {
    columns: 1;
  }
  .exchange-product-summary,
  .exchange-address-row {
    grid-template-columns: 1fr;
  }
  .exchange-address-row {
    gap: 10px;
  }
  .notice-section .pickup-guide-content ol,
  .notice-section .pickup-guide-content ul {
    columns: 1;
  }
  .settings-rich-editor {
    max-width: 100%;
  }
}
