:root {
  color-scheme: light;
  --brand-deep: #123B45;
  --action: #167A8B;
  --action-hover: #0F5E6B;
  --page-bg: #F6F7F5;
  --surface: #FFFFFF;
  --text-strong: #17333A;
  --text-muted: #64757A;
  --line: #D9E1DE;
  --price: #B95E13;
  --success: #26734D;
  --warning: #9A6518;
  --danger: #B5473A;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --primary: #e53e3e;
  --primary-dark: #c53030;
  --primary-light: #fff5f5;
  --accent: #2b6cb0;
  --accent-light: #ebf8ff;
  --success: #38a169;
  --success-light: #f0fff4;
  --warning: #d69e2e;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --public-mobile-nav-height: 60px;
  --public-mobile-nav-total-height: calc(var(--public-mobile-nav-height) + env(safe-area-inset-bottom));
}

.lookup-page {
  padding: 40px 0 64px;
}

.contact-page {
  padding: 44px 0 70px;
}

.privacy-page {
  padding: 44px 0 70px;
}

.privacy-card {
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.privacy-policy-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.contact-info-card {
  background: var(--primary-light);
}

.contact-info-card h1,
.contact-form-card h2 {
  margin-top: 0;
}

.contact-email {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  color: var(--primary-dark);
}

.contact-wechat {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-wechat .contact-copy-btn {
  flex-shrink: 0;
}

.contact-success {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--success-light);
  color: #22543d;
  border: 1px solid #c6f6d5;
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
}

.contact-captcha-image {
  width: 160px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff7ed;
}

.admin-message-cell {
  max-width: 420px;
  white-space: pre-wrap;
}

.lookup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.lookup-guide-card {
  padding: 34px;
  border-radius: 22px;
  background: #f5f8fa;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.lookup-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf2ef;
  color: var(--action-hover);
  font-size: 13px;
  font-weight: 800;
}

.lookup-guide-card h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.lookup-guide-card p {
  max-width: 640px;
  color: var(--muted);
}

.lookup-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.lookup-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.lookup-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
}

.lookup-safe-note {
  margin-bottom: 0;
}

.lookup-card,
.lookup-result,
.paid-order-notice,
.admin-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.lookup-card {
  padding: 30px;
}

.lookup-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.lookup-form label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
  color: #1a202c;
}

.lookup-captcha-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.lookup-form > input,
.lookup-captcha-row input {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 1rem;
}

.lookup-clear-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.lookup-clear-button {
  width: auto;
}

.lookup-captcha-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0 16px;
  border-radius: 10px;
  background: #edf2f7;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #2d3748;
}

.lookup-submit-button {
  margin-top: 22px;
}

.lookup-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.lookup-result {
  margin-top: 28px;
  padding: 28px;
}

.lookup-success-note {
  padding: 18px;
  border-radius: 14px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
}

.lookup-order-no-large,
.paid-order-no-block strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  word-break: break-all;
  color: #22543d;
}

.lookup-result-grid,
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.lookup-result-grid div {
  padding: 14px;
  border-radius: 12px;
  background: #f7fafc;
}

.lookup-result-grid span {
  display: block;
  color: #718096;
  font-size: 0.9rem;
}

.lookup-delivery-card {
  margin-top: 18px;
}

.paid-order-notice {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 22px;
  background: #f0fff4;
}

.paid-order-no-block span {
  display: block;
  color: #4a5568;
  font-size: 0.9rem;
}

.admin-detail-card {
  padding: 20px;
  margin-bottom: 18px;
}

.admin-empty-cell {
  text-align: center;
  color: #718096;
  padding: 28px;
}

@media (max-width: 720px) {
  .lookup-layout,
  .lookup-captcha-row,
  .paid-order-notice {
    display: block;
  }

  .lookup-guide-card,
  .lookup-card {
    padding: 22px;
  }

  .lookup-captcha-row input,
  .paid-order-notice .button {
    margin-top: 12px;
    width: 100%;
  }

  .lookup-clear-row {
    justify-content: stretch;
  }

  .lookup-clear-button {
    width: 100%;
  }

  .lookup-captcha-code {
    width: 100%;
    min-height: 46px;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(229, 62, 62, 0.18));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 320px;
  min-width: 180px;
  margin: 0 16px;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.08);
}

.header-search-button {
  height: 38px;
  min-width: 72px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 16px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.header-search-button:hover { background: var(--primary-dark); }

.mobile-search-trigger { display: none; }
.mobile-header-account { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover { color: var(--primary); }

.nav a,
.nav-user {
  white-space: nowrap;
}

.nav-btn {
  padding: 7px 14px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-btn:hover { background: var(--primary-dark) !important; }

.nav-user {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.hero {
  padding: 80px 0;
  background: #1a1a2e;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: #fc8181;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin: 12px 0;
  font-weight: 800;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1.8;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.button.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
  transform: translateY(-1px);
}

.button.danger {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.button.danger:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.market-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.market-card-badge {
  display: inline-flex;
  background: rgba(229, 62, 62, 0.2);
  color: #fc8181;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.market-card h2 {
  margin: 20px 0 14px;
  font-size: 20px;
  color: #fff;
}

.market-card li {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  padding-left: 4px;
}

.home-categories {
  padding: 40px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.home-categories h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.home-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-cat-item {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.home-cat-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.home-section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-left: 16px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.section-more:hover { text-decoration: underline; }

.home-features {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.empty-msg {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
}

.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover { color: #fff; }

.footerbot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
}

.error-panel {
  margin: 64px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  text-align: center;
}

@media (max-width: 760px) {
  .header-inner { height: auto; padding: 14px 0; align-items: flex-start; gap: 10px; flex-direction: column; }
  .nav { gap: 16px; flex-wrap: wrap; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .admin-order-search,
  .admin-order-search-group,
  .admin-order-search-button {
    width: 100%;
  }

  .admin-order-search-input {
    flex: 1;
    width: 100%;
  }
}

.auth-panel {
  max-width: 480px;
  margin: 64px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  font-size: 28px;
  margin: 0 0 24px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.full-width { width: 100%; }

.auth-switch {
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
  font-size: 14px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.admin-panel { margin: 32px auto; }

.admin-body {
  background: #f0f2f5;
}

.admin-topbar {
  background: #1a1a2e;
  color: #fff;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.admin-topbar-inner {
  max-width: 100%;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-brand {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.admin-topbar-logout {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.admin-topbar-logout:hover { color: #fff; }

.admin-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.admin-sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.admin-sidebar-item {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.admin-sidebar-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.admin-sidebar-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.admin-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-page-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-resource-search {
  display: inline-flex;
  align-items: stretch;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0;
  margin-right: 4px;
}

.admin-resource-search-group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

.admin-resource-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.admin-resource-search-input {
  width: 320px;
  min-height: 49px;
  padding: 13px 40px 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-resource-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.admin-resource-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.admin-resource-search-clear:hover {
  color: var(--primary);
  text-decoration: none;
}

.admin-resource-search-button {
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}

.admin-orders-card {
  padding: 22px;
}

.admin-orders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-order-search {
  display: inline-flex;
  align-items: stretch;
  flex: 0 1 520px;
  max-width: 100%;
  margin: 0;
}

.admin-order-search-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.admin-order-search-input {
  width: 360px;
  max-width: 100%;
  min-height: 49px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1;
}

.admin-order-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.admin-order-search-button {
  min-height: 49px;
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-order-pagination {
  margin-top: 18px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.admin-card h2 {
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.xgj-export-settings-card,
.xgj-export-list-card,
.xgj-export-hidden-card,
.xgj-exported-resources {
  margin-bottom: 22px;
}

.xgj-exported-resources .admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.xgj-exported-resources .admin-card-header p,
.xgj-export-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.xgj-export-settings-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}

.xgj-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.xgj-export-progress {
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.xgj-ai-title {
  font-weight: 700;
}

.xgj-ai-title-safe {
  color: #15803d;
}

.xgj-ai-title-sensitive {
  color: #b91c1c;
}

.xgj-ai-cell {
  min-width: 160px;
}

.xgj-ai-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.xgj-ai-pending,
.xgj-ai-stale {
  background: #f3f4f6;
  color: #4b5563;
}

.xgj-ai-running {
  background: #dbeafe;
  color: #1d4ed8;
}

.xgj-ai-safe,
.xgj-ai-badge-safe {
  background: #dcfce7;
  color: #15803d;
}

.xgj-ai-sensitive,
.xgj-ai-badge-sensitive,
.xgj-ai-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.xgj-ai-categories,
.xgj-ai-reason {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.xgj-ai-progress {
  min-height: 20px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.xgj-ai-progress.running {
  color: #1d4ed8;
}

.xgj-ai-progress.done {
  color: #15803d;
}

.xgj-ai-progress.failed {
  color: #b91c1c;
}

.xgj-export-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.xgj-export-picker:empty {
  display: none;
}

.xgj-export-picker .button {
  width: auto;
}

.xgj-category-path,
.xgj-region-path {
  grid-column: span 2;
}

.xgj-path-text {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.xgj-region-picker select,
.xgj-export-settings-form select {
  width: 100%;
}

.form-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.xgj-category-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.xgj-category-search input {
  min-width: min(420px, 100%);
}

.admin-action {
  color: var(--accent) !important;
  font-size: 13px;
  margin-right: 10px;
}

.admin-action:hover { text-decoration: underline; }

.admin-action.danger { color: var(--primary) !important; }

.button-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-form { display: inline; }

.admin-actions-cell {
  white-space: nowrap;
}

.check-col {
  width: 44px;
  text-align: center !important;
}

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.select-all-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
}

.page-total {
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-link.disabled {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.5;
}

.per-page-form select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
}

.image-tip {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.image-sort-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  min-height: 40px;
}

.img-card {
  position: relative;
  width: 140px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  transition: border-color 0.15s, transform 0.15s;
}

.img-card:hover { border-color: var(--accent); }
.img-card.dragging { opacity: 0.4; }
.img-card.drag-over { border-color: var(--primary); transform: scale(1.05); }
.img-card.is-cover { border-color: var(--primary); }

.img-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.img-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.img-del:hover { background: var(--primary); }

.img-file-name {
  padding: 5px 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone.drop-active { border-color: var(--primary); background: var(--primary-light); }

.upload-zone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.upload-icon { font-size: 36px; margin-bottom: 8px; }

.upload-zone p {
  margin: 4px 0;
  color: var(--text);
  font-size: 15px;
}

.upload-hint { color: var(--muted) !important; font-size: 13px !important; }

.upload-progress {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 { margin: 0; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-table td a {
  color: var(--accent);
  margin-right: 8px;
  font-size: 13px;
}

.admin-table td a:hover { text-decoration: underline; }

.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.image-item {
  width: 120px;
  text-align: center;
}

.image-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.image-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-list-page { padding: 32px 0; }

.resource-search { margin-bottom: 24px; }

.search-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.type-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.type-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.type-link.active,
.type-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-link {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.cat-link.active,
.cat-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.resource-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-cover {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--panel);
}

.card-cover-ebook { aspect-ratio: 0.707 / 1; }

.card-cover-video { aspect-ratio: 16 / 9; }

.card-cover-other { aspect-ratio: 4 / 3; }

.card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  color: var(--muted);
  font-size: 14px;
}

.card-body { padding: 16px; }

.card-type {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

.card-sales {
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  max-width: 100%;
  overflow: hidden;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 560px) {
  .pagination {
    gap: 6px;
  }

  .page-link {
    min-width: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }
}

.detail-page { padding: 32px 0; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.detail-images > img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.detail-image-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--muted);
}

.detail-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}

.detail-type {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

.detail-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.detail-title {
  font-size: 26px;
  font-weight: 700;
  margin: 18px 0;
  line-height: 1.3;
}

.detail-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 32px;
}

.detail-sales { color: var(--muted); font-size: 14px; }

.detail-actions { margin-top: 8px; }

.detail-description {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.detail-description h2 { margin: 0 0 16px; font-size: 20px; }

.description-content {
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  font-size: 15px;
}

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    flex-shrink: 1;
    row-gap: 8px;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 0;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
}

.order-confirm { text-align: center; }

.order-resource-title {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0;
}

.order-price {
  font-size: 36px;
  color: var(--primary);
  font-weight: 700;
  margin: 8px 0 24px;
}

.order-detail { margin-bottom: 24px; }
.order-detail p { margin: 10px 0; font-size: 15px; }
.order-detail strong { color: var(--text); }

.delivery-info {
  background: var(--success-light);
  border: 1px solid #c6f6d5;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.delivery-info h2 { margin: 0 0 14px; color: var(--success); font-size: 18px; }
.delivery-info p { margin: 8px 0; font-size: 15px; }
.delivery-info a { color: var(--accent); word-break: break-all; }
.delivery-info a:hover { text-decoration: underline; }

.delivery-content {
  line-height: 1.8;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}

.order-pending {
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-size: 15px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-paid { background: var(--success-light); color: var(--success); }
.status-pending { background: #fffbeb; color: var(--warning); }
.status-closed { background: #f7fafc; color: var(--muted); }
.test-status-success { background: var(--success-light); color: var(--success); }
.test-status-fail { background: var(--primary-light); color: var(--primary); }
.test-status-untested { background: #f7fafc; color: var(--muted); }

.test-result {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}

.test-result.success {
  background: var(--success-light);
  color: var(--success);
}

.test-result.fail {
  background: var(--primary-light);
  color: var(--primary);
}

.test-message {
  max-width: 320px;
  word-break: break-word;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.user-center {
  padding: 32px 0;
}

.user-center-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.user-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 0;
  height: fit-content;
}

.user-sidebar-item {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text);
  border-left: 3px solid transparent;
}

.user-sidebar-item:hover { background: var(--bg); }

.user-sidebar-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.user-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.user-info-card {
  background: #1a1a2e;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info-card h3 { margin: 0; font-size: 20px; }

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: #fc8181;
}

.balance-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.recharge-btn {
  display: inline-flex;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.recharge-btn:hover { background: var(--primary-dark); }

.user-center-page {
  padding: 32px 0;
  min-height: calc(100vh - 68px - 200px);
}

.user-center-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-left: 16px;
  position: relative;
}

.user-center-page h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
}

.empty-state p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.detail-gallery {
  position: relative;
}

.detail-main-img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

.detail-main-img-ebook,
.detail-gallery-ebook .detail-image-placeholder {
  aspect-ratio: 0.707 / 1;
  width: min(100%, 420px);
  height: auto;
  object-fit: cover;
}

.detail-main-img-video,
.detail-gallery-video .detail-image-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-main-img-other,
.detail-gallery-other .detail-image-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.detail-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.detail-images .detail-thumb {
  width: 72px;
  height: 54px;
  margin-bottom: 0;
}

.detail-thumb:hover { border-color: var(--accent); }
.detail-thumb.thumb-active { border-color: var(--primary); }

.detail-guarantees {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.guarantee-item {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.buy-page { padding: 32px 0; }

.buy-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.buy-cover {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.buy-title {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.4;
}

.buy-tags { margin-bottom: 4px; }

.buy-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.buy-price {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
}

.buy-sales { color: var(--muted); font-size: 14px; }

.buy-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.buy-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.buy-summary-row:last-child { border-bottom: none; }
.buy-summary-row span:last-child { color: var(--text); font-weight: 500; }

.buy-total { margin-top: 4px; }

.buy-total-price {
  color: var(--primary) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.buy-submit-btn { margin-top: 8px; }

.buy-back {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
}

.buy-back:hover { text-decoration: underline; }

.buy-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.order-page { padding: 32px 0; }

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.order-header h1 {
  font-size: 20px;
  margin: 0;
}

.order-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-no {
  font-size: 14px;
  color: var(--muted);
}

.order-body {
  padding: 24px 28px;
}

.order-res-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.order-cover {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.order-cover-placeholder {
  width: 100px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.order-res-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.order-res-info .detail-price {
  font-size: 20px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-info-item {
  font-size: 14px;
}

.order-info-label {
  color: var(--muted);
  margin-right: 8px;
}

.order-card .delivery-info {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.delivery-label {
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
}

.delivery-code {
  font-family: monospace;
  font-size: 16px;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.copy-btn {
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.copy-btn:hover { background: #2c5282; }

@media (max-width: 760px) {
  .buy-card { grid-template-columns: 1fr; }
  .order-info-grid { grid-template-columns: 1fr; }
  .order-res-row { flex-direction: column; align-items: flex-start; }
  .order-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .detail-info { position: static; }
}

.admin-body { background: #edf1f5; }
.admin-topbar { background: #0d1b2a; height: 58px; }
.admin-sidebar { width: 218px; background: #132436; border-right: 0; padding-top: 12px; }
.admin-sidebar-item { color: #b7c7d5; border-left: 3px solid transparent; padding: 10px 20px; }
.admin-sidebar-item:hover { background: #1b3349; color: #fff; }
.admin-sidebar-item.active { color: #8de0d4; background: #1b3349; border-left-color: #4cc5b8; }
.admin-main { padding: 24px 28px; }
.admin-card, .admin-table-wrapper, .admin-detail-card, .xgj-export-settings-card { border-radius: 9px; border-color: var(--border); box-shadow: var(--shadow); }
.admin-page-header h1 { font-size: 22px; }
.admin-table th { background: #f4f7f9; color: #4a5d6d; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { font-size: 13px; }

@media (max-width: 760px) {
  .admin-wrapper { display: block; }
  .admin-sidebar { width: 100%; height: auto; position: static; display: flex; overflow-x: auto; padding: 0; }
  .admin-sidebar-item { flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; padding: 10px 13px; font-size: 12px; }
  .admin-sidebar-item.active { border-left: 0; border-bottom-color: #4cc5b8; }
  .admin-main { padding: 16px 12px 28px; }
}

@media (max-width: 560px) {
  .admin-body .admin-main { padding: 16px 12px 28px; }
}

/* Public storefront system. Keep the administrative workspace on its own palette. */
body:not(.admin-body) {
  background: var(--page-bg);
  color: var(--text-strong);
  --radius: 8px;
  --success: #26734D;
  --warning: #9A6518;
}

body.public-shell {
  background: var(--page-bg);
  color: var(--text-strong);
}

body.public-shell .public-main {
  min-height: calc(100vh - 70px);
}

body.public-shell .public-main-with-bottom-nav {
  padding-bottom: 0;
}

body:not(.admin-body) .public-error-panel {
  max-width: 640px;
  margin: 64px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(18, 59, 69, .06);
}

body:not(.admin-body) .lookup-guide {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf2ef;
  color: var(--text-strong);
}

body:not(.admin-body) .lookup-guide h1,
body:not(.admin-body) .lookup-guide h2 {
  color: var(--brand-deep);
}

body:not(.admin-body) .lookup-guide p {
  color: var(--text-muted);
}

body:not(.admin-body) .lookup-kicker {
  background: #eaf2ef;
  color: var(--action-hover);
  font-weight: 800;
}

body:not(.admin-body) .lookup-steps strong {
  background: var(--action);
  color: #fff;
}

body:not(.admin-body) .policy-page {
  padding-top: 36px;
  padding-bottom: 56px;
}

body:not(.admin-body) .policy-document {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(18, 59, 69, .06);
}

body:not(.admin-body) .container {
  width: min(1200px, calc(100% - 40px));
}

body:not(.admin-body) a {
  color: inherit;
}

body:not(.admin-body) :focus-visible {
  outline: 3px solid rgba(22, 122, 139, .35);
  outline-offset: 2px;
}

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) h3,
body:not(.admin-body) h4 {
  color: var(--text-strong);
}

body:not(.admin-body) .button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body:not(.admin-body) .button.primary,
body:not(.admin-body) .nav-btn,
body:not(.admin-body) .header-search-button {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

body:not(.admin-body) .button.primary:hover,
body:not(.admin-body) .nav-btn:hover,
body:not(.admin-body) .header-search-button:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

body:not(.admin-body) .button.secondary,
body:not(.admin-body) .button.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brand-deep);
}

body:not(.admin-body) .button.secondary:hover,
body:not(.admin-body) .button.ghost:hover {
  background: #eef5f3;
  border-color: var(--action);
  color: var(--action-hover);
}

body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}

body:not(.admin-body) input:focus,
body:not(.admin-body) select:focus,
body:not(.admin-body) textarea:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(22, 122, 139, .12);
}

body:not(.admin-body) .site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: var(--line);
}

body:not(.admin-body) .brand {
  color: var(--brand-deep);
}

body:not(.admin-body) .nav a:hover,
body:not(.admin-body) .nav-user,
body:not(.admin-body) .section-more,
body:not(.admin-body) .breadcrumb a {
  color: var(--action);
}

body:not(.admin-body) .nav a.is-active {
  color: var(--brand-deep);
  border-bottom: 2px solid var(--action);
}

body:not(.admin-body) .header-search-input {
  min-height: 44px;
  background: var(--page-bg);
  border-color: var(--line);
}

body:not(.admin-body) .header-search-button {
  min-height: 44px;
}

body:not(.admin-body) .hero,
body:not(.admin-body) .storefront-intro {
  background: var(--brand-deep);
  color: #fff;
}

body:not(.admin-body) .storefront-intro {
  padding: 56px 0 40px;
}

body:not(.admin-body) .storefront-intro > .container {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

body:not(.admin-body) .storefront-intro-copy {
  padding: 28px 0 20px;
}

body:not(.admin-body) .storefront-intro-copy h1,
body:not(.admin-body) .storefront-intro-copy > p:not(.eyebrow) {
  color: #fff;
}

body:not(.admin-body) .storefront-intro-copy h1 {
  margin: 8px 0 12px;
  font-size: 48px;
  line-height: 1.12;
}

body:not(.admin-body) .storefront-intro-copy > p:not(.eyebrow) {
  max-width: 430px;
  color: #d9e8e7;
}

body:not(.admin-body) .storefront-intro .eyebrow,
body:not(.admin-body) .section-kicker {
  color: var(--action);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.admin-body) .eyebrow {
  letter-spacing: 0;
}

body:not(.admin-body) .purchase-step-number {
  letter-spacing: 0;
}

body:not(.admin-body) .lookup-order-no-large {
  font-size: 20px;
}

body:not(.admin-body) .storefront-intro .eyebrow {
  color: #9bd5d3;
}

body:not(.admin-body) .storefront-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body:not(.admin-body) .featured-directory {
  padding: 24px;
  border: 1px solid rgba(217, 225, 222, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

body:not(.admin-body) .featured-directory .section-header h2,
body:not(.admin-body) .featured-directory .section-more {
  color: #fff;
}

body:not(.admin-body) .directory-links,
body:not(.admin-body) .topic-index-list,
body:not(.admin-body) .catalog-filter-strip {
  display: flex;
  gap: 8px;
}

body:not(.admin-body) .directory-links {
  flex-wrap: wrap;
  margin: 18px 0;
}

body:not(.admin-body) .directory-links a,
body:not(.admin-body) .topic-index-item,
body:not(.admin-body) .type-link,
body:not(.admin-body) .cat-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

body:not(.admin-body) .directory-links a:hover,
body:not(.admin-body) .topic-index-item:hover,
body:not(.admin-body) .type-link.active,
body:not(.admin-body) .type-link:hover,
body:not(.admin-body) .cat-link.active,
body:not(.admin-body) .cat-link:hover {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

body:not(.admin-body) .topic-index {
  padding: 28px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

body:not(.admin-body) .topic-index-head,
body:not(.admin-body) .catalog-toolbar,
body:not(.admin-body) .orders-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

body:not(.admin-body) .topic-index-head h2,
body:not(.admin-body) .catalog-toolbar h1,
body:not(.admin-body) .orders-page-heading h1 {
  margin: 4px 0 0;
}

body:not(.admin-body) .topic-index-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

body:not(.admin-body) .topic-index-list {
  margin-top: 18px;
}

body:not(.admin-body) .topic-index-more,
body:not(.admin-body) .topic-index-overflow {
  margin-top: 12px;
}

body:not(.admin-body) .home-section,
body:not(.admin-body) .catalog-page,
body:not(.admin-body) .detail-page,
body:not(.admin-body) .buy-page,
body:not(.admin-body) .orders-page,
body:not(.admin-body) .order-lookup-page,
body:not(.admin-body) .account-page,
body:not(.admin-body) .contact-support-page {
  padding-top: 36px;
  padding-bottom: 56px;
}

body:not(.admin-body) .purchase-steps {
  padding: 36px 0 52px;
  background: #eaf2ef;
  border-top: 1px solid var(--line);
}

body:not(.admin-body) .purchase-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body:not(.admin-body) .purchase-step {
  padding: 20px 0;
  border-top: 2px solid var(--action);
}

body:not(.admin-body) .purchase-step-number {
  color: var(--action);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.admin-body) .purchase-step h3 {
  margin: 8px 0 4px;
}

body:not(.admin-body) .purchase-step p {
  margin: 0;
  color: var(--text-muted);
}

body:not(.admin-body) .catalog-toolbar {
  align-items: center;
  margin-bottom: 20px;
}

body:not(.admin-body) .catalog-toolbar .search-form {
  max-width: 560px;
  flex: 1 1 420px;
}

body:not(.admin-body) .search-form .search-input {
  min-width: 0;
  min-height: 44px;
}

body:not(.admin-body) .catalog-filter-strip {
  flex-direction: column;
  align-items: stretch;
  overflow-x: visible;
  padding: 2px 0 12px;
}

body:not(.admin-body) .catalog-filter-strip::-webkit-scrollbar,
body:not(.admin-body) .topic-index-list::-webkit-scrollbar {
  display: none;
}

body:not(.admin-body) .type-filter-bar,
body:not(.admin-body) .category-bar {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 8px;
  margin: 0;
}

body:not(.admin-body) .type-filter-bar {
  flex-wrap: nowrap;
}

body:not(.admin-body) .category-bar {
  flex-wrap: wrap;
}

body:not(.admin-body) .category-bar .cat-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body:not(.admin-body) .resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body:not(.admin-body) .resource-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(18, 59, 69, .06);
}

body:not(.admin-body) .resource-card:hover {
  border-color: #91c8c5;
  box-shadow: 0 10px 24px rgba(18, 59, 69, .12);
}

body:not(.admin-body) .card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  object-fit: cover;
  background: #edf2f0;
}

body:not(.admin-body) .card-cover-ebook {
  aspect-ratio: 4 / 3;
}

body:not(.admin-body) .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  color: var(--text-strong);
}

body:not(.admin-body) .card-type {
  background: #eaf4f1;
  color: var(--action-hover);
}

body:not(.admin-body) .card-price,
body:not(.admin-body) .detail-price,
body:not(.admin-body) .buy-price,
body:not(.admin-body) .order-price,
body:not(.admin-body) .buy-total-price {
  color: var(--price) !important;
}

body:not(.admin-body) .detail-grid,
body:not(.admin-body) .buy-card,
body:not(.admin-body) .contact-layout,
body:not(.admin-body) .contact-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 32px;
  align-items: start;
}

body:not(.admin-body) .detail-media,
body:not(.admin-body) .buy-resource-preview {
  min-width: 0;
}

body:not(.admin-body) .detail-purchase-panel,
body:not(.admin-body) .buy-summary-panel,
body:not(.admin-body) .account-form-panel,
body:not(.admin-body) .contact-message-panel,
body:not(.admin-body) .lookup-form-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(18, 59, 69, .06);
}

body:not(.admin-body) .detail-purchase-panel,
body:not(.admin-body) .buy-summary-panel {
  position: sticky;
  top: 88px;
}

body:not(.admin-body) .detail-title,
body:not(.admin-body) .buy-title,
body:not(.admin-body) .order-no,
body:not(.admin-body) .delivery-content,
body:not(.admin-body) .orders-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.admin-body) .detail-title,
body:not(.admin-body) .buy-title {
  line-height: 1.35;
}

body:not(.admin-body) .detail-description,
body:not(.admin-body) .order-detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(18, 59, 69, .06);
}

body:not(.admin-body) .buy-confirmation-panel {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body:not(.admin-body) .buy-cover {
  aspect-ratio: 4 / 3;
  max-height: 420px;
  object-fit: cover;
}

body:not(.admin-body) .buy-action-bar {
  margin-top: 20px;
}

body:not(.admin-body) .buy-action-bar .button {
  width: 100%;
}

body:not(.admin-body) .account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 32px;
  align-items: stretch;
  padding: 0;
}

body:not(.admin-body) .account-aside,
body:not(.admin-body) .account-form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body:not(.admin-body) .account-aside {
  padding: 40px;
  background: #eaf2ef;
}

body:not(.admin-body) .account-aside h1 {
  max-width: 480px;
  margin: 10px 0;
  font-size: 40px;
  line-height: 1.2;
}

body:not(.admin-body) .account-aside p:not(.section-kicker) {
  max-width: 480px;
  color: var(--text-muted);
}

body:not(.admin-body) .account-aside a {
  color: var(--action-hover);
  font-weight: 700;
}

body:not(.admin-body) .account-form-panel .auth-form {
  gap: 16px;
}

body:not(.admin-body) .orders-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

body:not(.admin-body) .orders-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
}

body:not(.admin-body) .orders-table th,
body:not(.admin-body) .orders-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

body:not(.admin-body) .orders-table th {
  background: #eef5f3;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

body:not(.admin-body) .status-paid,
body:not(.admin-body) .status-pending,
body:not(.admin-body) .status-closed {
  border: 1px solid currentColor;
}

body:not(.admin-body) .status-paid {
  background: #e8f4ed;
  color: var(--success);
}

body:not(.admin-body) .status-pending {
  background: #fff6df;
  color: var(--warning);
}

body:not(.admin-body) .status-closed {
  background: #f1f4f3;
  color: var(--text-muted);
}

body:not(.admin-body) .contact-support-aside {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf2ef;
}

body:not(.admin-body) .contact-support-aside h1 {
  margin: 10px 0;
  line-height: 1.25;
}

body:not(.admin-body) .contact-support-aside > p {
  color: var(--text-muted);
}

body:not(.admin-body) .contact-email,
body:not(.admin-body) .contact-wechat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-deep);
}

body:not(.admin-body) .contact-captcha-row {
  align-items: center;
}

body:not(.admin-body) .contact-captcha-row input {
  min-width: 0;
}

body:not(.admin-body) .public-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  body:not(.admin-body) {
    padding-bottom: var(--public-mobile-nav-total-height);
  }

  body:not(.admin-body) .container {
    width: min(100% - 24px, 1200px);
  }

  body:not(.admin-body) .site-header {
    position: sticky;
  }

  body:not(.admin-body) .header-inner {
    min-height: 64px;
    height: 64px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  body:not(.admin-body) .brand {
    min-width: 0;
    font-size: 16px;
  }

  body:not(.admin-body) .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.admin-body) .nav {
    display: none;
  }

  body:not(.admin-body) .mobile-header-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--brand-deep);
    font-size: 13px;
    white-space: nowrap;
  }

  body:not(.admin-body) .mobile-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--brand-deep);
  }

  body:not(.admin-body) .header-search {
    display: none;
    order: 3;
    flex: 0 0 100%;
    max-width: none;
    margin: 0;
  }

  body:not(.admin-body) .header-search.is-mobile-open {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    gap: 0;
  }

  body:not(.admin-body) .header-inner:has(.header-search.is-mobile-open) {
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  body:not(.admin-body) .header-search.is-mobile-open .header-search-input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  body:not(.admin-body) .header-search.is-mobile-open .header-search-button {
    flex: 0 0 64px;
    min-width: 64px;
    white-space: nowrap;
    padding: 0 12px;
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  body:not(.admin-body) .storefront-intro {
    padding: 32px 0 24px;
  }

  body:not(.admin-body) .storefront-intro > .container,
  body:not(.admin-body) .detail-grid,
  body:not(.admin-body) .buy-card,
  body:not(.admin-body) .contact-layout,
  body:not(.admin-body) .contact-support-layout,
  body:not(.admin-body) .lookup-layout,
  body:not(.admin-body) .account-panel,
  body:not(.admin-body) .buy-confirmation-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body:not(.admin-body) .storefront-intro-copy {
    padding: 8px 0;
  }

  body:not(.admin-body) .storefront-intro-copy h1 {
    font-size: 34px;
  }

  body:not(.admin-body) .storefront-intro-actions {
    flex-direction: column;
  }

  body:not(.admin-body) .storefront-intro-actions .button {
    width: 100%;
  }

  body:not(.admin-body) .catalog-toolbar {
    display: block;
  }

  body:not(.admin-body) .catalog-toolbar .search-form {
    display: none;
  }

  body:not(.admin-body) .featured-directory {
    padding: 16px;
  }

  body:not(.admin-body) .topic-index-head,
  body:not(.admin-body) .catalog-toolbar,
  body:not(.admin-body) .orders-page-heading {
    display: block;
  }

  body:not(.admin-body) .topic-index-head .section-more,
  body:not(.admin-body) .catalog-toolbar .search-form {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 12px;
  }

  body:not(.admin-body) .topic-index-list,
  body:not(.admin-body) .catalog-filter-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body:not(.admin-body) .catalog-filter-strip {
    flex-direction: row;
    align-items: center;
  }

  body:not(.admin-body) .type-filter-bar,
  body:not(.admin-body) .category-bar {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
  }

  body:not(.admin-body) .category-bar .cat-link {
    max-width: none;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  body:not(.admin-body) .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:not(.admin-body) .card-body {
    padding: 10px;
  }

  body:not(.admin-body) .card-title {
    font-size: 14px;
  }

  body:not(.admin-body) .card-price {
    font-size: 17px;
  }

  body:not(.admin-body) .purchase-steps-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body:not(.admin-body) .detail-purchase-panel,
  body:not(.admin-body) .buy-summary-panel {
    position: static;
    padding: 20px;
  }

  body:not(.admin-body) .detail-purchase-panel {
    order: 1;
  }

  body:not(.admin-body) .detail-media {
    order: 2;
  }

  body:not(.admin-body) .buy-confirmation-panel {
    padding: 16px;
  }

  body:not(.admin-body) .buy-resource-preview {
    order: 0;
  }

  body:not(.admin-body) .buy-summary-panel {
    order: 1;
  }

  body:not(.admin-body) .buy-action-bar {
    position: sticky;
    bottom: var(--public-mobile-nav-total-height);
    z-index: 20;
    margin: 16px -20px -20px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
  }

  body:not(.admin-body) .account-aside,
  body:not(.admin-body) .account-form-panel,
  body:not(.admin-body) .contact-support-aside,
  body:not(.admin-body) .contact-message-panel,
  body:not(.admin-body) .lookup-form-panel {
    padding: 20px;
  }

  body:not(.admin-body) .lookup-guide {
    padding: 20px;
  }

  body:not(.admin-body) .policy-page {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  body:not(.admin-body) .policy-document {
    padding: 20px;
  }

  body:not(.admin-body) .public-error-panel {
    margin: 32px auto;
    padding: 24px 20px;
  }

  body:not(.admin-body) .account-aside h1 {
    font-size: 30px;
  }

  body:not(.admin-body) .orders-table-wrap {
    margin-inline: -1px;
  }

  body:not(.admin-body) .order-header {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
    padding: 18px 20px;
  }

  body:not(.admin-body) .order-body {
    padding: 20px;
  }

  body:not(.admin-body) .order-info-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-body) .order-no,
  body:not(.admin-body) .paid-order-no-block strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body:not(.admin-body) .lookup-captcha-row,
  body:not(.admin-body) .contact-captcha-row {
    display: flex;
    flex-wrap: wrap;
  }

  body:not(.admin-body) .lookup-captcha-row input,
  body:not(.admin-body) .contact-captcha-row input {
    flex: 1 1 180px;
  }

  body:not(.admin-body) .public-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--public-mobile-nav-total-height);
    min-height: var(--public-mobile-nav-total-height);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
  }

  body:not(.admin-body) .public-mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 60px;
    gap: 2px;
    color: var(--text-muted);
    font-size: 11px;
  }

  body:not(.admin-body) .public-mobile-nav a:hover {
    color: var(--action);
  }

  body:not(.admin-body) .public-mobile-nav a span:first-child {
    color: var(--action);
    font-size: 18px;
    line-height: 1;
  }

  body:not(.admin-body) .public-mobile-nav .mobile-nav-icon {
    width: 20px;
    height: 20px;
    color: var(--action);
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  body:not(.admin-body) .header-inner {
    min-width: 0;
    height: 68px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
  }

  body:not(.admin-body) .brand {
    font-size: 17px;
  }

  body:not(.admin-body) .header-search {
    order: 0;
    flex: 1 1 140px;
    flex-basis: auto;
    min-width: 140px;
    max-width: 220px;
    margin: 0 4px;
  }

  body:not(.admin-body) .nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 12px;
  }

  body:not(.admin-body) .nav-btn {
    padding: 6px 8px;
  }
}
