/* 京城锁事 · 城市编辑部风格设计系统
   刻意区别于：kaisuo.me 蓝青玻璃 / bjkaisuo.com 浅紫毛玻璃 / bjlocal.com 柏绿卡纸
   本刊语言：纸感米白 + 衬线大字 + 细分割线 + 编号目录 + 黑白纪实图，无渐变、无阴影、无玻璃 */
:root {
  --paper: #f7f4ed;
  --paper-2: #fcfaf5;
  --paper-3: #efebe0;
  --ink: #201e1a;
  --ink-2: #575249;
  --ink-3: #6a6459; /* 原 #8b857a 在纸色上对比度仅 3.3:1，不达 WCAG AA；加深至 ~5.4:1 */
  --rule: #d8d1c2;
  --rule-strong: #201e1a;
  --seal: #a4342a;
  --seal-soft: #f4e6e2;
  /* 标题保留衬线（宋体系）；正文改用系统黑体，避免 Windows 无 Noto Serif SC 时落 17px 宋体细笔画发糊 */
  --serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --num: "Georgia", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans); /* 正文系统黑体，屏读更清晰；衬线只留给标题/报头/引文 */
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--seal); }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 2px; background: var(--rule-strong); border: 0; margin: 0; }
.serif { font-family: var(--serif); }
/* 标题/报头/引文保留衬线体，构成"编辑部"气质的骨架 */
h1, h2, h3, h4, .masthead h1, .sec-head h2, .lead h2, .toc-item h3,
.col-card h3, .feature h3, .article-head h1, .article-body h2, .article-body h3,
.pullquote blockquote, .editor-note h2 { font-family: var(--serif); }
.small { font-size: 13px; line-height: 1.7; }
.muted { color: var(--ink-2); }
.seal { color: var(--seal); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* 报头 */
.masthead-top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.masthead-top .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-family: var(--sans); font-size: 12px; color: var(--ink-2);
  letter-spacing: .06em;
}
.masthead-top .issue { display: flex; gap: 18px; align-items: center; }
.masthead-top .live-dot { display: inline-block; width: 6px; height: 6px; background: var(--seal); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.masthead-top a { border-bottom: 1px solid var(--rule); }

.masthead { background: var(--paper-2); border-bottom: 3px double var(--ink); }
.masthead .wrap { padding: 30px 0 22px; text-align: center; }
.masthead .kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: .5em; color: var(--seal);
  text-indent: .5em; margin-bottom: 6px;
}
.masthead h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.1; margin: 0; letter-spacing: .16em;
  text-indent: .16em; font-weight: 700;
}
/* 内页品牌名降级为 div：保留报头识别度，但不与文章 h1 争主标题 */
.masthead .brand-mini {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.2;
  margin: 0; letter-spacing: .14em; text-indent: .14em; font-weight: 700; color: var(--ink-2);
}
/* 内页报头收窄：避免正文被压到第二屏（body.inner 由 HTML 标记） */
body.inner .masthead .wrap { padding: 14px 0 12px; }
body.inner .masthead .kicker { margin-bottom: 2px; }
.masthead .sub {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2); letter-spacing: .22em;
  text-indent: .22em; margin-top: 12px;
}
.masthead .hotline {
  margin-top: 14px; font-family: var(--sans); font-size: 13px; color: var(--ink-2);
}
.masthead .hotline b { font-family: var(--num); font-size: 18px; color: var(--ink); font-weight: 400; letter-spacing: .02em; }

/* 主导航 */
.nav { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.nav .wrap { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; }
.nav a {
  font-family: var(--sans); font-size: 14px; padding: 12px 22px; color: var(--ink);
  border-left: 1px solid var(--rule);
}
.nav a:first-child { border-left: 0; }
.nav a:last-child { border-right: 1px solid var(--rule); }
.nav a:hover { background: var(--ink); color: var(--paper-2); }

/* 通用段头 */
.sec-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; }
.sec-head .no { font-family: var(--num); font-size: 15px; color: var(--seal); border: 1px solid var(--seal); padding: 2px 8px; }
.sec-head h2 { font-size: 30px; letter-spacing: .08em; margin: 0; font-weight: 700; }
.sec-head .en { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }

section { padding: 62px 0; }
section.tight { padding: 44px 0; }

/* 头条 */
.lead { padding-top: 52px; }
.lead-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.lead-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; color: var(--seal);
  border-top: 2px solid var(--seal); display: inline-block; padding-top: 8px; margin-bottom: 18px;
}
.lead h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.32; margin: 0 0 18px; letter-spacing: .02em; font-weight: 700; }
.lead .deck { font-size: 18px; color: var(--ink-2); line-height: 1.85; margin: 0 0 22px; }
.lead .by { font-family: var(--sans); font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 12px; }
.lead figure { margin: 0; }
.lead figure img { width: 100%; height: auto; object-fit: contain; border: 1px solid var(--rule); }
.lead figcaption { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--seal); }

/* 目录列表 */
.toc { border-top: 2px solid var(--ink); }
.toc-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--rule); transition: background .15s;
}
.toc-item:hover { background: var(--paper-2); }
.toc-item .idx { font-family: var(--num); font-size: 30px; color: var(--rule); line-height: 1; }
.toc-item:hover .idx { color: var(--seal); }
.toc-item h3 { font-size: 23px; margin: 0 0 6px; font-weight: 700; letter-spacing: .02em; }
.toc-item p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.toc-item .meta { font-family: var(--sans); font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.toc-item .meta .cat { display: inline-block; border: 1px solid var(--rule); padding: 2px 8px; margin-bottom: 8px; }

/* 栏目九宫 */
.columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--rule); }
.col-card { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 28px; min-height: 190px; transition: background .15s; }
.col-card:hover { background: var(--paper-2); }
.col-card .cno { font-family: var(--num); font-size: 13px; color: var(--seal); letter-spacing: .1em; }
.col-card h3 { font-size: 26px; margin: 12px 0 8px; font-weight: 700; }
.col-card p { font-family: var(--sans); font-size: 13px; color: var(--ink-2); line-height: 1.8; margin: 0 0 12px; }
.col-card .more { font-family: var(--sans); font-size: 12px; color: var(--seal); border-bottom: 1px solid var(--seal); padding-bottom: 2px; }

/* 引文 */
.pullquote { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 40px 0; margin: 8px 0; }
.pullquote blockquote { margin: 0 auto; max-width: 820px; text-align: center; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.6; letter-spacing: .04em; }
.pullquote blockquote::before { content: "“"; color: var(--seal); font-size: 40px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.pullquote cite { display: block; text-align: center; font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 18px; letter-spacing: .1em; }

/* 图文纪实 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); }
.feature .ftext { padding: 40px 38px; }
.feature h3 { font-size: 27px; margin: 0 0 16px; font-weight: 700; }
.feature p { font-family: var(--sans); font-size: 14px; line-height: 1.95; color: var(--ink-2); margin: 0 0 14px; }
.feature .fimg { background: var(--paper-3); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.feature .fimg img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; filter: grayscale(.3); }

/* 服务范围 */
.area-band { background: var(--ink); color: var(--paper); }
.area-band .wrap { padding: 52px 0; }
.area-band h2 { color: var(--paper); font-size: 30px; margin: 0 0 8px; font-weight: 700; }
.area-band .sub { font-family: var(--sans); font-size: 13px; color: #b9b3a6; margin-bottom: 26px; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list a { font-family: var(--sans); font-size: 13px; padding: 7px 15px; border: 1px solid #4a453d; color: var(--paper); }
.area-list a:hover { background: var(--paper); color: var(--ink); }

/* 编辑手记 */
.editor-note { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.editor-note .narrow { padding: 52px 0; }
.editor-note h2 { font-size: 26px; margin: 0 0 18px; font-weight: 700; }
.editor-note p { font-family: var(--sans); font-size: 14px; line-height: 2; color: var(--ink-2); margin: 0 0 14px; }
.editor-note .sign { text-align: right; font-size: 15px; margin-top: 22px; color: var(--seal); }

/* 文章正文 */
.article-head { padding: 54px 0 30px; text-align: center; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.article-head .cat { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--seal); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.35; margin: 16px auto; max-width: 820px; font-weight: 700; }
.article-head .abstract { font-family: var(--sans); font-size: 14px; color: var(--ink-2); max-width: 700px; margin: 0 auto 18px; line-height: 1.9; }
.article-head .by { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
/* 线稿头图完整显示（不再裁切，标注文字需完整可见） */
.article-hero { width: 100%; height: auto; margin: 30px auto 0; border: 1px solid var(--rule); }
/* 正文内的实拍图：去饱和 + 限定宽度，避免脏手随手拍抢镜 */
.article-body figure img { max-width: 640px; margin: 0 auto; }
.article-body { padding: 46px 0 30px; }
/* 正文前置电话条：满足"标题或正文前部有电话"铁律，同时不占用首段、不像广告落款 */
.article-body .lead-phone {
  font-family: var(--sans); font-size: 12px; line-height: 1.8; color: var(--ink-2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 9px 2px; margin: 0 0 28px; letter-spacing: .02em;
}
.article-body .lead-phone a { color: var(--seal); border-bottom: 1px solid var(--seal-soft); }
.article-body p { margin: 0 0 22px; font-size: 18px; line-height: 2.05; }
.article-body h2 { font-size: 27px; margin: 44px 0 16px; padding-left: 14px; border-left: 4px solid var(--seal); font-weight: 700; }
.article-body h3 { font-size: 21px; margin: 30px 0 12px; font-weight: 700; }
.article-body .lead-p { font-size: 20px; }
.article-body .call-inline { background: var(--seal-soft); border-left: 3px solid var(--seal); padding: 16px 20px; font-family: var(--sans); font-size: 15px; margin: 26px 0; }
.article-body .call-inline b { font-family: var(--num); font-size: 20px; font-weight: 400; color: var(--seal); }
/* 先说结论侧栏 + 章节编号（吸收编辑部样张的版式思想） */
.article-body .verdict { border: 1px solid var(--ink); padding: 20px 24px; margin: 28px 0 34px; background: var(--paper-2); }
.article-body .verdict b { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--seal); margin-bottom: 8px; }
.article-body .verdict p { margin: 0; font-size: 16px; line-height: 1.9; }
.article-body .sect-label { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--seal); margin: 40px 0 6px; }
.article-body h2 .sect-num { font-size: 18px; color: var(--seal); margin-right: 10px; }
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; filter: grayscale(.3); border: 1px solid var(--rule); }
.article-body figcaption { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.article-body ul { padding-left: 24px; margin: 0 0 24px; }
.article-body li { margin-bottom: 10px; }

/* 三站互链块 */
.sites-block { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 44px 0 30px; padding: 26px 0; }
.sites-block h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--seal); margin: 0 0 14px; }
.sites-block .links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--sans); font-size: 14px; }
.sites-block .links a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.sites-block .note { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.article-nav { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 44px; font-family: var(--sans); font-size: 13px; }
.article-nav a { border-bottom: 1px solid var(--rule); }

/* 页脚 */
.footer { background: var(--ink); color: #cfc9bc; }
.footer .wrap { padding: 46px 0 90px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--paper); font-size: 20px; margin: 0 0 14px; font-weight: 700; }
.footer p { font-family: var(--sans); font-size: 12px; line-height: 2; margin: 0 0 8px; }
.footer a { color: #d9d3c5; border-bottom: 1px solid #4a453d; }
.footer a:hover { color: #fff; }
.footer .bottom { grid-column: 1 / -1; border-top: 1px solid #4a453d; padding-top: 18px; font-family: var(--sans); font-size: 11px; color: #918b7e; line-height: 1.9; }

/* 固定拨号条 */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--seal);
  font-family: var(--sans);
}
.callbar .bar { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 14px; }
.callbar .who { font-size: 12px; color: #b9b3a6; }
.callbar .who b { color: var(--paper); font-weight: 500; }
.callbar .tel { font-family: var(--num); font-size: 24px; letter-spacing: .03em; color: var(--paper); line-height: 1; }
.callbar .btn { background: var(--seal); color: #fff; padding: 9px 22px; font-size: 14px; letter-spacing: .1em; white-space: nowrap; }
.callbar .btn:hover { background: #8d2b22; color: #fff; }

/* 页内小标签 */
.chip { display: inline-block; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; border: 1px solid var(--rule); padding: 3px 9px; color: var(--ink-2); }

/* ============================================================
   点缀层（小幅精致化；不改刊物骨架、不动铁律项）
   原则：无圆角、无玻璃、无花哨渐变；只用细线 + 微位移 + 克制的立体感
   ============================================================ */

/* 阅读进度条：顶部 2px 砖红细线 */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--seal); z-index: 120; pointer-events: none;
  transition: width .08s linear;
}

/* 微动：24 小时服务圆点轻微呼吸 */
@keyframes journalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(164, 52, 42, .45); }
  70% { box-shadow: 0 0 0 6px rgba(164, 52, 42, 0); }
}
.masthead-top .live-dot { animation: journalPulse 2.6s ease-out infinite; }

/* 微 3D：头条图右下的纸张折角 + 细投影（像把图卡压在纸页上） */
.lead figure { position: relative; }
.lead figure::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 26px; height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--paper-3) 50%);
  border-left: 1px solid var(--rule); border-top: 1px solid var(--rule);
  pointer-events: none;
}

/* 小图片点缀：目录条目前的主题线性图标（纯 SVG，零版权） */
.toc-item .idx { position: relative; }
.toc-item .idx::after {
  content: ""; position: absolute; left: 2px; top: 38px; width: 18px; height: 18px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .62; transition: opacity .2s ease, transform .2s ease;
}
.toc-item:nth-child(1) .idx::after { background-image: url("../img/icons/ic-cylinder.svg"); }
.toc-item:nth-child(2) .idx::after { background-image: url("../img/icons/ic-smart.svg"); }
.toc-item:nth-child(3) .idx::after { background-image: url("../img/icons/ic-car.svg"); }
.toc-item:nth-child(4) .idx::after { background-image: url("../img/icons/ic-safe.svg"); }
.toc-item:nth-child(5) .idx::after { background-image: url("../img/icons/ic-door.svg"); }
.toc-item:nth-child(6) .idx::after { background-image: url("../img/icons/ic-key.svg"); }
.toc-item:hover .idx::after { opacity: 1; transform: translateY(2px); }

/* 栏目卡片：右上角主题小图标 + 悬停微抬起（纸张感，非玻璃阴影） */
.col-card { position: relative; }
.col-card::after {
  content: ""; position: absolute; right: 24px; top: 24px; width: 26px; height: 26px;
  background-repeat: no-repeat; background-position: center; background-size: contain; opacity: .5;
  transition: opacity .2s ease, transform .2s ease;
}
.columns .col-card:nth-child(1)::after { background-image: url("../img/icons/ic-cylinder.svg"); }
.columns .col-card:nth-child(2)::after { background-image: url("../img/icons/ic-smart.svg"); }
.columns .col-card:nth-child(3)::after { background-image: url("../img/icons/ic-car.svg"); }
.columns .col-card:nth-child(4)::after { background-image: url("../img/icons/ic-safe.svg"); }
.col-card:hover::after { opacity: .95; transform: translateY(-2px); }
.col-card:hover {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--seal);
  transform: translateY(-2px);
  transition: transform .2s ease, background .15s ease, box-shadow .2s ease;
}

/* 段头编号：悬停时轻微转正（印章质感） */
.sec-head .no { display: inline-block; transition: transform .25s ease; }
.sec-head:hover .no { transform: rotate(-3deg); }

/* 引文大引号：悬停微移，增加呼吸感 */
.pullquote blockquote { transition: transform .3s ease; }
.pullquote:hover blockquote { transform: translateY(-2px); }

/* 服务区域标签：悬停轻微抬起 + 砖红下沿 */
.area-list a { transition: transform .18s ease, background .18s ease, color .18s ease; }
.area-list a:hover { transform: translateY(-2px); box-shadow: inset 0 -2px 0 var(--seal); }

/* 编辑手记署名：印章色斜体微旋 */
.editor-note .sign { transition: transform .25s ease; }
.editor-note:hover .sign { transform: rotate(-1.2deg); }

/* 文章头图：悬停极轻微放大（可读性优先，幅度克制） */
.article-hero { transition: transform .35s ease; }
.article-hero:hover { transform: scale(1.006); }

/* 远郊服务范围说明：县城限定铁律，独立成块以免被正文淹没 */
.remote-note {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--seal);
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 0.94em;
}

/* 滚动淡入：仅当 JS 可用且允许动画时生效；无 JS / reduced-motion 下内容默认可见 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .lead-grid, .feature { grid-template-columns: 1fr; }
  .fimg { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr; gap: 26px; }
  .nav a { padding: 10px 13px; font-size: 13px; }
  .toc-item { grid-template-columns: 44px 1fr; }
  .toc-item .meta { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .columns { grid-template-columns: 1fr; }
  .callbar .tel { font-size: 19px; }
  .callbar .who { display: none; }
  .callbar .btn { padding: 8px 14px; }
  .sec-head h2 { font-size: 24px; }
  /* 小屏收起点缀，避免拥挤：隐藏图标与折角 */
  .toc-item .idx::after, .col-card::after, .lead figure::after { display: none; }
}

/* 尊重系统的"减少动态效果"设置：关闭所有点缀动画，内容立即可见 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .masthead-top .live-dot { animation: none; }
  .toc-item .idx::after, .col-card::after,
  .col-card, .sec-head .no, .pullquote blockquote, .area-list a,
  .editor-note .sign, .article-hero, .read-progress { transition: none !important; }
  .col-card:hover, .pullquote:hover blockquote, .area-list a:hover,
  .editor-note:hover .sign, .article-hero:hover { transform: none !important; }
}
