
:root {
  --bg: #fbf8f3;
  --bg-subtle: #f4ede3;
  --surface: #ffffff;
  --surface-warm: #fffaf3;
  --notice-bg: #fff6ea;
  --notice-border: #edd0ae;
  --border: #e8dfd3;
  --border-strong: #d7c9b8;
  --border-hover: #cfa986;
  --ink: #24170f;
  --ink-secondary: #5c4637;
  --ink-muted: #6e5849;
  --accent: #bc5115;
  --accent-hover: #9f420f;
  --accent-ink: #ffffff;
  --accent-text: #993e0d;
  --accent-soft: #fdf1e6;
  --focus: #993e0d;
  --green: #146c43;
  --green-bg: #e7f6ee;
  --auto-ink: #0f5f73;
  --auto-bg: #e6f4f7;
  --amber: #8a460b;
  --amber-bg: #fef3df;
  --red: #b42318;
  --red-bg: #fef2f1;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 3px rgba(68, 40, 18, 0.04);
  --shadow-card: 0 2px 10px rgba(88, 52, 22, 0.045);
  --shadow-hover: 0 8px 22px rgba(88, 52, 22, 0.09);
  --shadow-modal: 0 24px 64px rgba(36, 23, 15, 0.24);
  --font: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --motion: 170ms cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14.5px / 1.6 var(--font);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

section[id], div[id="products-anchor"] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.tabular { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 120;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(calc(-100% - 14px));
}
.skip-link:focus { transform: none; }

/* Optional short top ribbon (only shown when backend supplies distinct banner_text) */
.announcement-bar {
  padding: 7px 16px;
  border-bottom: 1px solid var(--notice-border);
  color: var(--ink-secondary);
  background: var(--notice-bg);
  text-align: center;
  font-size: 13px;
}
.announcement-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.live-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Navbar */
.navbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 45;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-avatar-img {
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  transition: color var(--motion), background-color var(--motion);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.mobile-menu-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent-text);
}
.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(36, 23, 15, 0.08);
}
.mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 14px;
}
.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.mobile-nav-list a:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion), border-color var(--motion), color var(--motion), box-shadow var(--motion);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent-text);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}
.btn:disabled {
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-lg { min-height: 44px; padding-inline: 22px; font-size: 14.5px; }
.btn-sm { min-height: 36px; padding-inline: 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 4px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* Compact Hero — lets desktop see product cards above the fold */
.hero {
  position: relative;
  padding-block: 20px 18px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 320px 160px at 82% 50%, rgba(188, 81, 21, 0.08), transparent), var(--bg);
}
.hero-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}
.hero-content { min-width: 0; }
.hero-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-block-end: 6px;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-pill);
  background: var(--notice-bg);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}
.hero-sub {
  margin: 0 0 12px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 64ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.hero-meta-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-inline-start: 4px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}
.tool-chip:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent-text);
}

.hajimi-stage {
  justify-self: end;
  width: 112px;
  height: 112px;
  margin: 0;
  padding: 5px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.hajimi-hero-image {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

/* Merged Single Notice & Compact Utility Strip */
.notice-strip {
  margin-block: 14px 12px;
  padding: 10px 14px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-md);
  background: var(--notice-bg);
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.notice-strip-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.notice-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--notice-border);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.notice-text {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.notice-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--notice-border);
}
.notice-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.network-guide {
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13.5px;
}
.network-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: inherit;
  color: var(--accent-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.network-guide summary::-webkit-details-marker { display: none; }
.network-guide summary::after {
  content: "展开指南 ▾";
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.network-guide[open] summary::after { content: "收起 ▴"; }
.network-guide-body { padding: 2px 14px 14px; border-top: 1px solid var(--border); }
.network-guide-body p { margin: 10px 0 10px; }
.network-guide-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.network-guide-clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.network-guide-clients h3 { margin: 0 0 4px; color: var(--ink); font-size: 13.5px; }
.network-guide-clients ol { margin: 0; padding-inline-start: 1.35em; }

/* Sections */
.section { padding-block: 16px 40px; }
.section-band { padding-block: 42px; }
.section-subtle { background: var(--bg-subtle); border-block: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-block-end: 16px;
}
.section-intro { min-width: 0; }
.section-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-desc { margin: 0; color: var(--ink-secondary); font-size: 13.8px; }

/* Sticky Filter & Search Bar */
.catalog-toolbar {
  position: sticky;
  inset-block-start: var(--nav-h);
  z-index: 30;
  margin-inline: -24px;
  padding: 10px 24px 12px;
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  margin-block-end: 16px;
}
.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-block-end: 10px;
}
.catalog-heading-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.result-count {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.search-wrap {
  position: relative;
  flex: 0 1 290px;
  min-width: 210px;
}
.search-input, .input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--motion), box-shadow var(--motion);
}
.search-input:focus, .input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(153, 62, 13, 0.14);
  outline: 1px solid var(--focus);
}
.search-input {
  min-height: 38px;
  padding-inline: 36px 34px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.search-input::placeholder, .input::placeholder { color: var(--ink-muted); }
.search-icon {
  position: absolute;
  inset-inline-start: 13px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}
.search-clear-btn {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  cursor: pointer;
}
.search-clear-btn:hover { background: var(--bg-subtle); color: var(--ink); }

.filter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}
.pill-count {
  font-size: 11.5px;
  opacity: 0.78;
}
.pill:hover {
  border-color: var(--border-hover);
  color: var(--accent-text);
  background: var(--accent-soft);
}
.pill:is(.active, [aria-pressed="true"]) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.pill:is(.active, [aria-pressed="true"]) .pill-count { opacity: 0.92; }
.mobile-cat-toggle {
  display: none;
  flex-shrink: 0;
}

/* Products — 3 columns on desktop for immediate above-the-fold browsing */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-secondary);
  text-align: center;
}
.product-empty p { margin: 0 0 12px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--motion), border-color var(--motion), transform var(--motion);
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 10px;
}
.card-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--accent-text);
}
.brand-avatar svg { width: 17px; height: 17px; }
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-badge--hot {
  background: var(--accent-soft);
  border-color: var(--notice-border);
  color: var(--accent-text);
}
.product-name {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-sub {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 10px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
}
.meta-auto { background: var(--auto-bg); color: var(--auto-ink); }
.meta-manual { background: var(--bg-subtle); color: var(--ink-secondary); }
.meta-stock { background: var(--green-bg); color: var(--green); }
.meta-low { background: var(--amber-bg); color: var(--amber); }
.meta-out { background: #f1eae2; color: var(--ink-muted); }
.meta-stock::before, .meta-low::before, .meta-out::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.feature-list {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.feature-list:empty { display: none; }
.feature-list li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #d48850;
}
.product-risk-note {
  margin: 0 0 12px;
  padding: 7px 9px;
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  background: var(--notice-bg);
  color: var(--amber);
  font-size: 12px;
  line-height: 1.5;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block-start: 12px;
  margin-block-start: auto;
  border-top: 1px solid var(--border);
}
.card-footer .buy-btn {
  width: auto;
  min-width: 96px;
  min-height: 38px;
  padding: 7px 15px;
  font-size: 13.5px;
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
.price-main { display: flex; align-items: baseline; gap: 2px; }
.price-currency { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.price-value { color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price-unit, .price-orig { color: var(--ink-muted); font-size: 12px; }
.price-orig { text-decoration: line-through; white-space: nowrap; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-block-end: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--notice-border);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
}
.step-card h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.step-card p { margin: 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.6; }

/* Lookup */
.lookup-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.lookup-content { display: grid; grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 40px); }
.lookup-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.lookup-field.form-label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
}
.lookup-submit { min-height: 40px; padding-inline: 20px; border-radius: var(--radius-sm); }

.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap .input { padding-inline-end: 54px; }
.pwd-toggle-btn {
  position: absolute;
  inset-inline-end: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pwd-toggle-btn:hover { background: var(--bg-subtle); color: var(--accent-text); }

.lookup-result { margin-block-start: 22px; padding-block-start: 22px; border-top: 1px solid var(--border); }
.lookup-count-bar { margin-bottom: 14px; font-size: 13px; color: var(--ink-muted); }
.lookup-count-bar strong { color: var(--ink); }
.lookup-order-card + .lookup-order-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
}
.lookup-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.order-no-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-no-text { font-weight: 700; font-size: 15.5px; }
.order-head-muted { font-weight: 700; font-size: 14.5px; color: var(--ink-secondary); }
.order-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block-end: 14px; }
.kv-box { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.kv-label { margin: 0 0 3px; color: var(--ink-muted); font-size: 12px; }
.kv-value { color: var(--ink); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.delivery-box { padding: 14px; border: 1px solid #b5dfc8; border-radius: var(--radius-md); background: var(--green-bg); }
.delivery-box-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-block-end: 8px; }
.delivery-box-title { color: var(--green); font-size: 13.5px; }
.delivery-code {
  margin: 0;
  padding: 12px;
  border: 1px solid #c5e6d4;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--green);
  font: 13.5px / 1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.status-pending { background: var(--amber-bg); color: var(--amber); }
.status-fulfilled { background: var(--green-bg); color: var(--green); }
.status-cancelled { background: var(--red-bg); color: var(--red); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 36px); }
.faq-list {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 22px;
  box-shadow: var(--shadow-card);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 0;
  gap: 14px;
  list-style: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; background: var(--bg-subtle); }
.faq-body { padding: 0 20px 16px 0; color: var(--ink-secondary); font-size: 13.8px; line-height: 1.7; }

/* Footer */
.footer { padding-block: 28px 36px; color: var(--ink-secondary); font-size: 13.5px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-tools a { transition: color var(--motion); }
.footer-tools a:hover { color: var(--accent-text); }
.support-title { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.support-hours { color: var(--ink-muted); font-size: 12.5px; }
.support-chips { display: flex; align-items: center; gap: 8px; margin-block-start: 8px; flex-wrap: wrap; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  gap: 4px;
  padding: 5px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.chip-btn:hover { background: var(--accent-soft); border-color: var(--border-hover); color: var(--accent-text); }

/* Floating quick-jump dock */
.floating-dock {
  position: fixed;
  z-index: 42;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--motion), transform var(--motion);
}
.floating-dock.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(36, 23, 15, 0.14);
  cursor: pointer;
}
.dock-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.dock-btn--accent:hover { background: var(--accent-hover); }
.dock-btn:not(.dock-btn--accent):hover { background: var(--accent-soft); color: var(--accent-text); }

/* Modal — Flex column with sticky header & sticky footer so CTA is never clipped */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(36, 23, 15, 0.48);
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  animation: modal-in var(--motion);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.icon-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 22px;
  cursor: pointer;
}
.icon-close:hover { background: var(--bg-subtle); color: var(--ink); }
.modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.modal-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
}
.modal-footer {
  flex: 0 0 auto;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-warm);
}

.checkout-product-bar, .qty-row, .total-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-product-bar {
  padding: 12px 14px;
  margin-block-end: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.checkout-product-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.checkout-product-meta { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.checkout-product-price { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }

.form-group { margin-block-end: 13px; }
.form-group:last-child { margin-block-end: 0; }
.form-label { display: block; margin: 0 0 5px; color: var(--ink); font-size: 13px; font-weight: 600; }
.required-mark { color: var(--red); }
.form-hint { margin: 4px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.45; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; }
.qty-stepper button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.qty-stepper button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-text); }
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper span { min-width: 32px; color: var(--ink); text-align: center; font-size: 14px; font-weight: 700; }

.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.pay-methods--single { grid-template-columns: minmax(0, 1fr); }
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--motion), border-color var(--motion);
}
.pay-option:hover { background: var(--bg-subtle); }
.pay-option.selected, .pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input[type="radio"] { flex: 0 0 auto; accent-color: var(--accent); margin: 3px 0 0; }
.payment-option-copy { display: grid; gap: 2px; min-width: 0; }
.pay-option-title { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.pay-option-sub { color: var(--ink-muted); font-size: 12px; }

.total-bar { padding-block: 0 10px; }
.total-label { color: var(--ink-secondary); font-weight: 600; font-size: 13.5px; }
.total-amount { color: var(--ink); font-size: 25px; font-weight: 800; line-height: 1; }
.account-risk-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-block-end: 10px;
  padding: 8px 10px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.account-risk-consent input {
  flex: 0 0 auto;
  inline-size: 16px;
  block-size: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

/* Payment prompt & QR */
.pay-confirm-box {
  padding: 14px;
  margin-block-end: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  text-align: center;
}
.pay-amount-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 8px;
}
.pay-amount-label { font-size: 13.5px; color: var(--ink-secondary); font-weight: 600; }
.pay-amount-num { font-size: 26px; font-weight: 800; color: var(--red); line-height: 1.1; }
.pay-actions-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}
.pay-hint-text { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-secondary); }
.pay-modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.usdt-box {
  margin: 10px 0 6px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13.5px;
  display: grid;
  gap: 5px;
}
.usdt-address { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.qr-preview {
  display: block;
  max-width: min(100%, 212px);
  max-height: 212px;
  padding: 8px;
  margin: 10px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}
.alipay-qr-preview {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 10px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}
.alipay-qr-preview--poster img {
  position: absolute;
  top: -115%;
  left: 50%;
  width: 184%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}
.alipay-qr-preview:not(.alipay-qr-preview--poster) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.alert { padding: 10px 13px; margin-block-end: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; }
.alert-error { background: var(--red-bg); border-color: #f4c6c3; color: var(--red); }
.alert-success { background: var(--green-bg); border-color: #b5dfc8; color: var(--green); }
.alert-info { background: var(--accent-soft); border-color: var(--notice-border); color: var(--ink); }
.alert-warn { background: var(--amber-bg); border-color: #f3d5a5; color: var(--amber); }

.toast {
  position: fixed;
  z-index: 95;
  inset-block-end: 24px;
  inset-inline-start: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity var(--motion), transform var(--motion);
  box-shadow: 0 10px 26px rgba(36, 23, 15, 0.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-content { display: block; }
  .lookup-form { margin-block-start: 16px; }
  .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --nav-h: 54px; }
  .container { padding-inline: 14px; }
  .navbar-inner { gap: 8px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero { padding-block: 14px 12px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .hero h1 { font-size: 22px; }
  .hero-badge { display: none; }
  .hero-sub { font-size: 13px; margin-bottom: 10px; }
  .hero-actions .btn-lg { min-height: 38px; padding: 6px 14px; font-size: 13.5px; }
  .hero-meta-chips { display: none; }
  .hajimi-stage { width: 78px; height: 78px; padding: 4px; border-radius: 16px; }
  .hajimi-hero-image { border-radius: 11px; }

  .notice-strip { margin-block: 10px 8px; padding: 9px 11px; font-size: 12.5px; }
  .catalog-toolbar {
    margin-inline: -14px;
    padding: 8px 14px 10px;
  }
  .filter-top-row { margin-block-end: 8px; gap: 8px; }
  .search-wrap { flex: 1 1 100%; min-width: 0; }
  .filter-pills-wrap { align-items: center; }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .mobile-cat-toggle { display: inline-flex; }

  .product-grid, .steps-grid, .lookup-form, .faq-layout, .network-guide-clients {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-band { padding-block: 30px; }
  .lookup-card, .step-card { padding: 18px; }
  .pay-methods { grid-template-columns: minmax(0, 1fr); }
  .pay-modal-actions { grid-template-columns: minmax(0, 1fr); }
  .input, .search-input { font-size: 16px; }
  .modal-backdrop { padding: 8px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 18px; }
  .modal-header { padding: 12px 16px; }
  .modal-scroll { padding: 14px 16px; }
  .modal-footer { padding: 10px 16px 14px; }
  .floating-dock { inset-block-end: 14px; inset-inline-end: 12px; }
}

@media (max-width: 360px) {
  .container { padding-inline: 12px; }
  .catalog-toolbar { margin-inline: -12px; padding-inline: 12px; }
  .navbar .brand-link { font-size: 15px; gap: 7px; }
  .hero h1 { font-size: 20px; }
  .hajimi-stage { width: 68px; height: 68px; }
  .card-footer { align-items: stretch; flex-direction: column; gap: 10px; }
  .card-footer .buy-btn { width: 100%; }
  .order-summary-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
