/* theme */
:root {
  --gold: #d7b185;
  --gold-dark: #a4750b;
  --ink: #3a2f24;
  --muted: #7a6a58;
  --bg: #f7f1ea;
  --line: #eadfce;
}
* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; }
body {
  font-family: Raleway, Montserrat, "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 4vw;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold-dark); letter-spacing: .06em; }
.site-logo img { height: 34px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: .92rem; color: var(--muted); }
.site-nav a:hover { color: var(--gold-dark); }
.site-actions { display: flex; align-items: center; gap: 12px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 0; background: #fff; border: 1px solid var(--line);
}
.cart-link svg { width: 20px; height: 20px; fill: var(--gold-dark); }
#shop_quantity {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--gold-dark); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.hero {
  width: 100%;
  min-height: 72vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 80px 24px;
  background:
    linear-gradient(180deg, rgba(58,47,36,.35), rgba(58,47,36,.72)),
    url("../images/bg/pills-bg.jpg") center/cover no-repeat,
    linear-gradient(135deg, #8b6914, #c4a574);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: .12em; }
.hero p { margin: 0 0 28px; opacity: .92; letter-spacing: .08em; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 0;
  background: var(--gold); color: #3a2f24; font-weight: 700; border: 1px solid var(--gold); cursor: pointer; font-size: .95rem;
}
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--gold-dark); color: #fff; border-color: var(--gold-dark); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.8); color: #fff; }
.btn.outline { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold-dark); }
.section { padding: 64px 4vw; width: 100%; max-width: none; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { margin: 0 0 8px; font-size: 1.7rem; color: var(--gold-dark); letter-spacing: .08em; font-weight: 500; }
.section-title p { margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; }
.product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.p-card {
  background: #fff; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  padding: 40px 24px; text-align: center; box-shadow: none;
}
.p-card:last-child { border-right: 0; }
.product-grid-4 .p-card { min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.product-grid-4 .p-card .btn { margin-top: auto; }
.p-card img { width: 100%; max-height: 260px; object-fit: contain; margin: 0 auto 18px; }
.p-card h3 { margin: 0 0 6px; color: var(--gold-dark); font-weight: 600; }
.p-card .desc { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.p-card .price { color: #8a2f1d; font-weight: 700; margin-bottom: 14px; }
.badge { display: inline-block; background: var(--gold-dark); color: #fff; font-size: .72rem; padding: 2px 10px; border-radius: 0; margin-bottom: 8px; letter-spacing: .06em; }
.trust { background: #fff; padding: 56px 4vw; border-top: 1px solid var(--line); }
.trust-inner { max-width: none; margin: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); }
.trust-item { background: #fff; border-radius: 0; padding: 28px 18px; text-align: center; }
.site-footer { background: #3a2f24; color: #f3e8d8; padding: 40px 4vw; }
.site-footer a { color: #f3e8d8; }
.page-hero {
  padding: 56px 4vw 28px; text-align: center;
  background: linear-gradient(180deg, #efe6d8, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 8px; color: var(--gold-dark); font-weight: 500; letter-spacing: .08em; }
.page-hero p { margin: 0; color: var(--muted); }
.page-content{padding:40px 32px 64px;max-width:1080px;width:100%;margin:0 auto;box-sizing:border-box}
.page-content h2 { color: var(--gold-dark); margin: 28px 0 10px; font-weight: 600; }
.info-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.info-table td { border: 1px solid var(--line); padding: 12px 14px; background: #fff; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.article-card { background: #fff; border-radius: 0; overflow: hidden; border: 1px solid var(--line); }
.breadcrumb { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li::after { content: "/"; margin-left: 8px; opacity: .5; }
.breadcrumb li:last-child::after { content: ""; }

.page-hero.product-hero {
  padding: 28px 4vw 6px;
  text-align: left;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  background: transparent;
  border-bottom: 0;
}
.page-hero.product-hero .breadcrumb { margin-bottom: 6px; }
.page-hero.product-hero p { font-size: .9rem; }

.detail {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr);
  gap: 48px;
  padding: 12px 5vw 72px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.detail-img {
  position: sticky;
  top: 88px;
  background: radial-gradient(ellipse at 50% 28%, #fff 0%, #f3ebe0 100%);
  border: 1px solid var(--line);
  padding: 40px 32px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(58, 47, 36, .16));
}
.detail-info { padding-top: 4px; }
.detail-info .badge,
.detail .badge {
  margin-bottom: 14px;
  padding: 4px 12px;
  letter-spacing: .1em;
  font-size: .7rem;
  text-transform: uppercase;
}
.detail-info > h1,
.detail h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: .04em;
  line-height: 1.25;
}
.detail-info > h2,
.detail h2 {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .05em;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  border: 1px solid var(--line);
}
.spec-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 16px;
  background: #fff;
  font-size: .95rem;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:last-child { border-right: 0; }
.spec-table td:first-child {
  width: 30%;
  background: #f6efe6;
  color: var(--muted);
  font-weight: 600;
}
.warning {
  background: linear-gradient(90deg, #fff8ec, #fff);
  border-left: 3px solid var(--gold-dark);
  border-top: 1px solid #e8d3a8;
  border-right: 1px solid #e8d3a8;
  border-bottom: 1px solid #e8d3a8;
  color: #7a5a16;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: .92rem;
  line-height: 1.65;
}
.detail-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: #8a2f1d;
  margin: 0 0 18px;
  letter-spacing: .02em;
}
.detail-price span {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.qty-row {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  vertical-align: middle;
}
.qty-row button, .qty-btn {
  width: 44px;
  height: 46px;
  border: 0;
  background: #f3ebe0;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  transition: background .15s ease;
}
.qty-row button:hover, .qty-btn:hover { background: #eadfce; }
.qty-row input {
  width: 56px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
}
.buy-row .btn {
  min-width: 168px;
  height: 46px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
  letter-spacing: .06em;
}
.buy-row .btn:hover { filter: brightness(1.06); }
.detail-note {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.related-title,
.related-label {
  margin: 0 0 12px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.related {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.related a:hover {
  border-color: var(--gold-dark);
  background: #fbf6ef;
  color: var(--gold-dark);
}
.related a small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer .brand { font-weight: 600; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.site-footer .copy { opacity: .8; font-size: .88rem; }
.article-cover img { width: 100%; max-height: 280px; object-fit: contain; background: #fff; margin-bottom: 14px; border: 1px solid var(--line); }
.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.article-cta { margin-top: 24px; }
.cart-page { padding: 40px 4vw 64px; max-width: 920px; margin: 0 auto; }
.cart-empty, .cart-item {
  background: #fff; border: 1px solid var(--line); padding: 20px; margin-bottom: 12px;
}
.cart-empty { text-align: center; padding: 48px 20px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 14px; align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: contain; }
.cart-summary { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 16px; }
.cart-summary .total { margin-right: auto; font-size: 1.25rem; font-weight: 700; color: #8a2f1d; }
@media (max-width: 1100px) {
  .product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid-4 .p-card:nth-child(2n) { border-right: 0; }
  .product-grid-4 .p-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .product-grid,
  .product-grid-4 { grid-template-columns: 1fr; }
  .p-card,
  .product-grid-4 .p-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-grid-4 .p-card:last-child { border-bottom: 0; }
  .detail { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .detail-img { position: static; min-height: 280px; padding: 28px 20px; }
  .detail-img img { max-height: 300px; }
  .related { grid-template-columns: 1fr; }
  .buy-row .btn { flex: 1; min-width: 140px; }
  .page-hero.product-hero { padding: 20px 4vw 4px; }
  .cart-item { grid-template-columns: 70px 1fr; }
}


/* article-page-layout */
.page-hero h1,.page-hero p{max-width:1080px;margin-left:auto;margin-right:auto}

img.article-cover{width:100%;max-height:360px;object-fit:cover;border-radius:0;display:block;margin:0 0 28px;border:1px solid var(--line)}

/* article-fixed-width */
.page-hero h1,.page-hero p{max-width:1080px;margin-left:auto;margin-right:auto}

/* === article-theme (auto) === */
.page-content h2{color:var(--gold-dark);font-weight:600;font-size:1.3rem;margin:30px 0 10px;letter-spacing:.04em}
.page-content h3{color:var(--gold-dark);font-weight:600;font-size:1.05rem;margin:20px 0 8px;letter-spacing:.03em}
.page-content p{color:var(--ink);margin:0 0 14px;line-height:1.8}
.page-content ul,.page-content ol{color:var(--ink);padding-left:1.3em;margin:8px 0 16px}
.page-content li{margin:0 0 8px}
.page-content a{color:var(--gold-dark);text-decoration:underline;text-underline-offset:3px}
.page-content table{width:100%;border-collapse:collapse;margin:18px 0 22px;font-size:.94rem}
.page-content th{background:var(--gold-dark);color:#fff;padding:12px 14px;text-align:left;border:1px solid var(--gold-dark)}
.page-content td{padding:12px 14px;border:1px solid var(--line);color:var(--ink);background:#fff;vertical-align:top}
.page-content td:first-child{background:#f6efe6}
.qa{margin:16px 0;padding:16px 18px;background:linear-gradient(90deg,#fff8ec,#fff);border-radius:0}
.qa .q{font-weight:600;color:var(--gold-dark);margin:0 0 8px}
.qa .a{margin:0;color:var(--ink)}
.note{margin:18px 0;padding:14px 16px;border:1px solid var(--line);background:#fff;color:var(--muted)}
.related-arts{margin:36px 0 8px;padding:18px 20px;border:1px solid var(--line);background:#fff}
.related-arts strong{display:block;margin-bottom:10px;color:var(--gold-dark);font-weight:600}
.related-arts a{color:var(--gold-dark)}
img.article-cover{width:100%;max-height:380px;object-fit:cover;display:block;margin:0 0 28px;border:1px solid var(--line);border-radius:0;background:#fff}
/* === sticky-footer-pc (auto) === */
html{height:100%;}
body{
  min-height:100vh !important;
  min-height:100dvh !important;
  display:flex !important;
  flex-direction:column !important;
}
body > header,
body > .site-header,
body > .promo,
body > .topbar,
body > .top-bar{
  flex:0 0 auto;
}
/* 主内容按实际高度，剩余留给页脚外层铺色 */
body > main,
body > main.animsition,
body > .animsition{
  flex:0 0 auto;
  width:100%;
  
}
body > .page-hero{
  flex:0 0 auto;
  width:100%;
}
body > .page-content{
  flex:0 0 auto;
  width:100%;
}
.site-footer-outer{
  flex:1 0 auto !important;
  width:100%;
  min-height:0;
  box-sizing:border-box;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  background:#3a2f24 !important;
}
.site-footer-outer > .site-footer,
.site-footer-outer > footer{
  width:100%;
  box-sizing:border-box;
  flex:0 0 auto;
  background:#3a2f24;
}
body > footer,
body > .site-footer{
  margin-top:auto !important;
  width:100%;
  background:#3a2f24;
}
@media (max-width:900px){
  body{min-height:auto !important;display:block !important;}
  .site-footer-outer{flex:none !important;}
  body > main, body > main.animsition{min-height:auto !important;}
}

/* === home-articles === */
.article-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.article-card{background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;color:inherit;overflow:hidden;transition:border-color .2s,transform .2s}
.article-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.article-card img{width:100%;height:150px;object-fit:cover;background:#f3ebe0}
.article-card .body{padding:18px 16px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.article-card h3{margin:0;font-size:1.05rem;color:var(--gold-dark);font-weight:600;line-height:1.4}
.article-card p{margin:0;color:var(--muted);font-size:.9rem;flex:1}
.article-card .more{font-size:.85rem;color:var(--gold-dark);letter-spacing:.04em}
@media(max-width:1100px){.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.article-grid{grid-template-columns:1fr}}
