/* ==========================================================================
   北京凡苏科技有限公司 · 凡苏科技商城
   全局样式
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #3d4b63;
  --muted: #7b8aa0;
  --line: #e6ebf3;
  --brand: #2b5cff;
  --brand-deep: #173bd6;
  --brand-soft: #eef2ff;
  --accent: #ff5a36;
  --header: #080f22;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 24px 48px -26px rgba(15, 23, 42, 0.35);
  --grad: linear-gradient(120deg, #2b5cff, #7a3cff 58%, #00c2c7);
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s,
    border-color 0.2s;
  white-space: nowrap;
  background: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(43, 92, 255, 0.9);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #1c2a47;
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
  flex: none;
}

.btn-icon:hover {
  background: var(--brand);
  color: #fff;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------- 顶部通告条 ---------- */
.topbar {
  background: #050b1a;
  color: #8fa3c8;
  font-size: 12.5px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.topbar-left svg {
  width: 14px;
  height: 14px;
  color: #5c7fbd;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-links a {
  color: #a9bcda;
  transition: color 0.18s;
}

.topbar-links a:hover {
  color: #fff;
}

/* ---------- 主站头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(8, 15, 34, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 10px 24px -12px rgba(43, 92, 255, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.05em;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #7d93ba;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: #c4d2ea;
  transition: background 0.18s, color 0.18s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav a.is-active {
  color: #fff;
  background: rgba(43, 92, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(98, 132, 255, 0.4);
}

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

.search {
  display: flex;
  align-items: center;
  width: 250px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s, background 0.2s;
}

.search:focus-within {
  border-color: rgba(98, 132, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 13.5px;
}

.search input::placeholder {
  color: #8ba0c4;
}

.search button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background 0.2s;
}

.search button:hover {
  background: #1c47ff;
}

.search button svg {
  width: 16px;
  height: 16px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(255, 90, 54, 0.5);
}

.cart-count[hidden] {
  display: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  place-items: center;
  cursor: pointer;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  background: #080f22;
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  display: grid;
  height: clamp(470px, 66vh, 640px);
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
  background-image: linear-gradient(
      100deg,
      rgba(4, 9, 22, 0.94) 0%,
      rgba(4, 9, 22, 0.72) 42%,
      rgba(4, 9, 22, 0.12) 100%
    ),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  max-width: 660px;
  padding: 40px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(98, 132, 255, 0.4);
  background: rgba(43, 92, 255, 0.16);
  color: #a9bdff;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52e0d0;
  box-shadow: 0 0 12px #52e0d0;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #8aa8ff, #4ce0d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 30px;
  color: #b8c6e0;
  font-size: 16.5px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  color: #8ea3c6;
  font-size: 13px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  color: #52e0d0;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots button {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: background 0.2s;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8299bf;
  font-size: 12px;
  letter-spacing: 0.12em;
  z-index: 2;
}

.hero-scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- 服务承诺条 ---------- */
.service-strip {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.service-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px;
}

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

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-item strong {
  display: block;
  font-size: 14.5px;
}

.service-item span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0 0;
}

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

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s;
}

.link-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.link-more:hover {
  color: var(--brand);
}

.link-more:hover svg {
  transform: translateX(4px);
}

/* ---------- 分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.cat-card {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1327;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 26, 0.02) 20%,
    rgba(6, 12, 26, 0.86) 100%
  );
}

.cat-card:hover img {
  transform: scale(1.07);
}

.cat-body {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 20px 20px;
  color: #fff;
  z-index: 1;
}

.cat-body strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.cat-body span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
}

.cat-body::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 20px;
  font-size: 17px;
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.25s;
}

.cat-card:hover .cat-body::after {
  opacity: 1;
  transform: none;
}

/* ---------- 商品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d7e0ef;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f4fa;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px -6px rgba(255, 90, 54, 0.8);
}

.product-off {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
  padding: 16px 18px 18px;
}

.product-cat {
  color: var(--brand);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.product-body h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.product-body h3 a {
  transition: color 0.18s;
}

.product-body h3 a:hover {
  color: var(--brand);
}

.product-sub {
  color: var(--muted);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  color: #8a99ae;
  font-size: 12px;
}

.product-meta .stars {
  color: #f59e0b;
  font-weight: 700;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.price {
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.price-old {
  color: #a4b0c2;
  font-size: 12px;
  text-decoration: line-through;
}

/* ---------- 促销横幅 ---------- */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 42px 44px;
  color: #fff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.promo-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -90px;
  top: -110px;
  background: rgba(255, 255, 255, 0.14);
  z-index: -1;
}

.promo-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: 30px;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.promo-dark {
  background: linear-gradient(120deg, #0c1530, #1b2b63 60%, #2440a4);
}

.promo-warm {
  background: linear-gradient(120deg, #ff5a36, #ff8a3d 55%, #ffc247);
}

.promo-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.promo-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}

.promo-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  max-width: 420px;
}

.promo-card .btn {
  align-self: flex-start;
  margin-top: 24px;
  background: #fff;
  color: var(--ink);
}

.promo-card .promo-warm.btn {
  color: var(--accent);
}

/* ---------- 品牌故事 ---------- */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.brand-story-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.brand-story-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.brand-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(5, 11, 26, 0.6));
}

.brand-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.brand-badge strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-story p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 16px;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.brand-stat {
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-stat strong {
  display: block;
  font-size: 24px;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.brand-stat span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 订阅 ---------- */
.newsletter {
  margin-top: 72px;
  border-radius: 24px;
  padding: 48px 52px;
  background: radial-gradient(
      circle at 82% 10%,
      rgba(0, 194, 199, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 10% 90%, rgba(122, 60, 255, 0.4), transparent 50%),
    #0a1226;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 10px;
}

.newsletter p {
  color: #9fb2d3;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: #8ba0c4;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  background: #070d1d;
  color: #a9b9d3;
  padding-top: 62px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 18px;
  color: #8698b8;
  font-size: 13.5px;
  max-width: 300px;
}

.footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pay-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: #b7c7e0;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-col a {
  color: #92a4c2;
  transition: color 0.18s;
}

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

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #92a4c2;
  line-height: 1.6;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: #5f7fb6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6e80a0;
}

.footer-bottom a {
  color: #8298bb;
}

/* ---------- 内页头部 ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 58px 0 50px;
  background: radial-gradient(
      circle at 80% 0%,
      rgba(43, 92, 255, 0.35),
      transparent 50%
    ),
    linear-gradient(120deg, #081022, #14234c);
  color: #fff;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 120%,
    rgba(0, 194, 199, 0.22),
    transparent 55%
  );
  pointer-events: none;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #8fa3c8;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #a9bcda;
  transition: color 0.18s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span.sep {
  color: #4b5f84;
}

.page-head h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-head p {
  margin-top: 12px;
  max-width: 620px;
  color: #a9bcd9;
  font-size: 14.5px;
}

/* ---------- 商品列表页 ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.filter-panel h2 {
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-panel h2 svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.filter-group + .filter-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.filter-group h3 {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}

.filter-item span {
  color: #9aa8bd;
  font-size: 12px;
}

.filter-item:hover {
  background: #f4f7fd;
  color: var(--brand);
}

.filter-item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.filter-item.is-active span {
  color: var(--brand);
}

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

.result-count {
  font-size: 13.5px;
  color: var(--muted);
}

.result-count strong {
  color: var(--ink);
  font-size: 17px;
  margin-right: 3px;
}

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

.sort-select {
  padding: 9px 36px 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6l5-4.5' fill='none' stroke='%237b8aa0' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 15px center;
  appearance: none;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  outline: 0;
}

.sort-select:focus {
  border-color: var(--brand);
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-inline svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-inline input {
  border: 0;
  outline: 0;
  background: none;
  width: 150px;
  font-size: 13.5px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
}

.pager button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: 0.18s;
}

.pager button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pager button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.pager button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 商品详情 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding-top: 44px;
}

.gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f4fa;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f1f4fa;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.18s;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(43, 92, 255, 0.15);
}

.detail-info .product-cat {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-title {
  margin: 10px 0 14px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.detail-reviews {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.detail-reviews .stars {
  color: #f59e0b;
  font-weight: 700;
  font-size: 13px;
}

.price-band {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff4f0, #fff9f1);
  border: 1px solid #ffe1d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-band .price {
  font-size: 30px;
}

.price-band .price-old {
  font-size: 13px;
}

.price-band .save {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ffd9cc;
}

.buy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.buy-points span {
  padding: 4px 10px;
  border-radius: 7px;
  background: #f4f7fd;
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-desc {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  height: 48px;
}

.qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s;
}

.qty button:hover {
  background: #f3f6fc;
}

.qty .qty-val {
  min-width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.qty-sm {
  height: 36px;
  border-radius: 9px;
}

.qty-sm button {
  width: 30px;
  font-size: 15px;
}

.qty-sm .qty-val {
  min-width: 28px;
  font-size: 13.5px;
}

.detail-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-service {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.detail-service svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.detail-tabs {
  margin-top: 64px;
}

.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 22px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.18s;
}

.tab-btn::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
}

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

.tab-btn.is-active {
  color: var(--ink);
}

.tab-btn.is-active::after {
  background: var(--brand);
}

.tab-panel {
  display: none;
  padding: 30px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

.tab-panel.is-active {
  display: block;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.feature-item {
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-item strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 6px;
}

.feature-item span {
  color: var(--muted);
  font-size: 13px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 13px 20px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 30%;
  color: var(--muted);
  font-weight: 500;
  background: #fafbfe;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.review-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.review-item p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 购物车 ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-top: 44px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.panel-head h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.panel-head .muted {
  font-size: 13px;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f4fa;
  flex: none;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info {
  min-width: 0;
}

.cart-info .product-cat {
  font-size: 11px;
}

.cart-info h3 {
  margin: 4px 0 6px;
  font-size: 15.5px;
  font-weight: 650;
}

.cart-info h3 a:hover {
  color: var(--brand);
}

.cart-info .muted {
  font-size: 12.5px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.link-danger {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s;
}

.link-danger:hover {
  color: var(--accent);
}

.cart-price {
  text-align: right;
}

.cart-price .price {
  font-size: 18px;
  display: block;
}

.cart-price small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.summary-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}

.summary-card h2 {
  font-size: 18px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.summary-row strong {
  color: var(--ink);
  font-weight: 600;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.summary-total .price {
  font-size: 28px;
}

.summary-card .btn {
  margin-top: 20px;
}

.ship-bar {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f9ff;
  border: 1px solid #e3ecff;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.ship-bar .bar {
  height: 6px;
  border-radius: 99px;
  background: #e2eaf8;
  margin-top: 9px;
  overflow: hidden;
}

.ship-bar .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  transition: width 0.4s;
}

.summary-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.summary-note svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 70px 24px 80px;
}

.empty-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 38px;
  height: 38px;
}

.empty-state h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

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

/* ---------- 结算 ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding-top: 44px;
}

.checkout-section + .checkout-section {
  margin-top: 22px;
}

.checkout-section h2 {
  font-size: 17px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  outline: 0;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a6b2c5;
}

.field .err {
  font-size: 12px;
  color: #e5484d;
  min-height: 0;
}

.field input.is-invalid {
  border-color: #f0a2a4;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.1);
}

.radio-cards {
  display: grid;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.radio-card:hover {
  border-color: #cbd8ef;
}

.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.radio-card input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex: none;
}

.radio-card strong {
  font-size: 14px;
  display: block;
}

.radio-card small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

.radio-card .radio-note {
  margin-left: auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.mini-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.mini-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.mini-item img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f4fa;
}

.mini-item .mini-name {
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-item small {
  color: var(--muted);
  font-size: 12px;
}

.mini-item .price {
  font-size: 15px;
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

/* ---------- 收银台 ---------- */
.pay-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 44px;
}

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

.pay-head {
  padding: 30px 32px;
  background: radial-gradient(
      circle at 88% 0%,
      rgba(0, 194, 199, 0.28),
      transparent 45%
    ),
    linear-gradient(120deg, #0a132b, #182a5c);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.pay-head .label {
  font-size: 12.5px;
  color: #9fb2d3;
  letter-spacing: 0.08em;
}

.pay-head .pay-amount {
  margin-top: 6px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pay-head .pay-order {
  text-align: right;
  font-size: 12.5px;
  color: #9fb2d3;
  line-height: 1.9;
}

.pay-head .pay-order strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pay-body {
  padding: 30px 32px 34px;
}

.pay-body h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pay-method {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pay-method:hover {
  border-color: #cbd8ef;
}

.pay-method.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(43, 92, 255, 0.08);
}

.pay-method .pm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f6fc;
  color: var(--brand);
}

.pay-method.is-active .pm-icon {
  background: #fff;
}

.pay-method svg {
  width: 22px;
  height: 22px;
}

.pay-method strong {
  font-size: 13.5px;
}

.pay-method small {
  font-size: 11.5px;
  color: var(--muted);
}

.pay-panel {
  margin-top: 22px;
  padding: 24px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px dashed #d8e4fb;
  text-align: center;
  display: none;
}

.pay-panel.is-active {
  display: block;
}

.qr-box {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.qr-pattern {
  width: 132px;
  height: 132px;
  background-image: repeating-linear-gradient(
      0deg,
      #0f172a 0 6px,
      transparent 6px 12px
    ),
    repeating-linear-gradient(90deg, #0f172a 0 6px, transparent 6px 12px);
  background-size: 24px 24px;
  opacity: 0.9;
  mask-image: radial-gradient(circle, #000 60%, transparent 61%);
}

.qr-center {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 0 4px #fff;
}

.pay-panel p {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.pay-panel p strong {
  color: var(--accent);
}

.card-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.card-form .full {
  grid-column: 1 / -1;
}

.pay-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.pay-timer strong {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pay-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.pay-actions .btn {
  flex: 1;
}

.pay-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.pay-security svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
}

/* ---------- 支付成功 ---------- */
.success-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 0 20px;
  text-align: center;
}

.success-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #0f9f6e);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 22px 45px -20px rgba(16, 163, 74, 0.7);
  animation: pop 0.55s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.success-check svg {
  width: 42px;
  height: 42px;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.success-wrap h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 12px;
}

.success-wrap > p {
  color: var(--muted);
  font-size: 14.5px;
}

.success-card {
  margin-top: 32px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.success-row + .success-row {
  border-top: 1px dashed var(--line);
}

.success-row strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.success-row .price {
  font-size: 17px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- 订单列表 ---------- */
.orders-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 44px;
}

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

.orders-toolbar h2 {
  font-size: 19px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: var(--shadow-sm);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.order-id {
  font-size: 13px;
  color: var(--muted);
}

.order-id strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-chip.is-pending {
  background: #fff4e5;
  color: #b45309;
}

.status-chip.is-paid {
  background: #e7f9ee;
  color: #15803d;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.order-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  font-size: 13.5px;
}

.order-item img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f4fa;
}

.order-item .oi-name {
  font-weight: 600;
}

.order-item small {
  color: var(--muted);
  font-size: 12px;
}

.order-item .price {
  font-size: 16px;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

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

.order-foot .total .price {
  font-size: 22px;
  margin-left: 6px;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 关于我们 ---------- */
.about-hero {
  padding: 70px 0 64px;
  background: radial-gradient(
      circle at 82% 0%,
      rgba(43, 92, 255, 0.38),
      transparent 50%
    ),
    radial-gradient(circle at 8% 100%, rgba(0, 194, 199, 0.2), transparent 45%),
    linear-gradient(120deg, #070f24, #14234c);
  color: #fff;
}

.about-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 720px;
}

.about-hero h1 em {
  font-style: normal;
  color: #7fa0ff;
}

.about-hero p {
  margin-top: 18px;
  max-width: 600px;
  color: #a9bcd9;
  font-size: 15px;
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 60px;
}

.about-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-split h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  margin-bottom: 16px;
}

.about-split p {
  color: var(--ink-soft);
  font-size: 14.8px;
  line-height: 1.9;
}

.about-split p + p {
  margin-top: 14px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.stat-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.value-card .value-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.value-card .value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), #dbe5f8);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}

.timeline-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.timeline-item span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.timeline-item p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  padding-top: 44px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-item a:hover {
  color: var(--brand);
}

.contact-form-card {
  position: sticky;
  top: 100px;
}

.contact-form-card h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.contact-form-card > .muted {
  font-size: 13px;
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .form-grid {
  gap: 14px;
}

.map-card {
  margin-top: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  background: linear-gradient(120deg, #0b1530, #1a2a57);
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 40px 24px;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.map-card > div {
  position: relative;
  z-index: 1;
}

.map-card .map-pin {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(43, 92, 255, 0.18);
}

.map-card .map-pin svg {
  width: 26px;
  height: 26px;
}

.map-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.map-card p {
  color: #9fb2d3;
  font-size: 13.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.faq-item h3 span {
  color: var(--brand);
  font-weight: 800;
  flex: none;
}

.faq-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  padding-left: 26px;
}

/* ---------- Toast ---------- */
#toastHost {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.5);
  animation: toastIn 0.28s cubic-bezier(0.22, 1.2, 0.36, 1);
  backdrop-filter: blur(8px);
}

.toast.is-success svg {
  color: #4ade80;
}

.toast.is-warn svg {
  color: #fbbf24;
}

.toast svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.toast.is-leaving {
  animation: toastOut 0.24s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide {
    transition: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .nav a {
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .search {
    width: 190px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-layout {
    gap: 36px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    height: 68px;
    gap: 16px;
  }
  .search {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    padding: 92px 24px 32px;
    background: #0a1329;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 150;
  }
  .nav.is-open {
    transform: none;
  }
  .nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-close {
    display: grid !important;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 18, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 140;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
  .hero-slider {
    height: auto;
  }
  .hero-slide {
    padding: 8px 0;
  }
  .service-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-item:nth-child(3) {
    border-left: 0;
  }
  .service-item {
    border-left: 0;
  }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .shop-layout,
  .cart-layout,
  .checkout-layout,
  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .filter-panel {
    position: static;
  }
  .gallery {
    position: static;
  }
  .summary-card,
  .checkout-summary,
  .contact-form-card {
    position: static;
  }
  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-item {
    width: auto;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f7fd;
  }
  .filter-group + .filter-group {
    margin-top: 18px;
    padding-top: 18px;
  }
  .brand-story,
  .about-split,
  .newsletter,
  .promo {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .brand-story-media {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .pay-head {
    padding: 26px;
  }
  .pay-body {
    padding: 26px;
  }
}

@media (max-width: 720px) {
  .topbar .container {
    height: 32px;
    font-size: 11.5px;
  }
  .topbar-links a:first-child {
    display: none;
  }
  .brand-text small {
    display: none;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .hero-content {
    padding: 40px 0 76px;
  }
  .hero-sub {
    font-size: 14.5px;
  }
  .hero-points {
    gap: 10px 18px;
    font-size: 12px;
  }
  .hero-scroll {
    display: none;
  }
  .service-strip {
    margin-top: -28px;
  }
  .service-card {
    grid-template-columns: 1fr 1fr;
    padding: 16px 6px;
  }
  .service-item {
    padding: 10px 14px;
    gap: 10px;
  }
  .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .service-icon svg {
    width: 19px;
    height: 19px;
  }
  .service-item strong {
    font-size: 13.5px;
  }
  .service-item span {
    font-size: 11.5px;
  }
  .section {
    padding-top: 52px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-card {
    aspect-ratio: 1 / 0.92;
  }
  .product-grid {
    gap: 14px;
  }
  .product-body {
    padding: 13px 14px 15px;
  }
  .product-body h3 {
    font-size: 14.5px;
  }
  .price {
    font-size: 18px;
  }
  .product-sub,
  .product-meta {
    font-size: 11.5px;
  }
  .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .promo-card {
    padding: 30px 26px;
    min-height: 220px;
  }
  .newsletter {
    padding: 32px 24px;
    border-radius: 18px;
  }
  .newsletter-form {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px;
  }
  .newsletter-form input {
    padding: 8px 10px;
    width: 100%;
  }
  .newsletter-form .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .page-head {
    padding: 38px 0 34px;
  }
  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-actions {
    justify-content: space-between;
  }
  .search-inline {
    flex: 1;
  }
  .search-inline input {
    width: 100%;
  }
  .detail-layout {
    padding-top: 28px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .price-band {
    padding: 16px 18px;
  }
  .price-band .price {
    font-size: 26px;
  }
  .buy-row .btn {
    flex: 1;
  }
  .detail-services {
    grid-template-columns: 1fr;
  }
  .detail-tabs {
    margin-top: 44px;
  }
  .tab-btn {
    padding: 12px 14px;
    font-size: 14px;
  }
  .cart-layout,
  .checkout-layout {
    padding-top: 28px;
  }
  .panel {
    padding: 20px 18px;
  }
  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }
  .cart-thumb {
    width: 84px;
    height: 84px;
  }
  .cart-price {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .pay-methods {
    grid-template-columns: 1fr;
  }
  .pay-method {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
  }
  .pay-method small {
    margin-left: auto;
  }
  .pay-head {
    padding: 22px;
  }
  .pay-head .pay-amount {
    font-size: 30px;
  }
  .pay-head .pay-order {
    text-align: left;
  }
  .pay-body {
    padding: 22px;
  }
  .card-form {
    grid-template-columns: 1fr;
  }
  .pay-actions {
    flex-direction: column;
  }
  .pay-actions .btn {
    width: 100%;
  }
  .about-stats {
    gap: 12px;
    margin-top: 40px;
  }
  .stat-card {
    padding: 20px 14px;
  }
  .stat-card strong {
    font-size: 26px;
  }
  .timeline-item p {
    font-size: 12.5px;
  }
  .order-head {
    align-items: flex-start;
  }
  .success-card {
    padding: 22px 20px;
  }
  .success-actions .btn {
    flex: 1;
  }
}

@media (max-width: 460px) {
  .container {
    padding: 0 18px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-grid {
    gap: 10px;
  }
  .cat-body {
    padding: 12px 14px 14px;
  }
  .cat-body strong {
    font-size: 14.5px;
  }
  .cat-body span {
    font-size: 11px;
  }
  .service-card {
    grid-template-columns: 1fr;
  }
  .service-item + .service-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .brand-stats {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1;
  }
  .form-grid {
    gap: 14px;
  }
  .pay-methods {
    gap: 8px;
  }
  .gallery {
    margin: 0 -18px;
  }
  .gallery-main {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .gallery-thumbs {
    padding: 0 18px;
  }
}
