/* Want Shop — InBusiness / AliExpress Business 风格布局（独立样式，可与 home-aliexpress 并存） */

:root {
  --ws-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ws-top: #0f0f12;
  --ws-hero-start: #1e3a5f;
  --ws-hero-mid: #3b2f6b;
  --ws-hero-end: #5b4fd4;
  --ws-blue: #2563eb;
  --ws-blue-soft: #3b82f6;
  --ws-panel: #e8ecff;
  --ws-panel2: #f0f2ff;
  --ws-white: #fff;
  --ws-text: #0f172a;
  --ws-muted: #64748b;
  --ws-radius: 16px;
  --ws-radius-lg: 24px;
  --ws-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  --ws-tab-inactive-start: #c7d2fe;
  --ws-tab-inactive-end: #e9d5ff;
}

body.ae-want-shop {
  background: #eef2ff;
  font-family: var(--ws-font);
}

body.ae-want-shop .main-wrap.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* —— 顶栏 —— */
.ws-topbar {
  background: var(--ws-top);
  color: #e2e8f0;
  font-size: 13px;
}
.ws-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ws-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 18px;
}
.ws-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.ws-logo span:first-of-type {
  color: var(--ws-blue-soft);
}
.ws-logo span.ws-logo-biz {
  color: #a5b4fc;
  font-weight: 600;
}
.ws-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ws-topbar-links a {
  color: #cbd5e1;
  text-decoration: none;
}
.ws-topbar-links a:hover {
  color: #fff;
}
.ws-topbar-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ws-topbar-icons a {
  color: #94a3b8;
  display: flex;
  width: 22px;
  height: 22px;
  opacity: 0.9;
}
.ws-topbar-icons a:hover {
  color: #fff;
}

/* —— 主包层 —— */
.ws-page {
  min-height: 60vh;
}

/* —— Hero + 轮播 —— */
.ws-hero-wrap {
  position: relative;
  background: linear-gradient(145deg, var(--ws-hero-start) 0%, var(--ws-hero-mid) 45%, var(--ws-hero-end) 100%);
  padding: 36px 20px 120px;
  overflow: hidden;
}
.ws-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ws-hero-title {
  color: #fff;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.15;
}

.ws-carousel {
  position: relative;
  border-radius: var(--ws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ws-shadow);
  min-height: 200px;
  margin-bottom: 8px;
}
.ws-carousel-slides {
  display: flex;
  transition: transform 0.45s ease;
}
/* 三屏轮播：轨道宽度 = 300%，每屏占 33.333% */
.ws-carousel--3 .ws-carousel-slides {
  width: 300%;
}
.ws-carousel--3 .ws-carousel-slide {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.ws-carousel-slide {
  min-height: 200px;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.ws-carousel-slide:nth-child(1) {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}
.ws-carousel-slide:nth-child(2) {
  background: linear-gradient(135deg, #0d9488, #2563eb);
}
.ws-carousel-slide:nth-child(3) {
  background: linear-gradient(135deg, #db2777, #4f46e5);
}
.ws-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}
.ws-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}
.ws-carousel-dots button[aria-selected="true"] {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* —— 搜索大卡 —— */
.ws-search-card {
  max-width: 720px;
  margin: -88px auto 0;
  position: relative;
  z-index: 3;
  background: var(--ws-white);
  border-radius: var(--ws-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--ws-shadow);
}
.ws-search-label {
  font-size: 12px;
  color: var(--ws-muted);
  margin-bottom: 8px;
}
.ws-search-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.ws-search-textarea:focus {
  border-color: var(--ws-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.ws-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.ws-ai-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ws-text);
}
.ws-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.ws-switch[aria-checked="true"] {
  background: var(--ws-blue);
}
.ws-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.ws-switch[aria-checked="true"] .ws-switch-thumb {
  transform: translateX(20px);
}
.ws-search-actions {
  display: flex;
  gap: 10px;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ws-btn--ghost {
  background: #ede9fe;
  color: #5b21b6;
}
.ws-btn--ghost:hover {
  background: #ddd6fe;
}
.ws-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.ws-btn--primary:hover {
  filter: brightness(1.05);
}
.ws-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— 推荐标签 pills —— */
.ws-tags {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ws-tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.ws-tag:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* —— 主 Tab —— */
.ws-tabs-wrap {
  max-width: 920px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: end;
}
.ws-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  border: none;
  border-radius: var(--ws-radius) var(--ws-radius) 0 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.ws-tab--inactive {
  background: linear-gradient(180deg, var(--ws-tab-inactive-start), var(--ws-tab-inactive-end));
  color: #312e81;
  margin-bottom: 0;
  opacity: 0.95;
}
.ws-tab--inactive:hover {
  opacity: 1;
}
.ws-tab--active {
  background: var(--ws-white);
  color: var(--ws-blue);
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}
.ws-tab-icon {
  font-size: 18px;
}

/* —— Tab 内容区 —— */
.ws-panel-shell {
  background: var(--ws-white);
  margin: 0 auto;
  max-width: 920px;
  border-radius: 0 0 var(--ws-radius) var(--ws-radius);
  box-shadow: var(--ws-shadow);
  position: relative;
  z-index: 1;
}
.ws-tab-panel {
  display: none;
  padding: 0 0 28px;
}
.ws-tab-panel.is-active {
  display: block;
}

/* —— 子分类 chips —— */
.ws-subchips {
  padding: 20px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.ws-subchip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #475569;
}
.ws-subchip:hover {
  background: #e0e7ff;
  color: #3730a3;
}

/* —— Benefit 条 —— */
.ws-benefit {
  margin: 20px 24px 0;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #fff;
  font-size: 13px;
}
.ws-benefit-badge {
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
}
.ws-benefit-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.ws-avatars {
  display: flex;
}
.ws-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #2563eb;
  margin-left: -8px;
}
.ws-avatar:first-child {
  margin-left: 0;
}

/* —— 2×2 功能格 —— */
.ws-features {
  margin: 20px 24px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .ws-features {
    grid-template-columns: 1fr;
  }
  .ws-tabs-wrap {
    grid-template-columns: 1fr;
  }
  .ws-tab--inactive {
    border-radius: var(--ws-radius);
    margin-bottom: 8px;
  }
  .ws-tab--active {
    border-radius: var(--ws-radius);
    order: -1;
  }
}
.ws-feature {
  background: linear-gradient(145deg, #3b82f6, #6366f1);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #fff;
}
.ws-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.ws-feature h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.ws-feature p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.45;
}

/* —— 分类推荐区块（标题 + 箭头） —— */
.ws-section {
  margin: 28px 24px 0;
}
.ws-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ws-section-head h2 {
  font-size: 17px;
  margin: 0;
  color: var(--ws-text);
}
.ws-section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ws-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.ws-section-more:hover {
  text-decoration: underline;
}
.ws-section-more .ws-arrow {
  font-size: 18px;
  line-height: 1;
}

.ws-scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ws-scroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* —— 首页横向商品卡（复用 ae 结构） —— */
.ws-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 24px 32px;
}
@media (max-width: 1100px) {
  .ws-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .ws-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ws-product-grid .ae-card-lg {
  margin: 0;
  height: 100%;
}
.ws-product-grid .ae-tile {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  height: 100%;
}
.ws-product-grid .ae-tile:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Shop Radar 占位面板 */
.ws-radar-placeholder {
  padding: 48px 24px;
  text-align: center;
  color: var(--ws-muted);
}
.ws-radar-placeholder strong {
  display: block;
  color: var(--ws-text);
  font-size: 18px;
  margin-bottom: 8px;
}

/* —— 子页：Banner + 上浮白卡 —— */
.ws-sub-hero {
  position: relative;
  min-height: 220px;
  background: #0f172a
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23334155' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 8% 80px;
}
.ws-sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3), transparent 45%);
  pointer-events: none;
}
.ws-sub-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 0;
  max-width: 520px;
  text-align: right;
  line-height: 1.2;
}

.ws-sub-sheet {
  max-width: 1320px;
  margin: -56px auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.ws-sub-sheet-inner {
  background: var(--ws-white);
  border-radius: var(--ws-radius-lg) var(--ws-radius-lg) 0 0;
  padding: 24px 20px 40px;
  box-shadow: var(--ws-shadow);
}

.ws-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--ws-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.ws-back:hover {
  text-decoration: underline;
}

/* Radar 面板内简单统计 */
.ws-shop-radar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 24px 24px;
}
@media (max-width: 640px) {
  .ws-shop-radar-stats {
    grid-template-columns: 1fr;
  }
}
.ws-stat-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.ws-stat-card strong {
  display: block;
  font-size: 20px;
  color: var(--ws-blue);
}
.ws-stat-card span {
  font-size: 12px;
  color: var(--ws-muted);
}
