/* shuiping Aurora 商城 — 精仿外站首页 v3 */

body.aurora-index-page {
  background: var(--aurora-bg) !important;
  color: var(--aurora-text) !important;
  font-family: var(--aurora-font);
}

body.aurora-index-page .navbar.navbar-fixed-top,
body.aurora-index-page .main-footer-section {
  display: none !important;
}

body.aurora-index-page .content.container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aurora-app {
  min-height: 100vh;
  position: relative;
  background: var(--aurora-bg);
}

.aurora-app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 50% -12%, rgba(124, 108, 240, 0.13), transparent 58%),
    radial-gradient(ellipse 42% 32% at 92% 8%, rgba(94, 234, 212, 0.08), transparent),
    radial-gradient(ellipse 38% 28% at 8% 18%, rgba(99, 102, 241, 0.07), transparent),
    linear-gradient(180deg, #050816 0%, #04060f 45%, #03050c 100%);
}

.aurora-app > * {
  position: relative;
  z-index: 1;
}

.aurora-app * {
  box-sizing: border-box;
}

/* ── 顶栏：仅 Logo + 域名/站名 ── */
.aurora-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.aurora-header.is-scrolled {
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--aurora-border);
}

.aurora-header__inner {
  max-width: var(--aurora-max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.aurora-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--aurora-text);
  max-width: 100%;
}

.aurora-brand__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--aurora-brand-mark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28);
}

.aurora-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aurora-brand__shield {
  width: 22px;
  height: 22px;
  color: #fff;
}

.aurora-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.15;
}

.aurora-brand__domain {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(72vw, 420px);
}

.aurora-brand__name {
  font-size: 11px;
  font-weight: 500;
  color: var(--aurora-accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(72vw, 420px);
}

/* ── 主内容 ── */
.aurora-main {
  max-width: var(--aurora-max-w);
  margin: 0 auto;
  padding: 12px 16px 56px;
}

/* ── Hero ── */
.aurora-hero {
  text-align: center;
  padding: 20px 8px 24px;
}

.aurora-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #a5b4fc;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.aurora-hero-tag svg {
  width: 14px;
  height: 14px;
  color: var(--aurora-warn);
}

.aurora-hero-title {
  margin: 0 0 14px;
  line-height: 1.12;
  font-weight: 800;
}

.aurora-hero-title__line {
  display: block;
  font-size: clamp(26px, 5.5vw, 40px);
  color: var(--aurora-text);
  margin-bottom: 2px;
}

.aurora-hero-title__accent {
  display: block;
  font-size: clamp(26px, 5.5vw, 40px);
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aurora-hero-desc {
  font-size: 14px;
  color: var(--aurora-text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 18px;
}

.aurora-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.aurora-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--aurora-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--aurora-border);
}

.aurora-feature svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.aurora-feature:nth-child(1) { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.08); }
.aurora-feature:nth-child(2) { color: #93c5fd; border-color: rgba(59, 130, 246, 0.25); background: rgba(59, 130, 246, 0.08); }
.aurora-feature:nth-child(3) { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.08); }

.aurora-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
}

.aurora-hero-links a {
  color: var(--aurora-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.aurora-hero-links a:hover {
  color: var(--aurora-accent);
}

.aurora-hero-links__dot {
  color: var(--aurora-text-dim);
  user-select: none;
}

/* ── 搜索（外站发光边框） ── */
.aurora-search {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.aurora-search::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0.35), rgba(192, 132, 252, 0.4));
  opacity: 0.35;
  filter: blur(0.5px);
  transition: opacity 0.25s;
}

.aurora-search:focus-within::before {
  opacity: 0.65;
}

.aurora-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--aurora-text-dim);
  pointer-events: none;
  z-index: 1;
}

.aurora-search__icon svg {
  width: 100%;
  height: 100%;
}

.aurora-search__input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--aurora-bg-soft);
  color: var(--aurora-text);
  font-size: 14px;
  outline: none;
}

.aurora-search__input::placeholder {
  color: var(--aurora-text-dim);
}

.aurora-search__input:focus {
  border-color: rgba(99, 102, 241, 0.45);
}

/* ── 分类 ── */
.aurora-tabs-wrap {
  margin: 24px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aurora-border);
}

.aurora-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.aurora-tabs.collapsed {
  max-height: 88px;
  overflow: hidden;
}

.aurora-tab {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--aurora-text-muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.22s;
  white-space: nowrap;
}

.aurora-tab:hover {
  color: var(--aurora-text);
  border-color: rgba(124, 108, 240, 0.35);
  transform: translateY(-1px);
}

.aurora-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #7c6cf0 0%, #6366f1 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.aurora-tabs-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--aurora-primary);
  font-size: 12px;
  cursor: pointer;
}

.aurora-tabs-toggle:hover {
  color: var(--aurora-accent);
}

/* ── 商品 Grid（更大卡片，外站 2~3 列） ── */
.aurora-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .aurora-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .aurora-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.aurora-card {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}

.aurora-card:hover {
  transform: translateY(-3px) scale(0.995);
  box-shadow: var(--aurora-shadow-soft);
  border-color: rgba(99, 102, 241, 0.22);
}

.aurora-card.is-hidden {
  display: none;
}

/* 封面：1:1 全幅铺满，对标外站 square-thumb */
.aurora-card__cover {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #0f1419;
}

.aurora-card__cover.has-white-fringe {
  background: var(--aurora-fringe-bg, #0f1419);
}

.aurora-card__thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.aurora-card__cover.has-white-fringe .aurora-card__thumb {
  background: var(--aurora-fringe-bg, #0f1419);
}

.aurora-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

/* 白底 PNG 四角白边：multiply 让白边融入背景主色 */
.aurora-card__cover.has-white-fringe .aurora-card__img {
  mix-blend-mode: multiply;
}

.aurora-card:hover .aurora-card__img {
  transform: scale(1.06);
}

.aurora-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.aurora-card__badge svg {
  width: 11px;
  height: 11px;
}

.aurora-card__body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aurora-card__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--aurora-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0;
}

.aurora-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.aurora-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aurora-card__cart {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.aurora-card__cart svg {
  width: 18px;
  height: 18px;
}

.aurora-card__cart:hover {
  background: var(--aurora-primary);
  transform: scale(1.06);
}

.aurora-card__price {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--aurora-price);
}

.aurora-card__price span {
  font-size: 11px;
  font-weight: 600;
  color: var(--aurora-text-dim);
  margin-left: 2px;
}

.aurora-card__meta {
  font-size: 11px;
  color: var(--aurora-text-dim);
}

.aurora-card__meta-sep {
  margin: 0 6px;
  opacity: 0.45;
}

.aurora-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  color: var(--aurora-text-dim);
  font-size: 14px;
}

.aurora-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--aurora-text-muted);
  font-size: 14px;
}

.aurora-loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 2px solid var(--aurora-border-strong);
  border-top-color: var(--aurora-primary);
  border-radius: 50%;
  animation: aurora-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes aurora-spin {
  to { transform: rotate(360deg); }
}

/* ── FAQ ── */
.aurora-faq {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--aurora-border);
}

.aurora-faq__title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

.aurora-faq__item {
  max-width: 620px;
  margin: 0 auto 10px;
  border-radius: var(--aurora-radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--aurora-border);
  overflow: hidden;
}

.aurora-faq__item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.aurora-faq__item summary::-webkit-details-marker {
  display: none;
}

.aurora-faq__item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--aurora-text-muted);
}

/* ── Modal ── */
.aurora-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.aurora-overlay.open {
  opacity: 1;
  visibility: visible;
}

.aurora-sheet {
  position: fixed;
  z-index: 310;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  background: var(--aurora-surface-2);
  border-radius: var(--aurora-radius-xl) var(--aurora-radius-xl) 0 0;
  border: 1px solid var(--aurora-border);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aurora-sheet.open {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .aurora-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(440px, calc(100% - 32px));
    max-height: 88vh;
    border-radius: var(--aurora-radius-xl);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
  }

  .aurora-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.aurora-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--aurora-border-strong);
  border-radius: 2px;
  margin: 10px auto 0;
}

@media (min-width: 640px) {
  .aurora-sheet__handle {
    display: none;
  }
}

.aurora-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 12px;
  gap: 12px;
}

.aurora-sheet__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

.aurora-sheet__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--aurora-surface);
  color: var(--aurora-text-muted);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.aurora-sheet__body {
  padding: 0 20px 20px;
  overflow-y: auto;
  flex: 1;
}

.aurora-sheet__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--aurora-price);
  margin-bottom: 20px;
}

.aurora-sheet__price span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.aurora-field {
  margin-bottom: 16px;
}

.aurora-field label {
  display: block;
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin-bottom: 8px;
}

.aurora-field label .req {
  color: var(--aurora-danger);
}

.aurora-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  background: var(--aurora-bg-soft);
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius);
}

.aurora-input-wrap:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
}

.aurora-input-wrap .icon {
  font-size: 16px;
  opacity: 0.7;
}

.aurora-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--aurora-text);
  font-size: 14px;
  outline: none;
}

.aurora-input-wrap input::placeholder {
  color: var(--aurora-text-dim);
}

.aurora-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aurora-qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--aurora-border);
  background: var(--aurora-surface);
  color: var(--aurora-text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aurora-qty-btn:hover:not(:disabled) {
  border-color: var(--aurora-primary);
  color: var(--aurora-primary);
}

.aurora-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.aurora-qty-num {
  font-size: 18px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.aurora-submit {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: var(--aurora-radius);
  background: var(--aurora-gradient-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.32);
}

.aurora-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.aurora-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.aurora-submit.secondary {
  margin-top: 10px;
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border-strong);
  box-shadow: none;
  font-size: 14px;
  height: 44px;
}

.aurora-sheet.loading .aurora-sheet__body {
  display: none;
}

.aurora-sheet__loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.aurora-sheet.loading .aurora-sheet__loading {
  display: flex;
}

.aurora-sheet__loading h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}

.aurora-sheet__loading p {
  font-size: 13px;
  color: var(--aurora-text-muted);
}

.aurora-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--aurora-border);
  border-top-color: var(--aurora-primary);
  border-radius: 50%;
  animation: aurora-spin 0.8s linear infinite;
}

/* ── 外站式成交播报（左侧浮层） ── */
.aurora-notify-root {
  position: fixed;
  top: 25%;
  left: 20px;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(320px, calc(100vw - 32px));
}

@media (min-width: 768px) {
  .aurora-notify-root {
    left: 20px;
  }
}

.aurora-notify {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
}

.aurora-notify.show {
  opacity: 1;
  transform: translateY(0);
}

.aurora-notify__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aurora-notify__icon svg {
  width: 18px;
  height: 18px;
  color: #10b981;
}

.aurora-notify__content {
  flex: 1;
  min-width: 0;
}

.aurora-notify__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.aurora-notify__time {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.aurora-notify__desc {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aurora-ticker-stack {
  display: none;
}
