/* 舟山旅游攻略网 · 前台样式（主题色由后台配置注入 :root 变量） */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: #2b3a4a;
  background: var(--page-bg, #eef4f7);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* 整页底图：下半部透出海面与远岛剪影，上半保持浅色，不干扰 Hero。
   用 bg.webp 实拍图（1846×934）。照片比原来的矢量图细节多，
   遮罩收紧一些：底部实测底图亮度只有 154，混完约 188，
   而「查看更多」这类浅灰文字(#8aa0b3)压在这上面会发糊，
   所以把末端 alpha 从 0.34 提到 0.52，让最底部仍留在浅色区。 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--page-bg, #eef4f7) 0%, var(--page-bg, #eef4f7) 26%, rgba(238, 244, 247, 0.92) 44%, rgba(238, 244, 247, 0.74) 68%, rgba(238, 244, 247, 0.52) 100%),
    url('/assets/bg.webp') center bottom / cover no-repeat;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1360px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 8px rgba(20, 60, 90, 0.07);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; flex: none; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px; color: #fff; display: grid; place-items: center;
  font-size: 14px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #7fd4f0));
}
.logo-img { height: 30px; width: auto; }
.logo-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.menu { display: flex; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.menu a {
  padding: 7px 13px; border-radius: 8px; font-size: 14px; color: #40566b;
  white-space: nowrap; transition: background 0.18s, color 0.18s;
}
.menu a:hover { background: #eaf4fa; color: var(--primary-dark); }
.menu a.on { color: var(--primary-dark); font-weight: 700; background: #e6f2f9; }
.menu a .fire { font-size: 10px; vertical-align: 1px; }
.search { display: flex; flex: none; }
.search input {
  width: 190px; height: 34px; border: 1px solid #cfe0ea; border-right: 0; border-radius: 17px 0 0 17px;
  padding: 0 14px; font-size: 13px; outline: none; background: #fff;
}
.search input:focus { border-color: var(--primary); }
.search button {
  height: 34px; border: 0; border-radius: 0 17px 17px 0; background: var(--primary); color: #fff;
  font-size: 13px; padding: 0 16px;
}
.nav-toggle { display: none; border: 1px solid #d5e3ec; background: #fff; border-radius: 8px; width: 36px; height: 34px; font-size: 16px; color: #40607a; }

/* ============ Hero ============ */
.hero {
  position: relative; text-align: center; padding: 52px 0 58px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(222, 238, 246, 0.86) 0%, rgba(238, 244, 247, 0.42) 62%, rgba(238, 244, 247, 0.8) 100%),
    #dcecf5 url('/assets/island-bg.svg') center bottom / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -40px 0; height: 100px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(120, 190, 220, 0.36), transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 32px; letter-spacing: 3px; color: #1c5f8a; }
.hero p { margin: 12px auto 0; font-size: 14.5px; color: #55708a; max-width: 720px; }
.hero-search { display: flex; max-width: 460px; margin: 20px auto 0; }
.hero-search input {
  flex: 1; height: 42px; border: 1px solid #cfe0ea; border-right: 0; border-radius: 21px 0 0 21px;
  padding: 0 18px; font-size: 14px; outline: none;
}
.hero-search button { height: 42px; border: 0; border-radius: 0 21px 21px 0; background: var(--primary); color: #fff; padding: 0 24px; font-size: 14px; }
.chips { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 7px 17px; border-radius: 18px; background: #fff;
  border: 1px solid #d5e6f0; font-size: 13px; color: #35617f; transition: 0.2s;
}
.chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }

/* 列表页头部 */
.page-head { background: linear-gradient(135deg, #e3f0f7, #eef4f7); padding: 32px 0 26px; }
.page-head h1 { font-size: 24px; color: #1c5f8a; }
.page-head .sub { margin-top: 8px; font-size: 13.5px; color: #6d8698; }

/* ============ 公告条 ============ */
.notice { background: #fff; border-bottom: 1px solid #e4edf3; }
.notice .wrap { display: flex; align-items: center; gap: 14px; height: 40px; font-size: 13px; overflow: hidden; }
.notice .tag { flex: none; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; position: relative; z-index: 2; }
/* 标题固定、内容滚动：滚动区必须自带裁剪，否则文字会滑到「公告」标签上面 */
.notice .marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; z-index: 1; }
.notice .items { display: flex; gap: 40px; white-space: nowrap; color: #4a6076; width: max-content; animation: roll 26s linear infinite; }
.notice .items:hover { animation-play-state: paused; }
.notice .n-item::before { content: "·"; color: var(--accent); margin-right: 8px; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 通用区块 ============ */
main section, .list-section { margin-top: 28px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 17.5px; color: #23415a; }
.sec-head .badge { font-size: 11px; color: var(--primary); background: #e2f1f9; padding: 2px 9px; border-radius: 10px; }
.sec-head .more { margin-left: auto; font-size: 12.5px; color: #8aa0b3; }
.sec-head .more:hover { color: var(--primary); }
.empty { text-align: center; color: #9db1c2; font-size: 13.5px; padding: 34px 0; }

/* ============ 分类筛选条 ============ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fchip {
  padding: 5px 14px; border-radius: 16px; font-size: 13px; background: #fff; border: 1px solid #ddeadf;
  border-color: #dbe8f1; color: #4a6076; display: inline-flex; align-items: center; gap: 6px; transition: 0.18s;
}
.fchip i { font-style: normal; font-size: 11px; color: #9db1c2; }
.fchip:hover { border-color: var(--primary); color: var(--primary-dark); }
.fchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.fchip.on i { color: rgba(255, 255, 255, 0.8); }

/* ============ 头条 + 排行 ============ */
.top-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.feature {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(20, 60, 90, 0.07); transition: 0.22s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(20, 60, 90, 0.13); }
.feature .cover {
  height: 216px; display: grid; place-items: center; color: #fff; font-size: 34px; letter-spacing: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); overflow: hidden;
}
.feature .cover img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 16px 20px 20px; }
.feature .tags { display: flex; gap: 8px; margin-bottom: 9px; }
.feature .tags span { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.feature .tags .t1 { background: #fdeeea; color: #d9534f; }
.feature .tags .t2 { background: #e6f2fa; color: var(--primary); }
.feature h3 { font-size: 17px; color: #23415a; }
.feature .desc {
  margin-top: 9px; font-size: 13px; color: #6b8098;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feature .meta { margin-top: 12px; font-size: 12px; color: #9db1c2; display: flex; gap: 14px; flex-wrap: wrap; }
.rank { display: flex; flex-direction: column; gap: 12px; }
.rank .item {
  flex: 1; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px;
  padding: 13px 16px; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06); transition: 0.18s;
}
.rank .item:hover { background: #f4fafd; transform: translateX(2px); }
.rank .no { flex: none; width: 23px; height: 23px; border-radius: 50%; color: #fff; font-size: 12px; display: grid; place-items: center; background: #b9c8d4; }
.rank .item:nth-child(1) .no { background: var(--accent); }
.rank .item:nth-child(2) .no { background: #f0954a; }
.rank .item:nth-child(3) .no { background: #4aa8d8; }
.rank .txt { min-width: 0; }
.rank .txt h3 { font-size: 13.5px; color: #2c4257; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .txt span { font-size: 12px; color: #9db1c2; }

/* ============ 旅游专区 ============ */
.zone { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zcard {
  display: block; background: rgba(255, 255, 255, 0.9); border-radius: var(--radius); padding: 22px 16px;
  text-align: center; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06); transition: 0.2s;
}
.zcard:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(20, 60, 90, 0.12); }
.zcard .ico { font-size: 30px; }
.zcard h3 { margin-top: 10px; font-size: 15px; color: #23415a; font-weight: 600; }
.zcard .z-desc { display: block; margin-top: 6px; font-size: 12px; color: #8aa0b3; line-height: 1.6; }

/* ============ 列表 + 侧栏 ============ */
.main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.post {
  display: flex; gap: 15px; background: #fff; border-radius: var(--radius); padding: 16px;
  margin-bottom: 14px; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06); transition: 0.2s;
}
.post:hover { transform: translateX(3px); box-shadow: 0 8px 18px rgba(20, 60, 90, 0.11); }
.post .thumb {
  flex: none; width: 100px; height: 80px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 17px; letter-spacing: 2px; overflow: hidden;
}
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .p-body { min-width: 0; flex: 1; }
.post h3 { font-size: 14.5px; color: #2c4257; font-weight: 600; line-height: 1.5; }
.post .desc {
  margin-top: 6px; font-size: 12.5px; color: #7b90a5; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post .meta { margin-top: 8px; font-size: 12px; color: #9db1c2; display: flex; gap: 12px; flex-wrap: wrap; }
.post .meta .cat { color: var(--primary); background: #eaf4fb; padding: 0 7px; border-radius: 8px; }

.post-list.as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-list.as-grid .tile {
  display: block; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06); transition: 0.2s;
}
.post-list.as-grid .tile:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(20, 60, 90, 0.12); }
.tile-cover { height: 128px; display: grid; place-items: center; color: #fff; font-size: 20px; letter-spacing: 3px; overflow: hidden; }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 12px 14px 14px; }
.tile-body h3 { font-size: 14px; color: #2c4257; font-weight: 600; }
.tile-body .desc {
  margin-top: 6px; font-size: 12px; color: #7b90a5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-body .meta { margin-top: 8px; font-size: 11.5px; color: #9db1c2; display: flex; gap: 10px; }

.side .box {
  background: rgba(255, 255, 255, 0.94); border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 16px; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06);
}
/* 侧栏区块标题用 h3：h2 留给正文/主栏，避免与文章正文小节同级 */
.side h2, .side h3 { font-size: 14px; color: #23415a; margin-bottom: 12px; font-weight: 600; }
.weather { background: linear-gradient(135deg, #cfe6d8, #dcecf0) !important; text-align: center; }
.weather .temp { font-size: 30px; font-weight: 700; color: #2f5d4f; }
.weather .loc { font-size: 13px; color: #4a6b5f; margin-top: 4px; }
.weather .tip { display: inline-block; margin-top: 10px; font-size: 11.5px; color: #3c6e5a; background: rgba(255, 255, 255, 0.7); border-radius: 12px; padding: 3px 12px; }
.rank-list li { padding: 6px 0; font-size: 13px; }
.rank-list li:hover { color: var(--primary); }
.rank-list a { display: flex; align-items: center; gap: 9px; }
.rank-list .dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e8f2f8; color: var(--primary);
  font-size: 11px; display: grid; place-items: center;
}
.rank-list li:nth-child(1) .dot { background: #fdeae6; color: var(--accent); }
.rank-list li:nth-child(2) .dot { background: #fdf1e3; color: #f0954a; }
.rank-list li:nth-child(3) .dot { background: #e6f2fa; color: #4aa8d8; }
.rank-list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-list li { padding: 7px 0; font-size: 13px; color: #4a6076; }
.tool-list a:hover { color: var(--primary); }
.cat-list li a, .cat-list li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: #4a6076; }
.cat-list i { font-style: normal; font-size: 11.5px; color: #9db1c2; }
.cat-list a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { font-size: 12.5px; background: #f0f6fa; color: #4a6076; padding: 3px 11px; border-radius: 12px; }
.tag-cloud a:hover { background: var(--primary); color: #fff; }
.tag-cloud i { font-style: normal; font-size: 10.5px; opacity: 0.7; margin-left: 4px; }

/* ============ 分页 ============ */
.pagination { display: flex; gap: 7px; justify-content: center; margin: 24px 0 8px; flex-wrap: wrap; }
.pg {
  min-width: 34px; height: 34px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid #e0eaf1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #4a6076;
}
.pg:hover { border-color: var(--primary); color: var(--primary); }
.pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg.gap { border: 0; background: transparent; color: #9db1c2; }

/* ============ 文章详情 ============ */

/* 面包屑：离导航远一点、离标题也留出呼吸。
   注意 HTML 用的 class 是 .breadcrumb，这里必须与模板一致，否则样式全部不生效。 */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 38px 0 18px; font-size: 13px; color: #8aa0b3;
}
.breadcrumb a { color: #8aa0b3; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #c3d3e0; }
.breadcrumb [aria-current="page"] { color: #4a6076; }

/* 兼容旧写法，避免别处还引用 .crumb */
.crumb { margin: 38px 0 18px; font-size: 13px; color: #8aa0b3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--primary); }
.crumb .cur { color: #4a6076; }

/* page-head 内部已有一圈内边距，面包屑在这里不需要额外上边距 */
.page-head .breadcrumb { margin: 0 0 14px; }

/* 面包屑关闭时，正文区自己撑开顶部间距（否则会贴死导航栏） */
.wrap > .article-layout:first-child { margin-top: 38px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; margin-top: 0; }
.article {
  background: #fff; border-radius: var(--radius); padding: 30px 34px 26px;
  box-shadow: 0 2px 14px rgba(20, 60, 90, 0.07); min-width: 0;
}
.article h1 { font-size: 26px; color: #1f3a52; line-height: 1.5; letter-spacing: 0.5px; }
.a-meta { margin-top: 14px; font-size: 13px; color: #9db1c2; display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid #eef3f7; }
.a-cover { margin: 20px 0 0; border-radius: 10px; overflow: hidden; position: relative; }
.a-cover img { width: 100%; max-height: 420px; object-fit: cover; }
/* 示意图标注：AI 生成的概念图，明确告知不是现场实拍 */
.a-cover .img-note {
  margin: 0; padding: 6px 10px; font-size: 12px; line-height: 1.5;
  color: #6b7785; background: rgba(0, 0, 0, .04); text-align: right;
}
.a-cover .img-note:empty { display: none; }
.article-body { margin-top: 22px; font-size: var(--article-fs, 16px); color: #3c5268; line-height: 1.95; word-wrap: break-word; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.05em; }
.article-body h2 { font-size: 1.28em; color: #1f3a52; margin: 1.6em 0 0.7em; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.12em; color: #26445e; margin: 1.4em 0 0.6em; }
.article-body h4 { font-size: 1em; color: #2c4257; margin: 1.2em 0 0.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.05em; padding-left: 1.6em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.35em 0; }
.article-body img { border-radius: 8px; margin: 1em auto; max-width: 100%; height: auto; }
.article-body a { color: var(--primary); border-bottom: 1px solid rgba(29, 127, 184, 0.35); }
.article-body a:hover { border-bottom-color: var(--primary); }
.article-body blockquote {
  margin: 1.1em 0; padding: 12px 18px; background: #f5fafd; border-left: 4px solid #b9dcf2;
  color: #4a6076; border-radius: 0 8px 8px 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body pre {
  background: #22303d; color: #e6edf3; padding: 14px 18px; border-radius: 8px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.7; margin: 1.1em 0; font-family: Consolas, Monaco, monospace;
}
.article-body code { background: #eef3f7; padding: 2px 6px; border-radius: 4px; font-size: 0.92em; font-family: Consolas, Monaco, monospace; color: #b5482f; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.1em 0; font-size: 0.94em; }
.article-body th, .article-body td { border: 1px solid #e0eaf1; padding: 9px 12px; text-align: left; }
.article-body th { background: #f5fafd; color: #33475b; font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid #e6eef4; margin: 1.8em 0; }
.article-body figure { margin: 1.2em 0; }
.article-body figcaption { text-align: center; font-size: 12.5px; color: #9db1c2; margin-top: 8px; }

.tag-row { margin-top: 24px; display: flex; gap: 9px; flex-wrap: wrap; }
.tag-row a { font-size: 12.5px; background: #f0f6fa; color: #4a6076; padding: 4px 12px; border-radius: 13px; }
.tag-row a:hover { background: var(--primary); color: #fff; }
.share { margin-top: 20px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: #8aa0b3; flex-wrap: wrap; }
.share button { border: 1px solid #dfeaf2; background: #fff; color: #4a6076; font-size: 12.5px; padding: 5px 13px; border-radius: 14px; }
.share button:hover { border-color: var(--primary); color: var(--primary); }
/* ---------- 文章底部客服卡片 ---------- */
.contact-card {
  margin-top: 30px; padding: 22px 24px;
  background: linear-gradient(135deg, #f2f9fd 0%, #eaf4fb 100%);
  border: 1px solid #d6e8f4; border-radius: 14px;
  display: flex; align-items: center; gap: 22px;
}
.contact-main { flex: 1; min-width: 0; }
.contact-title { margin: 0 0 8px; font-size: 17px; color: #1d3a52; font-weight: 700; line-height: 1.4; }
.contact-lead { margin: 0 0 14px; font-size: 14px; color: #4a6076; line-height: 1.75; }
.contact-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-label { font-size: 13px; color: #7d94a8; }
.contact-wechat {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--primary); background: #fff;
  padding: 7px 14px; border-radius: 8px; border: 1px dashed #b9d8ec;
  /* 手机端长按可选中，不靠按钮也能复制 */
  -webkit-user-select: all; user-select: all; cursor: text;
}
.contact-copy {
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  font-size: 13px; padding: 8px 18px; border-radius: 8px; transition: 0.2s;
}
.contact-copy:hover { background: #16628f; border-color: #16628f; }
.contact-note { margin: 10px 0 0; font-size: 12.5px; color: #7d94a8; }
.contact-disclaimer { margin: 8px 0 0; font-size: 12px; color: #93a8ba; line-height: 1.7; }
.contact-qr { width: 120px; height: 120px; flex: none; border-radius: 8px; background: #fff; padding: 4px; }

@media (max-width: 640px) {
  .contact-card { padding: 18px; gap: 16px; flex-wrap: wrap; }
  .contact-title { font-size: 16px; }
  .contact-qr { width: 96px; height: 96px; margin: 0 auto; }
  .contact-wechat { font-size: 15px; }
  .contact-copy { flex: 1; min-width: 84px; }
}

.a-actions { margin-top: 20px; text-align: center; }
.like-btn {
  border: 1px solid #ffd9cf; background: #fff6f3; color: #d9534f; border-radius: 22px;
  padding: 9px 26px; font-size: 14px; transition: 0.2s;
}
.like-btn:hover { background: #ffe9e3; transform: translateY(-1px); }
.like-btn.done { background: #ffe0d8; border-color: #f5b6a6; }
.pn { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.pn-item {
  display: block; background: #f7fbfd; border-radius: 9px; padding: 12px 16px; border: 1px solid #e8f1f7;
  font-size: 13px; transition: 0.18s; min-width: 0;
}
.pn-item:hover { border-color: var(--primary); background: #f0f8fd; }
.pn-item span { display: block; font-size: 11.5px; color: #9db1c2; margin-bottom: 4px; }
.pn-item b { display: block; color: #2c4257; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-item.next { text-align: right; }
.pn-item.empty { background: transparent; border: 0; }

/* ---------- 热搜（文章底部长尾词） ---------- */
.hot-search {
  margin-top: 26px; padding: 16px 18px 18px;
  background: linear-gradient(135deg, #fff8f4 0%, #f6fbfe 100%);
  border: 1px solid #f4e5dc; border-radius: 12px;
}
.hot-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.hot-head h2 { font-size: 15px; font-weight: 700; color: #2c4257; margin: 0; }
.hot-ico { font-size: 14px; line-height: 1; }
.hot-head em { font-style: normal; font-size: 11.5px; color: #a8b8c6; }
.hot-words { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.hot-word {
  display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 14px;
  background: #fff; color: #47657e; border: 1px solid #e6eef4;
  transition: 0.16s; white-space: nowrap; line-height: 1.3;
}
.hot-word:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.hot-word.is-search { color: #6b8298; border-style: dashed; }
.hot-word.is-search:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .hot-search { padding: 14px 14px 16px; }
  .hot-word { font-size: 12.5px; padding: 4px 10px; }
}

@media print {
  .hot-search { display: none; }
}


.article-side { min-width: 0; }
.article-side .box { background: #fff; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.06); }
.article-side h2, .article-side h3 { font-size: 14px; color: #23415a; margin-bottom: 12px; font-weight: 600; }
/* 文章目录：标题下方一块带边框的浅蓝底，目录项行内排列（参考内容站常见做法，配色走本站蓝）
   刻意不做 sticky / fixed：目录只在正文里跟随滚动，不要浮起来盖住内容 */
.toc {
  border: 1px solid #e2ecf2; background: #f7fbfd; border-radius: 6px;
  padding: 12px 16px; margin: 16px 0 20px;
  position: static;
}
.toc b { display: block; margin-bottom: 8px; font-size: 13.5px; color: #23415a; }
.toc-links { display: flex; flex-wrap: wrap; gap: 6px 0; }
.toc-links a {
  display: inline-block; margin: 4px 16px 4px 0;
  color: var(--primary); font-size: 13.5px; line-height: 1.7;
}
.toc-links a:hover { color: var(--primary-dark); text-decoration: underline; }

/* 锚点不要被吸顶的页头挡住 */
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 76px; }

.related { margin-top: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.static-page { min-height: 320px; }

/* ============ 页脚 ============ */
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid #e4edf3; padding: 24px 0 28px; text-align: center; }
.site-footer .links { display: flex; justify-content: center; gap: 24px; font-size: 13px; color: #5b7389; flex-wrap: wrap; }
.site-footer .links a:hover { color: var(--primary); }
.site-footer .copy { margin-top: 12px; font-size: 12px; color: #a5b7c6; line-height: 1.9; }
.site-footer .copy a { color: #a5b7c6; }
.site-footer .copy a:hover { color: var(--primary); }

/* ============ Toast ============ */
.toast {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: #22303d; color: #fff; font-size: 13px; padding: 9px 22px; border-radius: 20px;
  opacity: 0; transition: 0.28s; pointer-events: none; z-index: 200; box-shadow: 0 6px 20px rgba(20, 40, 60, 0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 防止手机端被内容撑开 ============ */
/* grid / flex 子项默认 min-width:auto，也就是不肯窄于内容的「最小固有宽度」。
   首页头条卡和排行榜的标题带 white-space:nowrap，最小固有宽度等于整行文字，
   栅格列就被顶到 398px；390 的屏上横向滚出 41px，320 的屏上滚出 111px。
   把承载可截断文本的子项显式设成 min-width:0，列宽才能真的收缩。
   （实测：加规则前 320/360/390/414 分别溢出 111/71/41/17px，加完全部为 0，桌面端不变） */
.top-grid > *, .main-grid > *, .zone > *, .article-layout > *, .post-list > * { min-width: 0; }
.feature, .feature .body, .post, .post .p-body, .rank .txt { min-width: 0; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .top-grid, .main-grid, .article-layout { grid-template-columns: 1fr; }
  .zone { grid-template-columns: repeat(2, 1fr); }
  .article-side .toc { display: none; }
  .related-grid, .post-list.as-grid { grid-template-columns: 1fr; }
  .menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 18px; box-shadow: 0 10px 20px rgba(20, 60, 90, 0.1);
    gap: 0; overflow: visible;
  }
  .menu.open { display: flex; }
  .menu a { padding: 10px 8px; border-bottom: 1px solid #f0f5f9; border-radius: 0; }
  /* 窄屏下 .menu 变成绝对定位的抽屉、不占行内空间，整行只剩「站名 + 搜索 + 汉堡」。
     它们默认全部靠左挤在一起：汉堡离站名只有 20px，右边却空着 170px。
     给搜索框 margin-left:auto，把「搜索 + 汉堡」作为一组推到右侧。 */
  .search { margin-left: auto; }
  .search input { width: 120px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 24px; letter-spacing: 1px; }
  .article { padding: 22px 18px; }
  .article h1 { font-size: 21px; }
  .pn { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .zone { grid-template-columns: 1fr; }
  .search { display: none; }
  /* 搜索框隐藏后，靠它撑开的 margin-left:auto 一起失效，汉堡会重新贴回站名旁边。
     这里让汉堡自己吃掉剩余空间，贴到右边距。 */
  .nav-toggle { margin-left: auto; }
  .post .thumb { width: 84px; height: 68px; font-size: 15px; }
  .hero { padding: 36px 0 42px; }
  .notice .wrap { gap: 9px; padding-left: 12px; padding-right: 12px; }
  .notice .items { gap: 28px; }
}

/* ============ 内容纠错（文章底部，免登录留言） ============ */
.cm-block { margin-top: 34px; padding-top: 26px; border-top: 1px solid #e9f0f5; }
.cm-block .sec-head { margin-bottom: 14px; }
.cm-block .sec-head .badge { background: #e2f1f9; color: var(--primary); }
.cm-hint { margin-left: auto; font-size: 12px; color: #9db1c2; }

/* 已通过的纠错列表 */
.cm-list { display: grid; gap: 12px; margin-bottom: 20px; }
.cm-item { display: flex; gap: 11px; padding: 13px 15px; background: #f7fbfd; border-radius: 9px; border: 1px solid #eaf2f8; }
.cm-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e2f1f9; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.cm-main { min-width: 0; flex: 1; }
.cm-meta { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; }
.cm-meta b { color: #23415a; font-weight: 600; }
.cm-meta time { color: #9db1c2; font-size: 11.5px; }
.cm-text { margin-top: 5px; font-size: 13.5px; color: #3c5268; line-height: 1.8; word-break: break-word; }
.cm-empty { font-size: 13px; color: #8aa0b3; background: #f7fbfd; border: 1px dashed #dde9f1; border-radius: 9px; padding: 16px 18px; margin-bottom: 20px; line-height: 1.8; }

/* 提交表单 */
.cm-form { background: #fbfdfe; border: 1px solid #e8f1f7; border-radius: 10px; padding: 16px 18px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-field { display: block; margin-bottom: 12px; }
.cm-field > span { display: block; font-size: 12.5px; color: #5b7389; margin-bottom: 5px; }
/* 「换一个」昵称：小号文字按钮，跟在标签后面 */
.cm-reroll {
  margin-left: 8px; border: 0; background: none; padding: 0; font-size: 12px;
  color: var(--primary); cursor: pointer; font-family: inherit;
}
.cm-reroll:hover { text-decoration: underline; }
.cm-field input, .cm-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #dbe7f0; border-radius: 8px;
  padding: 9px 12px; font-size: 13.5px; color: #2b3a4a; background: #fff; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s; font-family: inherit;
}
.cm-field input:focus, .cm-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 127, 184, 0.1);
}
.cm-field textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.cm-actions { display: flex; align-items: center; gap: 12px; }
.cm-tip { font-size: 11.5px; color: #9db1c2; }
.cm-submit {
  margin-left: auto; border: 0; border-radius: 20px; background: var(--primary); color: #fff;
  padding: 9px 26px; font-size: 13.5px; cursor: pointer; transition: 0.18s;
}
.cm-submit:hover { background: var(--primary-dark, #15699e); }
.cm-submit:disabled { opacity: 0.6; cursor: default; }
.cm-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
.cm-msg.is-ok { color: #2e7d5b; }
.cm-msg.is-err { color: #c0392b; }
/* 蜜罐字段：真人看不见，机器人会填 */
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .cm-row { grid-template-columns: 1fr; }
  .cm-hint { display: none; }
}

/* 打印 */
@media print {
  .nav, .notice, .site-footer, .side, .article-side, .share, .a-actions, .pn, .related, .cm-form { display: none !important; }
  .article { box-shadow: none; padding: 0; }
}

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12, 24, 34, 0.9);
  display: grid; place-items: center; padding: 30px; cursor: zoom-out;
  animation: lbIn 0.2s ease-out;
}
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.article-body img { cursor: zoom-in; }
.article-body pre:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .notice .items { animation: none; }
}

/* ==================== 实用工具箱 ==================== */
.tool-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px;
}
.tool-tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  background: #fff; border: 1px solid #dbe7ef; color: #37617e;
}
.tool-tabs a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.tool-panel {
  background: #fff; border: 1px solid #e2ecf2; border-radius: var(--radius);
  padding: 20px 22px; margin: 16px 0; scroll-margin-top: 70px;
}
.tool-panel h2 {
  font-size: 17px; color: #1c5f8a; display: flex; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.tool-panel .tool-sub { font-size: 12.5px; font-weight: 400; color: #7e94a6; }
.tool-note {
  margin: 10px 0 14px; font-size: 12.5px; line-height: 1.75; color: #6b8091;
  background: #f4f9fc; border-left: 3px solid var(--primary); border-radius: 4px;
  padding: 9px 12px;
}
.tool-tip {
  margin-top: 12px; font-size: 12.5px; line-height: 1.75; color: #708596;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tool-table th, .tool-table td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid #eef3f7;
  vertical-align: top; white-space: nowrap;
}
.tool-table th { background: #f5f9fc; color: #4a6478; font-weight: 600; font-size: 12.5px; }
.tool-table tbody tr:hover { background: #fafdff; }
.tool-table td:last-child { white-space: normal; min-width: 160px; }
.tool-table .muted { display: block; font-size: 12px; color: #9aabb9; font-weight: 400; }
.tool-empty { text-align: center; color: #8497a6; padding: 22px 10px !important; }
.tool-back { display: block; margin-top: 3px; font-size: 12px; color: var(--accent); }

.tide-tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px;
}
.tide-big { background: #fdecea; color: #c0392b; }
.tide-mid { background: #eef6fb; color: #1d7fb8; }
.tide-small { background: #f2f5f7; color: #7b8f9e; }

.tool-search { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.tool-search input[type="search"] {
  flex: 1 1 240px; padding: 8px 12px; border: 1px solid #d9e5ee;
  border-radius: 6px; font-size: 13.5px; color: #33506a;
}
.tool-search button {
  padding: 8px 18px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 13.5px;
}
.tool-search button:hover { background: var(--primary-dark); }
.tool-reset { align-self: center; font-size: 13px; color: #7b8f9e; }

@media (max-width: 640px) {
  .tool-panel { padding: 16px 14px; }
  .tool-table { font-size: 12.5px; }
  .tool-table th, .tool-table td { padding: 8px 7px; }
}

/* ---------- 门票与预约（/ticket.html） ---------- */
.tk-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 16px; font-size: 13.5px; color: #4a6076; }
.tk-summary b { color: var(--primary); font-size: 16px; margin: 0 2px; }

.tk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 22px; }
.tk-card { background: #fff; border: 1px solid #e2ecf2; border-radius: var(--radius); padding: 16px 18px; }
.tk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tk-head h2 { font-size: 17px; color: #23415a; margin: 0; }
.tk-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tk-badge.is-must { background: #fdecea; color: #c0392b; }
.tk-badge.is-ok { background: #eaf4fb; color: var(--primary-dark, #15699e); }
.tk-badge.is-free { background: #eef7ee; color: #2e7d32; }
.tk-badge.is-na { background: #f1f4f6; color: #6d8698; }

.tk-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0 0 8px; }
.tk-meta div { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.7; }
.tk-meta dt { color: #6d8698; flex: none; }
.tk-meta dd { margin: 0; color: #23415a; }
.tk-note { font-size: 13px; color: #5a7286; line-height: 1.7; margin: 6px 0 0; }
.tk-guide { font-size: 13px; color: #5a7286; margin: 8px 0 0; line-height: 1.8; }
.tk-guide a { color: var(--primary); margin-right: 12px; }
.tk-guide a:hover { text-decoration: underline; }

.tk-checklist { margin: 10px 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.9; color: #3c5568; }
.tk-checklist li { margin-bottom: 6px; }
.tk-checklist b { color: #23415a; }

.tool-more { margin: 18px 0 0; font-size: 14px; }
.tool-more a { color: var(--primary); }
.tool-more a:hover { text-decoration: underline; }
.tool-tabs-n { display: inline-block; margin-left: 5px; background: var(--primary); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 8px; line-height: 16px; vertical-align: 1px; }

@media (max-width: 760px) {
  .tk-list { grid-template-columns: 1fr; }
  .tk-meta { grid-template-columns: 1fr; }
}

.tk-faq { margin: 10px 0 4px; }
.tk-faq-item { padding: 10px 0; border-bottom: 1px dashed #e2ecf2; }
.tk-faq-item:last-child { border-bottom: 0; }
.tk-faq-item h3 { font-size: 15px; color: #23415a; margin: 0 0 4px; }
.tk-faq-item p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #4a6076; }

.tk-rel { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 2; }
.tk-rel a { color: var(--primary); }
.tk-rel a:hover { text-decoration: underline; }

/* ---------- 长尾词页（/kw/<id>.html） ---------- */
.kw-meta { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 13px; color: #6d8698; }
.kw-tag { background: #eaf4fb; color: var(--primary-dark, #15699e); padding: 3px 10px; border-radius: 12px; font-size: 12.5px; }

/* 长尾页正文：导语 / 一句话回答 / 要点 */
.kw-answer {
  margin: 0 0 16px; padding: 13px 16px; background: #f5fafd; border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.85; color: #35506a;
}
.kw-lead { margin: 0 0 18px; }
.kw-lead p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.9; color: #4a5f73; }
.kw-lead p:last-child { margin-bottom: 0; }
.kw-points { margin: 0 0 20px; }
.kw-points h2 { font-size: 16px; color: #23415a; margin: 0 0 10px; }
.kw-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kw-points li {
  background: #fff; border: 1px solid #e6eef4; border-radius: 8px; padding: 9px 13px;
  font-size: 14px; color: #35506a; line-height: 1.6;
}
.kw-points li::before { content: "·"; color: var(--primary); font-weight: 700; margin-right: 7px; }
.kw-src {
  margin-left: 8px; font-size: 12px; color: #93a8ba; text-decoration: none;
  border-bottom: 1px dashed #cfe0eb;
}
.kw-src:hover { color: var(--primary); border-bottom-color: var(--primary); }
.kw-points-tip { margin: 9px 0 0; font-size: 12px; color: #93a8ba; }
.kw-list-title { font-size: 16px; color: #23415a; margin: 4px 0 12px; }

/* 侧栏「大家还在问」：纯文字列表，不带序号圆点 */
.rank-list.is-plain li a { display: block; padding: 3px 0; }
.rank-list.is-plain li a:hover { color: var(--primary); }
.rank-list.is-plain { counter-reset: none; }

/* ---------- 长尾词索引（/kw.html） ---------- */
.kw-group { margin: 0 0 22px; }
.kw-group h2 { font-size: 16px; color: #23415a; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
.kw-group-n { font-size: 12px; color: #93a8ba; font-weight: 400; }
.kw-group .chip i { font-style: normal; color: #a8bccd; font-size: 11px; margin-left: 5px; }

/* ---------- 工具箱总览 / 独立工具页 ---------- */
.tool-h2 { font-size: 16px; color: #23415a; font-weight: 600; margin: 22px 0 12px; }
.tool-today { background: #f7fbfd; border: 1px solid #e2ecf2; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 20px; }
.tool-today-h { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #23415a; margin-bottom: 12px; }
.tool-today ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.tool-today li { display: flex; flex-direction: column; gap: 2px; }
.tool-today li span { font-size: 12px; color: #8299ab; }
.tool-today li b { font-size: 16px; color: var(--primary-dark); font-variant-numeric: tabular-nums; }

.tool-entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 20px; }
.tool-entry { display: block; padding: 18px; border: 1px solid #e2ecf2; border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tool-entry:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(29,127,184,.1); }
.tool-entry-ico { font-size: 24px; display: block; margin-bottom: 8px; }
.tool-entry b { display: block; font-size: 16px; color: #23415a; margin-bottom: 6px; }
.tool-entry-sub { font-size: 13px; color: #6d8698; line-height: 1.5; }

/* 赶海建议 / 坐船提示 */
.tide-best { background: #f0f8fd; border-left: 3px solid var(--primary); border-radius: 4px; padding: 14px 18px; margin: 0 0 20px; }
.tide-best > b { display: block; font-size: 14px; color: #23415a; margin-bottom: 8px; }
.tide-best ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tide-best li { font-size: 14px; color: #3c5a72; }
.tk-checklist { margin: 0; padding-left: 20px; }
.tk-checklist li { margin-bottom: 10px; font-size: 14px; line-height: 1.7; color: #3c5a72; }
.tk-checklist li b { color: #23415a; }
.chip.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.is-on i { color: rgba(255,255,255,.75); }

/* ============ 心愿供灯 ============

   配色全部走 --qf-* 变量，由 qf_palette() 注入到 .qf-page 上。
   两套预设：qf-classic（跟随站点主色）/ qf-temple（宣纸 + 朱砂 + 金）。
   变量带兜底值，即使没注入也不会变成透明或黑屏。 */

.qf-page {
  --qf-bg: var(--page-bg, #eef4f7);
  --qf-card: #fff;
  --qf-line: #e2ebf1;
  --qf-ink: #1b3348;
  --qf-ink2: #5d7789;
  --qf-ink3: #8aa0b3;
  --qf-primary: var(--primary, #1d7fb8);
  --qf-primaryD: var(--primary-dark, #15699e);
  --qf-accent: #e8543f;
  --qf-soft: rgba(29, 127, 184, .09);
  --qf-hero: linear-gradient(135deg, #15699e, #1d7fb8);
  --qf-serif: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

/* ---------- 简介 ---------- */
.qf-hero { text-align: center; padding: 34px 0 20px; }
.qf-hero h1 {
  font-family: var(--qf-serif);
  font-size: 30px; letter-spacing: .02em; color: var(--qf-ink);
}
.qf-hero-sub { margin: 10px auto 0; max-width: 580px; font-size: 14.5px; color: var(--qf-ink2); }
.qf-hero-sm h1 { font-size: 24px; }

/* ---------- 统计：一行三项，和目标站一致 ---------- */
.qf-stats {
  text-align: center; font-size: 13.5px; color: var(--qf-ink3);
  margin: 0 0 18px; letter-spacing: .02em;
}
.qf-stats b { font-size: 17px; color: var(--qf-primary); font-weight: 700; margin: 0 2px; }
.qf-sep { margin: 0 10px; color: var(--qf-line); }

/* ---------- 供灯播报 ---------- */
.qf-notice {
  background: var(--qf-card); border: 1px solid var(--qf-line);
  border-radius: 12px; padding: 15px 20px; margin: 0 0 22px;
}
.qf-notice-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--qf-ink);
  margin-bottom: 9px; letter-spacing: .04em;
}
.qf-notice-ico { font-size: 13px; }
.qf-notice-list { display: grid; gap: 5px; }
.qf-notice-list li {
  font-size: 13px; color: var(--qf-ink2);
  display: flex; align-items: center; gap: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qf-notice-list em { font-style: normal; color: var(--qf-primary); font-weight: 600; }
.qf-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--qf-accent); flex: 0 0 auto; }
.qf-notice-empty { font-size: 13px; color: var(--qf-ink3); }

/* ---------- 表单 ---------- */
.qf-form {
  background: var(--qf-card); border: 1px solid var(--qf-line);
  border-radius: 14px; padding: 8px 26px 26px; margin: 0 0 30px;
}
.qf-h2 {
  font-family: var(--qf-serif);
  font-size: 16px; font-weight: 700; color: var(--qf-ink);
  letter-spacing: .04em; margin: 26px 0 14px;
  padding-left: 12px; position: relative;
}
.qf-h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--qf-primary);
}

/* ---------- 字段 ---------- */
.qf-field { margin-bottom: 16px; }
.qf-field:last-child { margin-bottom: 0; }
.qf-field-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: start; }
.qf-label { display: block; font-size: 13px; color: var(--qf-ink2); margin-bottom: 7px; }
.qf-input, .qf-textarea {
  width: 100%; border: 1px solid var(--qf-line); border-radius: 9px;
  padding: 10px 13px; font-size: 14px; color: var(--qf-ink); background: var(--qf-bg);
  outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
}
.qf-input:focus, .qf-textarea:focus {
  background: var(--qf-card); border-color: var(--qf-primary);
  box-shadow: 0 0 0 3px var(--qf-soft);
}
.qf-textarea { resize: vertical; min-height: 78px; line-height: 1.7; }
.qf-count { text-align: right; font-size: 12px; color: var(--qf-ink3); margin-top: 5px; }
.qf-privacy { font-size: 12.5px; color: var(--qf-ink3); margin: 12px 0 0; }

/* ---------- chips（单选） ---------- */
.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-chip { position: relative; }
.qf-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.qf-chip label {
  display: inline-block; font-size: 13.5px; color: var(--qf-ink2);
  padding: 7px 15px; border: 1px solid var(--qf-line); border-radius: 999px;
  background: var(--qf-card); cursor: pointer; transition: all .16s;
}
.qf-chip label:hover { border-color: var(--qf-primary); color: var(--qf-primary); }
.qf-chip input:checked + label {
  background: var(--qf-primary); color: #fff; border-color: var(--qf-primary); font-weight: 600;
}
.qf-chip input:focus-visible + label { outline: 2px solid var(--qf-primary); outline-offset: 2px; }
.qf-chips-lg .qf-chip label { padding: 11px 22px; font-size: 14px; }
.qf-chip-price { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }

/* ---------- 六盏灯 ---------- */
.qf-lampgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qf-lampcard { position: relative; }
.qf-lampcard input { position: absolute; opacity: 0; width: 0; height: 0; }
.qf-lampcard label {
  display: flex; flex-direction: column; gap: 4px;
  height: 100%; padding: 16px 14px;
  border: 1px solid var(--qf-line); border-radius: 11px; background: var(--qf-card);
  cursor: pointer; transition: all .16s;
}
.qf-lampcard label:hover { border-color: var(--qf-primary); transform: translateY(-1px); }
.qf-lampcard input:checked + label {
  border-color: var(--qf-primary); background: var(--qf-soft);
  box-shadow: inset 0 0 0 1px var(--qf-primary);
}
.qf-lampcard input:focus-visible + label { outline: 2px solid var(--qf-primary); outline-offset: 2px; }
.qf-lampcard-ico { font-size: 22px; line-height: 1; }
.qf-lampcard-name { font-size: 14.5px; font-weight: 700; color: var(--qf-ink); }
.qf-lampcard-wish { font-size: 12px; color: var(--qf-ink3); line-height: 1.55; }

/* ---------- 需供奉 + 提交 ---------- */
.qf-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--qf-line);
  flex-wrap: wrap;
}
.qf-total { font-size: 13.5px; color: var(--qf-ink2); }
.qf-total b { font-size: 22px; color: var(--qf-accent); margin-left: 8px; vertical-align: -1px; }
.qf-btn {
  background: var(--qf-primary); color: #fff; border: none; border-radius: 10px;
  padding: 13px 34px; font-size: 15.5px; font-weight: 700;
  transition: background .16s, transform .16s;
}
.qf-btn:hover { background: var(--qf-primaryD); transform: translateY(-1px); }
.qf-btn-ghost {
  display: inline-block; background: var(--qf-card); color: var(--qf-primary);
  border: 1px solid var(--qf-primary); padding: 10px 24px; font-size: 14px;
}

/* ---------- 提示条 ---------- */
.qf-alert {
  background: #fef3f1; border: 1px solid #f6cdc6; color: #b23a2c;
  border-radius: 9px; padding: 11px 15px; font-size: 13.5px; margin: 18px 0 4px;
}

/* 蜜罐：真人看不见，机器人会填 */
.qf-hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- 灯墙：夜里亮着的一排宫灯 ----------

   灯点亮才像灯，摆在一堆白卡片里只是「有个图标」。
   所以灯墙单独压成深色区（--qf-night），每盏灯带光晕和顶盖，
   顶上一点火苗用纯 CSS 画，prefers-reduced-motion 下不动。 */

.qf-wall { margin: 0 0 40px; }
.qf-wall-h { margin-top: 0; }

.qf-night {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 78% at 50% 0%, var(--qf-night2) 0%, var(--qf-night) 62%, #120c09 100%);
  border-radius: 16px;
  padding: 26px 22px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 40px rgba(20, 12, 8, .28);
}

/* 横贯整面的暖光带：模拟一排灯照在墙上的光 */
.qf-night::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 34%;
  height: 150px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 50%, rgba(255, 176, 74, .16), transparent 72%);
}

.qf-night-tip {
  position: relative; text-align: center;
  font-size: 12.5px; color: rgba(255, 232, 200, .62);
  margin: 0 0 24px; letter-spacing: .04em;
}
.qf-night-tip span { margin-right: 5px; }

.qf-night-empty {
  position: relative; text-align: center;
  font-size: 13.5px; color: rgba(255, 232, 200, .5);
  padding: 34px 10px; margin: 0;
}

/* 一排灯，自动换行，居中 */
.qf-night-row {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 26px 20px;
}

/* ---------- 单盏灯 ---------- */
.qf-lantern {
  --ln: #d8402f;            /* 灯身主色 */
  --ln-lit: #ff9a4d;        /* 火苗与光晕 */
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 108px; flex: 0 0 auto;
  transition: transform .22s ease;
}
.qf-lantern:hover { transform: translateY(-3px); }

/* 会摇的部分：吊绳 + 光晕 + 灯身。
   吊点放在顶端（transform-origin 0），像绳子真挂在梁上；
   下面的称呼和心愿不放进来，否则文字一直在动，读起来晃眼。 */
.qf-ln-swing {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: qf-sway 4.4s ease-in-out infinite;
  will-change: transform;
}
/* 周期和相位都错开，否则整面墙整齐划一地摆，像机器 */
.qf-lantern:nth-child(2n) .qf-ln-swing { animation-duration: 5.3s; animation-delay: -1.1s; }
.qf-lantern:nth-child(3n) .qf-ln-swing { animation-duration: 3.9s; animation-delay: -2.4s; }
.qf-lantern:nth-child(5n) .qf-ln-swing { animation-duration: 6.1s; animation-delay: -3.2s; }
/* 指上去先停住，方便点准 */
.qf-lantern:hover .qf-ln-swing { animation-play-state: paused; }

/* 吊绳 */
.qf-ln-hanger {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255, 220, 170, .10), rgba(255, 220, 170, .55));
}

/* 光晕：灯亮着，周围才有这圈雾。
   用 margin 居中而不是 transform，避免和呼吸动画的 scale 打架。 */
.qf-ln-glow {
  position: absolute; left: 50%; top: 77px; width: 132px; height: 132px;
  margin: -66px 0 0 -66px;
  background: radial-gradient(circle, rgba(255, 170, 80, .34) 0%, rgba(255, 150, 60, .12) 42%, transparent 68%);
  pointer-events: none;
  animation: qf-breathe 4.2s ease-in-out infinite;
}

/* 换成图片灯笼时（后台「灯笼图片」填了地址） */
.qf-ln-img {
  position: relative;
  width: 74px; height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 170, 80, .45));
  user-select: none;
}

/* 灯身：上窄下宽的宫灯轮廓 */
.qf-ln-body {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 74px; height: 86px;
  background:
    linear-gradient(180deg, rgba(255, 235, 190, .30), rgba(255, 200, 130, .06) 55%, rgba(120, 30, 18, .28)),
    var(--ln);
  border-radius: 46% 46% 40% 40% / 30% 30% 22% 22%;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, .55),
    inset 0 -10px 18px rgba(90, 20, 10, .35),
    0 6px 20px rgba(255, 140, 60, .22);
}

/* 上下金箍 */
.qf-ln-body::before,
.qf-ln-body::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 5px;
  background: linear-gradient(180deg, #f0cf8b, #b8892f);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 210, 140, .35);
}
.qf-ln-body::before { top: -1px; }
.qf-ln-body::after { bottom: -1px; }

/* 火苗：灯芯那点亮，靠上方一点微动 */
.qf-ln-body .qf-ln-name {
  position: relative; z-index: 2;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff3d8;
  text-shadow: 0 1px 3px rgba(80, 20, 8, .55);
  writing-mode: horizontal-tb;
}

/* 灯名下面的小吊穗 */
.qf-ln-tassel {
  width: 2px; height: 14px;
  background: linear-gradient(180deg, #b8892f, transparent);
  margin-top: -2px;
}

/* 灯下的称呼与心愿 */
.qf-ln-devotee {
  margin-top: 12px; font-size: 12px;
  color: rgba(255, 232, 200, .82);
  max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qf-ln-wish {
  margin-top: 4px; font-size: 11.5px; line-height: 1.55;
  color: rgba(255, 232, 200, .48);
  text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.qf-ln-wish-off { font-style: italic; opacity: .7; }

/* 六种灯的色相：整面墙不是一片红 */
.qf-lantern--red    { --ln: #cf3b2c; }
.qf-lantern--gold   { --ln: #c08a2c; }
.qf-lantern--rose   { --ln: #b8425f; }
.qf-lantern--peach  { --ln: #c9623f; }
.qf-lantern--bluish { --ln: #4a7f96; }
.qf-lantern--violet { --ln: #7a5a94; }

/* 火苗呼吸：只用 opacity/transform，便宜 */
@keyframes qf-breathe {
  0%, 100% { opacity: .82; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.07); }
}

/* 左右摇晃：绕吊点转，±2.4° 幅度。
   角度再大就显得风很大，再小看不出来。 */
@keyframes qf-sway {
  0%   { transform: rotate(-2.4deg); }
  50%  { transform: rotate(2.4deg); }
  100% { transform: rotate(-2.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .qf-ln-glow { animation: none; }
  .qf-ln-swing { animation: none; }
  .qf-lantern { transition: none; }
  .qf-lantern:hover .qf-ln-swing { animation: none; }
}

/* 灯墙里的分页要反色，深底上的深字看不见 */
.qf-night .qf-pager { margin-top: 26px; }
.qf-night .qf-page-btn {
  background: rgba(255, 240, 215, .08);
  border-color: rgba(255, 225, 180, .22);
  color: rgba(255, 236, 210, .9);
}
.qf-night .qf-page-btn:hover {
  background: rgba(255, 240, 215, .16);
  border-color: rgba(255, 225, 180, .45);
  color: #fff6e4;
}
.qf-night .qf-page-off { opacity: .35; }
.qf-night .qf-page-info { color: rgba(255, 232, 200, .55); }

/* ---------- 分页 ---------- */
.qf-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.qf-page-btn {
  font-size: 13.5px; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--qf-line); background: var(--qf-card); color: var(--qf-ink2);
}
.qf-page-btn:hover { border-color: var(--qf-primary); color: var(--qf-primary); }
.qf-page-off { color: var(--qf-ink3); opacity: .6; }
.qf-page-info { font-size: 12.5px; color: var(--qf-ink3); }

/* ---------- 功德卡 ---------- */
.qf-card {
  max-width: 520px; margin: 0 auto 20px; background: var(--qf-card);
  border: 1px solid var(--qf-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 34px var(--qf-soft);
}
.qf-card-top {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px; background: var(--qf-hero); color: #fff;
}
.qf-card-ico { font-size: 30px; line-height: 1; }
.qf-card-name { font-size: 19px; font-weight: 700; }
.qf-card-code { font-size: 12.5px; color: rgba(255, 255, 255, .82); margin-top: 3px; }
.qf-card-code b { letter-spacing: .1em; color: #fff; }
.qf-card-body { padding: 6px 24px 20px; }
.qf-card-dl > div { padding: 13px 0; border-bottom: 1px solid var(--qf-line); }
.qf-card-dl > div:last-child { border-bottom: none; }
.qf-card-dl dt { font-size: 12.5px; color: var(--qf-ink3); margin-bottom: 4px; }
.qf-card-dl dd { font-size: 14.5px; color: var(--qf-ink); margin: 0; }
.qf-card-wish { font-style: italic; color: var(--qf-ink2); line-height: 1.75; }
.qf-tag {
  display: inline-block; font-size: 11.5px; color: var(--qf-primary);
  background: var(--qf-soft); border-radius: 4px;
  padding: 1px 7px; margin-left: 8px; vertical-align: 1px;
}
.qf-card-tips { text-align: center; max-width: 520px; margin: 0 auto; }
.qf-card-tips p { font-size: 13px; color: var(--qf-ink3); margin: 0 0 14px; }

/* ============ 暖色皮肤（寺庙调）============
   只加风格化的部分：衬线标题、金色描边、灯卡选中时的描金。
   颜色本身仍然来自 --qf-*，所以后台改了色值这里也跟着变。 */
.qf-page.qf-temple {
  --qf-serif: "Songti SC", "SimSun", "Noto Serif SC", serif;
}
.qf-temple .qf-hero h1 { font-weight: 600; letter-spacing: .12em; }
.qf-temple .qf-hero-sub { letter-spacing: .04em; }
.qf-temple .qf-h2 { font-weight: 600; letter-spacing: .1em; }
.qf-temple .qf-form {
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--qf-line), 0 14px 40px rgba(45, 35, 32, .05);
}
.qf-temple .qf-lampcard label { border-radius: 4px; }
.qf-temple .qf-lampcard input:checked + label {
  box-shadow: inset 0 0 0 1px var(--qf-accent), 0 0 0 1px var(--qf-accent);
}
.qf-temple .qf-chip label { border-radius: 3px; }
.qf-temple .qf-btn { border-radius: 3px; letter-spacing: .14em; }
.qf-temple .qf-night { border-radius: 6px; }
.qf-temple .qf-ln-body { border-radius: 44% 44% 38% 38% / 28% 28% 20% 20%; }
.qf-temple .qf-ln-devotee { font-family: var(--qf-serif); letter-spacing: .06em; }
.qf-temple .qf-card { border-radius: 4px; }
.qf-temple .qf-card-name { font-weight: 600; letter-spacing: .06em; }
.qf-temple .qf-notice { border-radius: 4px; }

/* ============ 整页暖色（body.qf-warm）============

   上面 .qf-temple 只管供灯内容区，页头页脚还是全站的蓝调，拼在一起割裂。
   这里把整页一起换掉：重定义全站主题变量（导航、搜索、页脚、链接跟着变），
   再覆盖那些写死成浅蓝的色值（#eaf4fa、#cfe0ea 这类）。

   整页底图是海面实拍（bg.webp），冷灰蓝，压不到暖色里，
   所以暖色版换成暖色渐变 + 两团极淡的朱砂/金晕，不用照片。 */

body.qf-warm {
  --primary: #a8322a;
  --primary-dark: #82211a;
  --accent: #b8892f;
  --page-bg: #f7f1e5;
  color: #2d2320;
}

body.qf-warm::before {
  background:
    radial-gradient(1100px 460px at 50% -6%, rgba(184, 137, 47, 0.13), transparent 64%),
    radial-gradient(820px 380px at 50% 104%, rgba(168, 50, 42, 0.07), transparent 62%),
    linear-gradient(180deg, #f7f1e5 0%, #f5eddd 58%, #f2e8d5 100%);
}

/* ---- 页头 ---- */
body.qf-warm .nav {
  background: rgba(253, 250, 242, 0.94);
  box-shadow: 0 1px 0 #e8dcc6, 0 6px 22px rgba(120, 90, 60, 0.06);
}
body.qf-warm .logo { color: #82211a; }
body.qf-warm .logo .mark {
  background: linear-gradient(135deg, #a8322a, #c9a24a);
  border-radius: 6px;
}
body.qf-warm .menu a { color: #6d5f4f; }
body.qf-warm .menu a:hover { background: #f4ead9; color: #82211a; }
body.qf-warm .menu a.on { background: #efe2cc; color: #82211a; }

/* ---- 搜索 ---- */
body.qf-warm .search input {
  background: #fffdf7; border-color: #e2d5bc; color: #2d2320;
}
body.qf-warm .search input::placeholder { color: #a5947e; }
body.qf-warm .search input:focus { border-color: #a8322a; }
body.qf-warm .search button { background: #a8322a; }
body.qf-warm .nav-toggle {
  background: #fffdf7; border-color: #e2d5bc; color: #6d5f4f;
}

/* ---- 面包屑 ---- */
body.qf-warm .breadcrumb a { color: #8a7a64; }
body.qf-warm .breadcrumb a:hover { color: #a8322a; }
body.qf-warm .breadcrumb .sep { color: #d3c4aa; }
body.qf-warm .breadcrumb [aria-current="page"] { color: #4a3c30; }

/* ---- 页脚 ---- */
body.qf-warm .site-footer {
  background: #fffdf7; border-top-color: #e8dcc6;
}
body.qf-warm .site-footer .links { color: #6d5f4f; }
body.qf-warm .site-footer .copy,
body.qf-warm .site-footer .copy a { color: #9c8c77; }
body.qf-warm .site-footer .copy a:hover { color: #a8322a; }

/* ---- 跳过导航 ---- */
body.qf-warm .skip-link { background: #a8322a; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .qf-field-row { grid-template-columns: 1fr; gap: 16px; }
  .qf-lampgrid { grid-template-columns: repeat(2, 1fr); }
  .qf-night-row { gap: 22px 12px; }
}
@media (max-width: 560px) {
  .qf-hero h1 { font-size: 24px; }
  .qf-form { padding: 6px 16px 20px; }
  .qf-lampgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qf-lampcard label { padding: 13px 11px; }
  .qf-submit { flex-direction: column; align-items: stretch; }
  .qf-btn { width: 100%; }
  .qf-stats .qf-sep { margin: 0 6px; }
  .qf-night { padding: 20px 12px 24px; border-radius: 12px; }
  .qf-lantern { width: 84px; }
  .qf-ln-body { width: 62px; height: 74px; }
  .qf-ln-glow { width: 108px; height: 108px; top: 50px; }
  .qf-ln-devotee, .qf-ln-wish { max-width: 84px; }
}
