/* ============================================================
   闽南语文化商城 - 全站样式（浅色主题 / 响应式）
   ============================================================ */

:root {
  --primary: #c2410c;        /* 砖红 / 闽南古厝色 */
  --primary-dark: #9a3412;
  --primary-soft: #fff1e9;
  --accent: #b45309;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --bg: #faf7f2;              /* 暖米白 */
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(124, 45, 18, 0.08);
  --shadow-hover: 0 12px 28px rgba(124, 45, 18, 0.16);
  --radius: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 32px, var(--max-width)); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.logo-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
}
.logo-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--primary); border-color: var(--primary); }

/* 顶部导航 · 内容分类下拉 */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 11px; line-height: 1; transition: transform .2s; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 148px; padding: 6px; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09); z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 10px; border: 0 !important;
  white-space: nowrap; font-size: 14px; color: var(--ink-soft);
}
.nav-dropdown-menu a:hover { background: var(--primary-soft); color: var(--primary); border: 0 !important; border-radius: 6px; }
.mobile-cat-bar { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-soft);
  text-decoration: none;
}
.nav-search:hover { color: var(--primary); background: var(--primary-soft); }

.user-area { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700;
}
.user-name { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-hover); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- 轮播 ---------- */
.carousel {
  position: relative;
  margin: 20px 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  background: linear-gradient(120deg, #7c2d12, #c2410c 55%, #ea580c);
  box-shadow: var(--shadow);
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 clamp(24px, 8%, 90px);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  color: #fff;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide.has-image { background-size: cover; background-position: center; }
.slide.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40, 15, 5, .78), rgba(40, 15, 5, .25));
}
.slide-content { position: relative; z-index: 1; max-width: 620px; }
.slide-title { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin: 0 0 14px; line-height: 1.25; }
.slide-subtitle { font-size: clamp(14px, 1.8vw, 18px); opacity: .92; margin: 0 0 26px; }
.slide-cta {
  display: inline-block;
  background: #fff; color: var(--primary);
  padding: 11px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s;
}
.slide-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.28); color: #fff;
  border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,.45); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: 0; cursor: pointer;
  transition: width .25s, background .25s;
}
.dot.active { width: 26px; border-radius: 5px; background: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 34px 0 8px; }
#biz-info { scroll-margin-top: 84px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
}
.section-title {
  font-size: 24px; font-weight: 800; margin: 0;
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.section-sub { color: var(--muted); font-size: 14px; }
.section-more { margin-left: auto; color: var(--primary); font-size: 14px; font-weight: 600; }
.section-more:hover { text-decoration: underline; }
.dialect-note {
  color: var(--accent); font-size: 13px;
  background: var(--primary-soft);
  padding: 2px 10px; border-radius: 999px;
}

/* ---------- 商品分类 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.category-card:hover, .category-card.active {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.category-icon {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: var(--primary);
  overflow: hidden;
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-name { font-weight: 700; font-size: 15px; }
.category-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 商品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fde8d7, #f8d9c4);
  display: grid; place-items: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .ph { color: var(--primary); font-size: 15px; font-weight: 700; opacity: .55; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.product-sub { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; }
.price-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.price-now { color: var(--primary); font-size: 20px; font-weight: 800; }
.product-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.product-jump {
  margin-top: 12px;
  display: block; text-align: center;
  padding: 9px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 14px; font-weight: 700;
  transition: background .2s, color .2s;
}
.product-jump:hover { background: var(--primary); color: #fff; }

/* ---------- 促销活动 ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  min-height: 160px;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #9a3412, #ea580c);
  box-shadow: var(--shadow);
}
.promo-card:nth-child(2) { background: linear-gradient(135deg, #78350f, #d97706); }
.promo-card:nth-child(3) { background: linear-gradient(135deg, #7f1d1d, #be123c); }
.promo-card.has-image { background-size: cover; background-position: center; }
.promo-card.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(40, 15, 5, .62);
}
.promo-card > * { position: relative; z-index: 1; }
.promo-tag {
  align-self: flex-start;
  background: rgba(255,255,255,.25);
  padding: 2px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.promo-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.promo-desc { font-size: 13px; opacity: .9; margin: 0 0 14px; }
.promo-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.countdown { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.countdown .num {
  background: rgba(255,255,255,.22);
  padding: 2px 7px; border-radius: 6px; margin: 0 2px;
}
.promo-link { font-size: 13px; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.promo-actions { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.promo-detail-link { font-size: 13px; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.promo-card:hover .promo-detail-link { text-decoration-thickness: 2px; }

/* 活动详情页 */
.promo-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin-top: 12px;
}
.promo-hero-tag {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.promo-hero-title { font-size: 28px; font-weight: 800; line-height: 1.4; margin: 0 0 10px; }
.promo-hero-desc { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.promo-hero-meta { color: var(--primary); font-size: 14px; }
.promo-hero .buy-box { max-width: 460px; }

/* ---------- 底部 ---------- */
.site-footer {
  margin-top: 46px;
  background: #2b1810;
  color: #e7d5c8;
  padding: 36px 0 24px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: flex-start; gap: 10px; }
.footer-logo { width: 40px; height: 40px; border-radius: 9px; background: #fff; padding: 2px; object-fit: contain; flex: 0 0 auto; }
.footer-brand small { display: block; font-size: 12px; font-weight: 400; color: #bfa998; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-contact { color: #a89181; }
.footer-copy {
  width: 100%; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: #a89181; text-align: center;
}

/* ---------- 提示条 ---------- */
.alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
}
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid; place-items: center;
  padding: 40px 16px;
}
.auth-card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 32px;
}
.auth-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.agree-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin: 4px 0 16px; cursor: pointer;
}
.agree-label input { width: 15px; height: 15px; accent-color: var(--primary); flex: none; }
.agree-label a { color: var(--primary); font-weight: 700; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 700; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 20px 0 6px; font-size: 13px; color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- 商品详情页 ---------- */
.detail-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; margin-top: 14px;
  align-items: stretch; /* 左右两栏等高：主图高度跟随右侧文字区 */
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.detail-gallery {
  position: relative; border-radius: var(--radius); overflow: hidden;
  align-self: stretch; justify-self: stretch;
  width: 100%; height: auto; max-width: none; min-height: 0;
  background: #f0ece3;
  display: grid; place-items: center;
}
.detail-gallery > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-ph { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ph-mark {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.65); color: var(--primary);
  font-size: 44px; font-weight: 800;
}
.ph-text { color: var(--primary); font-size: 16px; font-weight: 700; opacity: .7; }
.detail-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.detail-info { display: flex; flex-direction: column; min-width: 0; }
.detail-title { font-size: 28px; line-height: 1.35; margin: 0 0 8px; font-weight: 800; }
.detail-subtitle { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; }
.detail-price-box {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.detail-price-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.detail-price { color: var(--primary); font-size: 36px; font-weight: 800; line-height: 1; }
.detail-stats {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13px; margin-top: 14px;
}
.detail-stats strong { color: var(--ink); }
.detail-stats .dot { color: #d1d5db; }

/* 购买按钮（跳转第三方平台） */
.buy-box { margin-top: 26px; }
.buy-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px 20px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff; font-size: 18px; font-weight: 800; font-family: inherit;
  cursor: pointer; box-shadow: 0 8px 20px rgba(194, 65, 12, .25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.buy-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(194, 65, 12, .35); filter: brightness(1.05); }
.buy-button.disabled {
  background: #e5e7eb; color: #9ca3af; cursor: not-allowed; box-shadow: none;
}
.buy-icon { font-size: 22px; font-weight: 400; }
.buy-ext {
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  background: rgba(255,255,255,.22); border-radius: 999px;
}
.buy-notice {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.6;
}
.notice-icon { color: var(--primary); font-size: 14px; flex: none; }
.detail-service {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}

/* 富文本详情（商品 / 分类 / 活动共用） */
.detail-desc-section { margin-top: 8px; }
:is(.detail-desc, .rich-content) {
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; font-size: 15px; color: var(--ink-soft); line-height: 1.9;
}
.cat-rich { margin-top: 18px; }
:is(.detail-desc, .rich-content) p { margin: 0 0 12px; }
:is(.detail-desc, .rich-content) p:last-child { margin-bottom: 0; }
.desc-empty { color: var(--muted); font-size: 13px; }

/* 富文本排版（编辑器产出内容） */
:is(.detail-desc, .rich-content) h1,
:is(.detail-desc, .rich-content) h2,
:is(.detail-desc, .rich-content) h3,
:is(.detail-desc, .rich-content) h4,
:is(.detail-desc, .rich-content) h5,
:is(.detail-desc, .rich-content) h6 {
  color: var(--ink); font-weight: 800; line-height: 1.4; margin: 22px 0 10px;
}
:is(.detail-desc, .rich-content) h1 { font-size: 26px; }
:is(.detail-desc, .rich-content) h2 { font-size: 22px; }
:is(.detail-desc, .rich-content) h3 { font-size: 18px; }
:is(.detail-desc, .rich-content) h4 { font-size: 16px; }
:is(.detail-desc, .rich-content) h2:first-child,
:is(.detail-desc, .rich-content) h3:first-child { margin-top: 0; }
:is(.detail-desc, .rich-content) ul,
:is(.detail-desc, .rich-content) ol { margin: 0 0 14px; padding-left: 24px; }
:is(.detail-desc, .rich-content) li { margin: 4px 0; }
:is(.detail-desc, .rich-content) blockquote {
  margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--primary);
  background: #ffffff; border-radius: 0 8px 8px 0; color: var(--ink);
}
:is(.detail-desc, .rich-content) blockquote p { margin: 0; }
:is(.detail-desc, .rich-content) a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
:is(.detail-desc, .rich-content) img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
:is(.detail-desc, .rich-content) figure { margin: 16px 0; }
:is(.detail-desc, .rich-content) figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }
:is(.detail-desc, .rich-content) video,
:is(.detail-desc, .rich-content) iframe {
  display: block; width: 100%; max-width: 720px; height: auto;
  aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin: 16px 0; background: #000;
}
:is(.detail-desc, .rich-content) audio { display: block; width: 100%; max-width: 520px; margin: 14px 0; }
:is(.detail-desc, .rich-content) hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:is(.detail-desc, .rich-content) table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
:is(.detail-desc, .rich-content) th,
:is(.detail-desc, .rich-content) td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
:is(.detail-desc, .rich-content) th { background: #ffffff; color: var(--ink); font-weight: 700; }
:is(.detail-desc, .rich-content) pre,
:is(.detail-desc, .rich-content) code {
  background: #ffffff; border: 1px solid var(--line); border-radius: 6px; font-family: Consolas, Monaco, monospace; font-size: 13px;
}
:is(.detail-desc, .rich-content) pre { padding: 14px; overflow-x: auto; }
:is(.detail-desc, .rich-content) code { padding: 2px 6px; }
:is(.detail-desc, .rich-content) mark { background: #ffffff; color: var(--primary); text-decoration: underline; padding: 0 3px; border-radius: 3px; }

/* 商品卡片底部双按钮 */
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .product-jump { flex: 1; margin-top: 0; }
.product-buy-mini {
  flex: 1; display: block; text-align: center; padding: 9px 6px;
  border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background .2s;
}
.product-buy-mini:hover { background: var(--primary-dark); }

/* ---------- 个人简介 / 关于我们 ---------- */
.about-card {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.about-avatar {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--primary-soft);
  color: var(--primary); font-size: 38px; font-weight: 800;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-body { flex: 1 1 320px; min-width: 0; }
.about-body h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.about-body h3 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--primary); }
.about-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.about-hero { margin-top: 12px; }
.about-hero .about-card { padding: 34px 36px; }
.about-hero .about-avatar { flex-basis: 120px; width: 120px; height: 120px; font-size: 46px; }
.about-hero .about-body h3 { font-size: 26px; }
.about-text {
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 20px; font-size: 15px; line-height: 2; color: var(--ink-soft);
}
.about-back { display: inline-block; margin-top: 20px; }

/* ---------- 经营主体公示 ---------- */
.biz-info dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 10px 18px; }
.biz-info dt { color: var(--muted); font-size: 14px; }
.biz-info dd { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; word-break: break-word; }
.biz-info a { color: var(--primary); }
.biz-note {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.8;
}
@media (max-width: 600px) {
  .biz-info { padding: 22px 18px; }
  .biz-info dl { grid-template-columns: 1fr; gap: 4px; }
  .biz-info dt { margin-top: 10px; font-weight: 700; color: var(--ink); font-size: 13px; }
  .biz-info dd { font-size: 13px; }
}
.icp-link { color: inherit; }
.icp-link:hover { color: #fff; text-decoration: underline; }

/* ---------- 分类列表页 ---------- */
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 12px;
}
.cat-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.cat-desc { margin: 0; color: var(--muted); font-size: 14px; }
.cat-count { font-size: 13px; color: var(--primary); font-weight: 700; }
.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.search-form .form-control { flex: 1; min-width: 0; }
.search-form .btn { flex: none; }

/* ---------- 首页站内搜索 ---------- */
.home-search {
  margin: 20px 0 4px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-search-form {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 6px 5px 18px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.home-search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.home-search-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.home-search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink); padding: 8px 0;
}
.home-search-input::placeholder { color: var(--muted); }
.home-search-btn {
  flex: none; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 28px; border-radius: 999px; transition: background .2s;
}
.home-search-btn:hover { background: var(--primary-dark); }
.home-search-hot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-left: 4px; font-size: 13px;
}
.home-search-hot .hot-label { color: var(--muted); }
.home-search-hot a {
  color: var(--ink-soft); background: var(--primary-soft);
  padding: 3px 12px; border-radius: 999px; transition: all .2s;
}
.home-search-hot a:hover { background: var(--primary); color: #fff; }
@media (max-width: 480px) {
  .home-search { padding: 16px; }
  .home-search-btn { padding: 10px 18px; }
  .home-search-input { font-size: 13px; }
}
.cat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 22px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.cat-tab {
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .2s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.front-pagination { margin: 30px 0 10px; }

/* 商品不存在 */
.not-found { text-align: center; padding: 70px 20px; }
.not-found-icon {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 36px; font-weight: 800;
  color: var(--primary); background: var(--primary-soft);
}
.not-found h2 { font-size: 22px; margin: 0 0 8px; }
.not-found p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mobile-cat-bar {
    display: block; background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
  }
  .mobile-cat-inner {
    display: flex; gap: 18px; overflow-x: auto; white-space: nowrap;
    padding: 9px 0; scrollbar-width: none;
  }
  .mobile-cat-inner::-webkit-scrollbar { display: none; }
  .mobile-cat-inner a { font-size: 13px; color: var(--ink-soft); }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; min-height: 60px; }
  .logo { font-size: 16px; }
  .logo-sub { display: none; }
  .carousel { height: 260px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-name { font-size: 14px; }
  .price-now { font-size: 17px; }
  .user-name { display: none; }
  .section-title { font-size: 20px; }
  .section-head { flex-wrap: wrap; gap: 6px 10px; }
  .section-title { flex-shrink: 0; }
  .section-sub { font-size: 13px; line-height: 1.6; }
  .footer-links { gap: 16px; }
  .detail-wrap { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .detail-title { font-size: 22px; }
  .detail-price { font-size: 30px; }
  .detail-desc, .rich-content, .promo-hero { padding: 18px; }
  .about-card, .about-hero .about-card { padding: 20px; gap: 18px; }
  .about-text { padding: 20px; }
  .promo-hero-title { font-size: 22px; }
  :is(.detail-desc, .rich-content) h1 { font-size: 22px; }
  :is(.detail-desc, .rich-content) h2 { font-size: 19px; }
  .cat-title { font-size: 22px; }
  .card-actions { flex-direction: column; }
}

@media (max-width: 980px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-gallery {
    width: 100%; height: auto; max-width: 100%; min-height: 0; aspect-ratio: 1 / 1;
    align-self: auto; justify-self: stretch;
  }
}
