/*
Theme Name: 蜀礼 Shu Li
Theme URI: https://example.com/shuli
Author: Shu Li Studio
Author URI: https://example.com
Description: 为成都伴手礼品牌设计的 WordPress 主题。视觉取材于金沙"太阳神鸟"、成都漆艺朱红、竹青与宣纸米白；内置「伴手礼」商品文章类型与「礼系」分类、首页展示模板、门店信息与礼盒定制版块。无需插件即可使用。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shuli
Tags: e-commerce, blog, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* =========================================================
   0. 设计令牌 —— 蜀漆 · 金沙 · 竹青 · 宣纸
   ========================================================= */
:root {
  /* 色 */
  --qi:       #7c1d10;   /* 漆红 · 主色（成都漆艺） */
  --qi-deep:  #5d1309;   /* 深漆 · 渐变底 */
  --zhu:      #b0301a;   /* 朱砂 · 印章/按钮 */
  --jin:      #d5a441;   /* 金沙金 · 太阳神鸟 */
  --jin-pale: #ecd08e;   /* 淡金 · 红底细线 */
  --zhuq:     #4c6b47;   /* 竹青 · 茶/辅助 */
  --zhi:      #f7f0df;   /* 纸白 · 页面底 */
  --zhi-2:    #efe4cb;   /* 米色 · 间隔区块 */
  --card:     #fffcf2;   /* 卡纸 */
  --mo:       #2a1a0e;   /* 墨 · 正文 */
  --mo-60:    rgba(42, 26, 14, .66);
  --mo-30:    rgba(42, 26, 14, .30);
  --line:     rgba(42, 26, 14, .14);

  /* 字 */
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", "BiauKai", serif;
  --f-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-sans:  "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-xw:    "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;

  /* 版式 */
  --wrap: 1160px;
  --gap: clamp(20px, 3vw, 32px);
  --sec: clamp(64px, 9vw, 112px);
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(42, 26, 14, .35);
}

/* =========================================================
   1. 基础
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--mo);
  background: var(--zhi);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--zhu); text-decoration: none; }
a:hover { color: var(--qi); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--mo);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

::selection { background: var(--jin); color: var(--qi-deep); }

:focus-visible {
  outline: 2px solid var(--zhu);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

/* 宣纸细纹 —— 极淡噪点，铺在浅色区块 */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .10 0 0 0 0 .05 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; }

/* =========================================================
   2. 公共小件 —— 印章 · 竖排眉题 · 按钮 · 价签
   ========================================================= */

/* 印章：方形朱印，微微歪斜，像盖上去的 */
.seal {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  padding: .34em .4em;
  font-family: var(--f-brush);
  font-size: .92rem;
  line-height: 1.15;
  letter-spacing: .08em;
  color: #f8ecd8;
  background: var(--zhu);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgba(248, 236, 216, .5), inset 0 0 0 4px var(--zhu);
  transform: rotate(-3deg);
}
.seal--gold { background: var(--jin); color: var(--qi-deep); box-shadow: inset 0 0 0 1.5px rgba(93,19,9,.45), inset 0 0 0 4px var(--jin); }
.seal--v { writing-mode: vertical-rl; padding: .5em .3em; }

/* 竖排眉题：像茶馆招牌上的小字 */
.section-head {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 26px);
  margin-bottom: clamp(30px, 4.5vw, 48px);
}
.eyebrow-v {
  writing-mode: vertical-rl;
  font-family: var(--f-serif);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--zhu);
  padding-top: .2em;
  border-inline-start: 1px solid var(--jin);
  padding-inline-start: 12px;
}
.section-head h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: .04em;
  margin: 0 0 .3em;
}
.section-head .sub { color: var(--mo-60); margin: 0; max-width: 34em; }
.section-head--onred h2 { color: var(--zhi); }
.section-head--onred .sub { color: rgba(247, 240, 223, .78); }
.section-head--onred .eyebrow-v { color: var(--jin-pale); border-color: var(--jin); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .78em 1.7em;
  font-family: var(--f-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .14em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--zhu { background: var(--zhu); color: #fdf6e9; box-shadow: 0 10px 24px -12px rgba(176, 48, 26, .8); }
.btn--zhu:hover { background: var(--qi); color: #fdf6e9; }

.btn--jin { background: var(--jin); color: var(--qi-deep); box-shadow: 0 10px 24px -12px rgba(93, 19, 9, .7); }
.btn--jin:hover { background: var(--jin-pale); color: var(--qi-deep); }

.btn--ghost { border-color: var(--mo-30); color: var(--mo); background: transparent; }
.btn--ghost:hover { border-color: var(--mo); color: var(--mo); }

.btn--ghost-gold { border-color: var(--jin); color: var(--jin-pale); background: transparent; }
.btn--ghost-gold:hover { background: rgba(213, 164, 65, .12); color: var(--jin-pale); }

/* 价签 */
.price {
  font-family: var(--f-xw);
  color: var(--qi);
  font-size: 1.3rem;
  letter-spacing: .02em;
}
.price .yuan { font-size: .72em; margin-right: .1em; }
.price .from { font-size: .62em; color: var(--mo-60); margin-left: .35em; letter-spacing: .1em; }

/* 礼系小签 */
.chip {
  display: inline-block;
  padding: .18em .8em;
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--zhuq);
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 253, 245, .7);
}
.chip--wei { color: var(--zhu); }
.chip--yi  { color: #8a6a1f; }
.chip--meng{ color: var(--mo-60); }

/* =========================================================
   3. 顶栏 + 页头导航
   ========================================================= */
.topbar {
  background: var(--qi-deep);
  color: var(--jin-pale);
  font-size: .8rem;
  letter-spacing: .18em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 7px;
}
.topbar a { color: var(--jin-pale); }
.topbar a:hover { color: #fff; }
.topbar .tel { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 240, 223, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(42, 26, 14, .4); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mo);
  min-width: 0;
}
.brand:hover { color: var(--mo); }
.brand .seal { font-size: 1.05rem; }
.brand .custom-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.brand-name {
  font-family: var(--f-brush);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .06em;
}
.brand-tag {
  display: block;
  font-family: var(--f-sans);
  font-size: .68rem;
  letter-spacing: .5em;
  color: var(--mo-60);
  margin-top: 4px;
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a {
  font-family: var(--f-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--mo);
  padding: .4em 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--zhu);
  transition: width .2s ease, left .2s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { width: 100%; left: 0; }

.header-cta { white-space: nowrap; }
.header-cta .btn { padding: .55em 1.3em; font-size: .85rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--mo-30);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--mo);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   4. 首屏 —— 漆红底 · 太阳神鸟
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--zhi);
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(213, 164, 65, .22), transparent 62%),
    radial-gradient(900px 600px at -12% 110%, rgba(0, 0, 0, .35), transparent 60%),
    linear-gradient(165deg, var(--qi) 0%, var(--qi-deep) 100%);
}
.hero::after { /* 底部金线，像礼盒封口 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--jin) 18%, var(--jin) 82%, transparent);
  opacity: .85;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(56px, 9vw, 120px);
}

.hero-copy { max-width: 560px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  letter-spacing: .5em;
  color: var(--jin-pale);
  margin-bottom: clamp(18px, 3vw, 30px);
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--jin); }

.hero-title {
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: clamp(2.7rem, 7vw, 4.9rem);
  line-height: 1.22;
  letter-spacing: .04em;
  color: var(--zhi);
  margin: 0 0 .45em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .35);
}
.hero-title em {
  font-style: normal;
  color: var(--jin);
}

.hero-sub {
  color: rgba(247, 240, 223, .84);
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  max-width: 30em;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* 竖排「礼自蓉城」 */
.hero-vert {
  position: absolute;
  top: clamp(48px, 8vw, 96px);
  right: clamp(10px, 2vw, 24px);
  writing-mode: vertical-rl;
  font-family: var(--f-serif);
  font-size: .82rem;
  letter-spacing: .6em;
  color: var(--jin-pale);
  opacity: .9;
  border-inline-end: 1px solid rgba(236, 208, 142, .5);
  padding-inline-end: 10px;
}

/* 太阳神鸟 */
.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.sunbird {
  width: min(440px, 82%);
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .4));
}
.sunbird .ring { opacity: .55; }
.sunbird .sun, .sunbird .birds { transform-box: fill-box; transform-origin: center; }
.sunbird .sun   { animation: sb-spin 52s linear infinite; }
.sunbird .birds { animation: sb-spin 96s linear infinite reverse; }
@keyframes sb-spin { to { transform: rotate(1turn); } }

.hero-emblem .emblem-note {
  position: absolute;
  bottom: 4px;
  font-size: .72rem;
  letter-spacing: .32em;
  color: rgba(236, 208, 142, .66);
}

/* 首屏底部礼系速览 */
.hero-series {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(236, 208, 142, .28);
}
.hero-series a {
  font-family: var(--f-serif);
  letter-spacing: .3em;
  font-size: .9rem;
  color: rgba(247, 240, 223, .85);
}
.hero-series a b { color: var(--jin); font-weight: 700; margin-right: .15em; }
.hero-series a:hover { color: #fff; }

/* =========================================================
   5. 区块通用
   ========================================================= */
.section { padding-block: var(--sec); }
.section--alt { background: var(--zhi-2); border-block: 1px solid var(--line); }
.section--red {
  background: linear-gradient(170deg, var(--qi) 0%, var(--qi-deep) 100%);
  color: var(--zhi);
}
.section--ink { background: #241509; color: var(--zhi); }

/* =========================================================
   6. 商品卡
   ========================================================= */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.gift-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(213, 164, 65, .6);
}

.gift-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--zhi-2);
}
.gift-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gift-card:hover .gift-media img { transform: scale(1.045); }

.gift-media .seal {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .8rem;
  z-index: 2;
}

/* 无图占位：礼系底色 + 大字水印 */
.ph-art {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph-art .ph-char {
  font-family: var(--f-brush);
  font-size: clamp(6rem, 12vw, 9rem);
  line-height: 1;
  opacity: .8;
  transform: rotate(-4deg);
  text-shadow: 0 10px 30px rgba(42, 26, 14, .18);
}
.ph-art::after { /* 淡金圆环，呼应神鸟 */
  content: "";
  position: absolute;
  right: -18%; bottom: -22%;
  width: 68%; aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .28;
}
.ph--cha  { background: linear-gradient(160deg, #e2e8d2, #a9be8f); color: #33502e; }
.ph--wei  { background: linear-gradient(160deg, #f2d7ae, #dc9f5c); color: #7c2c12; }
.ph--yi   { background: linear-gradient(160deg, #f1e2bd, #d8b26a); color: #6b4d14; }
.ph--meng { background: linear-gradient(160deg, #efeade, #c9c2b2); color: #2f2a22; }

.gift-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.gift-body .chip { align-self: flex-start; }
.gift-name {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin: 0;
}
.gift-name a { color: var(--mo); }
.gift-name a:hover { color: var(--qi); }
.gift-spec { font-size: .82rem; color: var(--mo-60); margin: 0; }
.gift-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.gift-foot .more {
  font-size: .82rem;
  letter-spacing: .2em;
  color: var(--mo-60);
}
.gift-card:hover .gift-foot .more { color: var(--zhu); }

.section-more { text-align: center; margin-top: clamp(30px, 5vw, 46px); }

/* =========================================================
   7. 四大礼系
   ========================================================= */
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.series-tile {
  position: relative;
  display: flex;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  min-height: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mo);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.series-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--mo); }
.series-tile::after { /* 角上一枚淡印 */
  content: "";
  position: absolute;
  right: -26px; bottom: -26px;
  width: 110px; height: 110px;
  border-radius: 14px;
  background: currentColor;
  opacity: .07;
  transform: rotate(12deg);
}
.series-title {
  writing-mode: vertical-rl;
  font-family: var(--f-xw);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: .3em;
  line-height: 1;
  padding-top: 2px;
}
.series-tile[data-hue="cha"]  .series-title { color: var(--zhuq); }
.series-tile[data-hue="wei"]  .series-title { color: var(--zhu); }
.series-tile[data-hue="yi"]   .series-title { color: #8a6a1f; }
.series-tile[data-hue="meng"] .series-title { color: #4a4237; }
.series-desc { font-size: .9rem; color: var(--mo-60); margin: 0; }
.series-body { display: flex; flex-direction: column; gap: 10px; }
.series-body .go {
  margin-top: auto;
  font-size: .82rem;
  letter-spacing: .26em;
  color: var(--zhu);
}

/* =========================================================
   8. 匠心三艺（墨色横幅）
   ========================================================= */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.craft-item {
  display: flex;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(213, 164, 65, .4);
}
.craft-item .craft-name {
  writing-mode: vertical-rl;
  font-family: var(--f-brush);
  font-size: 1.7rem;
  letter-spacing: .2em;
  color: var(--jin);
  line-height: 1;
}
.craft-item h3 { color: var(--zhi); font-size: 1.05rem; letter-spacing: .1em; margin-bottom: .4em; }
.craft-item p { color: rgba(247, 240, 223, .72); font-size: .9rem; margin: 0; }
.craft-item .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--jin-pale);
  border: 1px solid rgba(236, 208, 142, .45);
  border-radius: 999px;
  padding: .12em .8em;
}

/* =========================================================
   9. 礼盒定制（漆红横幅）
   ========================================================= */
.custom-band .band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.custom-band h2 {
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  color: var(--zhi);
  letter-spacing: .05em;
  margin-bottom: .4em;
}
.custom-band h2 em { font-style: normal; color: var(--jin); }
.custom-band p { color: rgba(247, 240, 223, .82); max-width: 34em; }
.custom-points { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 8px; }
.custom-points li {
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(247, 240, 223, .88);
  font-size: .95rem;
}
.custom-points li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--jin);
  transform: rotate(45deg);
  translate: 0 -2px;
}
.custom-band .sunbird { width: min(320px, 90%); margin-inline: auto; opacity: .95; }
.custom-contact { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   10. 到店
   ========================================================= */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.visit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
}
.visit-card h3 { font-size: 1.15rem; letter-spacing: .12em; display: flex; align-items: center; gap: 12px; }
.visit-card h3 .seal { font-size: .78rem; }
.visit-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.visit-list li { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; font-size: .95rem; }
.visit-list .k { color: var(--mo-60); letter-spacing: .3em; }
.visit-map {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(420px 240px at 70% 20%, rgba(213,164,65,.28), transparent 60%),
    linear-gradient(150deg, #efe4cb, #e0d0ac);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.visit-map .mark {
  font-family: var(--f-brush);
  font-size: 2rem;
  color: var(--qi);
}
.visit-map p { color: var(--mo-60); font-size: .9rem; max-width: 22em; }

/* =========================================================
   11. 页脚
   ========================================================= */
.site-footer {
  background: #241509;
  color: rgba(247, 240, 223, .8);
  border-top: 4px solid var(--jin);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(44px, 6vw, 72px);
}
.footer-brand .brand-name { color: var(--zhi); font-size: 1.7rem; }
.footer-brand p { font-size: .9rem; color: rgba(247, 240, 223, .62); margin-top: 14px; max-width: 26em; }
.footer-brand .seal { margin-bottom: 8px; }
.site-footer h4 {
  color: var(--jin-pale);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .4em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(247, 240, 223, .8); font-size: .92rem; }
.site-footer a:hover { color: var(--jin); }
.footer-bottom {
  border-top: 1px solid rgba(236, 208, 142, .18);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(247, 240, 223, .5);
  letter-spacing: .06em;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--jin); }

/* =========================================================
   12. 内页 —— 列表 / 详情 / 文章
   ========================================================= */
.page-hero {
  background: linear-gradient(170deg, var(--qi) 0%, var(--qi-deep) 100%);
  color: var(--zhi);
  padding-block: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--jin) 20%, var(--jin) 80%, transparent);
}
.page-hero .eyebrow-v { color: var(--jin-pale); border-color: var(--jin); }
.page-hero h1 {
  font-family: var(--f-serif);
  color: var(--zhi);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: .06em;
  margin: 0;
}
.page-hero .desc { color: rgba(247, 240, 223, .8); margin: .6em 0 0; max-width: 40em; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.filter-bar a {
  padding: .35em 1.1em;
  font-family: var(--f-serif);
  font-size: .88rem;
  letter-spacing: .2em;
  color: var(--mo-60);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.filter-bar a:hover { color: var(--zhu); border-color: var(--zhu); }
.filter-bar a.is-active { color: #fdf6e9; background: var(--zhu); border-color: var(--zhu); }

/* 商品详情 */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.product-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--zhi-2);
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; }
.product-info .chip { margin-bottom: 14px; }
.product-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .04em; }
.product-price { margin: 10px 0 4px; }
.product-price .price { font-size: 2rem; }
.product-spec { color: var(--mo-60); font-size: .92rem; }
.product-excerpt {
  margin: 18px 0 24px;
  padding: 16px 20px;
  background: var(--card);
  border-left: 3px solid var(--jin);
  border-radius: 0 8px 8px 0;
  color: var(--mo-60);
}
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.buy-note { font-size: .8rem; color: var(--mo-60); letter-spacing: .05em; }

.product-detail { margin-top: clamp(44px, 7vw, 72px); }
.product-detail .detail-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.product-detail .detail-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.related { margin-top: clamp(44px, 7vw, 72px); }

/* 文章正文 */
.entry-content { max-width: 760px; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; letter-spacing: .04em; }
.entry-content h2 {
  font-size: 1.4rem;
  padding-left: 14px;
  border-left: 4px solid var(--jin);
}
.entry-content h3 { font-size: 1.15rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  background: var(--card);
  border-left: 3px solid var(--zhu);
  border-radius: 0 8px 8px 0;
  color: var(--mo-60);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6em .9em; text-align: left; }
.entry-content th { background: var(--zhi-2); font-family: var(--f-serif); }
.wp-block-image figcaption, .entry-content figcaption {
  font-size: .8rem; color: var(--mo-60); text-align: center; margin-top: .6em;
}
.alignwide { max-width: 980px; }
.alignfull { max-width: none; }

/* 博客卡片列表 */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--zhi-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { font-size: .78rem; letter-spacing: .2em; color: var(--mo-60); }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card h3 a { color: var(--mo); }
.post-card h3 a:hover { color: var(--qi); }
.post-card .excerpt { font-size: .88rem; color: var(--mo-60); margin: 0; }

.entry-meta { font-size: .82rem; letter-spacing: .18em; color: var(--mo-60); margin-bottom: 18px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }

/* 分页 */
.pagination, .navigation.pagination { margin-top: clamp(34px, 5vw, 52px); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers {
  min-width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--mo);
  font-family: var(--f-serif);
}
.nav-links .page-numbers.current { background: var(--zhu); border-color: var(--zhu); color: #fdf6e9; }
.nav-links .page-numbers:hover { border-color: var(--zhu); color: var(--zhu); }

/* 搜索与评论表单 */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form .search-field {
  flex: 1;
  padding: .7em 1.1em;
  border: 1px solid var(--mo-30);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  color: var(--mo);
}
.search-form .search-field:focus { outline: 2px solid var(--zhu); outline-offset: 1px; }
.search-form .search-submit {
  padding: .7em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--zhu);
  color: #fdf6e9;
  font-family: var(--f-serif);
  letter-spacing: .2em;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--qi); }

/* 上一篇 / 下一篇 */
.post-navigation { margin-top: clamp(34px, 5vw, 52px); max-width: 760px; }
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: stretch;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
  display: block;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mo);
  transition: border-color .2s ease, transform .2s ease;
}
.post-navigation a:hover { border-color: var(--zhu); transform: translateY(-2px); }
.post-navigation .nav-label { display: block; font-size: .74rem; letter-spacing: .22em; color: var(--mo-60); margin-bottom: 4px; }
.post-navigation .nav-title { font-family: var(--f-serif); font-size: .95rem; }

/* 文章标签 */
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 760px; }
.tag-links a {
  padding: .3em .95em;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--mo-60);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.tag-links a:hover { color: var(--zhu); border-color: var(--zhu); }

.page-links { margin-top: 1.4em; letter-spacing: .1em; }

.comments-area { max-width: 760px; margin-top: clamp(40px, 6vw, 64px); }
.comments-area .comments-title, .comment-reply-title { font-size: 1.2rem; letter-spacing: .06em; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.comment-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.comment-meta { font-size: .82rem; color: var(--mo-60); margin-bottom: 8px; }
.comment-list .children { list-style: none; margin: 14px 0 0; padding-left: clamp(14px, 3vw, 30px); display: grid; gap: 14px; }
.comment-form label { display: block; font-size: .85rem; letter-spacing: .1em; margin-bottom: 6px; color: var(--mo-60); }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: .7em 1em;
  border: 1px solid var(--mo-30);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  color: var(--mo);
  margin-bottom: 14px;
}
.comment-form .submit {
  padding: .7em 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--zhu);
  color: #fdf6e9;
  font-family: var(--f-serif);
  letter-spacing: .16em;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--qi); }

/* 404 / 空状态 */
.empty-state { text-align: center; padding-block: clamp(50px, 9vw, 110px); }
.empty-state .big {
  font-family: var(--f-brush);
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--zhu);
  line-height: 1.2;
}
.empty-state p { color: var(--mo-60); }

/* =========================================================
   13. 入场动效（尊重 reduce-motion）
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="2"].is-in { transition-delay: .08s; }
[data-reveal="3"].is-in { transition-delay: .16s; }
[data-reveal="4"].is-in { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sunbird .sun, .sunbird .birds { animation: none; }
  .btn, .gift-card, .series-tile, .post-card { transition: none; }
}

/* =========================================================
   14. 响应式
   ========================================================= */
@media (max-width: 1024px) {
  .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: clamp(48px, 8vw, 72px); }
  .hero-emblem { order: -1; min-height: 0; }
  .sunbird { width: min(280px, 62%); }
  .hero-vert { display: none; }
  .product-layout, .custom-band .band-inner, .visit-grid { grid-template-columns: 1fr; }
  .custom-band .sunbird { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    padding: 96px 28px 40px;
    background: linear-gradient(170deg, var(--qi) 0%, var(--qi-deep) 100%);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 55;
    margin: 0;
    overflow-y: auto;
  }
  .nav-open .site-nav { transform: none; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { color: var(--zhi); font-size: 1.25rem; display: block; padding: .55em 0; border-bottom: 1px solid rgba(236,208,142,.22); }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav-open .nav-toggle { border-color: rgba(236,208,142,.6); }
  .nav-open .nav-toggle span::before, .nav-open .nav-toggle span::after { background: var(--jin-pale); }
  .header-cta { display: none; }
  .topbar .notice { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gift-body { padding: 12px 13px 14px; }
  .series-grid { grid-template-columns: 1fr; }
  .series-tile { min-height: 0; }
  .post-list { grid-template-columns: 1fr; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .visit-list li { grid-template-columns: 4.6em 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .tel { display: none; }
}
