﻿:root {
  --brand: #c91523;
  --brand-dark: #a40d18;
  --accent: #0f6cbd;
  --success: #16803c;
  --warning: #f08a24;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --steel: #334155;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.topbar {
  height: 34px;
  background: #f1f3f5;
  border-bottom: 1px solid #dfe3e8;
  font-size: 12px;
  color: #4b5563;
}

.topbar .container,
.header-main .container,
.nav .container {
  display: flex;
  align-items: center;
}

.topbar .container {
  height: 34px;
  justify-content: space-between;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-link {
  color: var(--brand);
  border: 0;
  background: transparent;
  padding: 0;
}

.text-link:hover,
.nav a:hover,
.footer a:hover {
  color: var(--brand);
}

.dropdown {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.dropdown-title {
  padding: 0 8px;
}

.dropdown-title::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8b95a1;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 33px;
  right: 0;
  z-index: 30;
  width: 188px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #374151;
  font-size: 13px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #fff3f4;
  color: var(--brand);
}

.header-main {
  background: var(--paper);
  border-bottom: 1px solid #eef0f3;
}

.header-main .container {
  height: 104px;
  gap: 24px;
}

.logo-box {
  width: 236px;
  height: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-box img {
  max-width: 224px;
  max-height: 72px;
  object-fit: contain;
}

.search-block {
  flex: 1;
  min-width: 0;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 7px;
}

.search-tabs button {
  width: 90px;
  height: 30px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
}

.search-tabs button.active {
  background: var(--brand);
  color: #fff;
}

.search-box {
  display: flex;
  height: 42px;
  border: 2px solid var(--brand);
  background: #fff;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: none;
}

.search-box button {
  width: 118px;
  border: 0;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

.trust-row {
  width: 272px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trust-item {
  height: 58px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #334155;
  font-size: 13px;
}

.trust-icon {
  color: var(--brand);
  font-weight: 800;
}

.nav {
  height: 44px;
  background: var(--brand);
  color: #fff;
}

.nav .container {
  height: 44px;
}

.all-category {
  width: 220px;
  height: 44px;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  height: 44px;
}

.nav-links a {
  min-width: 106px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
  background: #a80f1b;
  color: #fff;
}

.main {
  padding-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr 268px;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.category-sidebar {
  background: #fff;
  border: 1px solid var(--line);
}

.category-title {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--steel);
  font-weight: 700;
}

.category-sidebar a {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
}

.category-sidebar a span {
  color: var(--muted);
}

.category-sidebar a:hover {
  background: #fff6f6;
  color: var(--brand);
}

.carousel {
  height: 352px;
  position: relative;
  overflow: hidden;
  background: #202734;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: 44px 46px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.slide.active {
  display: block;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 24, 38, 0.84), rgba(18, 24, 38, 0.2));
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 490px;
}

.slide h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.slide p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.8;
}

.slide-actions {
  display: flex;
  gap: 12px;
}

.dots {
  position: absolute;
  z-index: 2;
  left: 44px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.dots button {
  width: 32px;
  height: 4px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
}

.dots button.active {
  background: #fff;
}

.hero-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.welcome-panel,
.notice-panel,
.section,
.simple-panel,
.order-panel {
  background: #fff;
  border: 1px solid var(--line);
}

.welcome-panel {
  padding: 18px;
}

.welcome-panel h3,
.notice-panel h3,
.section-title h2,
.simple-panel h2,
.order-panel h2 {
  margin: 0;
}

.welcome-panel h3 {
  font-size: 19px;
}

.welcome-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 9px 0 14px;
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notice-panel {
  padding: 14px;
}

.notice-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.notice-tabs a {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid #edf0f3;
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
}

.notice-tabs a:hover {
  border-color: #f5c2c8;
  background: #fff5f6;
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  font-weight: 600;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.dark {
  border-color: var(--steel);
  background: var(--steel);
  color: #fff;
}

.btn.success {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.btn.warning {
  border-color: var(--warning);
  background: var(--warning);
  color: #fff;
}

.btn.small {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn.full {
  width: 100%;
}

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

.promo-strip {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.promo-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  margin-top: 16px;
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid #edf0f4;
  padding-bottom: 12px;
}

.section-title h2 {
  font-size: 22px;
  line-height: 1.2;
}

.section-title .sub {
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.product-card {
  position: relative;
  min-height: 338px;
  background: #fff;
  border: 1px solid #e6e9ee;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: #f3a6ae;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.self-badge,
.store-badge,
.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 7px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.self-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.store-badge {
  background: var(--accent);
}

.stock-badge {
  background: #eef7f0;
  color: var(--success);
  border: 1px solid #ccebd4;
}

.product-info {
  padding: 10px 11px 12px;
}

.product-name {
  height: 42px;
  line-height: 21px;
  font-size: 14px;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  margin-top: 9px;
  color: var(--brand);
  font-weight: 800;
  font-size: 20px;
}

.price small {
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.floor {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 16px;
}

.floor-rail {
  min-height: 100%;
  color: #fff;
  background: #263244;
  padding: 18px;
}

.floor-rail h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.floor-rail p {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.floor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.floor-tags span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 5px 8px;
  font-size: 12px;
}

.banner-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.banner-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.banner-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
}

.banner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.crumb {
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr 250px;
  gap: 18px;
}

.detail-gallery,
.detail-info,
.store-sidebox {
  background: #fff;
  border: 1px solid var(--line);
}

.detail-gallery {
  padding: 14px;
}

.main-photo {
  width: 390px;
  height: 390px;
  border: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.detail-info {
  padding: 18px;
}

.detail-info h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.detail-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.price-panel {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  background: #fff4f5;
  border: 1px solid #ffd7dc;
  margin-bottom: 14px;
}

.price-panel .detail-price {
  color: var(--brand);
  font-weight: 900;
  font-size: 30px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 14px 0;
}

.spec-option {
  min-height: 36px;
  border: 1px solid #d9dee7;
  background: #fff;
  padding: 8px 10px;
  text-align: center;
}

.spec-option.active {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.delivery-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: #475569;
  font-size: 13px;
}

.buy-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.buy-actions .btn {
  width: 142px;
  height: 42px;
}

.store-sidebox {
  padding: 16px;
  align-self: start;
}

.store-sidebox h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.store-sidebox p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.score-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
}

.detail-tabs {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.tab-title {
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.tab-title span {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.detail-content {
  padding: 20px;
}

.detail-image-strip {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.detail-image-strip img {
  width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.detail-copy h3 {
  margin: 0 0 12px;
}

.detail-copy p,
.detail-copy li {
  color: #475569;
  line-height: 1.85;
}

.kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.kv-table th,
.kv-table td {
  border: 1px solid #e5e7eb;
  padding: 11px 12px;
  text-align: left;
}

.kv-table th {
  width: 150px;
  background: #f8fafc;
  color: #475569;
}

.store-list {
  display: grid;
  gap: 14px;
}

.store-row {
  display: grid;
  grid-template-columns: 96px 1fr 180px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.store-logo {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--brand);
  font-size: 30px;
  font-weight: 900;
  border: 1px solid #e2e8f0;
}

.store-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.store-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.store-actions {
  display: grid;
  gap: 8px;
}

.store-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.license-photo {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}

.license-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-summary {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}

.profile-summary h1 {
  margin: 0 0 10px;
}

.profile-summary p {
  color: #475569;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row label {
  color: #374151;
  font-weight: 700;
  font-size: 13px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dee7;
  padding: 9px 10px;
  outline: none;
  background: #fff;
}

.form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.1);
}

.agreement-box {
  max-height: 310px;
  overflow: auto;
  border: 1px solid #dfe5ee;
  background: #fff;
  padding: 16px;
  color: #374151;
  line-height: 1.85;
}

.agreement-box h3 {
  margin: 0 0 12px;
}

.agreement-box p {
  margin: 0 0 12px;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  line-height: 1.6;
}

.checkline input {
  margin-top: 4px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.help-menu {
  background: #fff;
  border: 1px solid var(--line);
}

.help-menu a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f3;
}

.help-menu a.active,
.help-menu a:hover {
  background: #fff4f5;
  color: var(--brand);
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  line-height: 1.85;
}

.article h1,
.article h2,
.article h3 {
  margin: 0 0 12px;
}

.article p {
  margin: 0 0 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e6e9ee;
  padding: 12px;
  background: #fbfcfe;
}

.bulk-hero,
.entry-hero {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  align-items: center;
}

.bulk-hero h1,
.entry-hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.bulk-hero p,
.entry-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.process-list {
  display: grid;
  gap: 8px;
}

.process-list span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  background: #f8fafc;
  border-left: 4px solid var(--brand);
  color: #334155;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.order-panel {
  padding: 18px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.order-table th,
.order-table td {
  border-bottom: 1px solid #edf0f3;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.order-table th {
  color: #475569;
  background: #f8fafc;
}

.order-product {
  display: flex;
  gap: 10px;
  align-items: center;
}

.order-product img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #475569;
}

.summary-line.total {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.empty {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.step {
  min-height: 74px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.step.done {
  border-color: #b7e2c4;
  background: #f0fbf3;
}

.step strong {
  display: block;
  margin-bottom: 6px;
}

.logistics {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.logistics-item {
  padding-left: 16px;
  border-left: 3px solid #d9e3ef;
  color: #475569;
  line-height: 1.7;
}

.logistics-item.current {
  border-color: var(--brand);
  color: var(--ink);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: 430px;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal.wide {
  width: 720px;
}

.modal-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
}

.modal-close {
  border: 0;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  font-size: 18px;
}

.modal-body {
  padding: 18px;
}

.auth-switch {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 520px;
  padding: 11px 16px;
  background: #111827;
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, top 0.2s ease;
}

.toast.show {
  top: 28px;
  opacity: 1;
}

.service-float {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 70;
}

.service-float > button {
  width: 58px;
  height: 58px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.service-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 70;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}

.service-panel.open {
  display: block;
}

.service-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--steel);
  color: #fff;
}

.service-head button {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.faq-chips button {
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  padding: 6px 8px;
  font-size: 12px;
}

.chat-log {
  height: 260px;
  overflow: auto;
  padding: 12px;
  background: #f8fafc;
}

.msg {
  margin-bottom: 10px;
  display: flex;
}

.msg.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  line-height: 1.6;
  font-size: 13px;
}

.msg.user .bubble {
  background: #fff2f3;
  border-color: #ffd5da;
}

.chat-form {
  display: flex;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  border: 0;
  padding: 0 10px;
  outline: none;
}

.chat-form button {
  width: 72px;
  height: 40px;
  border: 0;
  background: var(--brand);
  color: #fff;
}

.footer {
  margin-top: 24px;
  background: #fff;
  border-top: 1px solid #dfe5ec;
}

.footer-service {
  height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid #edf0f3;
}

.footer-service div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 700;
}

.footer-service strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff0f1;
  color: var(--brand);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  padding: 22px 0;
}

.footer-links h4 {
  margin: 0 0 10px;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: #64748b;
  font-size: 13px;
}

.copyright {
  padding: 15px 0 24px;
  border-top: 1px solid #edf0f3;
  color: #64748b;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 1220px) {
  body {
    min-width: 1000px;
  }

  .container {
    width: 1000px;
  }

  .hero-grid {
    grid-template-columns: 200px 1fr 240px;
  }

  .all-category {
    width: 200px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-layout {
    grid-template-columns: 390px 1fr;
  }

  .store-sidebox {
    grid-column: 1 / -1;
  }
}



/* Refinements for uploaded carousel banners and compact agreement controls */
.image-carousel {
  background: #fff;
  border: 1px solid #e3e8ef;
}

.image-carousel .slide {
  padding: 0;
  color: inherit;
  background: #fff;
}

.image-carousel .slide::after {
  display: none;
}

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

.account-panel {
  display: grid;
  gap: 14px;
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-shortcuts a {
  min-height: 70px;
  border: 1px solid #e5e9f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.account-shortcuts a:hover {
  border-color: #f2a5ad;
  background: #fff6f7;
}

.account-shortcuts strong {
  color: var(--brand);
  font-size: 18px;
}

.account-shortcuts span {
  color: #64748b;
  font-size: 12px;
}

.agreement-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #e1e7ef;
  background: #f8fafc;
}

.agreement-line,
.checkline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.agreement-line input,
.checkline input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 0;
  accent-color: var(--brand);
}

.agreement-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.agreement-link:hover {
  text-decoration: underline;
}

.inline-agreement {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.inline-agreement .agreement-line {
  flex: 0 0 auto;
}

.agreement-note {
  color: #334155;
  font-size: 13px;
}

.agreement-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-gallery-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-gallery-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.self-products-banner {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.self-products-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.taobao-detail-content {
  padding: 0;
  background: #fff;
}

.detail-copy-full {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #eef0f3;
}

.detail-vertical-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 30px;
  background: #fff;
}

.detail-vertical-gallery img {
  display: block;
  width: min(790px, 100%);
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  object-fit: contain;
}

.banner-hotspots {
  position: relative;
  overflow: hidden;
}

.banner-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border: 0;
  outline: 0;
}

.banner-hotspot:hover {
  background: rgba(211, 19, 35, 0.04);
  box-shadow: inset 0 0 0 2px rgba(211, 19, 35, 0.28);
}

.hotspot-helmet {
  left: 6.3%;
  top: 4.5%;
  width: 32.3%;
  height: 42%;
}

.hotspot-glasses {
  left: 6.3%;
  top: 51.8%;
  width: 32.3%;
  height: 42.5%;
}

.hotspot-earmuff {
  left: 40.3%;
  top: 4.5%;
  width: 28.2%;
  height: 90%;
}

.hotspot-driver {
  left: 69.5%;
  top: 4.5%;
  width: 27%;
  height: 90%;
}

