/* Crate Edition — A 站样式表（独立于 B 站设计系统） */

:root {
  --ink: #16120e;
  --ink-soft: #3a332c;
  --paper: #f8f5ef;
  --paper-warm: #f1ece2;
  --line: #e3dacb;
  --brass: #a98a58;
  --brass-dark: #8a6e42;
  --muted: #7b7268;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass-dark); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 19px; }
h4 { font-size: 15px; }

p { margin: 0 0 14px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { font-size: 13px; color: var(--muted); }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 18px;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a.on { color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }

.bag {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 12px;
  white-space: nowrap;
}
.bag span { color: var(--brass-dark); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #191410;
  color: #f4efe6;
  padding: clamp(56px, 9vw, 116px) clamp(16px, 4vw, 48px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.90) 0%, rgba(10,8,6,0.62) 42%, rgba(10,8,6,0.12) 72%, rgba(10,8,6,0) 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}
.hero .eyebrow { color: #c6a97a; max-width: 52ch; }
.hero h1 { color: #fdf9f1; }
.hero .lede { color: #cfc5b6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fdf9f1;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn.ghost { background: transparent; color: #f4efe6; border-color: rgba(244, 239, 230, 0.4); }
.btn.ghost:hover { background: rgba(244, 239, 230, 0.1); color: #fff; border-color: #f4efe6; }
.btn.small { padding: 8px 14px; font-size: 13px; }

/* ---------- 承诺条 ---------- */

.strip { background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.strip strong { display: block; font-size: 14px; letter-spacing: 0.02em; }
.strip span { font-size: 13px; color: var(--muted); }

/* ---------- 区块 ---------- */

.section { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 48px); }
.section.narrow { max-width: 1080px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head a, .section-head span { font-size: 13px; color: var(--muted); }
.section-head h2 { margin: 0; }

/* ---------- 商品网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; background: #f4f1ea; aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 18px; }
.card-sum { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.card-foot strong { font-size: 16px; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(248, 245, 239, 0.94);
  color: var(--ink);
  padding: 5px 9px;
  border-radius: 2px;
}

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

.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs span:last-child { color: var(--ink); }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 46px; }

/* 图集 */
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-main { position: relative; background: #f1ece2; border-radius: 2px; overflow: hidden; }
.pdp-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumb {
  width: 78px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.72;
}
.pdp-thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.on { border-color: var(--ink); opacity: 1; }

.about-figure { margin: 26px 0 34px; }
.about-figure img { width: 100%; height: auto; border-radius: 2px; display: block; }

/* 礼盒内容清单 */
.inside { margin: 44px 0 10px; }
.inside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.inside-head h2 { margin: 0; font-size: 22px; }
.inside-head span { font-size: 13px; color: var(--muted); }
.inside-list { list-style: none; margin: 0; padding: 0; }
.inside-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.inside-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brass-dark);
  padding-top: 2px;
}
.inside-body { display: flex; flex-direction: column; gap: 3px; }
.inside-body strong { font-weight: 600; font-size: 15px; }
.inside-body span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* 系列筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }

/* 促销角标与价格区 */
.card-off {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #b3261e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 3px;
  z-index: 2;
}
.card-media { position: relative; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.card-price .compare {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.saved {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1f6b3a;
  background: #e8f3ec;
  padding: 2px 6px;
  border-radius: 3px;
}
.card .card-foot { margin-top: 10px; }
.card h3 { font-size: 14.5px; line-height: 1.35; margin: 0 0 4px; }
.filter {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.collection { margin: 34px 0 8px; }
.collection h3 { margin: 0; font-size: 18px; letter-spacing: 0.01em; }
.collection .grid { margin-top: 16px; }
.pdp-info h1 { margin-bottom: 6px; }
.pdp-price { font-size: 22px; font-family: var(--serif); margin: 0 0 16px; }

.buy { display: flex; align-items: flex-end; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.buy label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.buy input {
  width: 74px;
  padding: 10px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.specs { margin: 26px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.specs dd { margin: 0; font-size: 14.5px; }

.prose { max-width: 68ch; }
.prose h2 { margin: 34px 0 10px; font-size: 20px; }
.prose p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- 购物袋 ---------- */

.line-item { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.line-item .li-name { font-family: var(--serif); font-size: 17px; }
.line-item .li-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.line-item .li-qty button {
  width: 26px; height: 26px; line-height: 1;
  border: 1px solid var(--line); background: #fff; border-radius: 2px; cursor: pointer; font-size: 14px;
}
.line-item .li-qty button:hover { border-color: var(--brass); }
.totals { margin: 24px 0 0; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14.5px; }
.totals .grand { border-top: 1px solid var(--line); font-size: 18px; font-family: var(--serif); padding-top: 14px; }
.totals .grand strong { font-weight: 400; }

/* ---------- 结账 ---------- */

.checkout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.co-form h2 { font-size: 17px; margin: 26px 0 12px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.co-form h2:first-child { margin-top: 0; }
.co-form label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.co-form input, .co-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
.co-form input:focus, .co-form textarea:focus { outline: none; border-color: var(--brass); }
.co-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 22px; position: sticky; top: 84px; }
.co-summary h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 联系 ---------- */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }

/* ---------- 页脚 ---------- */

.footer { background: #15110d; color: #d8cfc0; margin-top: 60px; }
.finner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr));
  gap: 34px;
}
.fbrand strong { font-family: var(--serif); font-size: 20px; color: #f4efe6; display: block; margin-bottom: 10px; }
.fbrand p { font-size: 13.5px; margin: 0 0 10px; color: #a89e8f; }
.fbrand .muted { color: #8b8172; }
.fcol h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8b8172; margin: 0 0 14px; }
.fcol a { display: block; font-size: 13.5px; color: #cfc6b8; margin-bottom: 9px; }
.fcol a:hover { color: #fff; }
.flegal {
  max-width: 1200px; margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px) 30px;
  border-top: 1px solid #2a241d;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #7d7466;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp, .checkout, .contact { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .finner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { gap: 14px; padding: 13px 16px; flex-wrap: wrap; }
  .brand { font-size: 18px; }
  .nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; font-size: 13px; }
  .bag { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 15px; }
  .card-sum { display: none; }
  .line-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .line-item img { width: 64px; }
  .finner { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
}


/* 响应式栅格 */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }


@media (max-width: 720px) {
  .hero-bg img { object-position: 78% 50%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,8,6,0.78) 0%, rgba(10,8,6,0.58) 55%, rgba(10,8,6,0.72) 100%); }
}
