/* ============================================================
   多店铺商城 · 三套独立视觉皮肤（modern / editorial / boutique）
   所有店铺共用同一套模板，通过 body.skin-* 与 :root 令牌自由换肤
   ============================================================ */

:root {
  --brand: #2C5FE0;
  --brand-dark: #1E44AD;
  --accent: #FF6B2C;
  --brand-tint: #EEF3FF;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-sub: #475569;
  --text-mute: #94A3B8;
  --border: #E8EEF5;
  --radius: 16px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.skin-editorial {
  --bg: #F8F7F3;
  --card: #FFFFFF;
  --text: #1C2420;
  --text-sub: #52605A;
  --text-mute: #7D8680;
  --border: #E5E1D6;
  --radius: 10px;
}

body.skin-boutique {
  --bg: #FAF6F1;
  --card: #FFFFFF;
  --text: #1C1917;
  --text-sub: #57534E;
  --text-mute: #78716C;
  --border: #EAE2D6;
  --radius: 16px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------------- 顶部公告条 ---------------- */

.top-ribbon {
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.top-ribbon-dark {
  background: #1C1917;
  color: #E7E5E4;
  border-bottom: 0;
}
.top-ribbon-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-ribbon a { text-decoration: underline; }
.hide-m { display: none; }
@media (min-width: 680px) {
  .hide-m { display: inline; }
}

/* ---------------- 头部导航 ---------------- */

.hd {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hd-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hd-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 14px;
}
.hd-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-right: 10px;
  flex: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}
.hd-brand-txt { display: flex; flex-direction: column; }
.hd-brand-txt b {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.hd-brand-txt small {
  display: none;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}
@media (min-width: 820px) {
  .hd-brand-txt small { display: block; }
}

.hd-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.hd-nav::-webkit-scrollbar { display: none; }
.hd-nav a {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 7px 12px;
  border-radius: 999px;
  margin-left: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hd-nav a:first-child { margin-left: 0; }
.hd-nav a:hover { background: rgba(15, 23, 42, 0.05); color: var(--text); }
.hd-nav a.on { background: var(--brand-tint); color: var(--brand); }

/* Editorial 居中报头导航 */
body.skin-editorial .hd {
  background: rgba(248, 247, 243, 0.96);
  position: relative;
}
body.skin-editorial .hd-in {
  flex-direction: column;
  padding: 16px 16px 10px;
  min-height: auto;
}
body.skin-editorial .hd-logo { margin-right: 0; }
body.skin-editorial .hd-ico { width: 30px; height: 30px; border-radius: 7px; }
body.skin-editorial .hd-brand-txt b {
  font-family: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  font-size: 21px;
  letter-spacing: 2.5px;
  color: var(--brand-dark);
}
body.skin-editorial .hd-brand-txt small {
  display: block;
  text-align: center;
  letter-spacing: 1.5px;
  font-size: 11px;
}
body.skin-editorial .hd-nav {
  margin-top: 12px;
  padding-top: 8px;
  width: 100%;
  justify-content: center;
  border-top: 1px solid rgba(19, 78, 74, 0.1);
}
body.skin-editorial .hd-nav a {
  border-radius: 0;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.6px;
}
body.skin-editorial .hd-nav a:hover { background: transparent; color: var(--brand); }
body.skin-editorial .hd-nav a.on {
  background: transparent;
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}

/* Boutique 炭黑对比导航 */
body.skin-boutique .hd { background: rgba(250, 246, 241, 0.96); }
body.skin-boutique .hd-nav a { border-radius: 8px; }
body.skin-boutique .hd-nav a.on { background: #1C1917; color: #FAF6F1; }

/* ---------------- 主体容器 ---------------- */

.mn {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 0 44px;
}

.sec { padding: 18px 16px 4px; }
.hero-sec { padding-top: 18px; }

.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-hd-wrap {
  display: block;
  margin-bottom: 14px;
}
.sec-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sec-hd h2,
.sec-title-row h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.sec-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: 6px;
}
.sec-hd .more,
.sec-title-row .more {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}
.sec-hd .more:hover,
.sec-title-row .more:hover { color: var(--brand); }

@media (min-width: 820px) {
  .sec-hd-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sec-title-row { margin-bottom: 0; }
  .sec-title-row .more { margin-left: 14px; }
}

/* ---------------- 首页 Hero · 方案 A（Modern Mall） ---------------- */

.hero-modern {
  background: linear-gradient(125deg, var(--brand-dark) 0%, var(--brand) 58%, #4F7DF3 100%);
  border-radius: 20px;
  padding: 24px 20px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(30, 68, 173, 0.18);
}
@media (min-width: 860px) {
  .hero-modern {
    grid-template-columns: 1.12fr 1fr;
    padding: 32px 34px;
    gap: 28px;
  }
}
.hero-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-md-l h1 { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: 0.4px; }
@media (min-width: 720px) { .hero-md-l h1 { font-size: 30px; } }
.hero-md-sub { margin-top: 6px; font-size: 14.5px; opacity: 0.94; font-weight: 500; }
.hero-notice {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.9;
}
.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
}
.hero-actions a {
  margin-right: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hero-actions a:active { transform: scale(0.98); }
.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hc-item {
  background: #fff;
  border-radius: 13px;
  padding: 7px;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease;
}
.hc-item:hover { transform: translateY(-2px); }
.hc-img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #F1F5F9;
}
.hc-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}
.hc-meta span {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 66%;
}
.hc-meta b { font-size: 13px; color: var(--accent); font-weight: 800; }

/* ---------------- 首页 Hero · 方案 B（Editorial Minimal） ---------------- */

.hero-editorial {
  background: #EFECE4;
  border: 1px solid #E3DFD3;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .hero-editorial { grid-template-columns: 1fr 1.15fr; }
}
.hero-ed-txt {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 840px) { .hero-ed-txt { padding: 36px 34px; } }
.hero-kicker {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}
.hero-ed-txt h1 {
  font-family: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #134E4A;
  letter-spacing: 1px;
  line-height: 1.3;
}
@media (min-width: 720px) { .hero-ed-txt h1 { font-size: 31px; } }
.hero-lead {
  margin-top: 8px;
  font-size: 14.5px;
  color: #3F524B;
  font-weight: 600;
}
.hero-ed-txt .hero-notice { color: #52605A; opacity: 1; }
.btn-solid {
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
  letter-spacing: 0.8px;
}
.btn-outline {
  border: 1px solid #C8C3B5;
  color: #134E4A;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-ed-media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #E7E3D8;
}
.ed-photo {
  position: relative;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: #DDD8CC;
  aspect-ratio: 1 / 1;
}
.ed-photo-lg { aspect-ratio: auto; min-height: 220px; height: 100%; }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ed-photo:hover img { transform: scale(1.03); }
.ed-cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(248, 247, 243, 0.92);
  color: #134E4A;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
}
.ed-photo-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

/* ---------------- 首页 Hero · 方案 C（Warm Boutique） ---------------- */

.hero-boutique {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .hero-boutique { grid-template-columns: 1.2fr 1fr; }
}
.hero-bk-main {
  background: linear-gradient(145deg, #292524 0%, #442113 58%, #9A3412 100%);
  color: #FFFBEB;
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 860px) { .hero-bk-main { padding: 32px 30px; min-height: 270px; } }
.hero-bk-tag {
  display: inline-block;
  background: #EA580C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.8px;
}
.hero-bk-main h1 { font-size: 26px; font-weight: 800; margin-top: 12px; line-height: 1.3; }
@media (min-width: 720px) { .hero-bk-main h1 { font-size: 30px; } }
.hero-bk-sub { margin-top: 6px; font-size: 14.5px; color: rgba(255, 251, 235, 0.92); font-weight: 500; }
.hero-bk-notice { margin-top: 10px; font-size: 13px; color: rgba(255, 251, 235, 0.8); line-height: 1.75; }
.hero-bk-main .btn-light { background: #FFFBEB; color: #1C1917; }
.btn-ghost-dark {
  background: rgba(255, 251, 235, 0.12);
  color: #FFFBEB;
  border: 1px solid rgba(255, 251, 235, 0.28);
}

.hero-bk-spots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bk-spot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.bk-spot:hover { transform: translateY(-2px); border-color: var(--brand); }
.bk-spot-img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F5EFE7;
}
.bk-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-spot-info { padding: 8px 4px 2px; }
.bk-spot-info b {
  display: block;
  font-size: 13px;
  color: #1C1917;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-spot-info span { font-size: 14.5px; font-weight: 800; color: var(--brand); }

/* ---------------- 分类条 ---------------- */

.cats {
  display: flex;
  flex-wrap: wrap;
}
.cat {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-sub);
  border: 1px solid var(--border);
  margin: 0 8px 8px 0;
  transition: all 0.15s ease;
}
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat.on { background: var(--brand); color: #fff; border-color: var(--brand); }

body.skin-editorial .cat {
  border-radius: 4px;
  background: transparent;
  border-color: #D9D4C7;
}
body.skin-editorial .cat.on {
  background: #134E4A;
  border-color: #134E4A;
  color: #fff;
}

body.skin-boutique .cat { border-radius: 8px; }
body.skin-boutique .cat.on { background: #1C1917; border-color: #1C1917; color: #FAF6F1; }

/* ---------------- 商品网格 & 卡片（自适应三皮肤） ---------------- */

.goods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .goods { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1020px) {
  .goods { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.card:active { transform: scale(0.985); }

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  padding: 3px 8px;
  border-radius: 6px;
}
.card-price-pill {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: #1C1917;
  color: #FFFBEB;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-cat-inline {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.card-bd {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-bd h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.card-spec {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.card-price {
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}
.card-price small { font-size: 12px; font-weight: 700; margin-right: 1px; }
.card-sales {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
}
.card-action {
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.card:hover .card-action { background: var(--brand); color: #fff; }

/* Editorial 卡片皮肤 */
body.skin-editorial .card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.skin-editorial .card:hover { transform: none; box-shadow: none; }
body.skin-editorial .card-img {
  border-radius: 8px;
  border: 1px solid #E5E1D6;
  background: #ECE9E0;
}
body.skin-editorial .card-tag { display: none; }
body.skin-editorial .card-cat-inline { display: block; }
body.skin-editorial .card-bd { padding: 10px 2px 6px; }
body.skin-editorial .card-bd h3 { font-weight: 600; min-height: 38px; }
body.skin-editorial .card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #EAE6DC;
  align-items: center;
}
body.skin-editorial .card-price { color: #134E4A; font-size: 16px; }
body.skin-editorial .card-sales { display: none; }
body.skin-editorial .card-action {
  background: transparent;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
}
body.skin-editorial .card:hover .card-action { background: transparent; color: var(--brand-dark); }

/* Boutique 卡片皮肤 */
body.skin-boutique .card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.1);
}
body.skin-boutique .card-img { background: #F5EFE7; }
body.skin-boutique .card-tag { display: none; }
body.skin-boutique .card-cat-inline { display: block; }
body.skin-boutique .card .card-price { display: none; }
body.skin-boutique .card-foot { align-items: center; }
body.skin-boutique .card-sales { margin-top: 0; font-size: 12px; }
body.skin-boutique .card-action {
  background: transparent;
  padding: 0;
  color: var(--brand);
}
body.skin-boutique .card:hover .card-action { background: transparent; color: var(--brand-dark); }

/* ---------------- 服务承诺条 ---------------- */

.trust-sec { padding-top: 12px; }

body.skin-modern .promise {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  body.skin-modern .promise { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
body.skin-modern .promise-item {
  display: flex;
  align-items: center;
}
.promise-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-right: 12px;
}
.promise-item h4 { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.promise-item p { font-size: 12.5px; color: var(--text-sub); line-height: 1.5; }

body.skin-editorial .promise {
  padding: 20px 6px;
  border-top: 1px solid #E2DDD0;
  border-bottom: 1px solid #E2DDD0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  body.skin-editorial .promise { grid-template-columns: repeat(3, 1fr); text-align: center; }
}
body.skin-editorial .promise-item h4 { color: #134E4A; letter-spacing: 0.6px; }

body.skin-boutique .promise {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  body.skin-boutique .promise { grid-template-columns: repeat(3, 1fr); }
}
body.skin-boutique .promise-item {
  background: #FFFDF9;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ---------------- 面包屑 ---------------- */

.crumb {
  padding: 14px 16px 0;
  font-size: 13px;
  color: var(--text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb a { color: var(--brand); font-weight: 600; }

/* ---------------- 商品详情页 ---------------- */

.detail-sec { padding-top: 12px; }

.detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
@media (min-width: 780px) {
  .detail { grid-template-columns: 430px 1fr; }
  .detail-img { border-right: 1px solid var(--border); }
}

.detail-img { aspect-ratio: 1 / 1; background: #F1F5F9; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { padding: 20px 18px 24px; }
@media (min-width: 780px) { .detail-info { padding: 26px 28px; } }

.detail-badges { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.detail-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  margin: 0 8px 6px 0;
}

.detail-info h1 { font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--text); }
@media (min-width: 780px) { .detail-info h1 { font-size: 22px; } }

.detail-price-box {
  margin: 14px 0 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}
.detail-price {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.detail-price small { font-size: 15px; margin-right: 2px; }
.detail-stat { font-size: 12.5px; color: var(--text-sub); margin-top: 4px; }

.detail-meta {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 9px 12px;
  font-size: 13.5px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.detail-meta dt { color: var(--text-mute); }
.detail-meta dd { color: var(--text-sub); word-break: break-all; }

.buy-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 0 12px 10px 0;
}
.step-btn {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.step-btn:hover { background: var(--bg); }
.stepper input[type="number"] {
  width: 48px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  -moz-appearance: textfield;
}
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-lg {
  flex: 1;
  min-width: 170px;
  height: 46px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-lg:hover { background: var(--brand-dark); }
.btn-lg:active { transform: scale(0.985); }

.detail-promises {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-sub);
}
.detail-promises span { margin: 4px 14px 0 0; }

.pay-tip {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8A6D1F;
  background: #FFF9E8;
  border: 1px solid #FBE7B0;
  border-radius: 10px;
  padding: 10px 13px;
  line-height: 1.7;
}
.pay-tip a { color: var(--brand); text-decoration: underline; }

/* 修复商品详情与售后卡片 */
.detail-desc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-sub);
}
.detail-desc h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.detail-desc p + p { margin-top: 8px; }
.detail-desc a { color: var(--brand); font-weight: 600; }

/* ---------------- 正文块 & 信息表 ---------------- */

.prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-sub);
}
.prose h3 {
  font-size: 15.5px;
  color: var(--text);
  font-weight: 800;
  margin: 22px 0 8px;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 10px; }
.prose-lead { font-size: 16px; color: var(--text); font-weight: 600; }
.prose .big { font-size: 22px; font-weight: 800; color: var(--brand); }
.prose a { color: var(--brand); font-weight: 600; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 10px 0 6px;
}
.info-table th,
.info-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  width: 132px;
  color: var(--text-mute);
  font-weight: 500;
  background: rgba(15, 23, 42, 0.02);
  white-space: nowrap;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

/* ---------------- 下单 & 表单 ---------------- */

.checkout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.co-goods {
  display: flex;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.co-goods img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: #F0F3F8;
  flex-shrink: 0;
  margin-right: 12px;
}
.co-goods h3 { font-size: 15px; font-weight: 700; }
.co-goods .card-price { margin-top: 6px; font-size: 16px; }
.co-total { color: var(--accent); font-size: 19px; font-weight: 800; }

.co-form { margin-top: 6px; }
.co-form h3 {
  font-size: 15px;
  color: var(--text);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.field {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.field label {
  width: 76px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--text-mute);
  padding-top: 11px;
  margin-right: 10px;
  line-height: 1.3;
}
.field .opt { font-size: 11.5px; color: var(--text-mute); }
.field input,
.field textarea {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder { color: #94A3B8; }

.form-err {
  background: #FFF1F0;
  border: 1px solid #FFCCC7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #A8071A;
  margin: 14px 0 4px;
  line-height: 1.7;
}
.form-err ul { margin: 6px 0 0 18px; }
.form-err li { line-height: 1.9; }

.co-agree-label {
  display: flex;
  align-items: flex-start;
  margin: 16px 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
  cursor: pointer;
}
.co-agree-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 3px 9px 0 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.co-agree-label a { color: var(--brand); text-decoration: underline; }

@media (max-width: 679px) {
  body.skin-modern .hd-in,
  body.skin-boutique .hd-in {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 8px;
    min-height: auto;
  }
  body.skin-modern .hd-logo,
  body.skin-boutique .hd-logo {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .hd-nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }
  .hd-nav a {
    font-size: 13px;
    padding: 5px 8px;
    margin-left: 0;
  }
}
.co-back { margin-top: 16px; font-size: 13.5px; }
.co-back a { color: var(--text-sub); }

/* ---------------- 支付页 & 订单查询 ---------------- */

.pay-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
}
.pay-ok { font-size: 17px; font-weight: 800; color: #059669; margin-bottom: 14px; }
.pay-no { font-size: 13.5px; color: var(--text-sub); }
.pay-no b { color: var(--text); letter-spacing: 0.5px; }
.pay-amount { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.pay-amount b { color: var(--accent); font-size: 25px; font-weight: 800; margin-left: 4px; }

.pay-methods { margin-top: 24px; }
.pay-methods h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.pay-method {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.pm-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-right: 12px;
}
.pm-icon.alipay { background: #1677FF; }
.pm-body { flex: 1; min-width: 0; margin-right: 10px; }
.pm-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.pm-desc { font-size: 12.5px; color: var(--text-mute); margin-top: 3px; }
.pm-tag {
  font-size: 11.5px;
  color: #8A6D1F;
  background: #FFF9E8;
  border: 1px solid #FBE7B0;
  border-radius: 5px;
  padding: 2px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pay-off {
  margin-top: 16px;
  background: #FFF9E8;
  border: 1px solid #FBE7B0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #8A6D1F;
  line-height: 1.9;
}
.pay-off p + p { margin-top: 4px; }
.pay-off strong { color: #7A5E12; }
.pay-off a { color: var(--brand); text-decoration: underline; }
.pay-tip-small { font-size: 12.5px; opacity: 0.88; }

.pay-info {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.95;
}
.pay-info h4 { font-size: 13px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.pay-note { color: var(--text-mute); }

.ord-search { display: flex; flex-wrap: wrap; margin-top: 14px; }
.ord-search input {
  flex: 1;
  min-width: 210px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 14.5px;
  background: #fff;
  color: var(--text);
  margin: 0 10px 10px 0;
}
.ord-search .btn-lg {
  flex: none;
  min-width: 112px;
  height: 44px;
  padding: 0 20px;
  margin-bottom: 10px;
}

.ord-list { margin-top: 16px; }
.ord-card {
  display: block;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ord-top, .ord-mid, .ord-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ord-no { font-size: 12.5px; color: var(--text-sub); font-family: monospace; }
.ord-st {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #B45309;
}
.ord-st.ok { background: #DCFCE7; color: #15803D; }
.ord-mid { margin: 10px 0 8px; font-size: 15px; }
.ord-mid span { color: var(--text-sub); font-size: 13.5px; }
.ord-ft { font-size: 13px; color: var(--text-sub); }
.ord-amt { font-size: 16px; color: var(--accent); font-weight: 800; }

/* ---------------- 空态 ---------------- */

.empty {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}
.empty a { color: var(--brand); font-weight: 600; }

/* ---------------- 结构化多栏页脚 ---------------- */

.ft {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  margin-top: auto;
  color: var(--text-sub);
  font-size: 12.5px;
}

.ft-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 26px;
}

.ft-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 780px) {
  .ft-cols { grid-template-columns: 1.55fr 1fr 1fr; gap: 28px; }
}

.ft-brand {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.ft-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  margin-right: 9px;
  flex: none;
}
.ft-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}
.ft-col h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ft-col p { line-height: 1.9; }
.ft .sep { margin: 0 7px; color: var(--text-mute); }
.ft a { color: inherit; }
.ft a:hover { color: var(--brand); }
.ft-links a { color: var(--brand); font-weight: 500; }
.ft-icp a { color: var(--text-mute); }

.ft-bottom {
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}
.ft-host { margin-top: 2px; }

/* Editorial 暖米页脚 */
body.skin-editorial .ft {
  background: #EFECE4;
  border-top-color: #E2DDD0;
}
body.skin-editorial .ft-cols { border-bottom-color: #E2DDD0; }
body.skin-editorial .ft-name,
body.skin-editorial .ft-col h5 { color: #134E4A; }

/* Boutique 深炭黑页脚 */
body.skin-boutique .ft {
  background: #1C1917;
  border-top: 0;
  color: #A8A29E;
}
body.skin-boutique .ft-cols { border-bottom-color: rgba(255, 255, 255, 0.1); }
body.skin-boutique .ft-name,
body.skin-boutique .ft-col h5 { color: #FAF6F1; }
body.skin-boutique .ft-links a { color: #FDBA74; }
body.skin-boutique .ft a:hover { color: #FFFBEB; }

/* ---------------- 打印兼容 ---------------- */

@media print {
  .top-ribbon, .hd-nav, .card-action, .btn-lg, .buy-bar { display: none; }
  body { background: #fff; }
}
