/**
 * 首页样式 — 参考 Alibaba.com B2B 门户布局与配色（非官方资源）
 * 路径: public/static/css/alibaba-home.css
 */

:root {
  --ab-orange: #ff6a00;
  --ab-orange-hover: #e85f00;
  --ab-dark: #222;
  --ab-gray-100: #f4f4f4;
  --ab-gray-200: #e8e8e8;
  --ab-gray-500: #767676;
  --ab-border: #ddd;
  --ab-header-top: #333;
  --ab-max-width: 1200px;
  --ab-radius: 4px;
  --ab-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body.ab-home {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ab-dark);
  background: #fff;
}

.ab-home a {
  color: inherit;
  text-decoration: none;
}

.ab-home a:hover {
  color: var(--ab-orange);
}

.ab-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--ab-orange);
  color: #fff;
}

.ab-skip:focus {
  left: 8px;
  top: 8px;
}

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

/* ----- 顶栏 ----- */
.ab-topbar {
  background: var(--ab-header-top);
  color: #ccc;
  font-size: 12px;
}

.ab-topbar-inner {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-topbar a {
  color: #ccc;
  text-decoration: none;
}

.ab-topbar a:hover {
  color: #fff;
  text-decoration: none;
}

.ab-topbar-left,
.ab-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.ab-user-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ab-user-ico {
  flex-shrink: 0;
  opacity: 0.9;
}

.ab-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .ab-topbar {
    display: none;
  }
}

.ab-lang-dropdown {
  position: relative;
  margin-right: 8px;
  padding-right: 12px;
  border-right: 1px solid #444;
}

.ab-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--ab-radius);
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.ab-lang-trigger:hover {
  color: #fff;
  border-color: #555;
  background: rgba(255, 255, 255, 0.06);
}

.ab-lang-icon {
  display: flex;
  flex-shrink: 0;
  color: #aaa;
}

.ab-lang-trigger:hover .ab-lang-icon {
  color: #fff;
}

.ab-lang-current {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-lang-caret {
  display: flex;
  flex-shrink: 0;
  color: #888;
  transition: transform 0.15s ease;
}

.ab-lang-dropdown.is-open .ab-lang-caret {
  transform: rotate(180deg);
}

.ab-lang-dropdown.is-open .ab-lang-trigger {
  color: #fff;
  border-color: #666;
  background: rgba(255, 255, 255, 0.08);
}

.ab-lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: var(--ab-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 300;
}

.ab-lang-menu[hidden] {
  display: none;
}

.ab-lang-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.ab-lang-option:hover {
  background: #3d3d3d;
  color: #fff;
}

.ab-lang-option.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 106, 0, 0.18);
}

.ab-topbar-sep {
  color: #555;
  user-select: none;
}

/* ----- 主导航 + 搜索 ----- */
.ab-header {
  background: #fff;
  border-bottom: 1px solid var(--ab-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ab-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 992px) {
  .ab-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .ab-brand {
    grid-column: 1;
  }

  .ab-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .ab-search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.ab-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-decoration: none;
}

.ab-brand-logo {
  display: block;
  /*height: 36px;*/
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.ab-brand-logo--square {
  /*width: 100px;*/
  /*height: 100px;*/
  max-width: none;
  /* border-radius: 10px; */
  object-fit: cover;
}

.ab-brand-sub {
  font-size: 11px;
  color: var(--ab-gray-500);
  line-height: 1.3;
  max-width: 220px;
}

@media (max-width: 480px) {
  .ab-brand-logo {
    height: 30px;
    max-width: 160px;
  }

  .ab-brand-logo--square {
    width: 40px;
    height: 40px;
    max-width: none;
  }

  .ab-brand-sub {
    display: none;
  }
}

.ab-search-wrap {
  min-width: 0;
}

.ab-search-row {
  display: flex;
  border: 2px solid var(--ab-orange);
  border-radius: var(--ab-radius);
  overflow: visible;
  background: #fff;
}

.ab-search-cat {
  position: relative;
  flex-shrink: 0;
}

.ab-search-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  background: var(--ab-gray-100);
  border: none;
  border-right: 1px solid var(--ab-border);
  border-top-left-radius: var(--ab-radius);
  border-bottom-left-radius: var(--ab-radius);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ab-dark);
  white-space: nowrap;
}

.ab-search-cat-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.ab-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.ab-search-submit {
  flex-shrink: 0;
  min-width: 100px;
  padding: 0 20px;
  background: var(--ab-orange);
  color: #fff;
  border: none;
  border-top-right-radius: var(--ab-radius);
  border-bottom-right-radius: var(--ab-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ab-search-submit:hover {
  background: var(--ab-orange-hover);
}

.ab-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ab-header-mobile-auth {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ab-header-mobile-auth a {
  color: var(--ab-dark);
  text-decoration: none;
  white-space: nowrap;
}

.ab-header-mobile-auth a:hover {
  color: var(--ab-orange);
}

.ab-mobile-auth-sep {
  color: var(--ab-gray-500);
  user-select: none;
}

.ab-mobile-user {
  display: inline-block;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 992px) {
  .ab-header-mobile-auth {
    display: flex;
  }

  .ab-header-actions {
    gap: 8px;
  }

  .ab-btn-join {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .ab-header-actions .ab-btn-join {
    display: none;
  }
}

.ab-btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--ab-radius);
  border: 1px solid var(--ab-orange);
  background: #fff;
  color: var(--ab-orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ab-btn-join:hover {
  background: #fff5eb;
  color: var(--ab-orange);
}

.ab-btn-ghost {
  padding: 8px 14px;
  border: 1px solid var(--ab-orange);
  color: var(--ab-orange);
  border-radius: var(--ab-radius);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.ab-btn-ghost:hover {
  background: #fff5eb;
}

.ab-link-sign {
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-dark);
}

.ab-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  background: #fff;
  color: var(--ab-dark);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 992px) {
  .ab-menu-toggle {
    display: flex;
  }
}

/* 移动端抽屉 */
.ab-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.ab-drawer-backdrop.is-visible {
  display: block;
}

.ab-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.ab-drawer.is-open {
  transform: translateX(0);
}

.ab-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--ab-border);
  font-weight: 600;
}

.ab-drawer-lang {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ab-border);
}

.ab-drawer-lang-title {
  font-size: 12px;
  color: var(--ab-gray-500);
  font-weight: 700;
  margin-bottom: 10px;
}

.ab-lang-dropdown--drawer {
  position: relative;
}

.ab-lang-trigger--drawer {
  width: 100%;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ab-dark);
}

.ab-lang-trigger--drawer:hover {
  border-color: #d9d9d9;
  background: #fff;
  color: var(--ab-dark);
}

.ab-lang-dropdown--drawer .ab-lang-icon {
  color: var(--ab-gray-500);
}

.ab-lang-dropdown--drawer .ab-lang-caret {
  color: #999;
}

.ab-lang-menu--drawer {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow);
  border-radius: 10px;
  padding: 6px 0;
  z-index: 230;
}

.ab-lang-menu--drawer .ab-lang-option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ab-dark);
}

.ab-lang-menu--drawer .ab-lang-option:hover {
  background: #f7f7f7;
}

.ab-lang-menu--drawer .ab-lang-option.is-active,
.ab-lang-menu--drawer .ab-lang-option[aria-checked="true"] {
  color: var(--ab-orange);
  font-weight: 700;
}

.ab-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ab-gray-100);
  border-radius: var(--ab-radius);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ab-drawer nav {
  padding: 12px;
}

.ab-drawer nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--ab-gray-200);
}

/* ----- Banner 轮播 ----- */
.ab-hero-carousel {
  position: relative;
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 16px;
}

.ab-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ab-hero-main {
  position: relative;
  min-width: 0;
}

.ab-hero-viewport {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ab-shadow);
  background: var(--ab-gray-100);
}

.ab-hero-viewport .ab-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ab-hero-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ab-hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 36px 56px;
  color: #fff;
  box-sizing: border-box;
}

/* 首页主轮播：纯图片，铺满 viewport */
.ab-hero-slide--banner {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.ab-hero-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.ab-hero-banner-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
  background: var(--ab-gray-100);
}

.ab-hero-banner-empty {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-gray-500);
  font-size: 15px;
  background: var(--ab-gray-100);
}

@media (max-width: 768px) {
  .ab-hero-viewport {
    height: 220px;
  }

  .ab-hero-banner-empty {
    min-height: 220px;
  }

  .ab-hero-slide:not(.ab-hero-slide--banner) {
    min-height: 220px;
    padding: 28px 24px 48px;
  }

  .ab-hero-slide--banner {
    padding: 0;
  }
}

.ab-hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ab-hero-slide-bg--a {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
}

.ab-hero-slide-bg--a::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 360px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35) 0%, transparent 68%);
  pointer-events: none;
}

.ab-hero-slide-bg--b {
  background: linear-gradient(125deg, #2d132c 0%, #801336 50%, #c72b41 100%);
}

.ab-hero-slide-bg--b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 40%, rgba(255, 200, 120, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.ab-hero-slide-bg--c {
  background: linear-gradient(135deg, #0d2137 0%, #1a4d2e 55%, #14532d 100%);
}

.ab-hero-slide-bg--c::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 80%, rgba(56, 189, 248, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.ab-hero-slide-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.ab-hero-slide-inner--center {
  margin: 0 auto;
  text-align: center;
}

.ab-hero-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ab-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  margin-bottom: 12px;
}

.ab-hero .ab-hero-heading {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.ab-hero-carousel p {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.92;
}

.ab-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--ab-orange);
  color: #fff;
  font-weight: 600;
  border-radius: var(--ab-radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.ab-hero-cta:hover {
  background: var(--ab-orange-hover);
  color: #fff;
}

.ab-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}


.ab-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}


.ab-hero-arrow--prev {
  left: 24px;
}

.ab-hero-arrow--next {
  right: 24px;
}

@media (max-width: 768px) {
  .ab-hero-arrow {
    width: 34px;
    height: 34px;
  }

  .ab-hero-arrow--prev {
    left: 10px;
  }

  .ab-hero-arrow--next {
    right: 10px;
  }
}

.ab-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 768px) {
  .ab-hero-dots {
    bottom: 16px;
  }
}

.ab-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ab-hero-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.ab-hero-news {
  display: grid;
  gap: 16px;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
  box-shadow: var(--ab-shadow);
  color: #fff;
}

.ab-hero-news-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.ab-hero-news-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.ab-hero-news-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ab-hero-news-carousel {
  display: grid;
  gap: 12px;
}

.ab-hero-news-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.ab-hero-news-list {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.ab-hero-news-item {
  flex: 0 0 100%;
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ab-hero-news-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.ab-hero-news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ab-hero-news-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ab-hero-news-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.ab-hero-news-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.ab-hero-news-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ab-hero-news-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.ab-hero-news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
}

.ab-hero-news-item strong {
  font-size: 15px;
  line-height: 1.5;
}

.ab-hero-news-item span:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.ab-hero-news-more {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ab-hero-news-more:hover {
  color: #fdba74;
}

@media (max-width: 1024px) {
  .ab-hero-layout {
    grid-template-columns: 1fr;
  }

  .ab-hero-news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .ab-hero-news-carousel {
    grid-column: 1 / -1;
  }

  .ab-hero-news-head,
  .ab-hero-news-more {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ab-hero-news {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* ----- 轮播下方快捷条（与 .ab-hero-carousel 同宽：max-width + 左右 padding 16px） ----- */
.ab-hero-below {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  background: #f5f5f5;
  border-top: 3px solid var(--ab-orange);
  border-bottom: 1px solid var(--ab-border);
}

.ab-hero-below-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
}

.ab-hero-below-welcome {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ab-dark);
  letter-spacing: 0.02em;
}

.ab-hero-below-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.ab-hero-below-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--ab-dark);
  text-decoration: none;
  border-left: 1px solid #ccc;
}

.ab-hero-below-item:first-child {
  padding-left: 0;
  border-left: none;
}

.ab-hero-below-item:hover {
  color: var(--ab-orange);
}

.ab-hero-below-ico {
  display: flex;
  flex-shrink: 0;
  color: #333;
}

.ab-hero-below-item:hover .ab-hero-below-ico {
  color: var(--ab-orange);
}

@media (max-width: 576px) {
  .ab-hero-below-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ab-hero-below-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ab-hero-below-item {
    border-left: none;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .ab-hero-below-item:last-child {
    border-bottom: none;
  }
}

/* ----- 首页两栏：类目 + 经常搜索轮播 ----- */
.ab-showcase {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.ab-showcase-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: minmax(300px, auto);
  gap: 12px;
  align-items: stretch;
  min-height: 300px;
}

.ab-showcase-inner > .ab-showcase-cats,
.ab-showcase-inner > .ab-showcase-mid {
  align-self: stretch;
  min-height: 100%;
}

.ab-showcase-cats {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #fafafa;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
}

.ab-showcase-cats-nav {
  flex: 1;
  min-height: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.ab-showcase-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ab-dark);
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.15s ease, color 0.15s ease;
}

.ab-showcase-cat-item:last-child {
  border-bottom: none;
}

.ab-showcase-cat-item:hover {
  background: #fff;
  color: var(--ab-orange);
}

.ab-showcase-cat-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-showcase-cat-ico-placeholder {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #e8eef5;
}

.ab-showcase-cat-ico-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-showcase-cat-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.ab-showcase-cat-arr {
  flex-shrink: 0;
  color: #bbb;
  display: flex;
}

.ab-showcase-cat-item:hover .ab-showcase-cat-arr {
  color: var(--ab-orange);
}

.ab-showcase-cats-all-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--ab-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-orange);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ab-showcase-cats-all-btn:hover {
  background: #fff5eb;
}

body.ab-cat-modal-open {
  overflow: hidden;
}

.ab-cat-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.ab-cat-modal[hidden] {
  display: none !important;
}

.ab-cat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.ab-cat-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(640px, 90vh);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}

.ab-cat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ab-border);
  flex-shrink: 0;
}

.ab-cat-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-cat-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ab-cat-modal-close:hover {
  background: #f5f5f5;
  color: #111;
}

.ab-cat-modal-toolbar {
  padding: 10px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid #eee;
}

.ab-cat-modal-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  font-size: 14px;
}

.ab-cat-modal-filter:focus {
  border-color: var(--ab-orange);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.15);
}

.ab-cat-modal-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 0;
  flex: 1;
}

.ab-cat-modal-l1 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--ab-border);
  background: #fafafa;
  scrollbar-width: thin;
}

.ab-cat-modal-l1-tablist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
}

.ab-cat-modal-l1-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ab-cat-modal-l1-btn:hover {
  background: #f0f0f0;
}

.ab-cat-modal-l1-btn[aria-selected="true"] {
  background: #fff;
  border-left-color: var(--ab-orange);
  font-weight: 700;
  color: var(--ab-orange);
}

.ab-cat-modal-l1-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-cat-modal-l2-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.ab-cat-modal-l2-panes {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

#ab-cat-modal-l2-panes-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ab-cat-modal-l2-pane {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.ab-cat-modal-l2-pane.is-active {
  display: flex;
}

.ab-cat-modal-l2-pane .ab-cat-modal-l2 {
  flex: 1;
  min-height: 0;
}

.ab-cat-modal-pane-empty {
  flex-shrink: 0;
  margin: 0;
}

.ab-cat-modal-l2-placeholder {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ab-cat-modal-l2-placeholder[hidden] {
  display: none !important;
}

#ab-cat-modal-l2-panes-inner[hidden] {
  display: none !important;
}

.ab-cat-modal-l2-head {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-gray-500);
  border-bottom: 1px solid #eee;
}

.ab-cat-modal-l2 {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  align-content: start;
  scrollbar-width: thin;
}

.ab-cat-modal-l2 a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ab-cat-modal-l2 a:hover {
  background: #fff5eb;
  border-color: #ffd4a8;
  color: var(--ab-orange);
}

.ab-cat-modal-l2-empty {
  grid-column: 1 / -1;
  padding: 24px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--ab-gray-500);
}

@media (max-width: 576px) {
  .ab-cat-modal {
    padding: 12px;
  }

  .ab-cat-modal-dialog {
    max-height: 92vh;
  }

  .ab-cat-modal-grid {
    grid-template-columns: 1fr;
  }

  .ab-cat-modal-l1 {
    border-right: none;
    border-bottom: 1px solid var(--ab-border);
  }

  .ab-cat-modal-l1-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    max-height: 140px;
    overflow-y: auto;
  }

  .ab-cat-modal-l1-btn {
    width: auto;
    border-left: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
  }

  .ab-cat-modal-l1-btn[aria-selected="true"] {
    border-color: var(--ab-orange);
    background: #fff5eb;
  }
}

.ab-showcase-mid {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.ab-showcase-mid-viewport {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  container-type: inline-size;
  container-name: showcase-mid;
}

.ab-showcase-mid-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  align-self: stretch;
  width: max-content;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  transition: transform 0.35s ease;
  will-change: transform;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product {
  flex: 0 0 calc((100cqi - 30px) / 4);
  width: calc((100cqi - 30px) / 4);
  max-width: calc((100cqi - 30px) / 4);
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #fafafa;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-img {
  order: 2;
  flex: 1 1 auto;
  min-height: 80px;
  margin-top: 0;
  border-radius: 8px;
  border: 1px solid #eee;
  aspect-ratio: auto;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-body {
  order: 1;
  flex-shrink: 0;
  padding: 0;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  min-height: 2.7em;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta {
  margin: 0;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta:empty {
  display: block;
  min-height: 2.8em;
}

.ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta:empty::before {
  content: '\00a0';
  visibility: hidden;
}

@container showcase-mid (max-width: 900px) {
  .ab-showcase-mid-track > .ab-showcase-card.ab-product {
    flex: 0 0 calc((100cqi - 20px) / 3);
    width: calc((100cqi - 20px) / 3);
    max-width: calc((100cqi - 20px) / 3);
  }
}

@container showcase-mid (max-width: 680px) {
  .ab-showcase-mid-track > .ab-showcase-card.ab-product {
    flex: 0 0 calc((100cqi - 10px) / 2);
    width: calc((100cqi - 10px) / 2);
    max-width: calc((100cqi - 10px) / 2);
  }
}

.ab-showcase-card-h {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-showcase-card-head {
  flex-shrink: 0;
  margin-bottom: 8px;
}

/* 标题固定两行高度，短标题与长标题底对齐 */
.ab-showcase-card-sub {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-dark);
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 简介固定两行高度，无简介也占位 */
.ab-showcase-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ab-gray-500);
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-showcase-card-desc:empty::before {
  content: '\00a0';
  visibility: hidden;
}

.ab-showcase-card-img--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #e8eef5 0%, #d4dce8 100%);
}

.ab-showcase-card-imgwrap {
  display: block;
  flex: 1 1 auto;
  min-height: 80px;
  margin-top: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  line-height: 0;
  position: relative;
}

/* 图片随卡片宽度铺满，不决定列宽 */
.ab-showcase-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-showcase-mid-arr {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ab-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ab-shadow);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ab-showcase-mid-arr:hover:not(:disabled) {
  background: var(--ab-orange);
  color: #fff;
  border-color: var(--ab-orange);
}

.ab-showcase-mid-arr:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.ab-showcase-mid-arr--prev {
  left: -6px;
}

.ab-showcase-mid-arr--next {
  right: -6px;
}

@media (max-width: 1100px) {
  .ab-showcase-inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 992px) {
  .ab-showcase-inner {
    grid-template-columns: 1fr;
  }

  .ab-showcase-cats-nav {
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .ab-showcase {
    padding: 0 12px 16px;
  }

  .ab-showcase-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .ab-showcase-mid-arr--prev {
    left: 2px;
  }

  .ab-showcase-mid-arr--next {
    right: 2px;
  }
}

/* 手机端与 .ab-products 卡片同宽同布局（76% 横向滑动） */
@media (max-width: 480px) {
  .ab-showcase-mid {
    height: auto;
  }

  .ab-showcase-mid-viewport {
    height: auto;
  }

  .ab-showcase-mid-track {
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product {
    flex: 0 0 76%;
    width: 76%;
    max-width: 76%;
    height: auto;
    max-height: none;
    align-self: auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-img {
    order: 0;
    flex: none;
    min-height: 0;
    border: none;
    border-radius: 0;
    aspect-ratio: 1;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-body {
    order: 0;
    padding: 12px;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-title {
    margin: 0 0 8px;
    min-height: 0;
    font-size: 13px;
    font-weight: 600;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta {
    min-height: 0;
    display: block;
    -webkit-line-clamp: unset;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta:empty {
    display: none;
    min-height: 0;
  }

  .ab-showcase-mid-track > .ab-showcase-card.ab-product .ab-product-meta:empty::before {
    content: none;
  }
}

/* ----- 分类快捷 ----- */
.ab-cats {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 0 16px 24px;
}

.ab-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 992px) {
  .ab-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .ab-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ab-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: var(--ab-gray-100);
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.ab-cat-card:hover {
  border-color: var(--ab-orange);
  box-shadow: var(--ab-shadow);
  transform: translateY(-2px);
  color: var(--ab-dark);
}

.ab-cat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe4cc, #ffcba4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ab-cat-card span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-dark);
}

/* ----- 商品区块 ----- */
.ab-section {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.ab-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ab-list-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  text-align: center;
  color: var(--ab-gray-500);
  font-size: 14px;
}

.ab-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.ab-section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-orange);
}

.ab-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .ab-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ab-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .ab-products.ab-products--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
}

.ab-product {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

@media (max-width: 480px) {
  .ab-product {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  .ab-products.ab-products--two .ab-product {
    flex: initial;
    scroll-snap-align: initial;
  }
}

.ab-product:hover {
  box-shadow: var(--ab-shadow);
}

.ab-product-img {
  aspect-ratio: 1;
  background: var(--ab-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-gray-500);
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
}

.ab-product-img-placeholder {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ab-gray-500);
}

.ab-product-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-product-body {
  padding: 12px;
}

.ab-product-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-product-meta {
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ab-orange);
  margin-top: 6px;
}

.ab-list-cat-head {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.ab-list-cat-filter {
  width: 100%;
  min-width: 0;
}

.ab-list-cat-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-list-cat-l1 {
  margin-bottom: 0;
}

.ab-list-cat-l2 {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ab-border);
}

.ab-list-cat-l2-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-list-cat-l2-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-list-cat-l2-hint {
  font-size: 12px;
}

.ab-list-cat-l2-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-filter-chip--sub {
  font-size: 12px;
  padding: 6px 11px;
}

.ab-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ab-filter-viewport {
  flex: 1;
  width: auto;
  overflow: hidden;
}

.ab-filter-track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  transition: transform 0.3s ease;
  will-change: transform;
}

.ab-filter-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  color: #444;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.ab-filter-chip:hover {
  border-color: #ffcfaa;
  background: #fff5eb;
}

.ab-filter-chip.is-active {
  color: var(--ab-orange);
  border-color: var(--ab-orange);
  background: #fff5eb;
  font-weight: 700;
}

.ab-filter-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ab-border);
  background: #fff;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ab-filter-arrow:hover:not(:disabled) {
  border-color: var(--ab-orange);
  color: var(--ab-orange);
}

.ab-filter-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ab-filter-row {
    width: 100%;
  }

  .ab-filter-viewport {
    width: 100%;
  }
}

/* ----- 分类页布局 ----- */
.ab-category-search-hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ab-gray-500);
}

.ab-category-search-hint strong {
  color: var(--ab-dark);
}

.ab-category-page {
  padding-top: 18px;
}

.ab-category-view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
}

.ab-category-view-tab {
  position: relative;
  margin: 0;
  padding: 0 0 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
}

.ab-category-view-tab.is-active {
  color: var(--ab-orange);
  font-weight: 600;
}

.ab-category-view-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--ab-orange);
  border-radius: 2px 2px 0 0;
}

.ab-category-panel[hidden] {
  display: none !important;
}

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

.ab-supplier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
}

.ab-supplier-row-main {
  min-width: 0;
}

.ab-supplier-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -16px -20px 12px -18px;
  padding: 12px 18px;
  /* background: #eef5fc; */
  border-radius: 8px 0 0 0;
}

.ab-supplier-row-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a73e8;
  text-decoration: none;
}

.ab-supplier-row-name:hover {
  text-decoration: underline;
}

.ab-supplier-row-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef5ff;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.ab-supplier-row-info {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ab-dark);
}

.ab-supplier-row-label {
  color: var(--ab-gray-500);
  font-weight: 600;
}

.ab-supplier-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ab-supplier-row-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.ab-supplier-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.ab-supplier-product-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ab-gray-100);
  border: 1px solid var(--ab-border);
}

.ab-supplier-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-supplier-product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ab-gray-500);
}

.ab-supplier-product-title {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ab-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-supplier-product-title .ab-pl-highlight {
  color: var(--ab-orange);
  background: transparent;
  padding: 0;
  font-weight: inherit;
}

@media (max-width: 992px) {
  .ab-supplier-row {
    grid-template-columns: 1fr;
  }

  .ab-supplier-row-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ab-supplier-row-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ab-category-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ab-category-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.ab-filter-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 12px;
}

.ab-filter-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
  cursor: pointer;
}

.ab-filter-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ab-filter-price input {
  height: 36px;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.ab-filter-btn {
  width: 100%;
}

.ab-category-nav-scroll {
  max-height: min(420px, calc(100vh - 320px));
  overflow-x: hidden;
  overflow-y: auto;
  margin-right: -2px;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.ab-category-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.ab-category-nav-scroll::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 999px;
}

.ab-category-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: #b5b5b5;
}

.ab-category-nav {
  display: grid;
  gap: 4px;
}

.ab-category-nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-dark);
  text-decoration: none;
  line-height: 1.35;
}

.ab-category-nav-link:hover,
.ab-category-nav-sublink:hover {
  background: #fff5eb;
  color: var(--ab-orange);
}

.ab-category-nav-link.is-active,
.ab-category-nav-sublink.is-active {
  background: #fff5eb;
  color: var(--ab-orange);
  font-weight: 700;
}

.ab-category-nav-link.is-parent-active {
  color: var(--ab-orange);
}

.ab-category-nav-group {
  margin-top: 4px;
}

.ab-category-nav-sub {
  margin: 4px 0 8px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 2px solid #f0f0f0;
}

.ab-category-nav-sub li {
  margin: 2px 0;
}

.ab-category-nav-sublink {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  line-height: 1.35;
}

.ab-category-price-form {
  margin: 0;
}

.ab-category-content .ab-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

/* 分类页横向列表（Alibaba 风格） */
.ab-category-content .ab-products.ab-products--list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ab-product-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  transition: box-shadow 0.2s;
}

.ab-product-row:hover {
  box-shadow: var(--ab-shadow);
}

.ab-product-row-media {
  position: relative;
}

.ab-product-row-img {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ab-gray-100);
  text-decoration: none;
}

.ab-product-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-product-row-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ab-gray-500);
}

.ab-product-row-img-count {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}

.ab-product-row-main {
  min-width: 0;
  padding-top: 2px;
}

.ab-product-row-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.ab-product-row-title a {
  color: var(--ab-dark);
  text-decoration: none;
}

.ab-product-row-title a:hover {
  color: var(--ab-orange);
}

.ab-pl-highlight {
  color: #e02020;
  background: transparent;
  padding: 0;
  font-weight: inherit;
}

.ab-product-row-price {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ab-dark);
  line-height: 1.2;
}

.ab-product-row-price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--ab-gray-500);
}

.ab-product-row-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ab-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-product-row-supplier {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-left: 12px;
}

.ab-product-row-supplier-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a73e8;
  text-decoration: none;
}

.ab-product-row-supplier-name:hover {
  text-decoration: underline;
}

.ab-product-row-supplier-name--muted {
  color: var(--ab-gray-500);
}

.ab-product-row-supplier-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ab-gray-500);
  line-height: 1.4;
}

a.ab-product-row-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  /* margin-top: auto; */
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ab-orange);
  background: #fff;
  color: var(--ab-orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

a.ab-product-row-contact:hover,
a.ab-product-row-contact:focus-visible {
  background: var(--ab-orange);
  border-color: var(--ab-orange);
  color: #fff;
}

.ab-category-content .ab-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ab-category-content .ab-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ab-category-content .ab-product-title {
  margin: 0 0 6px;
  min-height: 2.8em;
}

.ab-category-content .ab-product-meta {
  margin: 0 0 8px;
  min-height: 2.8em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-category-content .ab-product-meta:empty::before {
  content: '\00a0';
  visibility: hidden;
}

.ab-category-content .ab-price {
  margin-top: auto;
}

@media (max-width: 1200px) {
  .ab-category-content .ab-products:not(.ab-products--list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-product-row {
    grid-template-columns: 168px minmax(0, 1fr) 200px;
  }

  .ab-product-row-img {
    width: 168px;
    height: 168px;
  }
}

@media (max-width: 992px) {
  .ab-category-layout {
    grid-template-columns: 1fr;
  }

  .ab-category-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-category-nav-scroll {
    max-height: 240px;
  }

  .ab-category-content .ab-products:not(.ab-products--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-product-row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
  }

  .ab-product-row-img {
    width: 140px;
    height: 140px;
  }

  .ab-product-row-supplier {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .ab-category-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ab-category-page {
    padding-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ab-category-page .ab-section-head {
    margin-bottom: 12px;
    gap: 8px;
  }

  .ab-category-page .ab-section-head h1 {
    font-size: 18px;
  }

  .ab-filter-card {
    padding: 10px;
    border-radius: 8px;
  }

  .ab-filter-check {
    margin-bottom: 6px;
  }

  .ab-category-content .ab-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .ab-category-content .ab-products .ab-product {
    flex: initial;
    scroll-snap-align: initial;
  }
}

/* ----- 产品详情页 ----- */
.ab-pd {
  padding-top: 16px;
}

.ab-pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--ab-gray-500);
  margin-bottom: 14px;
}

.ab-pd-main {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: 16px;
}

.ab-pd-gallery,
.ab-pd-info,
.ab-pd-panel,
.ab-pd-supplier-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
}

.ab-pd-gallery {
  padding: 12px;
}

.ab-pd-mainimg-wrap {
  position: relative;
}

.ab-pd-mainimg {
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.ab-pd-mainimg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--ab-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ab-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444;
  cursor: pointer;
  z-index: 2;
}

.ab-pd-mainimg-arrow:hover {
  color: var(--ab-orange);
  border-color: var(--ab-orange);
}

.ab-pd-mainimg-arrow--prev {
  left: 10px;
}

.ab-pd-mainimg-arrow--next {
  right: 10px;
}

.ab-pd-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-pd-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ab-pd-thumbs a {
  display: block;
  border-radius: 6px;
  border: 1px solid #eee;
  overflow: hidden;
}

.ab-pd-thumbs a.is-active {
  border-color: var(--ab-orange);
}

.ab-pd-thumbs img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ab-pd-info {
  padding: 14px;
}

.ab-pd-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.ab-pd-sub {
  margin: 0 0 10px;
  color: var(--ab-gray-500);
  font-size: 13px;
}

.ab-pd-pricebox {
  border: 1px solid #ffd8bb;
  background: #fff8f3;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ab-pd-price-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-pd-price {
  margin: 0;
  color: var(--ab-orange);
  font-size: 24px;
  font-weight: 800;
}

.ab-pd-price span {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.ab-pd-moq {
  margin: 0;
  font-size: 13px;
  color: #444;
}

.ab-pd-highlights {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #444;
  font-size: 13px;
  line-height: 1.65;
}

.ab-pd-des-content {
  margin-top: 4px;
  margin-bottom: 0;
}

.ab-pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ab-border);
  margin-bottom: 12px;
}

.ab-pd-actions .ab-search-submit,
.ab-pd-actions .ab-btn-ghost,
.ab-pd-fav {
  height: 44px;
}

.ab-pd-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 0 22px;
  border: 1px solid var(--ab-orange);
  border-radius: var(--ab-radius);
  background: #fff;
  color: var(--ab-orange);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ab-pd-fav svg {
  flex-shrink: 0;
}

.ab-pd-fav:hover {
  background: #fff5eb;
  border-color: var(--ab-orange-hover);
  color: var(--ab-orange-hover);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.12);
}

.ab-pd-fav.is-collected {
  background: var(--ab-orange);
  border-color: var(--ab-orange);
  color: #fff;
}

.ab-pd-fav.is-collected svg {
  fill: currentColor;
}

.ab-pd-fav.is-collected:hover {
  background: var(--ab-orange-hover);
  border-color: var(--ab-orange-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.2);
}

.ab-pd-fav:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Product inquiry modal */
body.ab-pd-inquiry-open {
  overflow: hidden;
}

.ab-pd-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.ab-pd-inquiry-modal.is-open {
  display: flex;
}

.ab-pd-inquiry-modal[hidden] {
  display: none !important;
}

.ab-pd-inquiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.ab-pd-inquiry-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 20px 22px 22px;
  box-sizing: border-box;
}

.ab-pd-inquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ab-pd-inquiry-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-pd-inquiry-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.ab-pd-inquiry-close:hover {
  background: #eee;
  color: #333;
}

.ab-pd-inquiry-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ab-gray-500);
  line-height: 1.5;
}

.ab-pd-inquiry-form {
  display: grid;
  gap: 12px;
}

.ab-pd-inquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ab-pd-inquiry-form .ab-pd-field--full {
  grid-column: 1 / -1;
}

.ab-pd-inquiry-form input,
.ab-pd-inquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.ab-pd-inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
}

.ab-required {
  color: #e74c3c;
  font-style: normal;
}

.ab-pd-inquiry-hint {
  margin: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c0392b;
}

.ab-pd-inquiry-hint:not(:empty) {
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.ab-pd-inquiry-form input.is-invalid,
.ab-pd-inquiry-form textarea.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.12);
}

.ab-pd-inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.ab-pd-inquiry-actions .ab-search-submit,
.ab-pd-inquiry-actions .ab-btn-ghost {
  min-width: 120px;
  height: 42px;
  padding: 0 20px;
}

@media (max-width: 576px) {
  .ab-pd-inquiry-grid {
    grid-template-columns: 1fr;
  }

  .ab-pd-inquiry-actions .ab-search-submit,
  .ab-pd-inquiry-actions .ab-btn-ghost {
    flex: 1 1 100%;
  }
}

.ab-pd-meta {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 12px;
}

.ab-pd-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.ab-pd-content {
  display: grid;
  gap: 12px;
}

.ab-pd-panel {
  padding: 14px;
}

.ab-pd-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ab-pd-panel p {
  margin: 0 0 10px;
  color: #444;
  line-height: 1.7;
  font-size: 14px;
}

.ab-pd-table-wrap {
  overflow-x: auto;
}

.ab-pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ab-pd-table th,
.ab-pd-table td {
  border: 1px solid #eee;
  padding: 10px 12px;
  text-align: left;
}

.ab-pd-table th {
  width: 18%;
  background: #fafafa;
  font-weight: 700;
  color: #444;
}

.ab-pd-supplier-card {
  padding: 14px;
  position: sticky;
  top: 84px;
}

.ab-pd-supplier-card h3 {
  margin: 0 0 8px;
}

.ab-pd-sname {
  margin: 0 0 8px;
  font-weight: 700;
}

.ab-pd-sname a {
  color: var(--ab-dark);
  text-decoration: none;
}

.ab-pd-sname a:hover {
  color: var(--ab-orange);
}

.ab-pd-supplier-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  object-fit: contain;
  border-radius: 4px;
}

.ab-pd-supplier-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #444;
}

.ab-pd-supplier-card .ab-search-submit,
.ab-pd-supplier-card .ab-btn-ghost {
  width: 100%;
  height: 40px;
  margin-top: 8px;
}

.ab-pd-supplier-card a.ab-search-submit,
.ab-pd-supplier-card a.ab-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ab-pd-supplier-card a.ab-search-submit {
  color: #fff;
}

.ab-pd-supplier-card a.ab-search-submit:hover {
  color: #fff;
}

.ab-pd-related {
  margin-top: 20px;
}

.ab-pd-related .ab-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.ab-pd-rating-summary {
  font-size: 13px;
  color: #666;
}

.ab-pd-rating-summary strong {
  font-size: 22px;
  color: var(--ab-orange);
  margin-right: 4px;
}

.ab-pd-review-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.ab-pd-review-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.ab-pd-review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ab-pd-review-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ab-pd-review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.ab-pd-review-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 13px;
}

.ab-pd-review-item p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.ab-pd-review-item time {
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-pd-review-form {
  border-top: 1px solid #eee;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.ab-pd-review-form h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.ab-pd-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ab-pd-field--full {
  grid-column: 1 / -1;
}

.ab-pd-review-empty {
  margin: 0 0 12px;
  color: var(--ab-gray-500);
  font-size: 13px;
}

.ab-pd-review-hint {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: #c0392b;
}

.ab-pd-review-login {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-pd-review-login a {
  color: var(--ab-orange);
  font-weight: 600;
  text-decoration: none;
}

.ab-pd-review-login a:hover {
  text-decoration: underline;
}

.ab-pd-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #444;
  min-width: 0;
}

.ab-pd-review-form input,
.ab-pd-review-form select,
.ab-pd-review-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
}

.ab-pd-review-form textarea {
  resize: vertical;
}

.ab-pd-review-form .ab-search-submit {
  height: 40px;
  min-width: 140px;
}

.ab-pd-review-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .ab-pd-main {
    grid-template-columns: 1fr;
  }

  .ab-pd-body {
    grid-template-columns: 1fr;
  }

  .ab-pd-supplier-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .ab-pd-title {
    font-size: 18px;
  }

  .ab-pd-price {
    font-size: 20px;
  }

  .ab-pd-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ab-pd-related .ab-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ab-pd-review-grid {
    grid-template-columns: 1fr;
  }

  .ab-pd-review-actions {
    justify-content: stretch;
  }

  .ab-pd-review-actions .ab-search-submit {
    width: 100%;
  }
}

/* ----- 店铺详情页 ----- */
.ab-shop {
  padding-top: 14px;
}

.ab-shop-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--ab-border);
  background: #fff;
}

.ab-shop-hero-inner {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.ab-shop-logo {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: var(--ab-shadow);
  object-fit: cover;
}

.ab-shop-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
  color: var(--ab-orange);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
}

.ab-shop-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  color: var(--ab-gray-500);
  font-size: 13px;
}

.ab-shop-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef5ff;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 600;
}

.ab-shop-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  text-decoration: none;
}

.ab-shop-info-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.ab-shop-intro {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}

.ab-shop-intro p {
  margin: 0 0 10px;
}

.ab-shop-intro img {
  max-width: 100%;
  height: auto;
}

.ab-shop-contact a {
  color: #1a73e8;
  text-decoration: none;
}

.ab-shop-contact a:hover {
  text-decoration: underline;
}

.ab-product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ab-gray-500);
  background: var(--ab-gray-100);
}

.ab-shop-hero-info h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.ab-shop-hero-info p {
  margin: 0 0 10px;
  color: var(--ab-gray-500);
  font-size: 13px;
}

.ab-shop-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-shop-hero-tags span {
  font-size: 12px;
  background: #fff5eb;
  border: 1px solid #ffd7b4;
  color: var(--ab-orange);
  padding: 4px 8px;
  border-radius: 999px;
}

.ab-shop-hero-actions {
  display: grid;
  gap: 8px;
  width: 180px;
}

.ab-shop-hero-actions .ab-search-submit,
.ab-shop-hero-actions .ab-btn-ghost {
  height: 40px;
}

.ab-shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.ab-shop-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ab-shop-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 14px;
}

.ab-shop-card h2,
.ab-shop-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ab-shop-card .ab-shop-section-head {
  margin-bottom: 12px;
}

.ab-shop-card .ab-shop-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ab-shop-card .ab-shop-section-head .ab-shop-section-extra {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ab-gray-500);
}

.ab-shop-card .ab-shop-section-head .ab-section-more {
  font-size: 18px;
  color: var(--ab-orange);
  text-decoration: none;
}

.ab-shop-card .ab-shop-section-head .ab-section-more:hover {
  text-decoration: underline;
}

.ab-shop-company-media {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ab-border);
}

.ab-shop-company-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.ab-shop-company-gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  background: var(--ab-gray-100);
}

.ab-shop-company-gallery-link {
  display: block;
  aspect-ratio: 4 / 3;
}

.ab-shop-company-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.ab-shop-company-video-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ab-dark);
}

.ab-shop-company-video-el {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #000;
}

.ab-shop-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.ab-shop-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.ab-shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-shop-cats a {
  font-size: 12px;
  padding: 5px 9px;
  border: 1px solid var(--ab-border);
  border-radius: 999px;
  background: #fafafa;
}

.ab-shop-main {
  display: grid;
  gap: 12px;
}

.ab-shop-contact p {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .ab-shop-layout {
    grid-template-columns: 1fr;
  }

  .ab-shop-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ab-shop-hero-inner {
    grid-template-columns: 1fr;
  }

  .ab-shop-logo {
    width: 82px;
    height: 82px;
  }

  .ab-shop-hero-info h1 {
    font-size: 20px;
  }

  .ab-shop-hero-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ab-shop-side {
    grid-template-columns: 1fr;
  }

  .ab-shop-hero-actions {
    grid-template-columns: 1fr;
  }
}

/* ----- 用户中心 ----- */
.ab-uc {
  padding-top: 16px;
}

.ab-uc-hero {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ab-uc-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ab-uc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.ab-uc-name {
  margin: 0 0 4px;
  font-size: 20px;
}

.ab-uc-sub {
  margin: 0 0 8px;
  color: var(--ab-gray-500);
  font-size: 13px;
}

.ab-uc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-uc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  background: #fafafa;
  color: #444;
}

.ab-uc-badge--vip {
  border-color: #ffd7b4;
  background: #fff5eb;
  color: var(--ab-orange);
  font-weight: 700;
}

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

.ab-uc-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ab-orange);
  border-radius: 8px;
  background: var(--ab-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ab-uc-avatar-btn:hover {
  background: var(--ab-orange-hover);
  border-color: var(--ab-orange-hover);
}

.ab-uc-avatar-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ab-uc-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ab-uc-nav {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.ab-uc-nav-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: #444;
  font-size: 13px;
  text-align: left;
}

.ab-uc-nav-main:hover {
  background: #f7f7f7;
}

.ab-uc-nav-main.is-active,
.ab-uc-nav-group.has-active > .ab-uc-nav-main {
  background: #fff5eb;
  color: var(--ab-orange);
  border-color: #ffd7b4;
}

.ab-uc-nav-group.has-active > .ab-uc-nav-main .ab-uc-nav-ico {
  color: var(--ab-orange);
  border-color: #ffd7b4;
  background: #fff;
}

.ab-uc-nav-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #666;
}

.ab-uc-nav-main-txt {
  flex: 1;
  min-width: 0;
}

.ab-uc-nav-caret {
  display: inline-flex;
  color: #999;
  transition: transform 0.15s ease;
}

.ab-uc-nav-group.is-open .ab-uc-nav-caret {
  transform: rotate(180deg);
}

.ab-uc-nav-sub {
  display: grid;
  gap: 4px;
  padding: 2px 10px 8px 52px;
}

.ab-uc-nav-sub[hidden] {
  display: none !important;
}

.ab-uc-nav-sub a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #444;
  font-size: 13px;
}

.ab-uc-nav-sub a:hover {
  background: #f7f7f7;
}

.ab-uc-nav-sub a.is-active {
  background: #fff5eb;
  color: var(--ab-orange);
  font-weight: 700;
  border: 1px solid #ffd7b4;
}

.ab-fav-remove {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  min-height: auto;
  height: auto;
}

.ab-uc-comment-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ab-uc-comment-feed-item {
  padding: 14px 16px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fafafa;
}

.ab-uc-comment-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.ab-uc-comment-feed-post {
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-dark);
  text-decoration: none;
}

.ab-uc-comment-feed-post:hover {
  color: var(--ab-orange);
}

.ab-uc-comment-feed-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.ab-uc-comment-feed-meta {
  font-size: 13px;
  color: var(--ab-gray-500);
  margin-bottom: 6px;
}

.ab-uc-comment-feed-meta strong {
  color: var(--ab-dark);
  font-weight: 600;
}

.ab-uc-comment-feed-body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}

.ab-uc-comment-feed-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-orange);
  text-decoration: none;
}

.ab-uc-comment-feed-link:hover {
  text-decoration: underline;
}

.ab-recharge-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ab-recharge-head {
  margin-bottom: 0;
}

.ab-recharge-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.ab-recharge-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-recharge-plan h2 {
  margin-bottom: 10px;
}

.ab-recharge-plan-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ab-recharge-plan-row p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-recharge-form {
  display: grid;
  gap: 14px;
}

.ab-recharge-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.ab-recharge-amount-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #fafafa;
}

.ab-recharge-amount-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ab-recharge-amount-item:has(input:checked) {
  border-color: var(--ab-orange);
  background: #fff5eb;
  color: var(--ab-orange);
}

.ab-recharge-custom {
  margin-top: 4px;
}

.ab-recharge-pay {
  display: grid;
  gap: 8px;
}

.ab-recharge-pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.ab-recharge-pay-item:has(input:checked) {
  border-color: var(--ab-orange);
  background: #fffaf6;
}

.ab-recharge-note {
  margin: 0;
  font-size: 12px;
  color: var(--ab-gray-500);
}

a.ab-btn-ghost--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ab-uc-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 14px;
}

.ab-uc-side {
  display: grid;
  gap: 12px;
}

.ab-uc-card h2,
.ab-uc-card h3 {
  margin: 0 0 10px;
}

.ab-uc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.ab-uc-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ab-orange);
  font-weight: 700;
}

.ab-uc-cards {
  display: grid;
  gap: 12px;
}

/* ----- 新闻列表 / 详情 ----- */
.ab-news-page .ab-news-cats {
  margin-bottom: 20px;
}

.ab-news-cats-row .ab-filter-chip {
  text-decoration: none;
  display: inline-block;
}

.ab-news-list {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  overflow: hidden;
}

.ab-news-item {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.ab-news-item:last-child {
  border-bottom: none;
}

.ab-news-item-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  background: #f5f5f5;
}

.ab-news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-news-item-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8eef5 0%, #d4dce8 100%);
}

.ab-news-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-news-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ab-news-item-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.ab-news-item-title a {
  color: var(--ab-dark);
  text-decoration: none;
}

.ab-news-item-title a:hover {
  color: var(--ab-orange);
}

.ab-news-item-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  background: #fff;
  white-space: nowrap;
}

.ab-news-item-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-news-item-time {
  margin: auto 0 0;
  font-size: 13px;
  color: #999;
}

.ab-news-item--empty {
  display: block;
  text-align: center;
  color: var(--ab-gray-500);
}

.ab-forum-item-thumb {
  flex-shrink: 0;
}

.ab-forum-item-avatar {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8eef5 0%, #d4dce8 100%);
}

.ab-news-pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.ab-news-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-news-pager .pagination > li {
  display: inline-block;
}

.ab-news-pager .pagination > li > a,
.ab-news-pager .pagination > li > span {
  display: inline-block;
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--ab-border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #444;
  background: #fff;
}

.ab-news-pager .pagination > li > a:hover {
  border-color: var(--ab-orange);
  color: var(--ab-orange);
  background: #fff5eb;
}

.ab-news-pager .pagination > li.active > span {
  color: #fff;
  border-color: var(--ab-orange);
  background: var(--ab-orange);
  font-weight: 700;
}

.ab-news-pager .pagination > li.disabled > span {
  color: #bbb;
  background: #f7f7f7;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .ab-news-item {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .ab-news-item-thumb {
    width: 100%;
    height: 180px;
  }

  .ab-news-item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.ab-news-detail {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.ab-news-breadcrumb {
  font-size: 13px;
  color: var(--ab-gray-500);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ab-news-breadcrumb a {
  color: var(--ab-gray-500);
  text-decoration: none;
}

.ab-news-breadcrumb a:hover {
  color: var(--ab-orange);
}

.ab-news-breadcrumb-sep {
  color: var(--ab-border);
  user-select: none;
}

.ab-news-breadcrumb-current {
  color: var(--ab-dark);
  font-weight: 600;
}

.ab-news-detail-card {
  padding: 24px 22px 28px;
}

.ab-news-detail-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ab-border);
}

.ab-news-detail-cover {
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.ab-news-detail-cover img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.ab-news-detail-empty {
  color: var(--ab-gray-500);
  margin: 0;
}

.ab-news-detail-meta {
  margin: 0 0 10px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--ab-gray-500);
}

.ab-news-detail-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff5eb;
  color: var(--ab-orange);
  font-weight: 600;
  font-size: 12px;
}

.ab-news-detail-date {
  color: var(--ab-gray-500);
}

.ab-news-detail-header h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ab-dark);
}

.ab-news-detail-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.ab-news-detail-body {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.ab-news-detail-body p {
  margin: 0 0 16px;
}

.ab-news-detail-body p:last-child {
  margin-bottom: 0;
}

/* 富文本正文（勿对 content 使用 htmlentities） */
.ab-rich-text {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
}

.ab-rich-text p {
  margin: 0 0 16px;
}

.ab-rich-text p:last-child {
  margin-bottom: 0;
}

.ab-rich-text img {
  max-width: 100%;
  height: auto;
}

.ab-news-detail-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ab-border);
}

.ab-news-detail-footer .ab-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ----- 新闻评论 ----- */
.ab-news-comments-wrap {
  margin-top: 8px;
}

.ab-news-comments {
  padding: 22px 22px 26px;
}

.ab-news-comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ab-border);
}

.ab-news-comments-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ab-news-comments-login {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ab-border);
  font-size: 14px;
  color: #666;
}

.ab-news-comments-login a {
  color: var(--ab-orange);
  font-weight: 600;
  text-decoration: none;
}

.ab-news-comments-login a:hover {
  text-decoration: underline;
}

.ab-news-comments-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ab-news-comments-empty {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ab-gray-500);
  padding: 12px 14px;
  background: var(--ab-gray-100);
  border-radius: 8px;
  border: 1px dashed var(--ab-border);
}

.ab-news-comment-item {
  padding: 14px 16px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fafafa;
}

.ab-news-comment-meta {
  font-size: 13px;
  color: var(--ab-gray-500);
  margin-bottom: 8px;
}

.ab-news-comment-author {
  color: var(--ab-dark);
  font-weight: 600;
}

.ab-news-comment-time {
  font-weight: 400;
}

.ab-news-comment-body {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.ab-news-comment-form {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--ab-border);
}

.ab-news-comment-form-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.ab-news-comment-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ab-news-comment-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ab-news-comment-field span {
  font-size: 13px;
  color: #444;
}

.ab-news-comment-field input,
.ab-news-comment-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
}

.ab-news-comment-field textarea {
  resize: vertical;
  min-height: 100px;
}

.ab-news-comment-field--full {
  grid-column: 1 / -1;
}

.ab-news-comments-hint {
  margin: 8px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  color: var(--ab-orange);
}

.ab-news-comment-form-actions {
  margin-top: 14px;
}

.ab-news-comment-form-actions .ab-search-submit {
  min-width: 140px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ab-uc-tip {
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-uc-profile-form {
  display: grid;
  gap: 12px;
}

.ab-uc-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ab-uc-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ab-uc-field span {
  font-size: 13px;
  color: #444;
}

.ab-uc-field input,
.ab-uc-field select,
.ab-uc-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
}

.ab-uc-field textarea {
  resize: vertical;
}

.ab-uc-field--full {
  grid-column: 1 / -1;
}

.ab-uc-form-subtitle {
  margin: 4px 0 0;
  font-size: 16px;
}

.ab-uc-form-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-uc-field input:disabled {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

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

.ab-uc-form-actions .ab-search-submit,
.ab-uc-form-actions .ab-btn-ghost {
  height: 36px;
  min-width: 120px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 36px;
}

.ab-media-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ab-media-video {
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.ab-media-video video {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
}

.ab-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ab-media-item {
  margin: 0;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1 / 1;
}

.ab-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-uc-head {
  margin-bottom: 10px;
}

.ab-uc-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ab-uc-action {
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fafafa;
  padding: 12px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #444;
  font-size: 13px;
}

.ab-uc-action:hover {
  background: #fff5eb;
  border-color: #ffd7b4;
  color: var(--ab-orange);
}

.ab-uc-action-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ab-uc-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ab-uc-status-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #fff;
}

.ab-uc-status-item strong {
  display: block;
  font-size: 18px;
  color: var(--ab-orange);
  margin-bottom: 4px;
}

.ab-uc-status-item span {
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-uc-membership {
  display: grid;
  gap: 10px;
}

.ab-uc-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #ffd7b4;
  background: #fff8f3;
  border-radius: 10px;
  padding: 12px;
}

.ab-uc-tier p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-uc-tier-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ffd7b4;
  color: var(--ab-orange);
  font-weight: 800;
  font-size: 12px;
}

.ab-uc-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ab-uc-perks div {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.ab-uc-perks strong {
  display: block;
  color: var(--ab-orange);
  font-size: 16px;
  margin-bottom: 4px;
}

.ab-uc-perks span {
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-uc-progress p {
  margin: 0;
  font-size: 12px;
  color: var(--ab-gray-500);
}

.ab-uc-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #f1f1f1;
  overflow: hidden;
  border: 1px solid #eee;
  margin-bottom: 8px;
}

.ab-uc-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ab-orange) 0%, #ffb36b 100%);
}

.ab-order-list {
  display: grid;
  gap: 12px;
}

.ab-order-item {
  border: 1px solid #ececec;
  background: #fff;
}

.ab-order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}

.ab-order-row {
  display: grid;
  grid-template-columns: minmax(260px, 3.4fr) minmax(48px, 0.6fr) minmax(90px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(110px, 1fr);
}

.ab-order-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid #ececec;
  min-width: 0;
}

.ab-order-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 4px;
  flex-shrink: 0;
}

.ab-order-product-name {
  margin: 0 0 6px;
  font-size: 13px;
  color: #333;
}

.ab-order-product-sub {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.ab-order-col {
  border-right: 1px solid #ececec;
  padding: 10px 8px;
  font-size: 13px;
  color: #555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ab-order-col:last-child {
  border-right: 0;
}

.ab-order-col span {
  font-size: 12px;
  color: #888;
}

.ab-order-action a {
  color: #333;
  font-weight: 600;
}

.ab-order-action a:hover {
  color: var(--ab-orange);
}

@media (max-width: 1100px) {
  .ab-uc-grid {
    grid-template-columns: 1fr;
  }

  .ab-uc-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-order-row {
    grid-template-columns: minmax(220px, 1.8fr) repeat(5, minmax(90px, 1fr));
  }
}

@media (max-width: 640px) {
  .ab-uc-hero-actions {
    width: 100%;
  }

  .ab-uc-hero-actions .ab-uc-avatar-btn,
  .ab-uc-hero-actions .ab-btn-ghost {
    flex: 1;
  }

  .ab-uc-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-uc-perks {
    grid-template-columns: 1fr;
  }

  .ab-uc-profile-grid {
    grid-template-columns: 1fr;
  }

  .ab-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-uc-form-actions {
    justify-content: stretch;
  }

  .ab-uc-form-actions .ab-search-submit,
  .ab-uc-form-actions .ab-btn-ghost {
    width: 100%;
  }

  .ab-order-row {
    grid-template-columns: 1fr;
  }

  .ab-order-product,
  .ab-order-col {
    border-right: 0;
    border-bottom: 1px solid #ececec;
    align-items: flex-start;
    text-align: left;
    padding: 10px 12px;
  }

  .ab-order-col:last-child {
    border-bottom: 0;
  }
}

/* ----- 信任条 ----- */
.ab-trust {
  background: var(--ab-gray-100);
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
}

.ab-trust-inner {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .ab-trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ab-trust-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ab-trust-item span {
  font-size: 12px;
  color: var(--ab-gray-500);
}

/* ----- 页脚 ----- */
.ab-footer {
  background: #f2f2f2;
  color: #333;
  font-size: 12px;
  line-height: 1.6;
  padding: 36px 16px 28px;
}

.ab-footer-inner {
  max-width: var(--ab-max-width);
  margin: 0 auto;
}

.ab-footer a {
  color: #333;
  text-decoration: none;
}

.ab-footer a:hover {
  color: var(--ab-orange);
}

/* Tier 1: link columns + aside */
.ab-footer-main {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #ddd;
}

.ab-footer-links {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.ab-footer-col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.ab-footer-col h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

.ab-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-footer-col li {
  margin-bottom: 4px;
}

.ab-footer-col a {
  font-size: 12px;
  line-height: 1.5;
}

.ab-footer-lang-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.ab-footer-aside {
  flex-shrink: 0;
  width: 200px;
}

.ab-footer-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #e8e8e8;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #333;
}

.ab-footer-alert:hover {
  background: #e0e0e0;
  color: #333;
}

.ab-footer-alert-text {
  font-size: 13px;
  font-weight: 600;
}

.ab-footer-alert-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.ab-footer-alert-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ab-footer-cobrands h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

.ab-footer-cobrand-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-footer-cobrand-item {
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  text-align: center;
}

.ab-footer-cobrand-item img {
  display: block;
  max-width: 100%;
  height: 36px;
  margin: 0 auto;
  object-fit: contain;
}

/* Tier 2: apps & social */
.ab-footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.ab-footer-mid-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.ab-footer-apps,
.ab-footer-messenger,
.ab-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-footer-app-btn img {
  display: block;
  height: 32px;
  width: auto;
}

.ab-footer-messenger-link img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ab-footer-social-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-footer-social-list a {
  display: block;
  width: 24px;
  height: 24px;
}

.ab-footer-social-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tier 3: legal */
.ab-footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: #666;
}

.ab-footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
  margin-bottom: 12px;
  font-size: 12px;
}

.ab-footer-nav-links a {
  color: #666;
}

.ab-footer-nav-links a:hover {
  color: var(--ab-orange);
}

.ab-footer-sep {
  margin: 0 8px;
  color: #bbb;
}

.ab-footer-brand,
.ab-footer-license,
.ab-footer-copy {
  margin: 0 0 8px;
  font-size: 12px;
  color: #666;
}

.ab-footer-copy a {
  color: #666;
}

.ab-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.ab-footer-badges img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .ab-footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-footer-col--lang {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .ab-footer-main {
    flex-direction: column;
  }

  .ab-footer-aside {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
  }

  .ab-footer-alert {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }

  .ab-footer-cobrands {
    flex: 1;
    min-width: 200px;
  }

  .ab-footer-cobrand-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ab-footer-cobrand-item {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .ab-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-footer-col--lang {
    grid-column: 1 / -1;
  }

  .ab-footer-mid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .ab-footer-links {
    grid-template-columns: 1fr;
  }

  .ab-footer-lang-cols {
    grid-template-columns: 1fr;
  }

  .ab-footer-aside {
    flex-direction: column;
  }

  .ab-footer-alert {
    width: 100%;
  }
}

/* 类目下拉（搜索旁） */
.ab-cat-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 240px;
  max-width: min(320px, 90vw);
  max-height: min(360px, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  box-shadow: var(--ab-shadow);
  z-index: 95;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  scroll-behavior: smooth;
}

.ab-search-cat.is-open .ab-cat-dropdown {
  display: block;
}

#ab-search-type-wrap .ab-cat-dropdown {
  min-width: 160px;
}

.ab-cat-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-cat-dropdown button:hover {
  background: var(--ab-gray-100);
}

.ab-cat-dropdown button.is-active {
  background: #fff5eb;
  color: var(--ab-orange);
  font-weight: 600;
}

body.ab-drawer-open {
  overflow: hidden;
}

/* ----- 登录 / 注册 ----- */
.ab-auth {
  background: #f6f7f9;
}

.ab-auth-main {
  min-height: calc(100vh - 120px);
  padding: 24px 16px 48px;
}

.ab-auth-shell {
  max-width: var(--ab-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.ab-auth-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  box-shadow: var(--ab-shadow);
  padding: 20px 18px;
}

.ab-auth-head {
  margin-bottom: 14px;
}

.ab-auth-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ab-dark);
}

.ab-auth-sub {
  margin: 0;
  color: var(--ab-gray-500);
  font-size: 13px;
  line-height: 1.5;
}

.ab-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-auth-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}


.ab-auth-input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: #fff;
}

.ab-auth-input:focus {
  border-color: var(--ab-orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.15);
}

.ab-auth-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.ab-auth-captcha-img {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ab-border);
  background: linear-gradient(135deg, #fafafa, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.ab-auth-captcha-imgtxt {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  letter-spacing: 2px;
}

.ab-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ab-auth-row--stack {
  justify-content: flex-start;
}

.ab-auth-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ab-gray-500);
}

.ab-auth-link {
  color: var(--ab-orange);
  font-weight: 700;
  text-decoration: none;
}

.ab-auth-link:hover {
  text-decoration: underline;
}

.ab-auth-submit {
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--ab-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.ab-auth-submit:hover {
  background: var(--ab-orange-hover);
}

.ab-auth-foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ab-gray-500);
}

@media (max-width: 576px) {
  .ab-auth-main {
    padding: 16px 12px 36px;
  }
  .ab-auth-card {
    padding: 18px 14px;
  }
}
