/* ===== 用户端新版视觉：奶油 / 陶土橘 / 墨黑 ===== */
:root {
  --pri: #E9572B;
  --pri-2: #F08A4B;
  --pri-soft: #FCEDE4;
  --bg: #FBF7F1;
  --card: #FFFFFF;
  --txt: #17130F;
  --sub: #8A7C6D;
  --line: #EDE3D6;
  --ok: #2E8B62;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(120, 80, 40, .07);
  --safe: env(safe-area-inset-bottom, 0px);
}

body { background: var(--bg); color: var(--txt); }
.app { background: var(--bg); }

/* ---------- 顶部品牌区 ---------- */
.hero-v2 {
  position: relative;
  padding: 22px 20px 64px;
  background:
    radial-gradient(120% 100% at 85% 0%, #4A3223 0%, rgba(74, 50, 35, 0) 58%),
    radial-gradient(90% 80% at 0% 10%, #33261C 0%, rgba(51, 38, 28, 0) 62%),
    linear-gradient(165deg, #201913 0%, #17120E 55%, #120E0A 100%);
  border-radius: 0 0 28px 28px;
  color: #FFF6EA;
  overflow: hidden;
}
.hero-v2::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.16'/></svg>");
  opacity: .5; pointer-events: none;
}
.hero-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.hero-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255, 214, 176, .38);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: rgba(255, 255, 255, .06);
}
.hero-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-name { font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.hero-eyebrow {
  margin-top: 22px; font-size: 10.5px; letter-spacing: .26em;
  color: #C8A176; text-transform: uppercase; position: relative; z-index: 1;
}
.hero-title {
  margin: 10px 0 0; font-size: 30px; line-height: 1.28; font-weight: 800;
  letter-spacing: -.5px; position: relative; z-index: 1;
}
.hero-title em { font-style: normal; color: #FFAE7C; }
.hero-desc {
  margin: 10px 0 0; font-size: 12.5px; color: #B5A491; letter-spacing: .04em;
  position: relative; z-index: 1;
}

/* ---------- 悬浮搜索 ---------- */
.search-float {
  position: relative; z-index: 2;
  margin: -44px 16px 0;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 6px 0 16px;
  background: #FFFDFA;
  border: 1px solid #EFE2D1;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(46, 26, 10, .18);
}
.search-float .ico { color: #B8A48D; display: flex; }
.search-float .ico svg { width: 18px; height: 18px; stroke: currentColor; }
.search-float input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--txt); font-family: inherit; min-width: 0;
}
.search-float input::placeholder { color: #BDAE9B; }
.search-float button {
  flex: none; height: 40px; padding: 0 20px; border: 0; border-radius: 999px;
  background: #17130F; color: #FFE8D4; font-size: 13.5px; font-weight: 700;
  letter-spacing: .08em;
}

/* ---------- 公告 ---------- */
.notice-strip {
  margin: 16px 16px 0;
  display: flex; align-items: flex-start; gap: 8px;
  background: #FFF7EC; border: 1px solid #F3E0C9; border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: #8A5C2E;
}
.notice-strip b {
  flex: none; font-size: 10.5px; letter-spacing: .1em; font-weight: 800;
  color: #C2560A; border-right: 1px solid #EAD3B4; padding-right: 8px; margin-top: 1px;
}

/* ---------- 分类下划线 tab ---------- */
.chips-line {
  display: flex; gap: 20px; padding: 20px 16px 2px;
  overflow-x: auto; scrollbar-width: none;
}
.chips-line::-webkit-scrollbar { display: none; }
.chips-line .chip {
  flex: none; position: relative; padding: 0 0 9px;
  font-size: 14px; color: #9C8B78; white-space: nowrap;
}
.chips-line .chip {
  background: transparent; border: 0; border-radius: 0;
  font-size: 14px; color: #9C8B78; padding: 0 0 9px;
}
.chips-line .chip.active { color: var(--txt); font-weight: 800; background: transparent; border: 0; }
.chips-line .chip.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px; background: var(--pri);
}

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 22px 16px 12px;
}
.section-head .left { display: flex; align-items: baseline; gap: 8px; }
.section-head h2 {
  margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px;
}
.section-head .en {
  font-size: 10px; letter-spacing: .22em; color: #BCA98F;
  text-transform: uppercase; padding-bottom: 2px;
}
.section-head .num { font-size: 11.5px; color: #A89580; }

/* ---------- 商品卡 ---------- */
.goods-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px; }
.gcard {
  position: relative; display: flex; flex-direction: column;
  background: #FFFDFA; border: 1px solid #EFE4D5; border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 18px rgba(120, 80, 40, .05);
}
.gcard-cover {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: linear-gradient(160deg, #FBF3E7 0%, #F4E7D5 100%);
}
.gcard-cover::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(180, 140, 90, .16); border-radius: 10px;
}
.gcard-cover img { width: 100%; height: 100%; object-fit: contain; }
.gtag-v2 {
  position: absolute; top: 8px; left: 8px;
  background: rgba(20, 16, 12, .78); color: #FFE1BF;
  font-size: 10px; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.gcard-body { padding: 10px 11px 12px; }
.gcard-name {
  font-size: 13.5px; font-weight: 700; line-height: 1.38; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 37px;
}
.gcard-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 9px; }
.gprice { font-size: 17px; font-weight: 800; color: var(--pri); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.gprice small { font-size: 10.5px; font-weight: 500; color: #B4A18C; margin-left: 1px; }
.gsales { font-size: 10.5px; color: #B7A48E; letter-spacing: .02em; }

/* ---------- 空状态 ---------- */
.empty-v2 { padding: 54px 20px 40px; text-align: center; color: #A89580; font-size: 13px; }
.empty-v2 .pic { width: 92px; height: 92px; margin: 0 auto 14px; opacity: .9; }

/* ---------- 底部导航（覆盖基础样式） ---------- */
.tabbar {
  background: rgba(251, 247, 241, .96);
  border-top: 1px solid #EDE3D6;
}
.tab { color: #A3927F; letter-spacing: .04em; }
.tab.active { color: var(--pri); }
.tab-center-btn {
  background: #17130F;
  color: #FFD5B2;
  border: 1px solid #3B2C1F;
  box-shadow: 0 10px 24px rgba(23, 19, 15, .28), inset 0 0 0 1px rgba(255, 214, 176, .14);
  letter-spacing: 2px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(251, 247, 241, .94);
  border-bottom: 1px solid #EDE3D6;
  backdrop-filter: blur(10px);
}
.topbar .title { font-size: 15px; font-weight: 800; letter-spacing: .04em; }

/* ================= 详情 / 下单 ================= */
.detail-page { padding-bottom: calc(112px + var(--safe)); }
.detail-hero {
  position: relative; height: 300px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 26px 54px;
  background:
    radial-gradient(120% 100% at 72% 16%, #46311F 0%, rgba(70, 49, 31, 0) 60%),
    linear-gradient(165deg, #241A12 0%, #17120E 60%, #120E0A 100%);
}
.detail-hero img { width: auto; height: 100%; max-width: 88%; object-fit: contain; }
.detail-hero::before {
  content: ""; position: absolute; width: 208px; height: 208px;
  border: 1px solid rgba(255, 210, 168, .22); border-radius: 50%;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 10, .10) 0%, rgba(18, 14, 10, 0) 40%, rgba(18, 14, 10, .55) 100%);
  pointer-events: none;
}
.detail-back {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 252, 246, .86); color: #17130F;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
}
.detail-back svg { width: 19px; height: 19px; stroke: currentColor; }
.price-chip {
  position: absolute; left: 16px; bottom: 62px; z-index: 3;
  display: inline-flex; align-items: baseline; gap: 2px;
  background: rgba(255, 253, 248, .95);
  padding: 9px 14px; border-radius: 12px;
  font-size: 22px; font-weight: 800; color: var(--pri); letter-spacing: -.6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}
.price-chip small { font-size: 11px; font-weight: 500; color: #A28F7C; letter-spacing: 0; }

.detail-sheet {
  position: relative; z-index: 4; margin: -26px 12px 0;
  background: #FFFDFA; border: 1px solid #EFE4D5; border-radius: 22px 22px 0 0;
  padding: 20px 18px 18px;
  box-shadow: 0 -14px 34px rgba(60, 36, 16, .1);
}
.detail-title { font-size: 18.5px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-tags span {
  font-size: 11px; color: #9A6A34; background: #FCF1E2; border: 1px solid #F0DEC5;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .04em;
}
.detail-desc { margin-top: 12px; font-size: 13px; line-height: 1.85; color: var(--sub); }

.qty-line {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed #EDE3D6;
  display: flex; align-items: center; justify-content: space-between;
}
.qty-line .t { font-size: 12.5px; color: #A28F7C; letter-spacing: .06em; }
.stepper {
  display: flex; align-items: center; border: 1px solid #EDE3D6;
  border-radius: 999px; overflow: hidden; background: #FFF8F0;
}
.stepper button {
  width: 36px; height: 32px; border: 0; background: transparent;
  color: #17130F; font-size: 16px; font-weight: 700; line-height: 1;
}
.stepper span {
  min-width: 42px; text-align: center; font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.form-group {
  margin: 12px 12px 0; background: #FFFDFA;
  border: 1px solid #EFE4D5; border-radius: 16px; padding: 14px 16px 6px;
}
.form-group label {
  display: block; font-size: 10.5px; letter-spacing: .18em;
  color: #AE9A85; text-transform: uppercase; margin-bottom: 2px;
}
.form-group input, .form-group textarea {
  width: 100%; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--txt);
  padding: 6px 0 12px; resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #C2B2A0; }

.notes-card { margin: 14px 12px 0; padding: 4px 4px 0; }
.notes-card h4 {
  margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; color: #A28F7C; font-weight: 800;
  text-transform: uppercase;
}
.notes-card p { margin: 0; font-size: 12.5px; line-height: 1.9; color: #98897A; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + var(--safe));
  background: rgba(23, 19, 15, .97);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 30px rgba(23, 19, 15, .22);
}
.buy-bar .sum { min-width: 92px; }
.buy-bar .sum .k { font-size: 10px; letter-spacing: .18em; color: #A99580; }
.buy-bar .sum .v { font-size: 22px; font-weight: 800; color: #FFAE7C; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.buy-btn {
  flex: 1; height: 50px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #F2762E, #DF4715);
  color: #FFF6EA; font-size: 15.5px; font-weight: 800; letter-spacing: .12em;
  box-shadow: 0 10px 24px rgba(223, 71, 21, .34);
}
.buy-btn:disabled { opacity: .6; box-shadow: none; }


/* ---------- 无实拍图时的徽章式封面 ---------- */
.gcard-art {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--a) 0%, var(--b) 100%);
  border-radius: 4px; overflow: hidden;
}
.gcard-art::before {
  content: ""; position: absolute; width: 118px; height: 118px;
  border: 1px solid rgba(255, 214, 176, .28); border-radius: 50%;
}
.gcard-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 80% 0%, rgba(255, 190, 130, .22), transparent 60%);
}
.gcard-art .mono {
  position: relative; z-index: 1;
  font-size: 34px; font-weight: 800; letter-spacing: .06em;
  color: #FFF1DF;
}
.gcard-art .cap {
  position: relative; z-index: 1; margin-top: 6px;
  font-size: 8.5px; letter-spacing: .28em; color: rgba(255, 214, 176, .66);
  text-transform: uppercase;
}
.detail-art {
  position: relative; width: 216px; height: 216px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--a) 0%, var(--b) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 176, .24), 0 18px 40px rgba(0, 0, 0, .34);
}
.detail-art .mono { font-size: 46px; font-weight: 800; letter-spacing: .08em; color: #FFF1DF; }
.detail-art .cap {
  margin-top: 8px; font-size: 9px; letter-spacing: .3em; color: rgba(255, 214, 176, .7);
  text-transform: uppercase;
}
