/* 仁慈佑物 GEO 只读站：移动优先、无横向溢出、无外部字体与脚本。 */
:root {
  --ink: #1f2328;
  --ink-2: #4a5361;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg: #fbfbfa;
  --card: #ffffff;
  --accent: #2f6f62;
  --accent-soft: #eef5f2;
  --warn: #9a5b1c;
  --warn-soft: #fdf3e7;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Songti SC", serif;
  overflow-wrap: anywhere;      /* 长串不撑破版心 */
  word-break: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .9em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.inventory-stats .stat { color: var(--ink); text-decoration: none; }
.inventory-stats .stat:hover { border-color: var(--accent); }
.inventory-stats .stat .small { display: block; }
.lead { font-size: 1.05rem; color: var(--ink-2); }

/* 关于我们：沿用品牌正文的阅读宽度，无假图、无额外脚本。 */
.about-page { max-width: 800px; margin: 0 auto; padding: 8px 0 16px; }
.about-intro { padding: 30px 0 20px; }
.about-eyebrow { color: var(--muted); font-size: .82rem; letter-spacing: .12em; }
.about-intro h1 { margin-bottom: 16px; }
.about-motto { margin: 0 0 24px; font-size: 1.25rem; color: var(--accent); }
.about-lead { color: var(--ink-2); line-height: 1.95; }
.about-contents { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; border-block: 1px solid var(--line); font-size: .9rem; }
.about-section { padding: 30px 0 12px; scroll-margin-top: 180px; }
.about-section h2 { margin-bottom: 22px; }
.about-block { margin-bottom: 24px; }
.about-block h3 { margin-bottom: 10px; }
.about-block p { color: var(--ink-2); line-height: 1.95; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 12px; font-size: .94rem; }
@media (max-width: 600px) {
  .about-intro { padding-top: 20px; }
  .about-contents { gap: 10px 18px; }
  .about-section { padding-top: 26px; scroll-margin-top: 210px; }
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: .04em; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .94rem;
}
.nav a:hover { background: var(--accent-soft); text-decoration: none; }
.nav a.on, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.back { margin-left: auto; font-size: .86rem; }
.search { display: flex; gap: 6px; margin-left: auto; flex: 1 1 220px; max-width: 320px; }
.search input, .filter input, .filter select {
  flex: 1 1 auto; min-width: 0; padding: 7px 10px; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
button, .btn {
  padding: 7px 14px; font: inherit; font-size: .9rem; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
  display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--accent); }

/* ---------------------------------------------------------------- 版块 */
main { padding: 20px 16px 48px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.page-title { margin-top: 4px; }
.block { margin: 28px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.block-head h2 { margin-bottom: .6em; }
.more { font-size: .86rem; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: .9rem;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-n { color: var(--muted); font-size: .8rem; }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--card); color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.thumb { aspect-ratio: 1 / 1; background: #f2f3f4; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 10px 12px 12px; }
.card-body h3 { margin-bottom: .2em; font-size: .98rem; }
.card-body p { margin: 0; }

.ticks { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.ticks li { margin-bottom: .35em; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cat-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cat-list strong { font-size: 1.05rem; }
.links { margin: 0; padding-left: 1.1em; }
.links li { margin-bottom: .3em; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 18px; }
.filter select { flex: 0 1 200px; }
.reset { font-size: .86rem; color: var(--muted); }
@media (max-width: 600px) {
  .search input, .filter input, .filter select { font-size: 16px; }
}

/* ---------------------------------------------------------------- 详情 */
/* 主图按首图比例预留稳定画布，所有细节图完整置入，不裁切。 */
.detail { display: grid; gap: 28px; grid-template-columns: minmax(0,1fr); align-items: start; margin-top: 20px; }
.detail-media { min-width: 0; }
.gallery-stage, .gallery-tools, .detail-thumbs { width: min(100%, var(--gallery-native-width,100%), calc(720px * var(--gallery-ratio,1))); margin-inline: auto; }
.gallery-stage { aspect-ratio: var(--gallery-ratio,1); display: flex; justify-content: center; align-items: center; color: var(--ink); }
.product-main-image { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: .78rem; }
.gallery-tools, .detail-thumbs { min-width: min(100%,180px); }
.detail-media[aria-busy="true"] .gallery-counter::after { content: " · 载入中"; }
.gallery-error { margin: 12px 0 0; font-size: .82rem; color: var(--ink-2); }
.gallery-error:empty { display: none; }
.detail-thumbs { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding: 4px; margin-top: 12px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 64px; height: 80px; padding: 2px; border: 1px solid transparent; opacity: .7; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb:focus-visible, .gallery-thumb[aria-current] { opacity: 1; }
.gallery-thumb[aria-current] { border-color: var(--accent); }
.detail-body { min-width: 0; }
@media (min-width: 760px) { .detail { grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: 56px; } .detail-body { padding-top: 28px; } }
.thumb-empty {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
/* ---- 产品详情：高端极简版式 ---- */
.product-head { margin-bottom: 18px; }
.product-cat {
  margin: 0 0 8px; font-size: .76rem; letter-spacing: .22em;
  color: var(--muted); text-transform: none;
}
.product-head h1 { margin: 0 0 10px; letter-spacing: .02em; }
.product-sku { margin: 0; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.product-price {
  margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  font-size: 1.7rem; font-weight: 500; color: var(--ink); letter-spacing: .01em;
}
.product-facts { margin: 0 0 26px; }
.product-facts .fact {
  display: flex; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.product-facts dt {
  flex: 0 0 4em; margin: 0; color: var(--muted); font-size: .88rem;
}
.product-facts dd { margin: 0; color: var(--ink-2); font-size: .96rem; }

.product-story { display: grid; grid-template-columns: minmax(0,140px) minmax(0,720px); gap: 40px; margin: 44px 0 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-story-copy { min-width: 0; }
@media (max-width: 759px) { .product-story { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 32px; padding-top: 24px; } }
.product-story h2 {
  margin: 0 0 12px; font-size: .78rem; font-weight: 500;
  color: var(--muted); letter-spacing: .16em;
}
.product-story p {
  margin: 0 0 .85em; max-width: 36em;
  color: var(--ink-2); line-height: 1.85; text-align: left;
}
.product-story p:last-child { margin-bottom: 0; }
.product-related { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-related h2 {
  margin: 0 0 12px; font-size: .78rem; font-weight: 500;
  color: var(--muted); letter-spacing: .16em;
}
.specs { width: 100%; border-collapse: collapse; margin: 12px 0 4px; }
.specs th, .specs td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 500; font-size: .9rem; }

.post-wrap { max-width: 720px; margin: 0 auto; }
.post { max-width: none; }
.post-head { margin-bottom: 22px; }
.post-head h1 { margin-bottom: .35em; }
.post-hero {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 36px; align-items: center;
  margin: 30px 0 36px; padding: 0;
  border: 0; border-radius: 0;
  background: transparent; color: var(--ink); text-decoration: none;
}
.post-hero:hover { text-decoration: none; }
.post-hero:hover .post-hero-cta { text-decoration: underline; }
.post-hero-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.post-hero-thumb {
  width: auto; height: auto; max-width: 100%; max-height: 560px; object-fit: contain;
  border-radius: 0; background: transparent;
}
.post-hero-thumb[width][height] {
  width: min(100%, var(--hero-native-width), calc(560px * var(--hero-ratio)));
  aspect-ratio: var(--hero-ratio);
}
.post-hero-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-hero-info .tail-product-name { font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; }
.post-hero-cta { font-size: .88rem; color: var(--accent); margin-top: 8px; }
.post-body {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.post-body p { margin: 0 0 1.05em; text-indent: 2em; text-align: justify; }

.post-tail { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.tail-block { margin-bottom: 22px; }
.tail-block:last-child { margin-bottom: 0; }
.tail-block h2 {
  margin: 0 0 .5em; font-size: .78rem; font-weight: 600;
  color: var(--muted); letter-spacing: .12em;
}
.tail-summary p { margin: 0; color: var(--ink-2); }

.topic-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.topic-chips li {
  font-size: .82rem; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

.tail-product-link {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
}
.tail-product-link:hover { border-color: var(--accent); text-decoration: none; }
.tail-product-name { font-weight: 600; }
.tail-product-card {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
}
.tail-product-card:hover { border-color: var(--accent); text-decoration: none; }
.tail-product-thumb {
  width: 72px; height: 72px; object-fit: contain; flex-shrink: 0;
  border-radius: var(--radius); background: #f2f3f4;
}
.tail-product-info { display: flex; flex-direction: column; gap: 3px; }

.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.related-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.related-why { font-size: .78rem; color: var(--muted); }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 表格与报告 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .9rem; }
.data th, .data td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.data thead th { background: #f6f7f8; font-weight: 600; white-space: nowrap; }
.data tbody th { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.data tr.dim { opacity: .62; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); margin: 16px 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.stat .k { font-size: .78rem; color: var(--muted); }
.stat .v { font-size: 1.15rem; font-weight: 600; }
.notice { background: var(--warn-soft); border: 1px solid #f0dcc4; border-radius: var(--radius); padding: 12px 14px; }
.notice p:last-child { margin-bottom: 0; }
.tag { font-size: .74rem; padding: 1px 7px; border-radius: 999px; margin-left: 6px; background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- 状态页 */
.state { max-width: 560px; margin: 48px auto; text-align: center; }
.state h1 { font-size: 2.4rem; color: var(--muted); }
.empty {
  padding: 26px 18px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card);
}
.empty p { margin: 0 0 .3em; }

/* ---------------------------------------------------------------- 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 20px 0 4px; }
.pg {
  min-width: 36px; text-align: center; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .88rem;
}
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg.off { color: #b9bec5; }
.pg.meta { border: 0; background: none; margin-left: auto; color: var(--muted); font-size: .82rem; }
.pager-meta { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- 页脚 */
.footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; padding: 22px 0 28px; }
.footer p { margin: 0 0 .4em; }
.footer .small { font-size: .8rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-start; gap: 14px;
}
.footer-brand { min-width: 0; max-width: 520px; }
.footer-name { font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
.footer .footer-description { max-width: 38em; margin: 8px 0 0; color: var(--ink-2); font-size: .84rem; line-height: 1.9; }
.footer-block { text-align: right; }
.footer-line { margin: 0; font-size: .82rem; color: var(--ink-2); }
.footer-line.muted { font-size: .78rem; }

/* 报告页在窄屏也不横溢出 */
.ops .data { font-size: .86rem; }
@media (max-width: 520px) {
  .topbar-inner { gap: 8px; }
  .nav { order: 3; width: 100%; }
  .search { order: 4; width: 100%; max-width: none; flex-basis: 100%; }
  .post-body p { text-indent: 0; }
  .pg.meta { margin-left: 0; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-block { text-align: left; }
}

@media (max-width: 600px) {
  .post-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .post-hero-info { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 16px; align-items: baseline; }
  .post-hero-info .tail-product-name { grid-column: 1 / -1; margin-bottom: 2px; }
  .post-hero-cta { margin-top: 0; }
}

/* 文章索引：标题与正文提要，不重复标签和导入日期。 */
.article-list { list-style: none; margin: 20px 0 0; padding: 0; max-width: 860px; }
.article-list-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-list-item:first-child { padding-top: 8px; }
.article-list-item h2 { margin: 0 0 10px; font-size: clamp(1.08rem, 2.2vw, 1.28rem); line-height: 1.65; }
.article-list-item h2 a { color: var(--ink); }
.article-list-item h2 a:hover { color: var(--accent); }
.article-list-summary { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.85;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
/* 页码只渲染有界窗口；不依赖脚本，GET跳页保留检索条件。 */
.pager { gap: 12px 20px; margin-top: 28px; }
.pager-controls, .pager-pages { display: flex; align-items: center; gap: 6px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; }
.pager-gap { color: var(--muted); padding: 0 3px; }
.pager-position { display: none; color: var(--ink-2); font-size: .9rem; }
.pager-summary { margin: 0; color: var(--muted); font-size: .82rem; }
.pager-jump { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: .86rem; }
.pager-jump input { width: 74px; min-height: 42px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
.pager-jump button { min-height: 42px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink-2); cursor: pointer; }
@media (max-width: 600px) {
  .article-list-item { padding: 20px 0; }
  .article-list-summary { font-size: .92rem; }
  .pager-controls { width: 100%; justify-content: space-between; }
  .pager-pages, .pager-detail { display: none; }
  .pager-position { display: inline; }
  .pager-summary { width: 100%; text-align: center; }
  .pager-jump { margin-left: 0; width: 100%; justify-content: center; }
}

/* 首页文章：刊物目录，层次来自文字与留白。 */
.home-journal { margin-top: 64px; margin-bottom: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.home-journal .block-head { margin-bottom: 12px; align-items: center; }
.home-journal .block-head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: .08em; }
.journal-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 48px; }
.journal-entry { min-width: 0; border-bottom: 1px solid var(--line); }
.journal-link { display: flex; align-items: flex-start; gap: 20px; height: 100%; padding: 28px 0 30px; color: var(--ink); }
.journal-link:hover { text-decoration: none; }
.journal-copy { min-width: 0; flex: 1; }
.journal-copy h3 { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(1.12rem,1.65vw,1.3rem); font-weight: 500; line-height: 1.75; margin: 0 0 12px; }
.journal-summary { color: var(--ink-2); font-size: .89rem; line-height: 1.9; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.journal-arrow { flex: 0 0 auto; color: var(--muted); font-size: .98rem; line-height: 2; padding-top: 3px; }
.journal-link:hover h3, .journal-link:hover .journal-arrow { color: var(--accent); }
@media (max-width: 760px) {
  .home-journal { margin-top: 44px; padding-top: 24px; }
  .journal-list { grid-template-columns: minmax(0,1fr); }
  .journal-link { padding: 23px 0 25px; gap: 16px; }
  .journal-copy h3 { font-size: 1.15rem; margin-bottom: 10px; }
}

.journal-title-part { display: inline-block; max-width: 100%; vertical-align: top; }
