/* =========================================================
   骏马通信 · H5
   ========================================================= */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #fbfaf8;
  --ink: #181a1e;
  --ink-soft: #3f434b;
  --muted: #7c807f;
  --muted-light: #a3a5a2;
  --line: #ece8e1;
  --line-soft: #f2efea;
  --accent: #ff5b2e;
  --accent-deep: #e8481b;
  --accent-soft: #fff0e9;
  --blue: #0e6cff;
  --blue-soft: #edf4ff;
  --green: #0d9b6c;
  --amber: #d88413;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --header-h: 62px;
  --shadow-card: 0 8px 28px rgba(35, 29, 22, 0.055);
  --shadow-hero: 0 16px 44px rgba(236, 76, 29, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-number: "DIN Alternate", "Bahnschrift", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 92% -8%, rgba(255, 205, 177, 0.7) 0%, transparent 58%),
    radial-gradient(780px 620px at -8% 28%, rgba(216, 229, 255, 0.62) 0%, transparent 55%),
    #eeebe5;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(53, 44, 34, 0.035), 0 30px 100px rgba(48, 39, 28, 0.14);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(232, 227, 219, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-radius: 12px;
}

.brand:focus-visible,
.query-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 136, 86, 0.95), transparent 46%),
    linear-gradient(145deg, #2c2e33, #101114);
  border-radius: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 5px 12px rgba(20, 20, 24, 0.16);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
}

.brand-mark.has-logo {
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-mark.small.has-logo {
  padding: 2px;
  border-radius: 8px;
}

.brand-mark.small.has-logo img {
  border-radius: 6px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.16;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.query-entry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.query-entry .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.query-entry:hover {
  color: var(--accent-deep);
  background: #fff;
  border-color: #f1c7b8;
}

/* ---------- Hero carousel ---------- */

.hero-section {
  padding: 14px 16px 0;
}

.poster-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  background: #2b180f;
  touch-action: pan-y;
}

.poster-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.72, 0.24, 1);
  will-change: transform;
}

.poster-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  height: clamp(214px, 56vw, 268px);
  overflow: hidden;
  color: var(--poster-ink, #fff);
  background: var(--poster-bg, linear-gradient(135deg, #ff7a43, #ed4519));
}

.poster-image-slide {
  background: #1a1714;
}

.poster-image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.poster-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.poster-image-link:hover .poster-banner-image {
  transform: scale(1.015);
}

.poster-image-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.poster-slide.theme-sunset {
  --poster-ink: #fffaf5;
  --poster-muted: rgba(255, 248, 243, 0.82);
  --poster-tag-bg: rgba(255, 255, 255, 0.2);
  --poster-tag-border: rgba(255, 255, 255, 0.28);
  --poster-price: #fff;
  --poster-btn-bg: #181410;
  --poster-btn-ink: #fff;
  --poster-bg:
    radial-gradient(120% 150% at 100% 0%, #ffc391 0%, rgba(255, 172, 118, 0) 49%),
    radial-gradient(100% 120% at 0% 100%, #d9340b 0%, rgba(217, 52, 11, 0) 58%),
    linear-gradient(128deg, #ff7b43 0%, #f85220 52%, #e73a0e 100%);
}

.poster-slide.theme-ink {
  --poster-ink: #f9f4ea;
  --poster-muted: rgba(237, 240, 245, 0.72);
  --poster-tag-bg: rgba(255, 255, 255, 0.1);
  --poster-tag-border: rgba(255, 255, 255, 0.18);
  --poster-price: #ffc78c;
  --poster-btn-bg: #f7efe3;
  --poster-btn-ink: #171a20;
  --poster-bg:
    radial-gradient(130% 120% at 97% -10%, rgba(57, 117, 255, 0.85) 0%, rgba(30, 69, 172, 0) 54%),
    radial-gradient(100% 130% at 0% 110%, #243044 0%, rgba(36, 48, 68, 0) 60%),
    linear-gradient(130deg, #111c2b 0%, #0d1520 64%, #131c29 100%);
}

.poster-slide.theme-jade {
  --poster-ink: #f9f4e9;
  --poster-muted: rgba(235, 244, 231, 0.72);
  --poster-tag-bg: rgba(229, 255, 198, 0.13);
  --poster-tag-border: rgba(229, 255, 198, 0.2);
  --poster-price: #e2ff9e;
  --poster-btn-bg: #e6f6ca;
  --poster-btn-ink: #163d32;
  --poster-bg:
    radial-gradient(130% 120% at 100% 0%, #2e7c62 0%, rgba(46, 124, 98, 0) 56%),
    radial-gradient(100% 120% at 0% 100%, #0a241e 0%, rgba(10, 36, 30, 0) 64%),
    linear-gradient(130deg, #17483c 0%, #10372e 64%, #0d2b24 100%);
}

.poster-slide.has-image {
  background-position: center;
  background-size: cover;
}

.poster-slide.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 11, 16, 0.86) 0%, rgba(7, 11, 16, 0.55) 48%, rgba(7, 11, 16, 0.14) 100%);
}

.poster-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.8px, transparent 0.8px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 76%);
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  pointer-events: none;
}

.poster-glow {
  position: absolute;
  z-index: -1;
  top: -58px;
  right: -44px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 90px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.poster-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 76%;
  height: 100%;
  padding: 20px 0 18px 20px;
}

.poster-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--poster-ink);
  background: var(--poster-tag-bg);
  border: 1px solid var(--poster-tag-border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.poster-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.85;
}

.poster-title {
  max-width: 100%;
  margin: 8px 0 0;
  color: var(--poster-ink);
  font-size: clamp(23px, 6.1vw, 31px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
}

.poster-subtitle {
  display: -webkit-box;
  max-width: 100%;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--poster-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.poster-bottom {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  margin-top: auto;
  min-height: 43px;
}

.poster-price {
  display: flex;
  align-items: baseline;
  color: var(--poster-price);
  white-space: nowrap;
}

.poster-price .currency {
  margin-right: 2px;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-5px);
}

.poster-price strong {
  font-family: var(--font-number);
  font-size: 35px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.poster-price .unit {
  margin-left: 3px;
  color: var(--poster-muted);
  font-size: 9px;
  font-weight: 500;
}

.poster-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 35px;
  padding: 0 12px;
  color: var(--poster-btn-ink);
  background: var(--poster-btn-bg);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.poster-cta .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.poster-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.poster-cta:hover .icon {
  transform: translateX(2px);
}

.poster-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  pointer-events: none;
}

.poster-slide.has-image .poster-art {
  display: none;
}

.sim-card {
  position: absolute;
  top: 42px;
  right: 24px;
  width: 116px;
  height: 140px;
  padding: 13px;
  overflow: hidden;
  color: #1b1e24;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.95), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.19);
  transform: rotate(11deg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.theme-ink .sim-card,
.theme-jade .sim-card {
  color: var(--poster-ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -28px;
  width: 92px;
  height: 92px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.sim-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 13px;
  width: 45px;
  height: 15px;
  opacity: 0.26;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px);
}

.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-net {
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sim-chip {
  width: 19px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 46%, currentColor 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}

.sim-data {
  display: block;
  margin-top: 14px;
  font-family: var(--font-number);
  font-size: 32px;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.sim-label {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.64;
}

.sim-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 13px;
  height: 12px;
  opacity: 0.42;
}

.sim-bars i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}

.sim-bars i:nth-child(1) { height: 4px; }
.sim-bars i:nth-child(2) { height: 6px; }
.sim-bars i:nth-child(3) { height: 9px; }
.sim-bars i:nth-child(4) { height: 12px; }

.float-pill {
  position: absolute;
  right: 108px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  color: #222;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.float-pill i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.theme-ink .float-pill,
.theme-jade .float-pill {
  color: #18201e;
  background: #f5f4ee;
}

.poster-skeleton {
  height: clamp(214px, 56vw, 268px);
  border-radius: var(--radius-xl);
}

.hero-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 0;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 16px;
}

.hero-dot {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  background: #c9c4bc;
  border-radius: 999px;
  transition: width 0.3s, background 0.3s;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.hero-dot.active {
  width: 18px;
  background: var(--accent);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-note i {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(13, 155, 108, 0.1);
}

/* ---------- Announcement ---------- */

.announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 9px 16px 0;
  padding: 8px 11px;
  overflow: hidden;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(236, 232, 225, 0.9);
  border-radius: 11px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

.announcement-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
}

.announcement-icon .icon {
  width: 12px;
  height: 12px;
}

.announcement > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Product search ---------- */

.product-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 45px;
  margin: 9px 16px 0;
  padding: 0 8px 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(35, 29, 22, 0.035);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-search:focus-within {
  border-color: #ffb39b;
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.075), 0 6px 20px rgba(35, 29, 22, 0.04);
}

.product-search-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--accent);
}

.product-search-icon .icon {
  width: 17px;
  height: 17px;
}

.product-search input {
  width: 100%;
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.product-search input::placeholder {
  color: #b3aea6;
  font-weight: 450;
}

.product-search input::-webkit-search-cancel-button,
.product-search input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.product-search-clear {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: var(--muted);
  background: #f5f2ed;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.product-search-clear:hover {
  color: var(--ink);
  background: #ece8e2;
}

.product-search-clear .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Filter nav ---------- */

.filter-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 16px 6px;
  background: rgba(247, 245, 241, 0.92);
  border-bottom: 1px solid rgba(236, 232, 225, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  position: relative;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.filter-tab:first-child {
  padding-left: 4px;
}

.filter-tab.active {
  color: var(--ink);
  font-weight: 750;
}

.filter-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  transform: translateX(-50%);
}

.filter-tab:first-child.active::after {
  left: calc(50% - 5px);
}

.filter-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.filter-count {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Products ---------- */

.products-section {
  padding: 15px 16px 4px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading.compact {
  margin-bottom: 11px;
}

.section-kicker {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.section-note {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.product-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #e4ddd3;
  box-shadow: 0 13px 34px rgba(35, 29, 22, 0.085);
}

.product-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.04), transparent 70%);
  pointer-events: none;
}

.product-main {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 13px;
  background: #f3f1ed;
  border-bottom: 1px solid #eae5de;
}

.product-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.product-title-group h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-custom-value {
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 2px;
  color: var(--ink-soft);
  font-family: var(--font-number);
  line-height: 1;
  white-space: nowrap;
}

.product-custom-value .currency {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.62;
}

.product-custom-value strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.product-custom-value .unit {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.product-custom-value del {
  margin-left: 5px;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 500;
}

.product-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-thumb {
  position: relative;
  display: flex;
  flex: 0 0 104px;
  flex-direction: column;
  justify-content: space-between;
  width: 104px;
  height: 104px;
  aspect-ratio: 1 / 1;
  padding: 11px 11px 10px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ffa374 0%, #ff6435 54%, #e94718 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.product-thumb::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -35px;
  width: 102px;
  height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.045);
}

.product-thumb::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 37px;
  height: 12px;
  opacity: 0.22;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 3px);
}

.product-thumb.tone-blue {
  background: linear-gradient(145deg, #4a95ff 0%, #1464e8 56%, #0b43b2 100%);
}

.product-thumb.tone-green {
  background: linear-gradient(145deg, #3fc48e 0%, #0f9b6c 56%, #08724f 100%);
}

.product-thumb.tone-ink {
  background: linear-gradient(145deg, #5d5a55 0%, #302e2b 56%, #161513 100%);
}

.thumb-fallback {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100%;
}

.product-thumb.has-photo {
  padding: 0;
  background: #f2f0ec;
}

.product-thumb.has-photo .thumb-fallback {
  visibility: hidden;
}

.product-thumb-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.thumb-network {
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.thumb-speed {
  padding: 2px 4px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 7px;
  font-weight: 600;
  white-space: nowrap;
}

.thumb-data {
  position: relative;
  z-index: 1;
  margin: 3px 0 0;
  font-family: var(--font-number);
  font-size: 33px;
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 2px 13px rgba(0, 0, 0, 0.09);
}

.thumb-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thumb-minutes {
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0.95;
}

.thumb-brand {
  font-size: 6.5px;
  font-weight: 550;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.product-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-top: 0;
}

.product-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.product-heading h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #ffe1d5;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.product-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.42;
}

.speed-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.product-features span {
  display: inline-flex;
  align-items: center;
}

.product-features span + span::before {
  content: "";
  width: 2px;
  height: 2px;
  margin: 0 5px;
  background: #c5c0b9;
  border-radius: 50%;
}

.product-age {
  margin: 7px 0 0;
  padding-top: 0;
  color: #65584e;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.product-age b {
  color: #a9441f;
  font-weight: 750;
}

.product-copy .product-age {
  margin-top: 7px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.product-price {
  display: flex;
  align-items: baseline;
  min-width: 0;
  color: var(--accent-deep);
}

.product-price .currency {
  margin-right: 1px;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-3px);
}

.product-price strong {
  font-family: var(--font-number);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
}

.product-price .per {
  margin-left: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.product-price del {
  margin-left: 7px;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 500;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 101px;
  height: 37px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff7044, #fa4d20);
  border-radius: 999px;
  box-shadow: 0 7px 17px rgba(255, 83, 42, 0.25);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.apply-btn .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.apply-btn:hover {
  filter: saturate(110%);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(255, 83, 42, 0.32);
}

.apply-btn:hover .icon {
  transform: translateX(2px);
}

.apply-btn:active {
  transform: translateY(0);
}

.apply-btn:focus-visible,
.poster-cta:focus-visible,
.submit-btn:focus-visible,
.text-btn:focus-visible,
.query-entry:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.product-skeleton {
  height: 165px;
  border-radius: var(--radius-lg);
}

.empty-state {
  margin: 0;
  padding: 32px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #dfd9d0;
  border-radius: var(--radius-lg);
  font-size: 12px;
  text-align: center;
}

/* ---------- Service strip ---------- */

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 12px 16px 0;
  padding: 15px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  text-align: center;
}

.service-item + .service-item {
  border-left: 1px solid var(--line-soft);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.service-icon .icon {
  width: 16px;
  height: 16px;
}

.service-item div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.service-item strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
}

.service-item small {
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Notice ---------- */

.notice-section {
  padding: 24px 16px 0;
}

.notice-card {
  position: relative;
  overflow: hidden;
  padding: 16px 15px 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.notice-accent {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff8a62, var(--accent));
  border-radius: 0 3px 3px 0;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.notice-item + .notice-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.notice-index {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 5px;
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 800;
}

.notice-item p {
  margin: 0;
}

/* ---------- Support ---------- */

.support-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 16px 0;
  padding: 21px 19px;
  overflow: hidden;
  color: #f8f3eb;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(255, 91, 46, 0.18) 0%, transparent 56%),
    linear-gradient(135deg, #26262a 0%, #141416 100%);
  border-radius: 20px;
  box-shadow: 0 13px 32px rgba(18, 18, 20, 0.16);
}

.support-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.025);
}

.support-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.support-copy > p {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 500;
}

.support-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.support-copy > span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 1.5;
}

.support-wechat-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  line-height: 1.5;
}

.support-wechat-line .icon {
  width: 12px;
  height: 12px;
}

.support-wechat-line b {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-number);
  font-size: 9.5px;
  font-weight: 650;
}

.support-wechat-line i {
  color: rgba(255, 255, 255, 0.24);
  font-style: normal;
}

.support-wechat-line small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
}

.support-qr {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 94px;
}

.support-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 6px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.support-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.support-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #77736b;
}

.support-qr-placeholder .icon {
  width: 25px;
  height: 25px;
  color: #5d5a54;
}

.support-qr-placeholder small {
  font-size: 7px;
  font-weight: 650;
}

.support-qr > small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 7.5px;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 16px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer > p:first-of-type {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.footer-dot {
  color: #d5d0c8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.footer-disclaimer {
  max-width: 310px;
  margin: 13px auto 0;
  color: #b3aea6;
  font-size: 8px;
  line-height: 1.65;
}

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 14, 0.48);
  opacity: 0;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.modal.open .modal-mask {
  opacity: 1;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 23px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 60px rgba(20, 16, 12, 0.18);
  transform: translateY(102%);
  transition: transform 0.34s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.modal.open .modal-panel {
  transform: translateY(0);
}

.modal-grabber {
  width: 33px;
  height: 4px;
  margin: -9px auto 17px;
  background: #e7e2db;
  border-radius: 999px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--ink);
  background: #f2efe9;
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-heading {
  padding-right: 26px;
}

.modal-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.modal-heading h2,
.apply-success h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.modal-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.notice-panel {
  max-width: 430px;
}

#noticeProduct {
  color: var(--ink-soft);
  font-weight: 650;
}

.notice-copy {
  margin-top: 15px;
  padding: 14px 15px;
  color: #51463e;
  background: #fbf7f2;
  border: 1px solid #f0e7de;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notice-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
}

.notice-actions .text-btn {
  flex: 0 0 92px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
}

.notice-actions .submit-btn {
  flex: 1;
  width: auto;
  height: 46px;
}

.apply-form {
  margin-top: 19px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.field > span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.field > span em {
  color: var(--accent);
  font-style: normal;
}

.field > span i {
  margin-left: 2px;
  color: var(--muted-light);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  color: var(--ink);
  background: #faf8f5;
  border: 1px solid #eae5de;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #b5b0a8;
  font-size: 12px;
  font-weight: 400;
}

.field input:hover,
.field select:hover {
  border-color: #ddd6cc;
}

.field input:focus,
.field select:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.09);
}

.field input.invalid,
.field select.invalid {
  border-color: #e94d3d;
  background: #fff8f7;
}

.region-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.region-selects select {
  padding-right: 8px;
  padding-left: 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.region-selects select:disabled {
  color: #b4afa7;
  background: #f5f2ed;
  cursor: not-allowed;
}

#applyIdCard {
  letter-spacing: 0.035em;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%) rotate(90deg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.selected-product {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -1px 0 13px;
  padding: 9px 10px;
  background: #fff8f4;
  border: 1px solid #ffe7dc;
  border-radius: 12px;
}

.selected-thumb {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #ff8b5e, #ee4a1c);
  border-radius: 8px;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 800;
}

.selected-info {
  min-width: 0;
  flex: 1;
}

.selected-info strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-info span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.selected-price {
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 800;
}

.selected-price small {
  margin-left: 1px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
}

.custom-apply-fields {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.custom-fields-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.custom-fields-title span {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 750;
}

.custom-fields-title small {
  color: var(--muted-light);
  font-size: 8.5px;
}

.custom-image-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.custom-image-field > span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.custom-image-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
}

.custom-image-row .apply-upload-box {
  flex: 1;
  min-width: 0;
}

.custom-image-row .field-example {
  flex: 0 0 108px;
  margin-top: 0;
}

.custom-image-row .field-example a {
  width: 100%;
  max-width: 108px;
}

.custom-image-row .field-example img {
  width: 100%;
  height: 82px;
  max-width: 108px;
  max-height: 82px;
  object-fit: contain;
}

.apply-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: #faf8f5;
  border: 1px dashed #e2dcd3;
  border-radius: 12px;
}

.apply-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 39px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 650;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.apply-upload-btn:hover {
  color: var(--accent-deep);
  background: #fffdfb;
  border-color: #f3c9ba;
}

.apply-upload-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.apply-upload-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.apply-upload-preview {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #f1eee9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.apply-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apply-upload-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(24, 21, 18, 0.48);
  font-size: 9px;
  font-weight: 600;
}

.apply-upload-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: rgba(24, 22, 20, 0.65);
  border-radius: 50%;
}

.apply-upload-remove .icon {
  width: 9px;
  height: 9px;
}

.apply-upload-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.5;
}

.field-example {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.field-example-label {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 500;
}

.field-example a {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.field-example img {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 140px;
  object-fit: contain;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 3px 0 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 9.5px;
  line-height: 1.55;
}

.consent-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-ui {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 0;
  color: transparent;
  background: #fff;
  border: 1px solid #ddd7ce;
  border-radius: 5px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.checkbox-ui .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.7;
}

.consent-row input:checked + .checkbox-ui {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.consent-row input:focus-visible + .checkbox-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-link {
  padding: 0;
  color: var(--accent-deep);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #c93c2b;
  background: #fff5f3;
  border: 1px solid #ffe0da;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 49px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f40, #f64a1c);
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(245, 73, 26, 0.24);
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  filter: saturate(110%);
  box-shadow: 0 11px 24px rgba(245, 73, 26, 0.3);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.submit-btn .icon {
  width: 16px;
  height: 16px;
}

.submit-btn .submit-loading[hidden],
.submit-btn .submit-label[hidden] {
  display: none;
}

.form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 8.5px;
}

.form-footnote .icon {
  width: 11px;
  height: 11px;
  color: var(--green);
}

/* Success */

.apply-success {
  padding: 5px 2px 2px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 1px auto 14px;
  color: #fff;
  background: linear-gradient(145deg, #49cf9a, #0d9b6c);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(13, 155, 108, 0.24);
  animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.apply-success h2 {
  margin-top: 4px;
}

.apply-success > p {
  max-width: 285px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.success-extra {
  margin-top: 13px;
  padding: 10px;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.success-extra-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.success-extra a {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.success-extra img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.order-number-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 17px;
  padding: 12px 13px;
  text-align: left;
  background: #faf8f5;
  border: 1px dashed #dfd8ce;
  border-radius: 12px;
}

.order-number-box > span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.order-number-box strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-number-box button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: color 0.2s;
}

.order-number-box button:hover {
  color: var(--accent-deep);
}

.order-number-box button .icon {
  width: 13px;
  height: 13px;
}

.text-btn {
  margin-top: 9px;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.text-btn:hover {
  color: var(--ink);
}

/* Query */

.query-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 19px;
}

.query-form .field {
  flex: 1;
  margin-bottom: 0;
}

.query-form .submit-btn {
  width: 118px;
  flex: 0 0 118px;
  height: 47px;
  font-size: 12px;
}

.query-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.query-results:empty {
  display: none;
}

.query-card {
  padding: 12px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.query-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.query-card-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-card-id {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.query-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  color: var(--status-color, var(--amber));
  background: var(--status-bg, #fff6e8);
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.status-reviewing { --status-color: #c17a0b; --status-bg: #fff6e5; }
.status-shipped { --status-color: #0b8f78; --status-bg: #eaf8f4; }
.status-activated { --status-color: #246fd3; --status-bg: #eef5ff; }
.status-completed { --status-color: #0d9b6c; --status-bg: #eaf8f2; }
.status-cancelled { --status-color: #8b8e93; --status-bg: #f1f1f0; }

.query-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 21px;
  text-align: center;
}

.query-empty-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 10px;
  color: #b8b2aa;
  background: #f7f4ef;
  border-radius: 13px;
}

.query-empty-icon .icon {
  width: 19px;
  height: 19px;
}

.query-empty strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.query-empty p {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 9px;
}

.query-empty[hidden],
.query-results[hidden] {
  display: none;
}

/* ---------- Toast + utilities ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100vw - 44px);
  padding: 10px 16px;
  color: #fff;
  background: rgba(25, 24, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.24s, transform 0.24s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #eeeae4;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .product-topbar {
    min-height: 40px;
    padding: 8px 11px;
  }

  .product-title-group h3 {
    font-size: 14.5px;
  }

  .product-custom-value strong {
    font-size: 18px;
  }

  .product-body {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
  }

  .product-thumb {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    aspect-ratio: 1 / 1;
    padding: 9px;
  }

  .apply-btn {
    min-width: 86px;
    height: 35px;
    padding: 0 12px;
    font-size: 10.5px;
  }
}

@media (max-width: 390px) {
  :root {
    --header-h: 58px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .query-entry {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-section {
    padding: 12px 14px 0;
  }

  .hero-note {
    display: none;
  }

  .announcement {
    margin-left: 14px;
    margin-right: 14px;
  }

  .product-search {
    margin-left: 14px;
    margin-right: 14px;
  }

  .filter-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .filter-tab {
    padding: 0 11px;
    font-size: 12px;
  }

  .products-section,
  .notice-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .service-strip,
  .support-section {
    margin-left: 14px;
    margin-right: 14px;
  }

  .poster-copy {
    width: 79%;
    padding: 17px 0 16px 17px;
  }

  .poster-title {
    font-size: 23px;
  }

  .poster-subtitle {
    font-size: 10px;
  }

  .poster-price strong {
    font-size: 31px;
  }

  .poster-bottom {
    gap: 9px;
  }

  .poster-cta {
    height: 33px;
    padding: 0 10px;
    font-size: 10px;
  }

  .sim-card {
    right: 17px;
    width: 103px;
    height: 127px;
  }

  .float-pill {
    right: 84px;
    bottom: 23px;
  }

  .product-card {
    padding: 0;
  }

  .product-thumb {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    aspect-ratio: 1 / 1;
    padding: 9px;
  }

  .thumb-data {
    font-size: 26px;
  }

  .thumb-network {
    font-size: 8px;
  }

  .thumb-speed {
    font-size: 6.5px;
  }

  .product-title-group h3 {
    font-size: 14.5px;
  }

  .product-badge {
    font-size: 7.5px;
  }

  .product-summary {
    gap: 4px;
    font-size: 12px;
  }

  .speed-chip {
    height: 17px;
    padding: 0 5px;
    font-size: 8px;
  }

  .product-features {
    font-size: 8.8px;
  }

  .product-age {
    font-size: 8.5px;
  }

  .apply-btn {
    min-width: 86px;
    height: 35px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .service-strip {
    padding: 13px 3px;
  }

  .service-item strong {
    font-size: 9.8px;
  }

  .service-item small {
    font-size: 7.8px;
  }

  .support-section {
    padding: 18px 15px;
  }

  .support-copy h2 {
    font-size: 16.5px;
  }

  .support-qr {
    width: 78px;
  }

  .support-qr-frame {
    width: 74px;
    height: 74px;
    padding: 5px;
    border-radius: 13px;
  }

  .support-qr-frame img {
    border-radius: 8px;
  }

  .support-wechat-line small {
    display: none;
  }

  .custom-image-row .field-example {
    flex-basis: 94px;
  }

  .custom-image-row .field-example a {
    max-width: 94px;
  }

  .custom-image-row .field-example img {
    max-width: 94px;
    height: 74px;
    max-height: 74px;
  }

  .modal-panel {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form-grid {
    gap: 8px;
  }
}

@media (max-width: 350px) {
  .brand-copy small {
    display: none;
  }

  .query-entry span {
    font-size: 10px;
  }

  .poster-title {
    font-size: 21px;
  }

  .poster-art {
    opacity: 0.8;
  }

  .sim-card {
    right: 7px;
    width: 94px;
    height: 118px;
  }

  .float-pill {
    display: none;
  }

  .product-body {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
  }

  .product-action {
    grid-column: 1 / -1;
    margin-top: 1px;
  }

  .product-action .apply-btn {
    min-width: 100px;
  }

  .thumb-data {
    font-size: 26px;
  }

  .query-form {
    flex-direction: column;
    align-items: stretch;
  }

  .query-form .submit-btn {
    width: 100%;
    flex-basis: auto;
  }

  .support-section {
    gap: 8px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .support-copy h2 {
    font-size: 15.5px;
  }

  .support-qr {
    width: 68px;
  }

  .support-qr-frame {
    width: 64px;
    height: 64px;
    padding: 4px;
    border-radius: 11px;
  }

  .support-qr-frame img {
    border-radius: 7px;
  }

  .support-qr > small {
    font-size: 7px;
  }

  .custom-image-row {
    gap: 7px;
  }

  .custom-image-row .field-example {
    flex-basis: 84px;
  }

  .custom-image-row .field-example a {
    max-width: 84px;
  }

  .custom-image-row .field-example img {
    max-width: 84px;
    height: 66px;
    max-height: 66px;
  }

  .service-item small {
    display: none;
  }
}

@media (min-width: 600px) {
  body {
    padding: 26px 0;
  }

  .app-shell {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    border-radius: 26px;
    box-shadow: 0 34px 100px rgba(48, 39, 28, 0.16), 0 0 0 1px rgba(53, 44, 34, 0.045);
  }

  .site-header {
    border-radius: 26px 26px 0 0;
  }

  .poster-slide {
    height: 288px;
  }

  .poster-skeleton {
    height: 288px;
  }

  .poster-title {
    font-size: 33px;
  }

  .poster-copy {
    padding: 24px 0 21px 24px;
  }

  .sim-card {
    top: 52px;
    right: 30px;
    width: 128px;
    height: 154px;
    padding: 15px;
  }

  .sim-data {
    margin-top: 17px;
    font-size: 36px;
  }

  .poster-price strong {
    font-size: 39px;
  }

  .poster-cta {
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .product-card {
    padding: 0;
  }

  .product-topbar {
    min-height: 44px;
    padding: 8px 15px;
  }

  .product-title-group h3 {
    font-size: 16px;
  }

  .product-custom-value strong {
    font-size: 20px;
  }

  .product-body {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  .product-thumb {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
    aspect-ratio: 1 / 1;
  }

  .filter-tab {
    font-size: 13px;
  }

  .modal {
    align-items: center;
  }

  .modal-panel {
    margin: 24px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border-radius: 24px;
    padding: 25px 24px 24px;
    transform: translateY(20px) scale(0.985);
  }

  .modal.open .modal-panel {
    transform: translateY(0) scale(1);
  }

  .modal-grabber {
    display: none;
  }

  .modal-close {
    top: 19px;
    right: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
