:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', ui-monospace, Menlo, monospace;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --ink: #000000;
  --ink-2: #111111;
  --text: #374151;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --line: #eaeaea;
  --line-light: #f3f4f6;
  --accent: #0070f3;
  --accent-light: #eff6ff;
  --purple: #7928ca;
  --purple-light: #faf5ff;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition: .2s ease;
}

/* Eliminate WordPress block/theme top spacing on track-order page */
body.page-template-page-track-order #wrapper,
body.page-template-page-track-order-php #wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-template-page-track-order #inner-wrap,
body.page-template-page-track-order-php #inner-wrap,
body.page-template-page-track-order main.wrap,
body.page-template-page-track-order-php main.wrap {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Base override inside page-space to protect against theme font/color leaks */
.page-space {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  font-family: var(--font-sans) !important;
  color: var(--ink) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
  .page-space {
    padding: 32px 16px 48px;
  }
}

.page-space *,
.page-space *::before,
.page-space *::after {
  box-sizing: border-box;
}

.page-space a {
  color: inherit;
  text-decoration: none;
}

.page-space button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.page-space a:focus-visible,
.page-space button:focus-visible,
.page-space input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-headline {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

@media(max-width: 640px) {
  .hero-headline {
    font-size: 30px;
  }
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 44px;
}

/* Query Form */
.search-strip {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 16px;
  align-items: flex-end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

@media(max-width: 640px) {
  .search-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.s-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.s-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
}

/* Placeholder must read as a light hint, never as filled-in text. The theme's
   global input::placeholder rule forces #171717 + bold 700; override it so the
   example values stay visually separate from real user input. */
.s-input::placeholder,
.s-input::-webkit-input-placeholder,
.s-input::-moz-placeholder,
.s-input:-ms-input-placeholder {
  color: var(--text-3) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--text-3) !important;
}

.s-input.mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.s-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
  outline: none;
}

.s-input.has-error {
  border-color: var(--danger);
}

.s-err {
  display: none;
  color: var(--danger);
  font-size: 11.5px;
  margin-top: 6px;
  line-height: 1.3;
}

.s-err.show {
  display: block;
}

.btn-submit {
  height: 46px;
  padding: 0 28px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-submit:hover {
  background: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

@media(max-width: 640px) {
  .btn-submit {
    width: 100%;
  }
}

.search-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
}

.btn-demo-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
}

.btn-demo-link:hover {
  color: #0051b3;
}

.form-global-err {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.form-global-err.show {
  display: block;
}

/* Result Section */
.spatial-result {
  display: none;
  margin-top: 56px;
  animation: fadeIn .3s ease-out;
}

.spatial-result.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Status Banner */
.meta-banner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

@media(max-width: 768px) {
  .meta-banner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mb-col .mb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.mb-col .mb-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}

.mb-col .mb-value.status-glow {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: .35;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.mb-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}

/* 2. Linear Progression Track */
.linear-track-wrap {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 32px;
}

.prog-bar-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media(max-width: 640px) {
  .prog-bar-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 20px;
    border-left: 2px solid var(--line);
  }
}

.prog-rail {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

@media(max-width: 640px) {
  .prog-rail {
    display: none;
  }
}

.prog-rail-fill {
  position: absolute;
  top: 14px;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 2;
  transition: width .5s ease;
}

@media(max-width: 640px) {
  .prog-rail-fill {
    display: none;
  }
}

.prog-step {
  position: relative;
  z-index: 3;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.prog-step.done .step-node {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.prog-step.current .step-node {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.prog-step.pending .step-name {
  color: var(--text-3);
}

.step-time {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* 3. Checkpoints Chrono Table */
.checkpoints-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.chrono-table {
  width: 100%;
  border-collapse: collapse;
}

.chrono-table tr {
  border-bottom: 1px solid var(--line-light);
}

.chrono-table tr:last-child {
  border-bottom: none;
}

.chrono-table td {
  padding: 14px 0;
  font-size: 13px;
  vertical-align: top;
}

.chrono-date {
  font-family: var(--font-mono);
  color: var(--text-3);
  width: 140px;
  font-size: 12px;
}

.chrono-event {
  color: var(--ink);
  font-weight: 500;
}

.chrono-event b {
  font-weight: 700;
  color: var(--ink-2);
}

.chrono-loc {
  color: var(--text-2);
  text-align: right;
  font-size: 12px;
}

@media(max-width: 640px) {
  .chrono-table td {
    display: block;
    padding: 4px 0;
  }
  .chrono-table tr {
    padding: 12px 0;
    display: block;
  }
  .chrono-loc {
    text-align: left;
    margin-top: 2px;
  }
}

/* 4. Split Section: Items vs Address */
.split-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

@media(max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.items-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line-light);
}

.ie-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}

.ie-details {
  flex: 1;
  min-width: 0;
}

.ie-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ie-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.ie-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.summary-calc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
}

.calc-line.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.dest-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.dest-card b {
  color: var(--ink);
  font-weight: 700;
}

.dest-card .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

/* =========================================================================
   STYLE 9: LINEAR PROTOCOL ARCHITECTURE (3-PILLAR CLEAN PROTOCOL)
   ========================================================================= */
.protocol-stage {
  margin-top: 56px;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}

.protocol-topbar {
  padding: 20px 28px;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.proto-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: .8;
}

.proto-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #ffffff;
}

.proto-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.proto-act-btn:hover {
  background: #0070f3;
  color: #ffffff;
}

/* The page shell ships `.page-space a { color: inherit }` (0,1,1), which outranks
   the single-class rules above (0,1,0) and inherited the black topbar's white text
   onto this white button. Re-scope through the stage so the box keeps its own colors. */
.protocol-stage .proto-act-btn {
  color: var(--ink);
}

.protocol-stage .proto-act-btn:hover {
  color: #ffffff;
}

/* 3 Precision Columns */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  gap: 1px;
}

@media(max-width: 768px) {
  .protocol-grid {
    grid-template-columns: 1fr;
  }
}

.p-pillar {
  background: #ffffff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.p-step-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line-light);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.p-pillar.highlight .p-step-circle {
  background: var(--ink);
  color: #ffffff;
}

.p-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

/* Pillar 1: Points */
.p-pts-hero {
  margin: 18px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.p-pts-num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
}

.p-pts-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Pillar 2: Discount Math */
.p-discount-card {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--success-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
}

.p-save-badge {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--success);
  line-height: 1.1;
}

.p-compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.p-strike {
  text-decoration: line-through;
  color: var(--text-3);
}

/* Pillar 3: Tiers Stack */
.p-tier-stack {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-tier-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 210px of inner width cannot fit "1,000 pts · Tier 3: Curator · 10% OFF"
     (215px natural), which broke each part onto its own second line. Tightened
     the box instead of the type so every tier stays one 39.2px row. */
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  background: var(--bg-subtle);
}

.p-tier-line.active {
  border-color: var(--accent);
  background: var(--accent-light);
  font-weight: 700;
  color: var(--accent);
}

.p-tier-line.goal {
  border-color: var(--purple);
  background: var(--purple-light);
  font-weight: 700;
  color: var(--purple);
}

.ptl-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Last-resort guard: if a wider system font eats the remaining headroom the label
   ellipsises rather than re-breaking the row into a second line. */
.ptl-left > span:not(.ptl-pill) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptl-pill {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.p-tier-line.goal .ptl-pill {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.ptl-pct {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 800;
}

.p-copy {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.p-copy b {
  color: var(--ink);
}

/* Bottom Progress and Direct Action */
.protocol-bottom {
  padding: 20px 28px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media(max-width: 768px) {
  .protocol-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.pb-meter {
  flex: 1;
  min-width: 240px;
}

.pb-rail {
  height: 6px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}

.pb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 100%);
  border-radius: 100px;
}

.pb-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  margin-top: 6px;
}

.pb-legend b {
  color: var(--ink);
}

.btn-proto-claim {
  height: 42px;
  padding: 0 24px;
  background: var(--ink);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-proto-claim:hover {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 112, 243, .25);
}

.btn-proto-claim .arr {
  transition: transform var(--transition);
}

.btn-proto-claim:hover .arr {
  transform: translateX(4px);
}


/* ------------------------------------------------------------------
   Track-order SEO content block (2026-10-07).
   GSC listed /track-order/ as "已找到 - 目前尚未建立索引" because the page
   body was only 58 words. This block adds the explanatory content the page
   needed anyway. Styled to match the existing Linear/Vercel sheet.
   ------------------------------------------------------------------ */
.track-help {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.track-help h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.track-help h2:first-child {
  margin-top: 0;
}
.track-help p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 16px;
}
.track-help ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.track-help li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}
.track-help b {
  color: var(--ink-2);
  font-weight: 600;
}
.track-help a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.track-help a:hover {
  text-decoration: underline;
}
.track-help .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

@media (max-width: 640px) {
  .track-help { margin-top: 44px; padding-top: 28px; }
  .track-help h2 { font-size: 18px; margin-top: 32px; }
}
