:root {
  --ink: #20252a;
  --muted: #77818a;
  --dark: #15191d;
  --dark-soft: #20262c;
  --line: #e7eaed;
  --paper: #f5f6f7;
  --white: #fff;
  --accent: #f2a900;
  --accent-dark: #d99200;
  --danger: #d84c43;
  --success: #24865a;
  --radius: 12px;
  --shadow: 0 12px 36px rgba(21, 25, 29, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

/* 顶部与导航 */
.announcement {
  color: #e9edf0;
  background: var(--dark);
  font-size: 12px;
}

.announcement-inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.announcement-right {
  color: #b8c0c7;
}

.announcement-right strong {
  color: var(--accent);
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #171b1f;
  background: var(--accent);
  border-radius: 9px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-copy small {
  margin-top: 4px;
  color: #899198;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.search-box {
  display: flex;
  width: min(500px, 48%);
  height: 43px;
  border: 1px solid #dfe3e6;
  border-radius: 7px;
  overflow: hidden;
  background: #fafbfc;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, .12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box button {
  width: 78px;
  border: 0;
  color: #171b1f;
  background: var(--accent);
  font-weight: 800;
}

.search-box button:hover {
  background: #ffc02c;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.cart-button:hover {
  border-color: var(--accent);
}

.cart-button b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 20px;
  color: #171b1f;
  background: var(--accent);
  font-size: 11px;
}

.cart-icon {
  font-size: 17px;
}

.main-nav {
  border-top: 1px solid #f0f1f2;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 47px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 47px;
  flex-shrink: 0;
  color: #4f5961;
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #15191d;
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.nav-categories {
  display: contents;
}

/* 通用页面 */
.page-section {
  padding: 42px 0;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #a27308;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.section-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: #8b650b;
  font-weight: 700;
}

.text-link:hover {
  color: #bd8300;
}

/* 首页主视觉 */
.hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 45%, rgba(242, 169, 0, .23), transparent 26%),
    linear-gradient(115deg, #171c20 0%, #252d33 58%, #111619 100%);
}

.hero::after {
  position: absolute;
  top: -120px;
  right: 4%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, 65%);
  padding: 65px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-kicker::before {
  width: 25px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 460px;
  margin: 19px 0 27px;
  color: #c0c8ce;
  font-size: 14px;
  line-height: 1.9;
}

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

.hero-visual {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 0;
  width: 34%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.12);
  font-size: clamp(90px, 16vw, 190px);
  font-weight: 900;
  letter-spacing: -12px;
  user-select: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* 按钮 */
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: .18s ease;
}

.button-primary {
  color: #171b1f;
  background: var(--accent);
}

.button-primary:hover {
  background: #ffc02c;
  transform: translateY(-1px);
}

.button-dark {
  color: #fff;
  background: #20262c;
}

.button-dark:hover {
  background: #343d45;
}

.button-outline {
  border-color: rgba(255,255,255,.38);
  color: #fff;
  background: transparent;
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-quiet {
  border-color: var(--line);
  color: #4c565e;
  background: #fff;
}

.button-quiet:hover {
  border-color: #b9c0c6;
  background: #f8f9fa;
}

.button-full {
  width: 100%;
}

/* 服务优势 */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
}

.service-item + .service-item {
  border-left: 1px solid var(--line);
}

.service-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: #8d6500;
  background: #fff5d9;
  font-size: 18px;
}

.service-item strong {
  display: block;
  font-size: 13px;
}

.service-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* 分类卡片 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: .2s ease;
}

.category-card:hover {
  border-color: #e7bd55;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-card strong {
  display: block;
  font-size: 15px;
}

.category-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.category-symbol {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8c670c;
  background: #fff5dc;
  font-size: 22px;
}

/* 商品列表 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: .2s ease;
}

.product-card:hover {
  border-color: #d9b65e;
  box-shadow: 0 12px 30px rgba(30, 35, 39, .09);
  transform: translateY(-3px);
}

.product-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f5f6;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #171b1f;
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.product-info {
  padding: 14px;
}

.product-brand {
  margin-bottom: 5px;
  color: #a17612;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.product-name {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  color: #252b30;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-desc {
  min-height: 19px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.product-price {
  color: #c27d00;
  font-size: 19px;
  font-weight: 900;
}

.product-old-price {
  margin-left: 5px;
  color: #a2a9ae;
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
}

.add-cart-mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  color: #171b1f;
  background: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

.add-cart-mini:hover {
  background: #ffc02c;
}

/* 商品筛选与详情 */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.filter-panel {
  align-self: start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.filter-group + .filter-group {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filter-group h4 {
  margin: 0 0 12px;
  font-size: 13px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  color: #5f6971;
  font-size: 12px;
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--accent-dark);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.catalog-toolbar select,
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid #dfe3e6;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.catalog-toolbar select {
  width: auto;
  min-width: 140px;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus,
.catalog-toolbar select:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(242,169,0,.12);
}

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

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 42px;
}

.detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f6f7;
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.detail-title {
  margin: 8px 0 10px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
}

.detail-price {
  margin: 20px 0;
  padding: 17px;
  border-radius: 8px;
  background: #fff8e8;
}

.detail-price strong {
  color: #b87800;
  font-size: 29px;
  font-weight: 900;
}

.detail-price del {
  margin-left: 10px;
  color: #92999f;
}

.detail-meta {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f1;
  font-size: 12px;
}

.detail-meta span:first-child {
  color: var(--muted);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button {
  width: 34px;
  height: 35px;
  border: 0;
  background: #f6f7f8;
}

.quantity-control input {
  width: 44px;
  height: 35px;
  border: 0;
  outline: 0;
  text-align: center;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-content {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.detail-content h3 {
  margin: 0 0 15px;
  font-size: 18px;
}

.detail-content p,
.detail-content li {
  color: #58636b;
  line-height: 1.9;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.spec-table td:first-child {
  width: 32%;
  color: #69737b;
  background: #f7f8f9;
}

/* 购物车抽屉 */
.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(12, 16, 19, .48);
  transition: .2s ease;
}

.drawer-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -15px 0 45px rgba(0,0,0,.13);
  transform: translateX(105%);
  transition: transform .25s ease;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-header strong {
  display: block;
  font-size: 17px;
}

.drawer-header small {
  color: var(--muted);
}

.icon-button {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  color: #59636b;
  background: #f2f4f5;
  font-size: 23px;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eef0f1;
}

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f3f4;
}

.cart-item-name {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}

.cart-item-price {
  color: #bd7b00;
  font-weight: 900;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item-actions button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.remove-cart-item {
  color: var(--danger);
  font-size: 11px;
}

.drawer-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.cart-total-line strong {
  color: #bd7b00;
  font-size: 22px;
  font-weight: 900;
}

.drawer-footer .button + .button {
  margin-top: 9px;
}

/* 结算 */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 25px;
  align-items: start;
}

.panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.panel + .panel {
  margin-top: 18px;
}

.panel h3 {
  margin: 0 0 18px;
  font-size: 17px;
}

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

.form-field {
  min-width: 0;
}

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

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: #4d5860;
  font-size: 12px;
  font-weight: 700;
}

.required {
  color: var(--danger);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f1;
  font-size: 12px;
}

.checkout-line strong {
  white-space: nowrap;
}

.checkout-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  font-weight: 800;
}

.checkout-grand-total strong {
  color: #bd7b00;
  font-size: 23px;
}

/* 空状态、错误与提示 */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-state .empty-icon {
  margin-bottom: 12px;
  color: #c3c9ce;
  font-size: 45px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.error-state {
  padding: 45px 20px;
  border: 1px solid #f1d5d2;
  border-radius: 9px;
  color: #8e3730;
  background: #fff8f7;
  text-align: center;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
}

.toast {
  min-width: 220px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 7px;
  color: #fff;
  background: #20262c;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}

.toast.error {
  background: #a93c35;
}

.toast.success {
  background: #23744f;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 骨架屏 */
.loading-state {
  padding-top: 30px;
  padding-bottom: 50px;
}

.skeleton {
  border-radius: 9px;
  background: linear-gradient(90deg, #f0f1f2 25%, #e6e8ea 40%, #f0f1f2 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-hero {
  height: 320px;
  margin-bottom: 25px;
}

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

.skeleton-card {
  height: 260px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* 页脚 */
.site-footer {
  margin-top: 45px;
  color: #c2c9ce;
  background: #171c20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  padding-top: 43px;
  padding-bottom: 38px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #8d969d;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 17px;
  color: #89939b;
  font-size: 12px;
  line-height: 1.9;
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) p {
  display: block;
  margin: 8px 0;
  color: #9da6ad;
  font-size: 12px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-bottom .container {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #77818a;
  font-size: 11px;
}

/* 品牌专区与分页 */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.brand-card {
  padding: 22px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  transition: .2s ease;
}

.brand-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.brand-card strong {
  font-size: 16px;
}

.brand-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #56616a;
  background: #fff;
}

.pagination button.active,
.pagination button:hover {
  border-color: var(--accent);
  color: #171b1f;
  background: var(--accent);
}

/* 响应式 */
@media (max-width: 900px) {
  .header-main {
    gap: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-inner {
    gap: 22px;
  }

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

  .category-grid,
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .catalog-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .announcement-inner {
    min-height: 31px;
  }

  .announcement-right {
    display: none;
  }

  .header-main {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 11px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 17px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .search-box {
    order: 3;
    width: 100%;
    height: 39px;
  }

  .cart-button {
    margin-left: auto;
    padding: 8px 10px;
    font-size: 12px;
  }

  .main-nav .container {
    width: 100%;
    padding: 0 14px;
  }

  .nav-inner {
    min-height: 43px;
    gap: 21px;
  }

  .nav-link {
    height: 43px;
    font-size: 12px;
  }

  .hero {
    min-height: 340px;
  }

  .hero-content {
    width: 100%;
    padding: 48px 0;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 36px;
  }

  .hero p {
    max-width: 330px;
    font-size: 12px;
  }

  .hero-visual {
    right: -7%;
    width: 42%;
    opacity: .35;
  }

  .page-section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .page-heading {
    align-items: start;
  }

  .service-item {
    padding: 14px 10px;
    gap: 9px;
  }

  .service-icon {
    width: 33px;
    height: 33px;
    font-size: 15px;
  }

  .service-item strong {
    font-size: 11px;
  }

  .service-item small {
    font-size: 9px;
  }

  .category-grid {
    gap: 9px;
  }

  .category-card {
    min-height: 95px;
    padding: 12px;
  }

  .category-card strong {
    font-size: 13px;
  }

  .category-symbol {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

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

  .product-info {
    padding: 10px;
  }

  .product-name {
    min-height: 40px;
    font-size: 12px;
  }

  .product-price {
    font-size: 16px;
  }

  .product-old-price {
    display: block;
    margin-left: 0;
  }

  .add-cart-mini {
    width: 30px;
    height: 30px;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    margin-bottom: 18px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .detail-title {
    font-size: 21px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .panel {
    padding: 17px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 18px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom .container {
    min-height: 58px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .skeleton-hero {
    height: 260px;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skeleton-card {
    height: 220px;
  }
}
/* 商品详情多图缩略图 */
.detail-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.detail-thumb {
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.detail-thumb:hover {
  border-color: var(--primary);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
