/* 舟山旅游攻略网 · 前台样式（主题色由后台配置注入 :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);
}
.side h2 { 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; }
.a-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.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); }
.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 { 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); }

/* ============ 响应式 ============ */
@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; }
  .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; }
  .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; }
}

/* 打印 */
@media print {
  .nav, .notice, .site-footer, .side, .article-side, .share, .a-actions, .pn, .related { 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-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); }
