/* cooling.模具设计.中国 · 本站独立样式（cl- 前缀 / 冰川青配色） */
:root {
  --cl-ink: #0c2230;
  --cl-deep: #0a2e3f;
  --cl-night: #06202c;
  --cl-cyan: #14b8c9;
  --cl-cyan-d: #0d93a3;
  --cl-mint: #39c9a8;
  --cl-ice: #eef7f9;
  --cl-paper: #f7fbfc;
  --cl-line: #d9e8ec;
  --cl-grey: #5b7480;
  --cl-warn: #e0862c;
  --cl-inset: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--cl-ink);
  background: var(--cl-paper);
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--cl-cyan-d); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- 顶栏 ---------- */
.cl-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(120deg, var(--cl-night) 0%, var(--cl-deep) 65%, #0f4157 100%);
  border-bottom: 2px solid var(--cl-cyan);
}
.cl-header-in {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 58px;
}
.cl-brand {
  color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 9px;
}
.cl-brand:hover { text-decoration: none; }
.cl-brand-mark {
  width: 18px; height: 18px; border-radius: 4px 4px 4px 0;
  background: conic-gradient(from 210deg, var(--cl-cyan), var(--cl-mint), var(--cl-cyan));
  box-shadow: 0 0 10px rgba(20, 184, 201, .7);
}
.cl-nav { display: flex; gap: 4px; }
.cl-nav a {
  color: #cfe8ee; font-size: 14.5px; padding: 7px 11px; border-radius: 6px;
}
.cl-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.cl-nav-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.cl-nav-btn i {
  display: block; width: 21px; height: 2.5px; background: #fff; margin: 4.5px 0; border-radius: 2px;
}

/* ---------- 面包屑（左缘与正文 H2 对齐） ---------- */
.cl-crumbs { padding: 14px 0 0 var(--cl-inset); }
.cl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 13px; color: var(--cl-grey); }
.cl-crumbs li:not(:first-child)::before { content: "/"; margin-right: 6px; color: #a9c3ca; }
.cl-crumbs a { color: var(--cl-grey); }
.cl-crumbs [aria-current] { color: var(--cl-cyan-d); font-weight: 600; }

/* ---------- 双栏 ---------- */
.cl-shell { max-width: 1160px; margin: 0 auto; padding: 0 20px 46px; }
.cl-cols { display: flex; gap: 30px; align-items: flex-start; margin-top: 16px; }
.cl-main {
  flex: 1 1 auto; min-width: 0; background: #fff;
  border: 1px solid var(--cl-line); border-radius: 12px;
  padding: 30px 34px 34px;
}
.cl-rail { flex: 0 0 258px; position: sticky; top: 76px; display: grid; gap: 14px; }
.cl-toc, .cl-sidecard {
  background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; padding: 16px 18px;
}
.cl-toc h3, .cl-sidecard h3 { font-size: 14px; color: var(--cl-deep); border-bottom: 2px solid var(--cl-cyan); display: inline-block; padding-bottom: 3px; margin-bottom: 8px; }
.cl-toc li { margin: 5px 0; }
.cl-toc a { color: var(--cl-grey); font-size: 13.5px; }
.cl-toc a:hover { color: var(--cl-cyan-d); }
.cl-sidecard p { font-size: 13.5px; color: var(--cl-grey); margin-bottom: 10px; }
.cl-sidecard a {
  display: inline-block; background: var(--cl-deep); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
.cl-sidecard a:hover { background: var(--cl-cyan-d); text-decoration: none; }

/* ---------- 文章 ---------- */
.cl-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--cl-grey); margin-bottom: 10px; }
.cl-chip {
  background: linear-gradient(120deg, var(--cl-cyan), var(--cl-mint));
  color: #04333c; font-weight: 700; border-radius: 999px; padding: 2px 12px; font-size: 12.5px;
}
.cl-h1 { font-size: 26px; line-height: 1.45; color: var(--cl-night); margin-bottom: 14px; }
.cl-summary {
  background: var(--cl-ice); border-left: 4px solid var(--cl-cyan);
  border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 14.5px; color: #21424f; margin-bottom: 20px;
}
.cl-summary b { color: var(--cl-cyan-d); margin-right: 10px; font-size: 13px; }
.cl-body { font-size: 16px; }
.cl-body p { margin: 12px 0; }
.cl-body h2 {
  font-size: 20.5px; color: var(--cl-night); margin: 30px 0 6px; line-height: 1.5;
  padding-bottom: 8px; border-bottom: 2px solid var(--cl-line); position: relative;
}
.cl-body h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--cl-cyan), var(--cl-mint));
}
.cl-body h3 { font-size: 17px; color: var(--cl-deep); margin: 20px 0 4px; }
.cl-body h4 { font-size: 15.5px; color: var(--cl-deep); margin: 16px 0 4px; }
.cl-body ul { margin: 10px 0 10px 4px; }
.cl-body li { padding-left: 20px; position: relative; margin: 6px 0; }
.cl-body li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--cl-cyan); opacity: .75;
}
.cl-body hr { border: 0; border-top: 1px dashed var(--cl-line); margin: 22px 0; }
.cl-table { overflow-x: auto; margin: 16px 0; }
.cl-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.cl-table th {
  background: var(--cl-deep); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; white-space: nowrap;
}
.cl-table td { border-bottom: 1px solid var(--cl-line); padding: 8px 12px; }
.cl-table tr:nth-child(even) td { background: #f4fafa; }

/* ---------- FAQ details ---------- */
.cl-body details, .cl-sec details {
  border: 1px solid var(--cl-line); border-radius: 10px; margin: 10px 0; background: #fff;
}
.cl-body summary, .cl-sec summary {
  cursor: pointer; padding: 11px 15px; font-weight: 600; font-size: 15px; color: var(--cl-deep);
}
.cl-body details[open] summary, .cl-sec details[open] summary { border-bottom: 1px dashed var(--cl-line); color: var(--cl-cyan-d); }
.cl-body details p, .cl-sec details p { padding: 8px 15px 12px; font-size: 14.5px; color: #2c4a56; margin: 0; }
.cl-body details, .cl-sec details { padding: 0; }
.cl-sec details > p, .cl-sec details { line-height: 1.8; }
.cl-sec details { font-size: 14.5px; color: #2c4a56; }
.cl-sec details::after { content: ""; display: block; }
.cl-sec details { padding-bottom: 4px; }
.cl-sec details { font-size: 14.5px; }
.cl-sec details { color: #2c4a56; }

/* ---------- 相关阅读 ---------- */
.cl-related { margin-top: 34px; border-top: 2px solid var(--cl-line); padding-top: 18px; }
.cl-related h2 {
  font-size: 18px; color: var(--cl-night); margin-bottom: 12px; border: 0; padding: 0;
}
.cl-related h2::after { display: none; }
.cl-related li { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.cl-related li span { font-size: 12px; color: #fff; background: var(--cl-cyan-d); border-radius: 4px; padding: 1px 8px; white-space: nowrap; }

/* ---------- 首页 ---------- */
.cl-hero {
  background:
    radial-gradient(720px 300px at 82% -10%, rgba(57, 201, 168, .25), transparent 60%),
    radial-gradient(560px 260px at 8% 110%, rgba(20, 184, 201, .3), transparent 60%),
    linear-gradient(160deg, var(--cl-night) 10%, var(--cl-deep) 55%, #10506b 100%);
  color: #fff; padding: 66px 20px 58px;
}
.cl-hero-in { max-width: 1160px; margin: 0 auto; }
.cl-hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--cl-mint);
  border: 1px solid rgba(57, 201, 168, .5); border-radius: 999px; padding: 3px 16px; margin-bottom: 18px;
}
.cl-hero h1 { font-size: 40px; letter-spacing: 2px; line-height: 1.3; margin-bottom: 14px; }
.cl-hero-sub { max-width: 720px; color: #c9e4ea; font-size: 16.5px; }
.cl-hero-cta { margin: 24px 0 30px; display: flex; gap: 14px; }
.cl-btn {
  background: linear-gradient(120deg, var(--cl-cyan), var(--cl-mint)); color: #04333c;
  font-weight: 700; padding: 10px 26px; border-radius: 999px; font-size: 15px;
}
.cl-btn:hover { text-decoration: none; filter: brightness(1.08); }
.cl-btn-ghost { background: transparent; color: #dff3f6; border: 1px solid rgba(223, 243, 246, .55); font-weight: 500; }
.cl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 860px; }
.cl-stats li {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: 12px 16px;
}
.cl-stats b { display: block; font-size: 22px; color: var(--cl-mint); letter-spacing: 1px; }
.cl-stats span { font-size: 12.5px; color: #b9d8df; }
.cl-sec { margin-top: 40px; }
.cl-sec > h2 {
  font-size: 23px; color: var(--cl-night); padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 2px solid var(--cl-line); position: relative;
}
.cl-sec > h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 76px; height: 2px;
  background: linear-gradient(90deg, var(--cl-cyan), var(--cl-mint));
}
.cl-sec-sub { color: var(--cl-grey); font-size: 14.5px; margin-bottom: 18px; }
.cl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cl-card {
  display: block; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px;
  padding: 18px 20px; transition: box-shadow .15s, transform .15s; color: inherit;
}
.cl-card:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(10, 46, 63, .12); transform: translateY(-3px); }
.cl-card-tag {
  font-size: 12px; color: var(--cl-cyan-d); background: var(--cl-ice);
  border-radius: 4px; padding: 1px 9px;
}
.cl-card h3 { font-size: 17px; color: var(--cl-night); margin: 9px 0 6px; }
.cl-card p { font-size: 13.5px; color: var(--cl-grey); }
.cl-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-boundary > div { background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; padding: 18px 22px; }
.cl-boundary h2 { font-size: 18px; margin-bottom: 10px; border: 0; padding: 0; color: var(--cl-night); }
.cl-boundary h2::after { display: none; }
.cl-boundary > div:first-child h2 { color: var(--cl-cyan-d); }
.cl-boundary > div:last-child h2 { color: var(--cl-warn); }
.cl-boundary li { font-size: 14.5px; color: #2c4a56; padding: 5px 0 5px 18px; position: relative; }
.cl-boundary li::before { content: "·"; position: absolute; left: 4px; color: var(--cl-cyan); font-weight: 700; }

/* 首页文章分类块（移动端折叠） */
.cl-cat-block { background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.cl-cat-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; cursor: pointer; padding: 13px 18px;
  font-size: 16px; font-weight: 700; color: var(--cl-night);
}
.cl-cat-toggle b { font-size: 12.5px; font-weight: 500; color: var(--cl-cyan-d); background: var(--cl-ice); border-radius: 999px; padding: 2px 12px; }
.cl-cat-list { padding: 2px 18px 14px; }
.cl-cat-list li { margin: 7px 0; padding-left: 16px; position: relative; }
.cl-cat-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 2px; background: var(--cl-cyan); }
.cl-cat-more { display: inline-block; margin-top: 8px; font-size: 13px; }
.cl-hub .cl-grid { margin-top: 6px; }

/* ---------- 悬浮胶囊 ---------- */
.cl-capsule {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, var(--cl-cyan), var(--cl-cyan-d));
  border-radius: 999px 0 0 999px; padding: 8px 0 8px 8px; box-shadow: -4px 6px 18px rgba(8, 60, 74, .3);
}
.cl-capsule button {
  border: 0; cursor: pointer; background: none; color: #fff; writing-mode: vertical-lr;
  letter-spacing: 5px; font-size: 13px; padding: 12px 9px; border-radius: 999px 0 0 999px;
}
.cl-capsule button:hover { background: rgba(255, 255, 255, .18); }
.cl-capsule button:first-child { border-bottom: 1px dashed rgba(255, 255, 255, .45); border-radius: 0; padding-bottom: 14px; }

/* ---------- 名片弹层 ---------- */
.cl-modal {
  position: fixed; inset: 0; background: rgba(6, 32, 44, .62); z-index: 90;
  display: none; align-items: center; justify-content: center;
}
.cl-modal.cl-show { display: flex; }
.cl-modal-card {
  position: relative; width: 300px; height: 500px; background: #fff;
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.cl-modal-card img { width: 300px; height: 500px; object-fit: contain; background: #fff; display: block; }
.cl-modal-close {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(6, 32, 44, .75); color: #fff; font-size: 17px; cursor: pointer;
}

/* ---------- 页脚 ---------- */
.cl-footer { background: var(--cl-night); color: #9fc0c9; margin-top: 30px; }
.cl-footer-in { max-width: 1160px; margin: 0 auto; padding: 30px 20px; font-size: 13.5px; }
.cl-footer-brand { color: #fff; font-weight: 700; margin-bottom: 8px; }
.cl-footer-nav { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cl-footer-nav a { color: #9fc0c9; }
.cl-footer-nav a:hover { color: #fff; }
.cl-copy { color: #6d919d; font-size: 12.5px; margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .cl-nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: var(--cl-night); flex-direction: column; padding: 8px 14px 14px; border-bottom: 2px solid var(--cl-cyan);
  }
  .cl-nav.cl-open { display: flex; }
  .cl-nav a { padding: 11px 10px; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
  .cl-nav-btn { display: block; }
  .cl-header-in { position: relative; }
  .cl-cols { flex-direction: column-reverse; }
  .cl-rail { position: static; flex: none; width: 100%; order: 2; }
  .cl-main { padding: 22px 18px 26px; }
  .cl-h1 { font-size: 22px; }
  .cl-hero h1 { font-size: 28px; }
  .cl-stats { grid-template-columns: repeat(2, 1fr); }
  .cl-grid { grid-template-columns: 1fr; }
  .cl-boundary { grid-template-columns: 1fr; }
  /* 移动端文章分类默认折叠 */
  .cl-cat-block .cl-cat-list { display: none; }
  .cl-cat-block.cl-open .cl-cat-list { display: block; }
  .cl-capsule button span { letter-spacing: 3px; }
}
@media (max-width: 480px) {
  .cl-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cl-stats b { font-size: 18px; }
  .cl-hero { padding: 44px 16px 40px; }
}
