/* ==========================================================================
   凯米拉水处理 · 内页样式
   依赖 style.css 中的设计变量（--green / --ink / --line 等）
   覆盖范围：栏目列表页、问答详情页、资讯详情页
   ========================================================================== */

/* ---------- 头部：内页不透明、不随滚动隐藏 ---------- */
.inner-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.inner-header .header-inner { height: 68px; }
.inner-header .nav { display: flex; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  white-space: nowrap;
}
.header-tel:hover { background: #D7EFE2; }

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  padding-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--green-dark); text-decoration: underline; }
.crumb .sep { color: var(--muted-2); }
.crumb span[aria-current] { color: var(--ink-2); }

/* ---------- 列表页通用 ---------- */
.list-main { padding: 12px 0 72px; }
.list-head { max-width: 760px; margin-bottom: 26px; }
.list-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.list-intro { font-size: 15px; line-height: 1.85; color: var(--ink-2); }

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cat-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.cat-tabs a:hover { border-color: var(--green); color: var(--green-dark); }
.cat-tabs a.on {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.cat-tabs em {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 12px;
  opacity: 0.7;
}
.cat-tabs a.on em { opacity: 0.85; }

/* ---------- 问答列表卡 ---------- */
.qlist { display: grid; gap: 14px; }
.qcard {
  position: relative;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.qcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: rgba(18, 128, 92, 0.26);
}
.qcard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.qcard h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}
.qcard h3 a { color: var(--ink); }
.qcard h3 a:hover { color: var(--green-dark); }
.qcard p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.qcard-more {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}
.qcard-more::after { content: " →"; }
.qcard-more:hover { color: var(--green-dark); }

.post-cat {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}
a.post-cat:hover { background: #D7EFE2; }

/* ---------- 资讯列表 ---------- */
.nlist { display: grid; gap: 16px; }
.ncard {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ncard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: rgba(18, 128, 92, 0.26);
}
.ncard.is-lead {
  background: linear-gradient(140deg, #FFFFFF 0%, #F3FBF7 100%);
  border-color: rgba(18, 128, 92, 0.2);
}
.ncard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.ncard h2 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 650;
}
.ncard.is-lead h2 { font-size: 22px; }
.ncard h2 a { color: var(--ink); }
.ncard h2 a:hover { color: var(--green-dark); }
.ncard p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 详情页布局 ---------- */
.post-main { padding: 10px 0 76px; }
.post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 36px;
  align-items: start;
}
.post {
  padding: 36px 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.post-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-head h1 {
  margin: 14px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}
.post-meta time { font-family: var(--font-num); }

.post-body { padding-top: 24px; }
.post-body p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.post-body .lead {
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.9;
}
.post-body .lead strong { color: var(--ink); font-weight: 700; }
.post-body h2 {
  margin: 30px 0 14px;
  padding-left: 12px;
  font-size: 18.5px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--ink);
  border-left: 3px solid var(--green);
}
.post-body ol,
.post-body ul {
  margin: 0 0 20px;
  padding-left: 4px;
  list-style: none;
  counter-reset: step;
}
.post-body ol li,
.post-body ul li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.post-body ol li { counter-increment: step; }
.post-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}
.post-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #F1FAF5 0%, #E9F7F0 100%);
  border: 1px solid rgba(18, 128, 92, 0.16);
  border-radius: var(--radius-m);
}
.post-cta strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.post-cta p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.post-source {
  margin-top: 22px;
  padding-top: 16px;
  font-size: 12.5px !important;
  line-height: 1.8 !important;
  color: var(--muted-2) !important;
  border-top: 1px dashed var(--line-2);
}

/* ---------- 侧栏 ---------- */
.post-aside { display: grid; gap: 16px; position: sticky; top: 88px; }
.aside-card {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.aside-card h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.aside-cats { display: grid; gap: 2px; }
.aside-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.aside-cats a:hover { background: var(--bg-2); color: var(--green-dark); }
.aside-cats a.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.aside-cats em {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted-2);
}
.aside-links { display: grid; gap: 9px; }
.aside-links a {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  padding-left: 12px;
  position: relative;
}
.aside-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--line-2);
  border-radius: 50%;
}
.aside-links a:hover { color: var(--green-dark); }
.aside-links a:hover::before { background: var(--green); }

.aside-cta {
  padding: 22px;
  background: linear-gradient(150deg, #0F7A58 0%, #12805C 55%, #159A6D 100%);
  border-radius: var(--radius-m);
  color: #fff;
}
.aside-cta strong { display: block; margin-bottom: 6px; font-size: 15px; }
.aside-cta p { margin-bottom: 14px; font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, 0.84); }
.aside-cta .btn-primary {
  width: 100%;
  justify-content: center;
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}
.aside-cta .btn-primary:hover { background: #F0FBF5; border-color: #F0FBF5; }

/* ---------- 列表底部 CTA ---------- */
.list-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.list-cta strong { display: block; margin-bottom: 5px; font-size: 16px; color: var(--ink); }
.list-cta p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); max-width: 560px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .post-wrap { grid-template-columns: minmax(0, 1fr) 268px; gap: 26px; }
  .post { padding: 30px 28px 28px; }
}
@media (max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; }
  .post-aside { position: static; grid-template-columns: 1fr 1fr; }
  .aside-cta { grid-column: 1 / -1; }
  .qcard { padding: 20px 20px; }
  .ncard { padding: 22px 20px; }
}
@media (max-width: 720px) {
  .inner-header .header-inner { height: 62px; }
  .inner-header .nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
  }
  .inner-header .nav.is-open { display: flex; }
  .inner-header .nav a { padding: 10px 12px; }
  .header-tel { display: none; }
  .post { padding: 24px 20px 22px; border-radius: var(--radius-m); }
  .post-head h1 { font-size: 22px; }
  .post-body p { font-size: 15px; }
  .post-body .lead { font-size: 15.5px; }
  .post-aside { grid-template-columns: 1fr; }
  .list-cta { flex-direction: column; align-items: flex-start; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-cta .btn { width: 100%; justify-content: center; }
}
