/* 前台：本地化样式，独立设计 */
:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --accent: #ea580c;
  /* 主内容最大宽度，避免超宽/曲面屏整行被无限拉宽 */
  --wrap-max: 1200px;
}
* { box-sizing: border-box; }
/* 防止大图、嵌入内容撑破版面（具体区块可用更高优先级覆盖） */
img,
video {
  max-width: 100%;
  height: auto;
}
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
/* 大屏不超宽、小屏不留白边；兼容刘海屏 */
.wrap {
  width: 100%;
  max-width: min(var(--wrap-max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
@media (min-width: 1400px) {
  .wrap {
    max-width: min(var(--wrap-max), calc(100% - 40px));
  }
}
.topbar {
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
}
.topbar .inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #e5e7eb; }
.header {
  background: var(--card);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
  min-height: 64px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: #374151;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--brand-dark); border-color: var(--brand); text-decoration: none; }
.hero {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 50%, #1c1917 100%);
  color: #fff;
  padding: 40px 0 28px;
}
.hero-home {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* 标题不用 vw，避免超宽屏字号随视口「被拉大」的观感 */
.hero h1 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
@media (min-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: 1.75rem; }
}
.hero p {
  margin: 0;
  opacity: 0.9;
  max-width: min(640px, 100%);
  font-size: 0.9375rem;
}
@media (min-width: 480px) {
  .hero p { font-size: 1rem; }
}
.search-bar {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* 搜索区不随超宽屏无限拉申输入框 */
.search-bar-home {
  width: 100%;
  max-width: min(640px, 100%);
}
.search-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
}
.search-bar button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.search-bar button:hover { filter: brightness(1.05); }
.section { padding: 32px 0; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--brand);
  border-radius: 2px;
}
.cat-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cat-tags a {
  padding: 8px 16px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
}
.cat-tags a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.cat-tags a.active,
.cat-tags a.active:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #ecfdf5;
  font-weight: 600;
  text-decoration: none !important;
}
.hot-recycle-heading { margin-top: 28px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
/* 首页侧栏内商品：限制最大列数，防止超宽屏一排过多卡片 */
.cat-main .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
@media (min-width: 900px) {
  .cat-main .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1150px) {
  .cat-main .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-img {
  height: 160px;
  background: linear-gradient(145deg, #e5e7eb, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  min-height: 42px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.price { color: var(--accent); font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.btn-go {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none !important;
}
.btn-go:hover { background: var(--brand-dark); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}
.news-list a { font-weight: 500; color: #111827; }
.meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.feature {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.feature strong { color: var(--brand-dark); }
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0 24px;
  margin-top: 40px;
  font-size: 14px;
}
.footer a { color: #d1d5db; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.copy { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #374151; font-size: 13px; }
/* 分页：TP5 render() 为 <ul class="pagination">，模板常包一层 <div class="pagination">，类名重复会导致列表竖排/错乱 */
div.pagination {
  margin: 24px 0;
  clear: both;
}
div.pagination > ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
div.pagination > ul.pagination > li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  vertical-align: middle;
}
div.pagination > ul.pagination > li > a,
div.pagination > ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
}
div.pagination > ul.pagination > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}
div.pagination > ul.pagination > li.active > a,
div.pagination > ul.pagination > li.active > span {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
div.pagination > ul.pagination > li.disabled > span,
div.pagination > ul.pagination > li.disabled > a {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}
/* 仅输出 ul、无外层 div 时 */
ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  max-width: 100%;
}
ul.pagination > li {
  margin: 0;
  padding: 0;
  display: inline-flex;
}
ul.pagination > li > a,
ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
}
ul.pagination > li > a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}
ul.pagination > li.active > a,
ul.pagination > li.active > span {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
ul.pagination > li.disabled > span,
ul.pagination > li.disabled > a {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

/* ========== 单页：公司简介 / 回收流程 / 联系我们 ========== */
.cms-section { padding-top: 20px; }
.cms-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cms-breadcrumb a { color: var(--brand-dark); }
.cms-breadcrumb span { margin: 0 6px; }
.page-article,
.cms-article {
  background: #fff;
  padding: 28px 32px 32px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.cms-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.cms-content { font-size: 15px; color: #374151; line-height: 1.75; }
.cms-content h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  color: #111827;
}
.cms-content ul,
.cms-content ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.cms-content p { margin: 0 0 14px; }
.cms-lead {
  font-size: 1rem;
  color: #475569;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid var(--brand);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.flow-step {
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.flow-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}
.flow-step p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.contact-card {
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--brand-dark);
}
.contact-value {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}
.contact-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cms-cta {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-go--outline {
  background: #fff !important;
  color: var(--brand-dark) !important;
  border: 1px solid var(--brand);
}
.btn-go--outline:hover {
  background: #ecfdf5 !important;
}

/* 商品详情 + 估价 */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-gallery { min-width: 0; }
.detail-main-img {
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9fafb;
}
.detail-placeholder { color: var(--muted); font-size: 15px; }
.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.detail-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  width: 72px;
  height: 72px;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb.is-active { border-color: var(--brand); }
.detail-title { margin: 0 0 12px; font-size: 24px; }
.detail-ref { color: var(--muted); margin-bottom: 16px; }
.detail-desc { font-size: 15px; color: #374151; }

.quote-panel {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  padding: 28px 32px 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
  overflow: hidden;
}
.quote-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #06b6d4, var(--brand-dark));
  opacity: 0.85;
}
.quote-panel > .section-title {
  margin-top: 8px;
}
.quote-hint {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 24px;
  padding: 12px 16px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--brand);
}

.quote-dim {
  margin: 0 0 28px;
  padding: 20px 20px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.quote-dim-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-dim-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #14b8a6);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
.quote-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.quote-card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s, background 0.18s;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.quote-card:hover {
  border-color: rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}
/*
 * 估价卡片：勿用 clip/1px 隐藏 radio（部分浏览器可点击区域为 0，表现为「点不中」）。
 * 用铺满卡片的透明 radio + z-index，保证整卡可点；勿对整块 quote-card 设 pointer-events:none。
 */
.quote-card input[type="radio"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}
.quote-card:focus-within {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}
.quote-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px 44px;
  min-height: 96px;
  justify-content: center;
  position: relative;
  z-index: 0;
  pointer-events: none;
}
.quote-card-body::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  pointer-events: none;
}
.quote-card-text {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}
.quote-card-adj {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.quote-card.is-checked {
  border-color: var(--brand);
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25), 0 10px 28px rgba(13, 148, 136, 0.15);
}
.quote-card.is-checked .quote-card-body::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.quote-actions {
  margin-top: 28px;
  padding: 24px 20px 8px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  background: rgba(255,255,255,0.6);
  border-radius: 0 0 12px 12px;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -8px;
}
.quote-progress {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
}
.quote-progress strong { color: #0f172a; font-size: 15px; }
.btn-quote-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff !important;
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 45%, #115e59 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4), 0 1px 0 rgba(255,255,255,0.2) inset;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-quote-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.45);
}
.btn-quote-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-quote-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.quote-actions-tip {
  font-size: 13px;
  color: #94a3b8;
  margin: 14px 0 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.quote-logistics {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px 32px;
  margin-bottom: 48px;
}
.quote-confirm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff;
  border-radius: 10px;
}
.quote-confirm-banner strong {
  font-size: 26px;
}
.quote-confirm-banner em { font-style: normal; }

.quote-form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}
.quote-form-section:last-of-type { border-bottom: none; }
.quote-form-section-title {
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--brand-dark);
}
.quote-form-row {
  margin-bottom: 14px;
}
.quote-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}
.quote-form-row input[type="text"],
.quote-form-row select,
.quote-form-row textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.quote-form-row textarea { resize: vertical; min-height: 72px; }

.quote-link-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--brand-dark);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}
.quote-link-back:hover { color: var(--brand); }

/* ========== 首页轮播（紧跟搜索区下方，宽度与 .wrap 一致） ========== */
.home-carousel-section {
  padding: 16px 0 8px;
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  width: 100%;
  max-width: 100%;
}
/* 只用固定宽高比定高，不用 vw，避免超宽屏轮播被「竖向拉得很高」 */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 31.67%;
  max-width: 100%;
  background: #0f172a;
  isolation: isolate;
}
@supports (aspect-ratio: 1200 / 380) {
  .carousel-viewport {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 1200 / 380;
  }
}
.carousel-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.carousel-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
  z-index: 0;
}
.carousel-item.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  vertical-align: top;
}
.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, transform 0.15s;
}
.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}
@media (max-width: 640px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* ========== 首页 · 回收流程（轮播下、品类上，参考行业站横向四步） ========== */
.home-flow-section {
  padding: 28px 0 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.home-flow-section .section-title {
  text-align: center;
  justify-content: center;
  margin-bottom: 28px;
}
.home-flow-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 100%;
}
.home-flow-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
  text-align: center;
  padding: 20px 12px 16px;
  position: relative;
}
.home-flow-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}
.home-flow-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.home-flow-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.home-flow-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.home-flow-arrow {
  flex: 0 0 32px;
  align-self: center;
  width: 32px;
  height: 2px;
  margin-top: -24px;
  background: linear-gradient(90deg, #cbd5e1, var(--brand));
  position: relative;
}
.home-flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -5px;
  border: 6px solid transparent;
  border-left: 8px solid var(--brand);
}
.home-flow-foot {
  text-align: center;
  margin: 20px 0 0;
  font-size: 14px;
}
.home-flow-foot a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}
.home-flow-foot a:hover {
  color: var(--brand);
  text-decoration: underline;
}
@media (max-width: 820px) {
  .home-flow-strip {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .home-flow-item {
    flex: 1 1 calc(50% - 16px);
    max-width: none;
  }
  .home-flow-arrow {
    display: none;
  }
}
@media (max-width: 480px) {
  .home-flow-item {
    flex: 1 1 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ========== 首页 · 回收品类（侧栏 + 四列网格） ========== */
.home-section-top {
  padding-top: 20px;
}
.home-recycle-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 28px 32px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.home-recycle-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
.home-search-row {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 28px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.home-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: none;
  font-size: 15px;
  outline: none;
}
.home-search-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.home-search-btn:hover {
  background: #1d4ed8;
}

.home-cat-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cat-sidebar {
  flex: 0 0 168px;
  width: 168px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}
.cat-side-link {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.cat-side-link:last-child {
  border-bottom: none;
}
.cat-side-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.cat-side-link.is-active {
  background: #2563eb;
  color: #fff !important;
}
.cat-side-link.is-active:hover {
  background: #1d4ed8;
  color: #fff !important;
}
.cat-side-link--more {
  color: var(--brand-dark);
  font-weight: 500;
}

.cat-main {
  flex: 1;
  min-width: 0;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .home-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .home-cat-layout { flex-direction: column; }
  .cat-sidebar {
    width: 100%;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
  }
  .cat-side-link {
    flex: 1 1 auto;
    min-width: calc(50% - 8px);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    padding: 10px 12px;
  }
  .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .home-product-grid { grid-template-columns: 1fr; }
}

.home-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-product-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}
.home-product-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.home-product-ph {
  font-size: 13px;
  color: #9ca3af;
}
.home-product-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-product-title {
  font-size: 13px;
  line-height: 1.45;
  color: #111827;
  margin-bottom: 10px;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-product-price {
  margin-top: auto;
  font-size: 13px;
  color: #374151;
}
.home-product-price .rmb {
  color: #dc2626;
  font-weight: 700;
}
.home-product-price .num {
  color: #dc2626;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.home-empty-cat {
  padding: 48px 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px dashed #e5e7eb;
}

/* ========== 会员登录 / 注册 ========== */
.auth-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}
.auth-shell {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}
.auth-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  text-align: center;
  color: #111827;
}
.auth-form { margin: 0; width: 100%; }
.auth-field { margin: 0 0 14px; width: 100%; }
.auth-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.auth-agree { margin: 0 0 16px; }
.auth-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}
.auth-agree-label input {
  margin-top: 3px;
  flex-shrink: 0;
}
.auth-agree-label a {
  color: var(--brand-dark);
  font-weight: 600;
}
.auth-submit { margin: 0; }
.auth-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.auth-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.auth-legal a {
  color: var(--brand-dark);
  font-weight: 600;
}
.auth-links {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}
.auth-links a { color: var(--brand-dark); }
.footer-meta { margin: 4px 0; font-size: 13px; color: #9ca3af; }
.footer .copy a { color: #9ca3af; text-decoration: none; }
.footer .copy a:hover { color: #fff; text-decoration: underline; }
