/* ================= 站点头部 ================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #4d8bff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.logo:hover {
  color: var(--text);
}

.search-form {
  flex: 1;
  max-width: 560px;
  display: flex;
  border: 2px solid var(--brand);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.search-form input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 9px 18px;
  box-shadow: none !important;
}

.search-form button {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 0 26px;
  font-size: 14px;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-sub);
  margin-left: auto;
}

.cart-link {
  position: relative;
  padding-left: 22px;
}

.cart-link::before {
  content: '🛒';
  position: absolute;
  left: 0;
  font-size: 15px;
}

.cart-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.merchant-entry {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

/* 用户下拉 */
.user-dropdown {
  position: relative;
  padding: 22px 0;
}

.user-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
}

.user-dropdown-menu {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 140px;
  display: none;
}

.user-dropdown:hover .user-dropdown-menu {
  display: block;
}

.user-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
}

.user-dropdown-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 类目导航 */
.category-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.cat-all {
  font-weight: 600;
  color: var(--brand);
  padding-right: 14px;
  margin-right: 6px;
  border-right: 1px solid var(--line);
}

.cat-item {
  position: relative;
  padding: 12px 0;
}

.cat-item > a {
  padding: 0 14px;
  color: var(--text-sub);
}

.cat-item:hover > a {
  color: var(--brand);
}

.cat-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 520px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.cat-item:hover .cat-panel {
  display: grid;
}

.cat-group-title {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.cat-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.cat-group-links a {
  font-size: 13px;
  color: var(--text-sub);
}

/* ================= 页脚 ================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col p {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-meta .dot {
  color: #c9cfd8;
}

.footer-icp {
  color: var(--muted);
}

.footer-icp:hover {
  color: var(--brand);
}

/* ================= 首页 ================= */
.hero {
  background: linear-gradient(120deg, #eef4ff 0%, #fff 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-sub);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.section {
  margin-bottom: 34px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 13px;
  color: var(--text-sub);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* 商品卡片 */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.product-card-cover {
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
  overflow: hidden;
}

.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-cover img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-title {
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.product-card-price .price {
  font-size: 19px;
}

.product-card-price .sales {
  margin-left: auto;
}

.shop-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-sub);
  background: #f4f5f7;
  border-radius: 4px;
  padding: 1px 8px;
}

/* ================= 商品列表页 ================= */
.list-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

.filter-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.filter-panel h4 {
  margin-bottom: 10px;
  font-size: 14px;
}

.filter-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.filter-panel li a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
}

.filter-panel li a:hover,
.filter-panel li a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.filter-panel li.lv2 a {
  padding-left: 18px;
  font-size: 12.5px;
}

.sort-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.sort-bar span.label {
  color: var(--muted);
  margin-right: 4px;
}

.sort-bar a {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
}

.sort-bar a.active {
  background: var(--brand);
  color: #fff;
}

.sort-bar .result-count {
  margin-left: auto;
  color: var(--muted);
}

/* ================= 商品详情 ================= */
.detail-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f7f8fa;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumbs img.active {
  border-color: var(--brand);
}

.detail-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.detail-subtitle {
  color: var(--text-sub);
  margin-bottom: 16px;
}

.detail-price-box {
  background: linear-gradient(90deg, #fff5f0, #fff);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.detail-price-box .price {
  font-size: 30px;
}

.detail-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.spec-group {
  margin-bottom: 16px;
}

.spec-group .spec-name {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-value {
  padding: 7px 16px;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: all 0.15s ease;
}

.spec-value:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.spec-value.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.spec-value.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.quantity-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 42px;
}

.quantity-box button {
  width: 38px;
  height: 100%;
  border: none;
  background: #fafbfc;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-sub);
}

.quantity-box button:hover {
  color: var(--brand);
}

.quantity-box input {
  width: 56px;
  height: 100%;
  border: none;
  border-left: 1px solid #dfe3e9;
  border-right: 1px solid #dfe3e9;
  text-align: center;
  border-radius: 0;
  box-shadow: none !important;
}

.stock-hint {
  font-size: 12px;
  color: var(--muted);
}

.shop-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  background: #fafbfc;
  border-radius: var(--radius);
}

.detail-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.detail-section h3 {
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  margin-bottom: 18px;
}

.detail-content {
  color: var(--text-sub);
  line-height: 1.9;
  word-break: break-all;
}

.detail-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

/* ================= 购物车 ================= */
.cart-group {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.cart-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.cart-row {
  display: grid;
  grid-template-columns: 36px 90px minmax(0, 1fr) 140px 120px 100px 70px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
}

.cart-row .title {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
}

.cart-row .title:hover {
  color: var(--brand);
}

.cart-row .spec {
  font-size: 12px;
  color: var(--muted);
}

.cart-row .subtotal {
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
}

.cart-row.invalid {
  opacity: 0.6;
}

.cart-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  z-index: 20;
}

.cart-bar .checkbox-line {
  min-width: 90px;
}

.cart-bar .total-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-bar .total-box .price {
  font-size: 24px;
}

/* ================= 结算页 ================= */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-item {
  display: block;
  position: relative;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}

.address-item:hover {
  border-color: var(--brand);
}

.address-item input {
  position: absolute;
  opacity: 0;
}

.address-item:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.address-item .name {
  font-weight: 600;
  margin-bottom: 4px;
}

.address-item .addr {
  font-size: 12.5px;
  color: var(--text-sub);
}

.address-item .default-tag {
  position: absolute;
  top: 12px;
  right: 12px;
}

.order-preview-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.order-preview-item:last-child {
  border-bottom: none;
}

.order-preview-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
}

.summary-box {
  position: sticky;
  top: 90px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-sub);
  font-size: 13px;
}

.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 15px;
  color: var(--text);
}

.summary-line.total .price {
  font-size: 24px;
}

/* ================= 支付 / 结果 ================= */
.pay-box {
  max-width: 720px;
  margin: 0 auto;
}

.pay-amount {
  text-align: center;
  padding: 28px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
}

.pay-amount .label {
  color: var(--muted);
  font-size: 13px;
}

.pay-amount .price {
  display: block;
  font-size: 40px;
  margin-top: 6px;
}

.pay-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-method {
  flex: 1;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.pay-method.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.pay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.result-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.result-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--success);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ================= 订单 ================= */
.order-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow-x: auto;
}

.order-tabs a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  white-space: nowrap;
  font-size: 13.5px;
}

.order-tabs a.active {
  background: var(--brand);
  color: #fff;
}

.order-tabs a .count {
  color: var(--brand);
  font-weight: 600;
}

.order-tabs a.active .count {
  color: #fff;
}

.order-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.order-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-sub);
}

.order-card-head .order-no {
  font-weight: 600;
  color: var(--text);
}

.order-card-head .status {
  margin-left: auto;
  font-weight: 600;
}

.order-card-body {
  display: flex;
}

.order-items {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}

.order-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.order-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
}

.order-item .info {
  flex: 1;
  min-width: 0;
}

.order-item .info .title {
  font-size: 13.5px;
  display: block;
  margin-bottom: 4px;
}

.order-item .info .spec {
  font-size: 12px;
  color: var(--muted);
}

.order-side {
  width: 200px;
  border-left: 1px solid var(--line);
  padding: 16px;
  text-align: right;
  font-size: 13px;
  color: var(--text-sub);
}

.order-side .amount {
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

.order-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.order-actions form {
  display: inline-block;
}

/* 订单详情 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline .time {
  color: var(--muted);
  font-size: 12px;
}

/* ================= 账号中心 ================= */
.account-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-side {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.account-side .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #4d8bff);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.stat-card .label {
  font-size: 12.5px;
  color: var(--text-sub);
}

.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  background: #fff;
}

.address-card .name {
  font-weight: 600;
  margin-bottom: 4px;
}

.address-card .addr {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.address-card .ops {
  display: flex;
  gap: 8px;
}

/* ================= 页脚条款链接 ================= */
.footer-links {
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.footer-links-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 0;
  font-size: 13px;
}

.footer-links-inner a {
  color: var(--text-sub);
}

.footer-links-inner a:hover {
  color: var(--brand);
}

.footer-links-inner .dot {
  color: #c9cfd8;
}

/* ================= 平台条款文档页 ================= */
.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.legal-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.legal-side h4 {
  margin-bottom: 10px;
}

.legal-side a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
}

.legal-side a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.legal-side a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.legal-side .legal-back {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.legal-doc {
  padding: 26px 30px;
}

.legal-lead {
  background: var(--brand-soft);
  color: #0e4ac4;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.legal-section h3 {
  margin: 18px 0 8px;
}

.legal-section p,
.legal-section ul {
  color: var(--text-sub);
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.legal-card h3 {
  margin-bottom: 8px;
}

.legal-card p {
  font-size: 13px;
  margin-bottom: 12px;
}

.legal-card-more {
  color: var(--brand);
  font-size: 13px;
}

/* 文字型操作按钮（替代 javascript:; 空链接） */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .list-layout,
  .detail-layout,
  .checkout-grid,
  .account-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-side {
    position: static;
  }
  .legal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
