/* ===== 锦信 Jinxin — 样式（浅色 / 衬线标题 / 克制风） ===== */
:root {
  --bg: #FAF8F4;
  --panel: #FFFFFF;
  --ink: #211E19;
  --muted: #6E675C;
  --line: #E6E0D6;
  --accent: #8A5A2B;
  --accent-dark: #6E471F;
  --teal: #1F3A34;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(33,30,25,.05), 0 10px 30px rgba(33,30,25,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px;
}
h1, h2, h3, .brand, .line-card h3 { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-weight: 600; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 10px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.unit { font-size: .65em; font-weight: 400; margin-left: 2px; color: var(--muted); }
del { color: var(--muted); margin-left: 8px; font-size: .9em; }

/* ---------- 头部 ---------- */
#siteHeader { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-size: 22px; }
.brand span { font-size: 12px; letter-spacing: .35em; color: var(--accent); vertical-align: middle; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.cart-link { position: relative; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.badge { position: absolute; top: -7px; right: -7px; background: var(--accent); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  background: var(--ink); color: #fff; font-size: 15px; padding: 11px 22px;
  border-radius: 999px; transition: .18s; font-family: inherit;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.lg { padding: 14px 30px; font-size: 16px; }
.link { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 14px; }
.link:hover { color: var(--accent); }

/* ---------- 首页 ---------- */
.hero { padding: 90px 0 60px; }
.hero .kicker { color: var(--accent); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.25; margin: 18px 0 20px; max-width: 800px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 0 70px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; font-family: "Noto Serif SC", serif; }
.stat span { font-size: 14px; color: var(--muted); }

section.block { padding: 60px 0; }
.block-head { margin-bottom: 30px; }
.block-head .kicker { color: var(--accent); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; }
.block-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.block-head p { color: var(--muted); max-width: 640px; margin-top: 8px; }

.line-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.line-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; transition: .18s; box-shadow: var(--shadow); }
.line-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.line-card em { font-style: normal; font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.line-card h3 { font-size: 22px; }
.line-card p { color: var(--muted); font-size: 15px; flex: 1; }
.line-card span { color: var(--accent); font-size: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 卡片 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: .18s; }
.card:hover { transform: translateY(-3px); }
.card > a { display: block; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.chip { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; width: fit-content; }
.chip-hot { color: #fff; background: var(--accent); border-color: var(--accent); }
.price-row { display: flex; align-items: baseline; margin: 4px 0 10px; }
.price-row b { font-size: 20px; font-family: "Noto Serif SC", serif; }
.price-row.big b { font-size: 30px; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; padding: 9px 12px; font-size: 14px; }

/* ---------- 商店 ---------- */
.page-head { padding: 60px 0 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; }
.page-head p { color: var(--muted); max-width: 640px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 15px; color: var(--muted); background: var(--panel); }
.tab.on, .tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
#shopGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 70px; }

/* ---------- 详情 ---------- */
.p-wrap { padding: 50px 0 30px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.p-info h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 12px 0 4px; }
.p-en { font-size: 14px; letter-spacing: .08em; }
.p-brief { margin: 14px 0; font-size: 17px; }
.p-actions { display: flex; gap: 12px; margin: 20px 0 30px; flex-wrap: wrap; }
.p-actions.center { justify-content: center; }
.tick { list-style: none; }
.tick li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.tick li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.spec { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.spec th { text-align: left; color: var(--muted); font-weight: 500; width: 130px; padding: 8px 0; vertical-align: top; }
.spec td { padding: 8px 0; }
#related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 70px; }

/* ---------- 购物车 / 结算 ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-table th { font-size: 13px; color: var(--muted); font-weight: 500; background: #F5F1EA; }
.cart-table input[type=number] { width: 70px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.cart-sum { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 70px; }
.cart-sum .big { font-size: 26px; font-family: "Noto Serif SC", serif; }
.empty { text-align: center; padding: 80px 0 100px; display: flex; flex-direction: column; gap: 18px; align-items: center; }

.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; padding-bottom: 80px; }
.co-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.co-form h3, .co-sum h3 { margin-bottom: 16px; }
.co-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.co-form input, .co-form select, .co-form textarea {
  width: 100%; margin-top: 5px; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #FDFCF9; color: var(--ink);
}
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.co-sum { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: fit-content; position: sticky; top: 90px; box-shadow: var(--shadow); }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; gap: 10px; }
.sum-row.total { border-bottom: none; font-size: 18px; padding-top: 14px; }
.sum-row.total b { font-family: "Noto Serif SC", serif; font-size: 24px; }

/* ---------- 致谢页 ---------- */
.thanks { max-width: 680px; margin: 0 auto; text-align: center; padding: 70px 0 90px; }
.ok { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.order-pre { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 24px 0; font-family: ui-monospace, Consolas, monospace; font-size: 14px; white-space: pre-wrap; }

/* ---------- 关于 / 政策 ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose p, .prose li { color: #3E3A33; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.fact-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.fact-table th, .fact-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-table th { width: 200px; color: var(--muted); font-weight: 500; background: #F5F1EA; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 70px; }

/* ---------- 页脚 ---------- */
#siteFooter { border-top: 1px solid var(--line); background: #F4F0E9; padding: 50px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand { font-family: "Noto Serif SC", serif; font-size: 19px; margin-bottom: 4px; }
.foot-grid h4 { font-size: 14px; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.foot-grid a, .foot-grid span { display: block; font-size: 14px; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-base { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 999px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stats, .grid3, .line-grid, .fact-grid { grid-template-columns: repeat(2, 1fr); }
  #shopGrid, #related { grid-template-columns: repeat(2, 1fr); }
  .p-grid, .co-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .co-sum { position: static; }
}
@media (max-width: 560px) {
  .stats, .grid3, .line-grid, #shopGrid, #related, .fact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
}
