/* Speed4Card-inspired storefront skin for Dujiao-Next public pages */
:root {
  --s4c-blue: #1e88f5;
  --s4c-blue-dark: #1876d1;
  --s4c-red: #e60012;
  --s4c-text: #333;
  --s4c-muted: #888;
  --s4c-border: #e5e5e5;
  --s4c-soft: #f7f7f7;
}

html, body {
  background: #fff !important;
  color: var(--s4c-text) !important;
  font-family: Arial, "Microsoft YaHei", "Helvetica Neue", sans-serif !important;
}

body.s4c-home-skin {
  min-width: 0;
}

body.s4c-home-skin::before {
  content: "hi! 请登录    免费注册                                      我的订单  |  用户中心  |  联系我们  |  支持全球币种：美元";
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  line-height: 34px;
  padding: 0 calc((100vw - min(1200px, calc(100vw - 32px))) / 2);
  box-sizing: border-box;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  color: #777;
  font-size: 12px;
  white-space: pre;
}

body.s4c-home-skin nav.fixed {
  top: 34px !important;
  padding: 0 !important;
  height: 128px;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.s4c-home-skin nav.fixed > .container {
  width: min(1200px, calc(100vw - 32px));
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 235px 1fr auto;
  align-items: center;
  gap: 26px;
}

body.s4c-home-skin .theme-wordmark {
  color: var(--s4c-text) !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

body.s4c-home-skin .theme-wordmark::before {
  content: "海外充值平台";
  display: block;
  color: #222;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

body.s4c-home-skin .theme-wordmark::after {
  content: "Dujiao-Next";
  display: block;
  margin-top: 8px;
  color: var(--s4c-blue);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

body.s4c-home-skin .theme-wordmark-text {
  display: none !important;
}

body.s4c-home-skin nav.fixed .hidden.lg\:flex.items-center.space-x-1 {
  position: fixed;
  z-index: 61;
  top: 114px;
  left: 0;
  right: 0;
  height: 48px;
  display: flex !important;
  justify-content: center;
  overflow: visible !important;
  background: var(--s4c-blue);
}

body.s4c-home-skin nav.fixed .hidden.lg\:flex.items-center.space-x-1::before {
  content: "☰ 全部商品分类";
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--s4c-blue-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

body.s4c-home-skin .theme-nav-link,
body.s4c-home-skin .theme-nav-link-active {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.s4c-home-skin nav.fixed .hidden.lg\:flex.items-center.space-x-1 .theme-nav-link:hover,
body.s4c-home-skin nav.fixed .hidden.lg\:flex.items-center.space-x-1 .theme-nav-link-active {
  background: var(--s4c-blue-dark) !important;
}

body.s4c-home-skin nav svg {
  display: none !important;
}

body.s4c-home-skin nav.fixed > .container::after {
  content: "搜索您需要的商品        🔍";
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  width: 500px;
  height: 40px;
  line-height: 38px;
  padding: 0 48px 0 14px;
  box-sizing: border-box;
  border: 2px solid var(--s4c-blue);
  border-radius: 0;
  color: #999;
  font-size: 14px;
  background: linear-gradient(to right, #fff calc(100% - 46px), var(--s4c-blue) calc(100% - 46px));
  white-space: pre;
}

body.s4c-home-skin nav.fixed > .container > .flex.items-center.shrink-0 {
  justify-self: end;
  gap: 0 !important;
}

body.s4c-home-skin nav.fixed > .container > .flex.items-center.shrink-0 .theme-nav-link,
body.s4c-home-skin nav.fixed > .container > .flex.items-center.shrink-0 button {
  color: #666 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

body.s4c-home-skin main.flex-1 {
  padding-top: 178px !important;
  padding-bottom: 0 !important;
  background: #fff !important;
}

body.s4c-home-skin .home-page {
  background: #fff !important;
}

body.s4c-home-skin #featured {
  width: min(1200px, calc(100vw - 32px));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 52px !important;
}

body.s4c-home-skin #featured > .container {
  max-width: none !important;
  padding: 0 !important;
}

body.s4c-home-skin #featured > .container::before {
  content: "首页 > 商品分类";
  display: block;
  height: 42px;
  line-height: 42px;
  color: #999;
  font-size: 13px;
  border-bottom: 1px solid var(--s4c-border);
}

body.s4c-home-skin #featured .mb-8 {
  display: block !important;
  margin: 0 !important;
  padding: 18px 0 0;
}

body.s4c-home-skin .theme-section-heading {
  color: #333 !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.s4c-home-skin #featured .theme-section-heading {
  font-size: 0 !important;
}

body.s4c-home-skin #featured .theme-section-heading::before {
  content: "热门商品";
  font-size: 22px;
}

body.s4c-home-skin #featured .theme-section-heading * {
  display: none !important;
}

body.s4c-home-skin #featured p.theme-text-secondary,
body.s4c-home-skin #featured a.theme-link-muted {
  display: none !important;
}

body.s4c-home-skin #featured .mb-8::after {
  content: "最新        销量        价格从高到低        价格从低到高        关注度";
  display: block;
  height: 40px;
  line-height: 40px;
  margin-top: 18px;
  padding: 0 18px;
  border-top: 1px solid var(--s4c-border);
  border-bottom: 1px solid var(--s4c-border);
  background: #fafafa;
  color: #444;
  font-size: 13px;
  white-space: pre;
}

body.s4c-home-skin #featured .mb-8 > div::after {
  content: "最新";
  position: absolute;
  margin-top: 59px;
  margin-left: 18px;
  color: var(--s4c-red);
  font-size: 13px;
  z-index: 1;
}

body.s4c-home-skin #featured .grid,
body.s4c-home-skin #featured [class*="grid-cols"] {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 30px !important;
}

body.s4c-home-skin #featured .rounded-2xl.border-dashed {
  margin-top: 28px;
  border: 1px solid #ddd !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #999 !important;
  padding: 54px 20px !important;
  font-size: 14px;
  box-shadow: none !important;
}

body.s4c-home-skin #featured .rounded-2xl.border-dashed::before {
  content: "商品列表";
  display: block;
  margin-bottom: 12px;
  color: #333;
  font-size: 18px;
}

body.s4c-home-skin .s4c-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
  margin-top: 28px;
}

body.s4c-home-skin .s4c-demo-card {
  display: block;
  min-height: 218px;
  padding: 6px 8px 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

body.s4c-home-skin .s4c-demo-card:hover {
  border-color: var(--s4c-blue);
  transform: translateY(-2px);
}

body.s4c-home-skin .s4c-demo-img {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf5ff, #fff 55%, #f1f7ff);
  color: var(--s4c-blue);
  font-size: 30px;
  font-weight: 700;
}

body.s4c-home-skin .s4c-demo-title {
  margin-top: 10px;
  color: #333;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.s4c-home-skin .s4c-demo-price {
  margin: 6px 0;
  color: #222;
  font-size: 14px;
  text-align: center;
}

body.s4c-home-skin .s4c-demo-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 12px;
}

body.s4c-home-skin .theme-section-divider,
body.s4c-home-skin #featured + hr {
  display: none !important;
}

body.s4c-home-skin footer {
  margin-top: 40px !important;
  background: #fff !important;
  border-top: 1px solid #eee !important;
  color: #777 !important;
}

body.s4c-home-skin footer::before {
  content: "1-5分钟极速发货        7×24小时在线客服        正品保障        多币种支付        售后无忧";
  display: block;
  width: min(1200px, calc(100vw - 32px));
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  white-space: pre;
  text-align: center;
}

body.s4c-home-skin footer .theme-panel,
body.s4c-home-skin footer .theme-panel-soft,
body.s4c-home-skin footer [class*="theme-"] {
  background: transparent !important;
  color: inherit !important;
  border-color: #eee !important;
  box-shadow: none !important;
}

body.s4c-home-skin footer a {
  color: #777 !important;
}

body.s4c-home-skin .s4c-cart-float {
  position: fixed;
  z-index: 65;
  right: calc((100vw - min(1200px, calc(100vw - 32px))) / 2);
  top: 178px;
  display: block;
  padding: 11px 18px;
  background: var(--s4c-blue);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30,136,245,.25);
}

@media (max-width: 900px) {
  body.s4c-home-skin {
    min-width: 0;
  }

  body.s4c-home-skin::before,
  body.s4c-home-skin nav.fixed > .container::after,
  body.s4c-home-skin .s4c-cart-float {
    display: none;
  }

  body.s4c-home-skin nav.fixed {
    top: 0 !important;
    height: auto;
  }

  body.s4c-home-skin nav.fixed > .container {
    display: flex !important;
    width: auto;
    padding: 0 16px !important;
  }

  body.s4c-home-skin nav.fixed .hidden.lg\:flex.items-center.space-x-1 {
    display: none !important;
  }

  body.s4c-home-skin main.flex-1 {
    padding-top: 92px !important;
  }

  body.s4c-home-skin .s4c-demo-grid,
  body.s4c-home-skin #featured .grid,
  body.s4c-home-skin #featured [class*="grid-cols"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
