/* =========================================================
   Aurora 极光商城 · Nova 视觉系统
   参考设计语言：白底深灰字 / 靛蓝点缀 / 浅色图标卡 / 黑胶囊按钮
   ========================================================= */

[data-theme="nova"] {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e6ebf2;
  --line-strong: #d6dee9;
  --text: #0f172a;
  --muted: #64748b;
  --mint: #4f46e5;
  --cyan: #6366f1;
  --shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.22);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */
.nv-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nv-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}
.nv-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #0f172a;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
}
.nv-logo svg { width: 18px; height: 18px; }
.nv-brand:hover .nv-logo { background: #4f46e5; }
.nv-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.nv-brand-name em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 2px; }
.nv-tag {
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.nv-links { display: flex; gap: 22px; }
.nv-links a {
  font-size: 13.5px;
  color: #475569;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}
.nv-links a:hover { color: #0f172a; }
.nv-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: #334155;
  background: #fff;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.nv-btn svg { width: 15px; height: 15px; }
.nv-btn:hover { border-color: #cbd5e1; }
.nv-btn.dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.nv-btn.dark:hover { background: #1e293b; }

/* ---------- Hero ---------- */
.nv-hero {
  padding: 66px 24px 52px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(79, 70, 229, 0.07), transparent 65%),
    #f8fafc;
  border-bottom: 1px solid var(--line);
}
.nv-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.nv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  margin-bottom: 26px;
}
.nv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.nv-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.14;
  letter-spacing: -2px;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 20px;
}
.nv-title span { color: #0b1220; }
.nv-lede {
  max-width: 660px;
  margin: 0 auto 32px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #64748b;
}
.nv-search {
  position: relative;
  max-width: 700px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.28);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.nv-search:focus-within { border-color: #c7d2fe; box-shadow: 0 12px 32px -16px rgba(79, 70, 229, 0.35); }
.nv-search svg { width: 19px; height: 19px; color: #94a3b8; flex: 0 0 auto; }
.nv-search input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--text);
}
.nv-search input::placeholder { color: #94a3b8; }
.nv-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.nv-hot button {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.nv-hot button:hover { background: #fff; border-color: #cbd5e1; color: #0f172a; }

.nv-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px auto 0;
  max-width: 940px;
}
.nv-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}
.nv-ico {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 17px;
  border-radius: 10px;
}
.nv-ico.mint { background: #e8f7f1; }
.nv-ico.violet { background: #f1ecff; }
.nv-ico.blue { background: #eaf2ff; }
.nv-ico.amber { background: #fff4e3; }
.nv-trust-item b { display: block; font-size: 13px; color: #0f172a; font-weight: 650; }
.nv-trust-item i {
  display: block; font-style: normal;
  font-size: 11.5px; color: #94a3b8; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 商品区 ---------- */
.nv-catalog {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 78px;
}
.nv-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.nv-filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nv-filters::-webkit-scrollbar { display: none; }
.nv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}
.nv-chip:hover { border-color: #cbd5e1; color: #0f172a; }
.nv-chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.nv-chip .nv-chip-ico { font-size: 14px; line-height: 1; }
.nv-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nv-count { font-size: 12px; color: #94a3b8; }
.nv-count b { color: #475569; font-weight: 600; }
.nv-sort select {
  height: 34px;
  padding: 0 30px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}

.nv-cat-tiles { display: none; }

.nv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.nv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.nv-card:hover {
  transform: translateY(-3px);
  border-color: #d7deea;
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.3);
}
.nv-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 25px;
  flex: 0 0 auto;
}
.nv-tile.mint { background: linear-gradient(160deg, #e9f9f3, #d9f2e8); }
.nv-tile.violet { background: linear-gradient(160deg, #f2ecff, #e7dcff); }
.nv-tile.blue { background: linear-gradient(160deg, #eaf3ff, #dbe9ff); }
.nv-tile.amber { background: linear-gradient(160deg, #fff5e6, #ffe9c9); }
.nv-tile.pink { background: linear-gradient(160deg, #ffeef2, #ffe0e7); }
.nv-status {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.nv-status::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #10b981;
}
.nv-status.off { color: #94a3b8; background: #f1f5f9; }
.nv-status.off::before { background: #cbd5e1; }

.nv-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nv-meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 3px; min-height: 20px; }
.nv-cat-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #4f46e5;
}
.nv-main h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}
.nv-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7b8798;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.nv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nv-tag-chip {
  font-size: 11px;
  color: #64748b;
  background: #f6f8fb;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}
.nv-side {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.nv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; color: #0f172a; }
.nv-price .cur { font-size: 14px; font-weight: 600; margin-right: 1px; }
.nv-price b { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.nv-price .from { font-size: 11px; color: #94a3b8; margin-left: 2px; }
.nv-price em {
  flex-basis: 100%;
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.nv-buy {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
  white-space: nowrap;
}
.nv-buy:hover { background: #1e293b; }
.nv-buy:active { transform: scale(0.98); }
.nv-buy:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

/* ---------- FAQ ---------- */
.nv-faq {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 64px 24px 72px;
}
.nv-faq h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: #0f172a;
}
.nv-faq-sub { text-align: center; font-size: 12.5px; color: #94a3b8; margin: 0 0 28px; }
.nv-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.nv-faq-list details {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  transition: background 0.16s;
}
.nv-faq-list details[open] { background: #fff; box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.3); }
.nv-faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  position: relative;
  padding-right: 26px;
}
.nv-faq-list summary::-webkit-details-marker { display: none; }
.nv-faq-list summary::after {
  content: '';
  position: absolute;
  right: 2px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.nv-faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.nv-faq-list details > div {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #64748b;
}

/* ---------- Footer ---------- */
.nv-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- 抽屉 / 弹窗 / 按钮统一 ---------- */
.btn.primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  border-radius: 11px;
  font-weight: 600;
}
.btn.primary:hover { background: #1e293b; }
.btn { border-radius: 11px; }
.drawer, .modal { border-radius: 20px 0 0 20px; }
.modal { border-radius: 20px; }
.cart-fab {
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-fab .fab-ico { font-size: 17px; line-height: 1; }
.cart-fab .count { background: #4f46e5; }

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .nv-nav-inner { height: 58px; padding: 0 16px; gap: 10px; }
  .nv-brand-name { font-size: 15px; }
  .nv-brand-name em { font-size: 12.5px; }
  .nv-tag { display: none; }
  .nv-links, .nv-nav-actions { display: none; }
  .nv-logo { width: 32px; height: 32px; border-radius: 9px; }

  .nv-hero {
    margin: 12px;
    padding: 26px 20px 22px;
    border: 0;
    border-radius: 20px;
    background: radial-gradient(120% 120% at 20% 0%, #1e1b4b 0%, #0f172a 60%, #0b1220 100%);
    text-align: left;
  }
  .nv-hero-inner { text-align: left; }
  .nv-badge {
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    font-size: 11.5px;
    padding: 6px 11px;
    margin-bottom: 16px;
  }
  .nv-title {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 12px;
  }
  .nv-title span { color: #fff; }
  .nv-lede {
    font-size: 12.5px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 16px;
  }
  .nv-search {
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 12px;
  }
  .nv-search input { font-size: 13px; }
  .nv-hot { justify-content: flex-start; gap: 6px; }
  .nv-hot span { display: none; }
  .nv-hot button {
    height: 26px;
    padding: 0 10px;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
  }
  .nv-hot button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
  .nv-trust { display: none; }

  .nv-catalog { padding: 8px 12px 96px; }
  .nv-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .nv-filters { gap: 8px; padding: 0 0 2px; }
  .nv-chip { height: 33px; padding: 0 13px; font-size: 12.5px; }
  .nv-toolbar-right { display: none; }

  .nv-cat-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .nv-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
  }
  .nv-cat-tile span {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
  }

  .nv-grid { grid-template-columns: 1fr; gap: 10px; }
  .nv-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas: 'tile main side';
    align-items: start;
    column-gap: 12px;
    row-gap: 0;
    padding: 13px 14px;
    border-radius: 16px;
  }
  .nv-card:hover { transform: none; box-shadow: none; }
  .nv-tile { grid-area: tile; width: 52px; height: 52px; font-size: 23px; border-radius: 13px; }
  .nv-status {
    position: static;
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .nv-status::before { width: 4px; height: 4px; }
  .nv-main { grid-area: main; min-width: 0; }
  .nv-meta { margin: 0; gap: 7px; min-height: 16px; }
  .nv-cat-label { font-size: 11px; }
  .nv-main h3 { font-size: 15px; line-height: 1.36; margin: 5px 0 4px; min-height: 0; -webkit-line-clamp: 2; }
  .nv-desc { font-size: 11.5px; line-height: 1.55; margin: 0 0 8px; min-height: 0; -webkit-line-clamp: 2; }
  .nv-tags { gap: 5px; margin: 0; flex-wrap: nowrap; overflow: hidden; }
  .nv-tag-chip { font-size: 10px; padding: 2.5px 7px; }
  .nv-tag-chip:nth-child(3) { display: none; }
  .nv-side {
    grid-area: side;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 9px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 84px;
  }
  .nv-price { justify-content: flex-end; gap: 1px; }
  .nv-price .cur { font-size: 12px; }
  .nv-price b { font-size: 19px; letter-spacing: -0.4px; }
  .nv-price .from, .nv-price em { display: none; }
  .nv-buy { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 9px; }

  .cart-fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    right: 14px;
    bottom: 16px;
    gap: 0;
  }
  .cart-fab .fab-ico { font-size: 19px; }
  .cart-fab .count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    line-height: 19px;
    font-size: 11px;
    border-radius: 999px;
    text-align: center;
  }

  .nv-faq { padding: 40px 16px 48px; }
  .nv-faq h2 { font-size: 19px; }
  .nv-faq-list details { padding: 13px 14px; }
  .nv-footer { padding: 20px 16px; font-size: 11.5px; flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* ---------- 订单页 / 其他旧版页面兼容 ---------- */
body > .nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  color: #0f172a;
}
body > .nav .brand { color: #0f172a; font-weight: 700; letter-spacing: -0.2px; }
body > .nav .logo-mark {
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
}
body > .nav .links a { color: #475569; }
body > .nav .links a:hover { color: #0f172a; }
.eyebrow { color: #4f46e5; letter-spacing: 0.06em; }
.toast { background: #0f172a; color: #fff; border-radius: 10px; }

/* 结算优惠码 */
.promo-row { display: flex; gap: 8px; margin: 10px 0 6px; }
.promo-row input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line, #e6ebf2); background: #fff; font-size: 13px; color: var(--text, #0f172a);
}
.promo-row input:focus { outline: none; border-color: var(--mint, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.promo-row .btn { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 10px; }
.promo-msg { min-height: 16px; margin: 0 0 6px; font-size: 12px; color: var(--muted, #64748b); }
.promo-msg.ok { color: #0f9d58; }
.promo-msg.bad { color: #e5484d; }
