/* ==========================================================
   陈靖姑临水文化网 · 前台样式
   视觉基调：宣纸米白底 + 朱砂红主色 + 鎏金点缀 + 青绿（闾山法脉）
   ========================================================== */
:root {
  --paper: #f7f2e7;
  --paper-2: #fffdf7;
  --paper-3: #f1e9d8;
  --ink: #2f2925;
  --ink-soft: #6d6055;
  --ink-light: #8c7d6e;
  --red: #a92e24;
  --red-deep: #7d1f18;
  --red-light: #c8453a;
  --gold: #c19a56;
  --gold-deep: #9a7431;
  --jade: #2f6b5a;
  --jade-light: #eaf2ee;
  --line: #e6dcc8;
  --shadow: 0 8px 28px rgba(125, 31, 24, .08);
  --radius: 12px;
  --wrap: 1200px;
  --font-hei: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-song: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-hei);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-light); }
h1, h2, h3, h4 { font-family: var(--font-song); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
code { font-family: ui-monospace, Consolas, monospace; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-paper { background: var(--paper-2); }
.band-dark { background: linear-gradient(135deg, #7d1f18, #4a1a16); color: #f7e9d8; }
.band-dark h2, .band-dark .eyebrow { color: #f7e9d8; }
.band-dark .section-sub { color: rgba(247, 233, 216, .8); }
.band-dark .btn-ghost { color: #f7e9d8; border-color: rgba(247, 233, 216, .6); }
.band-dark .btn-ghost:hover { background: rgba(247, 233, 216, .12); color: #fff; }

.center-text { text-align: center; }
.mt24 { margin-top: 24px; }
.empty { color: var(--ink-light); text-align: center; padding: 24px 0; }

/* ---------------- 页头 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 253, 247, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-family: var(--font-song); font-size: 19px; color: var(--red-deep); letter-spacing: .04em; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--ink-light); letter-spacing: .06em; white-space: nowrap; }

/* 导航：一级共 9–10 项，字号与内边距按最窄 PC（1181px）反推定值，
   并给所有链接加 white-space:nowrap，避免被压缩时逐字换行（曾把右侧按钮压成竖排）。 */
.site-nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 9px; border-radius: 8px; font-size: 14px; letter-spacing: 0;
  color: var(--ink); white-space: nowrap;
}
.nav-link:hover { background: var(--paper-3); color: var(--red-deep); }
.nav-link.active { color: var(--red); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.caret { font-size: 10px; color: var(--ink-light); }
.has-sub:hover .nav-sub { display: block; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px; margin: 4px 0 0; padding: 8px;
  list-style: none; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); z-index: 95;
}
.nav-sub li a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.nav-sub li a:hover { background: var(--paper-3); color: var(--red-deep); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-2); padding: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--red-deep); border-radius: 2px; }

.mobile-nav { display: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 30px; border: 1px solid transparent;
  font-size: 15px; cursor: pointer; transition: all .2s; text-align: center; white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--red-deep); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(193, 154, 86, .12); color: var(--red-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-center { justify-content: center; }
.hero-ctas { margin-top: 28px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #7d1f18 0%, #a92e24 55%, #8a2b22 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image: var(--hero-img); background-size: cover; background-position: center right;
}
.hero-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(193, 154, 86, .32), transparent 60%),
    linear-gradient(90deg, rgba(60, 16, 12, .92) 0%, rgba(60, 16, 12, .78) 45%, rgba(60, 16, 12, .55) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 84px 24px 72px; }
.hero-text { flex: 1 1 520px; }
.hero-eyebrow {
  display: inline-block; padding: 5px 14px; margin-bottom: 18px; border: 1px solid rgba(193, 154, 86, .7);
  border-radius: 20px; font-size: 13px; letter-spacing: .16em; color: #f0d9a8;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px); color: #fff; letter-spacing: .04em; margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 247, 236, .9); max-width: 620px; }
.hero-figure { flex: 0 0 42%; }
.hero-figure img {
  border-radius: 14px; border: 1px solid rgba(193, 154, 86, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}
.hero .cta-row .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .cta-row .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-page { padding: 0; }
.hero-plain { background: linear-gradient(120deg, #7d1f18, #a92e24); }
.hero-plain .hero-inner { padding: 72px 24px 60px; }

/* ---------------- 区块标题 ---------------- */
.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-head.left, .section-head h2.left { text-align: left; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(22px, 2.8vw, 32px); color: var(--red-deep); }
.section-head h2::after {
  content: ''; display: block; width: 56px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold), rgba(193, 154, 86, 0)); border-radius: 3px;
}
.section-head h2.left::after { margin-left: 0; }
.eyebrow { font-size: 13px; letter-spacing: .2em; color: var(--gold-deep); margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); font-size: 16px; margin: 12px 0 0; }

/* ---------------- 数据条 ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-song); font-size: 30px; color: var(--red); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--ink-light); letter-spacing: .08em; }

/* ---------------- 卡片 / 网格 ---------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; color: var(--ink);
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(125, 31, 24, .14); color: var(--ink); }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--jade-light); color: var(--jade); font-size: 20px;
  border: 1px solid rgba(47, 107, 90, .2);
}
.card h3 { font-size: 19px; color: var(--red-deep); margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card-meta { margin-top: 12px; font-size: 13px; color: var(--ink-light); }

/* 时间轴（grid-timeline） */
.grid-timeline { position: relative; }
.grid-timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 42px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(193, 154, 86, .25));
}
.grid-timeline .card { position: relative; padding-top: 34px; border-top: 3px solid transparent; }
.grid-timeline .card::before {
  content: ''; position: absolute; top: -9px; left: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--paper-2); box-shadow: 0 0 0 2px rgba(169, 46, 36, .2);
}
.grid-timeline .card-icon { position: absolute; top: 30px; right: 16px; margin: 0; opacity: .5; }

/* ---------------- 两栏 ---------------- */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.two-col-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.col-text { color: var(--ink-soft); }
.col-text h3 { color: var(--red-deep); margin-top: 1.4em; }
.col-text strong { color: var(--ink); }
.col-text blockquote {
  margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--gold);
  background: var(--paper-3); color: var(--ink); border-radius: 0 8px 8px 0;
}
.col-figure img, .figure-round { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.col-text img { border-radius: 10px; }

/* ---------------- 活动 ---------------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-tabs a {
  padding: 8px 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink-soft); font-size: 14px;
}
.filter-tabs a.active, .filter-tabs a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-item {
  display: grid; grid-template-columns: 90px 1fr 70px; gap: 20px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; color: var(--ink); box-shadow: var(--shadow);
}
.event-item:hover { border-color: var(--gold); color: var(--ink); }
.event-date-box { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.event-date-box strong { display: block; font-family: var(--font-song); font-size: 30px; color: var(--red); line-height: 1.1; }
.event-date-box span { font-size: 12px; color: var(--ink-light); }
.event-type { font-size: 12px; color: var(--gold-deep); letter-spacing: .1em; }
.event-main h2 { font-size: 19px; color: var(--red-deep); margin: 4px 0 6px; }
.event-main p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.event-meta { margin-top: 6px; font-size: 13px; color: var(--ink-light); }
.event-go { text-align: right; color: var(--gold-deep); font-size: 14px; }

/* 首页活动卡 */
.card-event .event-date {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 12px; border-radius: 20px;
  background: var(--paper-3); color: var(--red-deep); font-size: 13px; margin-bottom: 10px;
}
.card-event .event-date strong { font-family: var(--font-song); font-size: 17px; color: var(--red); }

/* ---------------- 商品 ---------------- */
.card-product { padding: 0; overflow: hidden; }
.product-cover { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-3); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-product h3, .card-product p, .card-product .price { padding: 0 20px; }
.card-product h3 { margin-top: 16px; font-size: 17px; color: var(--red-deep); }
.card-product p { font-size: 14px; color: var(--ink-soft); }
.series-tag {
  display: inline-block; margin: 12px 0 0 20px; padding: 3px 12px; border-radius: 14px;
  background: var(--jade-light); color: var(--jade); font-size: 12px; letter-spacing: .06em;
}
.price { color: var(--red); font-family: var(--font-song); font-size: 20px; font-weight: 700; padding: 0 20px 18px; }
.price del { color: var(--ink-light); font-size: 13px; font-weight: 400; margin-left: 6px; }
.price em { font-style: normal; font-size: 12px; color: var(--ink-light); }
.price.big { font-size: 30px; }

.product-detail { padding-top: 32px; }
.product-figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-info h1 { font-size: clamp(24px, 3vw, 34px); color: var(--red-deep); }
.product-summary { color: var(--ink-soft); }
.spec-list { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list li span { width: 60px; color: var(--ink-light); flex-shrink: 0; }

/* ---------------- 表单 ---------------- */
.form-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.form-card h3 { margin-top: 0; font-size: 18px; color: var(--red-deep); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); }
label input, label select, label textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink);
}
label input:focus, label select:focus, label textarea:focus { outline: 2px solid rgba(169, 46, 36, .25); border-color: var(--red); }
.form-tip { margin: 10px 0 0; font-size: 13px; color: var(--ink-light); }
.form-ok { padding: 12px 16px; border-radius: 8px; background: var(--jade-light); color: var(--jade); font-size: 15px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--paper-3); color: var(--ink-soft); font-size: 15px; border-radius: 0 8px 8px 0; }

/* ---------------- 祈福 / 社区 ---------------- */
.qifu-home { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.qifu-wall { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.qifu-wall h4 { font-family: var(--font-song); color: var(--red-deep); margin: 0 0 14px; }
.qifu-wall ul { list-style: none; margin: 0; padding: 0; }
.qifu-wall li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.qifu-wall li:last-child { border-bottom: 0; }
.qifu-wall p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.wish-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 12px; background: var(--paper-3); color: var(--gold-deep); font-size: 12px; }

.lamp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.lamp {
  text-align: center; padding: 16px 8px 12px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.lamp-flame {
  width: 26px; height: 34px; margin: 0 auto 10px; border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 60%, #ffd27a, #e07a2f 60%, transparent 72%);
  box-shadow: 0 0 14px rgba(224, 122, 47, .55);
}
.lamp-body { font-size: 14px; color: var(--red-deep); }
.lamp-name { font-size: 12px; color: var(--ink-light); margin-top: 2px; }

.wish-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.wish-sticker {
  background: linear-gradient(180deg, #fff9ec, #fffdf7); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; box-shadow: var(--shadow); position: relative;
}
.wish-sticker::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 10px; background: rgba(193, 154, 86, .28); border-radius: 3px; }
.wish-sticker p { margin: 8px 0 8px; color: var(--ink-soft); font-size: 15px; }
.wish-sticker strong { font-size: 13px; color: var(--ink-light); }

.share-list { display: flex; flex-direction: column; gap: 14px; }
.share-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.share-item h3 { font-size: 18px; color: var(--red-deep); }
.share-item p { color: var(--ink-soft); margin: 0; }
.share-meta { margin-top: 10px; font-size: 13px; color: var(--ink-light); text-align: right; }

.wish-list { list-style: none; margin: 0; padding: 0; }
.wish-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.wish-list time { margin-left: auto; font-size: 12px; color: var(--ink-light); white-space: nowrap; }
.wish-list p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------------- 文章 ---------------- */
.breadcrumb { padding: 20px 24px 0; font-size: 13px; color: var(--ink-light); }
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--red); }
.article-page, .page-page { max-width: 820px; }
.article-cat, .event-badge {
  display: inline-block; padding: 4px 14px; border-radius: 16px; background: var(--paper-3);
  color: var(--gold-deep); font-size: 13px; letter-spacing: .1em; margin-bottom: 12px;
}
.article-page h1, .page-page h1 { font-size: clamp(24px, 3.2vw, 36px); color: var(--red-deep); }
.article-meta { color: var(--ink-light); font-size: 14px; margin-bottom: 24px; }
.article-cover { margin: 0 0 26px; }
.article-cover img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); box-shadow: var(--shadow);
}
.article-row:hover { border-color: var(--gold); color: var(--ink); }
.article-row-cover { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--paper-3); }
.article-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-row-cat { font-size: 12px; color: var(--gold-deep); letter-spacing: .1em; }
.article-row-main h2 { font-size: 19px; color: var(--red-deep); margin: 4px 0 6px; }
.article-row-main p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------------- 关于 / 联系 ---------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list li span { width: 56px; color: var(--ink-light); flex-shrink: 0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #2b211b; color: #d9cdba; padding: 52px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 10px; }
.footer-brand strong { font-family: var(--font-song); font-size: 19px; color: #f0e2c8; }
.footer-brand em { font-style: normal; font-size: 13px; color: #a99a86; letter-spacing: .1em; }
.footer-note { font-size: 13px; color: #93836f; margin: 10px 0 0; line-height: 1.7; }
.site-footer h4 { font-family: var(--font-song); color: #f0e2c8; font-size: 16px; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: #c6b8a4; font-size: 14px; }
.footer-links a:hover { color: #f0e2c8; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-contact li { display: flex; gap: 12px; padding: 6px 0; }
.footer-contact li span { color: #93836f; width: 40px; flex-shrink: 0; }
.footer-kf {
  display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: 22px;
  border: 1px solid var(--gold); color: #f0d9a8; font-size: 14px;
}
.footer-bottom { border-top: 1px solid rgba(217, 205, 186, .14); padding: 18px 0; font-size: 13px; color: #8d7f6c; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }

/* ---------------- 404 ---------------- */
/* 回到顶部按钮 */
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--paper-2); color: var(--red-deep);
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s;
  box-shadow: var(--shadow); z-index: 80;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }
.empty-page { text-align: center; padding: 60px 0; }
.seal {
  width: 92px; height: 92px; margin: 0 auto 20px; display: grid; place-items: center;
  border: 2px solid var(--red); border-radius: 10px; color: var(--red);
  font-family: var(--font-song); font-size: 30px; transform: rotate(-6deg);
}

/* 页头折叠断点：正文容器 1200px 减去左右内边距后，装不下「品牌 + 9~10 个一级菜单 + 祈福按钮」，
   因此在 1221px 以下改为汉堡菜单（正文版式仍按 1000px 断点单独控制）。 */
@media (max-width: 1220px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .mobile-nav {
    display: block; max-height: 0; overflow: hidden; transition: max-height .28s ease;
    background: var(--paper-2); border-top: 1px solid var(--line);
  }
  .mobile-nav.open { max-height: 76vh; overflow-y: auto; }
  .mobile-nav-list { list-style: none; margin: 0; padding: 8px; }
  .mobile-nav-list li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 14px; border-radius: 8px; color: var(--ink); font-size: 15px;
  }
  .mobile-nav-list li.has-sub > a::after { content: '＋'; color: var(--gold-deep); font-size: 14px; }
  .mobile-nav-list li.has-sub.open > a::after { content: '－'; }
  .mobile-nav-list .caret { display: none; }
  .mobile-nav-list .nav-sub { display: none; list-style: none; margin: 0; padding: 0 0 6px 18px; }
  .mobile-nav-list li.has-sub.open > .nav-sub { display: block; }
  .mobile-nav-list .nav-sub a { padding: 10px 14px; font-size: 14px; color: var(--ink-soft); }
  .mobile-nav-foot { display: flex; gap: 10px; padding: 14px 12px 20px; border-top: 1px solid var(--line); }
  .mobile-nav-foot .btn { flex: 1; }
}

/* ==========================================================
   移动端适配（H5）
   ========================================================== */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col-fig, .qifu-home { grid-template-columns: 1fr; gap: 26px; }
  .hero-inner { flex-direction: column; padding: 56px 24px 48px; }
  .hero-figure { width: 100%; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .event-item { grid-template-columns: 74px 1fr; }
  .event-go { display: none; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-cover { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 18px 12px; }
  .stat-num { font-size: 24px; }
  .card { padding: 20px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-text { flex-basis: 100%; }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 11px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .cta-row .btn { flex: 1 1 auto; min-width: 140px; }
  .grid-timeline::before { display: none; }
  .grid-timeline .card { padding-left: 34px; }
  .grid-timeline .card::before { left: 8px; top: 26px; }
  .grid-timeline .card-icon { position: static; margin-bottom: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .lamp-wall { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
  .wish-wall { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .event-date-box { display: flex; align-items: baseline; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .event-date-box strong { font-size: 22px; }
  .wish-list li { flex-wrap: wrap; }
  .wish-list time { margin-left: 0; width: 100%; }
}

/* 超小屏（≈iPhone SE 宽度）：页头只留品牌 + 汉堡，祈福入口在展开菜单底部 */
@media (max-width: 430px) {
  .header-actions > .btn { display: none; }
  .brand-text strong { font-size: 15px; }
  .brand-text em { display: none; }
}
