/* 第二批：墓型与费用、资讯索引与文章。加载在页面最后，覆盖 home-discovery / reading 的旧规则。
   只改视觉与触控，不改 data-* 钩子、费率、来源、城市与推广逻辑。 */
:root {
  --fn-radius: 16px;
  --fn-radius-s: 12px;
  --fn-shadow: 0 1px 2px rgb(16 94 83 / 6%), 0 6px 18px rgb(16 94 83 / 7%);
  --fn-hit: 48px;
}

/* ---------- 通用阅读骨架 ---------- */
body.news-reading { background: var(--site-bg, #f3f7f6); color: var(--site-ink, #203734); -webkit-text-size-adjust: 100%; }
.news-reading main {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  font-size: 1rem;
  line-height: 1.7;
}
.news-reading :is(h1, h2, h3, p, li, a, strong) { overflow-wrap: anywhere; word-break: normal; }
.news-reading :is(a, button, select, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--site-brand, #137c6c) 55%, transparent);
  outline-offset: 2px;
}
.news-reading :is(a, button) { -webkit-tap-highlight-color: transparent; }

/* ---------- 顶部返回条（费用页） ---------- */
[data-fee-browser] > nav.fee-top[aria-label="当前位置"] {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--site-bg, #f3f7f6) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--site-line, #d6e4de);
}
[data-fee-browser] .fee-top > a { min-height: var(--fn-hit); border-radius: var(--fn-radius-s); }
[data-fee-browser] .fee-home-copy strong { font-size: 1rem; color: var(--site-ink, #203734); }
[data-fee-browser] .fee-home-copy small { font-size: .8rem; color: var(--site-secondary, #455f59); }
[data-fee-browser] .fee-top .fee-top-list {
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--site-surface, #fff);
  border: 1px solid var(--site-line, #d6e4de);
  color: var(--site-strong, #105e53);
  font-size: .9rem;
  font-weight: 650;
}

/* ---------- 标题 ---------- */
.fee-heading { padding: 20px 2px 14px; }
.fee-heading h1 {
  font-size: clamp(1.5rem, 5.6vw, 2rem);
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .01em;
}
.fee-heading p { margin-top: 6px; font-size: .95rem; line-height: 1.6; color: var(--site-secondary, #455f59); }

/* ---------- 筛选面板 ---------- */
[data-fee-browser] .fee-filter-panel {
  padding: 12px;
  border: 1px solid var(--site-line, #d6e4de);
  border-radius: var(--fn-radius);
  background: var(--site-surface, #fff);
  box-shadow: var(--fn-shadow);
}
[data-fee-browser] .fee-controls { gap: 10px; }
[data-fee-browser] :is(.fee-city, .fee-type) { font-size: .95rem; font-weight: 600; color: var(--site-ink, #203734); }
[data-fee-browser] :is(.fee-city, .fee-type) select {
  min-height: var(--fn-hit);
  font-size: 1rem; /* 不低于 16px，避免 iOS 聚焦放大 */
  border-radius: var(--fn-radius-s);
  border: 1px solid var(--site-line, #d6e4de);
  background-color: var(--site-input, #f6f9f8);
  color: var(--site-ink, #203734);
}
[data-fee-browser] .fee-modes {
  min-height: var(--fn-hit);
  padding: 3px;
  border-radius: 999px;
  background: var(--site-tint, #e8f5f1);
}
[data-fee-browser] .fee-modes button {
  min-height: 42px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 650;
  color: var(--site-strong, #105e53);
  transition: background-color .15s ease, color .15s ease;
}
[data-fee-browser] .fee-modes button[aria-pressed="true"] {
  background: var(--site-brand, #137c6c);
  color: #fff;
  box-shadow: 0 2px 6px rgb(16 94 83 / 22%);
}
[data-fee-browser] .fee-refine { margin-top: 10px; gap: 8px 12px; }
[data-fee-browser] .fee-refine .fee-type select { min-width: 128px; max-width: 220px; }
[data-fee-browser] .fee-status { font-size: .9rem; color: var(--site-secondary, #455f59); }

/* ---------- 卡片 ---------- */
[data-fee-browser] .fee-items { gap: 12px; margin-top: 14px; }
[data-fee-browser] .fee-card {
  padding: 14px;
  border: 1px solid var(--site-line, #d6e4de);
  border-radius: var(--fn-radius);
  background: var(--site-surface, #fff);
  box-shadow: var(--fn-shadow);
}
.news-reading [data-fee-browser] .fee-card h2 {
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--site-ink, #203734);
}
[data-fee-browser] .fee-model { align-items: flex-start; gap: 12px; }
[data-fee-browser] .fee-model .fee-visual {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: var(--fn-radius-s);
  overflow: hidden;
  background: var(--site-tint, #e8f5f1);
}
/* 素材标识保留可见：缺实拍时用于说明“墓型图册 / 园林素材” */
[data-fee-browser] .fee-photo-label {
  font-size: .72rem;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgb(16 54 48 / 72%);
  color: #fff;
}
[data-fee-browser] .fee-copy { flex: 1 1 auto; }
[data-fee-browser] .fee-meta { font-size: .9rem; line-height: 1.55; }
[data-fee-browser] .fee-price {
  font-size: 1.14rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--site-strong, #105e53);
}
[data-fee-browser] .fee-card .fee-source {
  min-height: 40px;
  padding: 0 10px;
  margin-left: -10px;
  border-radius: 10px;
  font-size: .86rem;
  color: var(--site-strong, #105e53);
}
[data-fee-browser] .fee-card-actions { gap: 10px; margin-top: 12px; }
[data-fee-browser] :is(.fee-card-actions a, .fee-more) {
  min-height: var(--fn-hit);
  border-radius: var(--fn-radius-s);
  font-size: 1rem;
  font-weight: 650;
  transition: background-color .15s ease, transform .1s ease;
}
[data-fee-browser] .fee-card-actions .fee-primary { background: var(--site-brand, #137c6c); color: #fff; }
[data-fee-browser] .fee-card-actions .fee-primary:active { background: var(--site-strong, #105e53); }
[data-fee-browser] .fee-secondary { border-color: var(--site-line, #d6e4de); }
[data-fee-browser] :is(.fee-card-actions a, .fee-more):active { transform: scale(.98); }
[data-fee-browser] .fee-more { margin-top: 14px; background: var(--site-tint, #e8f5f1); color: var(--site-strong, #105e53); }
.news-reading [data-fee-browser] .fee-park-rates { margin-top: 10px; }
[data-fee-browser] .fee-park-rates li { padding: 8px 0; font-size: .95rem; line-height: 1.5; }
[data-fee-browser] .fee-park-rates strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-fee-browser] .fee-all { min-height: var(--fn-hit); padding: 0 4px; font-size: .98rem; }

/* ---------- 资讯索引 ---------- */
.news-reading .intro { font-size: 1rem; line-height: 1.7; color: var(--site-secondary, #455f59); }
.news-reading .discovery-topics {
  display: grid;
  grid-template-columns: .7fr repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0;
  padding: 2px 0 6px;
}
.news-reading .discovery-topics :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 3px;
  border: 1px solid var(--site-line, #d6e4de);
  border-radius: 999px;
  background: var(--site-surface, #fff);
  color: var(--site-strong, #105e53);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.news-reading .discovery-topics :is([aria-current="page"], [aria-pressed="true"]) {
  background: var(--site-brand, #137c6c);
  border-color: var(--site-brand, #137c6c);
  color: #fff;
}
.news-reading .discovery-topic {
  margin: 0 0 14px;
  padding: 14px 14px 6px;
  border: 1px solid var(--site-line, #d6e4de);
  border-radius: var(--fn-radius);
  background: var(--site-surface, #fff);
  box-shadow: var(--fn-shadow);
}
.news-reading .discovery-topic :is(h2, h3) {
  margin: 0 0 4px;
  padding-left: 10px;
  border-left: 4px solid var(--site-brand, #137c6c);
  font-size: 1.1rem;
  line-height: 1.4;
}
.news-reading .discovery-topic ul { list-style: none; margin: 0; padding: 0; }
.news-reading .discovery-topic li + li { border-top: 1px solid var(--site-line, #d6e4de); }
.news-reading .discovery-topic li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 2px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--site-ink, #203734);
  text-decoration: none;
}
.news-reading .discovery-topic li a:active { background: var(--site-tint, #e8f5f1); }
.news-reading .discovery-empty {
  padding: 28px 16px;
  border: 1px dashed var(--site-line, #d6e4de);
  border-radius: var(--fn-radius);
  background: var(--site-surface, #fff);
  text-align: center;
  font-size: .98rem;
}

/* ---------- 文章正文 ---------- */
.news-reading.reading-with-actions main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.news-reading main > h1, .news-reading article h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.45rem, 5.6vw, 2rem);
  line-height: 1.35;
  font-weight: 750;
  color: var(--site-ink, #203734);
}
.news-reading :is(article, .reading-book) p { font-size: 1.0625rem; line-height: 1.85; margin: .8em 0; }
.news-reading :is(article, .reading-book) h2 {
  margin: 1.6em 0 .6em;
  padding-left: 10px;
  border-left: 4px solid var(--site-brand, #137c6c);
  font-size: 1.22rem;
  line-height: 1.45;
}
.news-reading :is(article, .reading-book) h3 { margin: 1.3em 0 .5em; font-size: 1.08rem; line-height: 1.5; }
.news-reading :is(article, .reading-book) :is(ul, ol) { padding-left: 1.3em; }
.news-reading :is(article, .reading-book) li { margin: .35em 0; font-size: 1.0625rem; line-height: 1.75; }
.news-reading :is(article, .reading-book) table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.news-reading :is(article, .reading-book) :is(th, td) { padding: 8px 10px; border: 1px solid var(--site-line, #d6e4de); white-space: nowrap; }
.news-reading :is(article, .reading-book) img { max-width: 100%; height: auto; border-radius: var(--fn-radius-s); }
.news-reading .reading-article-cover { border-radius: var(--fn-radius); overflow: hidden; }

.news-reading .reading-park-card {
  border: 1px solid var(--site-line, #d6e4de);
  border-radius: var(--fn-radius);
  background: var(--site-surface, #fff);
  box-shadow: var(--fn-shadow);
  overflow: hidden;
}
.news-reading .reading-park-name { font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.news-reading .reading-park-place { font-size: .9rem; color: var(--site-secondary, #455f59); }
.news-reading .reading-park-action,
.news-reading .reading-actions :is(a, button),
.news-reading .park-article-links a,
.news-reading .reading-related a {
  min-height: 44px;
  box-sizing: border-box;
}
.news-reading .reading-actions :is(a, button) { font-size: 1rem; font-weight: 650; }
.news-reading .reading-related-head { font-size: 1.1rem; font-weight: 700; }

/* ---------- 页脚备案 ---------- */
.news-reading .reading-legal { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--site-line, #d6e4de); font-size: .85rem; line-height: 1.6; }
.news-reading .reading-legal-links a { display: inline-flex; align-items: center; min-height: 40px; }

/* ---------- 窄屏 320–374 ---------- */
@media (max-width: 374px) {
  .news-reading main { padding-inline: 12px; }
  .news-reading main > nav[aria-label="当前位置"] { margin-inline: -12px; }
  [data-fee-browser] > nav.fee-top[aria-label="当前位置"] { margin-inline: -12px; }
  [data-fee-browser] .fee-controls { grid-template-columns: 1fr; }
  [data-fee-browser] .fee-modes { width: 100%; }
  [data-fee-browser] .fee-refine .fee-type { width: 100%; }
  [data-fee-browser] .fee-refine .fee-type select { flex: 1; max-width: none; }
  [data-fee-browser] .fee-model .fee-visual { flex-basis: 80px; width: 80px; height: 80px; }
  [data-fee-browser] .fee-card { padding: 12px; }
  [data-fee-browser] .fee-card-actions { flex-wrap: wrap; }
  [data-fee-browser] .fee-card-actions a { flex: 1 1 120px; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 760px) {
  .news-reading main { padding-inline: 24px; }
  [data-fee-browser] > nav.fee-top[aria-label="当前位置"] { margin-inline: -24px; padding-inline: 24px; }
  [data-fee-browser] .fee-filter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  [data-fee-browser] .fee-controls { flex: 1 1 420px; max-width: 520px; }
  [data-fee-browser] .fee-refine { margin-top: 0; flex: 1 1 260px; }
  [data-fee-browser] .fee-card:hover { border-color: color-mix(in srgb, var(--site-brand, #137c6c) 40%, var(--site-line, #d6e4de)); }
  .news-reading :is(article, .reading-book) { max-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-reading * { transition: none !important; }
}
