/* CodeNest 首页重构 · 2026-12
   仅作用于带 cn-home-page / cn-home 的首页，不影响内页。 */
.cn-home-page {
  --cn-bg: #080b12;
  --cn-bg-soft: #0c111b;
  --cn-panel: #101722;
  --cn-panel-strong: #151e2c;
  --cn-text: #f2f5fa;
  --cn-muted: #96a1b3;
  --cn-faint: #667186;
  --cn-line: rgba(151, 165, 190, .16);
  --cn-line-strong: rgba(151, 165, 190, .28);
  --cn-accent: #97a5ff;
  --cn-accent-strong: #7587ff;
  --cn-mint: #68e0c0;
  --cn-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  background-color: var(--cn-bg);
  background-image:
    radial-gradient(70rem 42rem at 85% -10%, rgba(117, 135, 255, .09), transparent 64%),
    radial-gradient(48rem 34rem at -12% 22%, rgba(104, 224, 192, .05), transparent 66%);
}

:root[data-theme="light"] .cn-home-page {
  --cn-bg: #f6f7f9;
  --cn-bg-soft: #eff1f5;
  --cn-panel: #ffffff;
  --cn-panel-strong: #f4f5f8;
  --cn-text: #161b26;
  --cn-muted: #626d7e;
  --cn-faint: #8791a0;
  --cn-line: rgba(28, 39, 58, .12);
  --cn-line-strong: rgba(28, 39, 58, .22);
  --cn-accent: #586cdb;
  --cn-accent-strong: #4056c4;
  --cn-mint: #087f69;
  --cn-shadow: 0 24px 60px rgba(33, 44, 66, .09);
  background-image:
    radial-gradient(70rem 42rem at 85% -10%, rgba(88, 108, 219, .08), transparent 64%),
    radial-gradient(48rem 34rem at -12% 22%, rgba(8, 127, 105, .04), transparent 66%);
}

.cn-home-page::selection,
.cn-home-page *::selection { background: rgba(117, 135, 255, .3); color: var(--cn-text); }

.cn-home-page > header {
  background: color-mix(in srgb, var(--cn-bg) 82%, transparent);
  border-bottom-color: var(--cn-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.cn-home-page > header .container-page { height: 72px; }
.cn-home-page > header + main { padding-top: 72px; }
.cn-home-page .dr-brand { letter-spacing: -.02em; }
.cn-home-page > footer { margin-top: clamp(72px, 8vw, 108px); background: var(--cn-bg-soft); border-top-color: var(--cn-line); }

.cn-home { position: relative; overflow: clip; color: var(--cn-text); }
.cn-home .container-page { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.cn-home a { -webkit-tap-highlight-color: transparent; }
.cn-home a:focus-visible,
.cn-home button:focus-visible,
.cn-home input:focus-visible { outline: 2px solid var(--cn-accent); outline-offset: 4px; }

/* 首屏 */
.cn-hero { position: relative; isolation: isolate; padding: clamp(58px, 7vw, 96px) 0 0; }
.cn-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 720px;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(var(--cn-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cn-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cn-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(117, 135, 255, .13);
  filter: blur(110px);
}

.cn-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: clamp(48px, 6vw, 82px);
}

.cn-hero-copy { min-width: 0; animation: cn-enter .65s ease both; }
.cn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--cn-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cn-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cn-mint); }
.cn-eyebrow b { color: var(--cn-mint); font-weight: 650; }

.cn-home #hero-slogan.cn-hero-title {
  max-width: 680px;
  min-height: 2.2em;
  margin: 0;
  color: var(--cn-text);
  font-size: clamp(40px, 4.65vw, 66px);
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -.055em;
}

.cn-hero-title .slogan-line[data-line="2"] {
  color: var(--cn-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.cn-hero-intro {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--cn-muted);
  font-size: 15px;
  line-height: 1.9;
}

.cn-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 610px;
  min-height: 62px;
  margin-top: 32px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--cn-line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--cn-panel) 88%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12), inset 0 1px rgba(255, 255, 255, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cn-search:focus-within { border-color: var(--cn-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cn-accent) 12%, transparent); }
.cn-search > svg { flex: none; width: 20px; height: 20px; color: var(--cn-faint); }
.cn-search input {
  min-width: 0;
  flex: 1;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cn-text);
  font-size: 14px;
}
.cn-search input::placeholder { color: var(--cn-faint); }
.cn-search kbd {
  flex: none;
  min-width: 26px;
  padding: 3px 7px;
  border: 1px solid var(--cn-line);
  border-radius: 6px;
  color: var(--cn-faint);
  background: var(--cn-panel-strong);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
.cn-search button {
  flex: none;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  color: #0b1020;
  background: #a9b4ff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.cn-search button:hover { background: #bdc5ff; transform: translateY(-1px); }

.cn-hot-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 12px; }
.cn-hot-tags > span { color: var(--cn-faint); }
.cn-hot-tags a { color: var(--cn-muted); text-decoration: none; transition: color .2s ease; }
.cn-hot-tags a::before { content: "#"; margin-right: 2px; color: var(--cn-faint); }
.cn-hot-tags a:hover { color: var(--cn-accent); }

.cn-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--cn-line-strong);
  border-radius: 11px;
  color: var(--cn-text);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cn-btn svg { width: 16px; height: 16px; }
.cn-btn:hover { border-color: var(--cn-accent); transform: translateY(-2px); }
.cn-btn-primary { border-color: #91a0ff; color: #fff; background: #7184f3; }
.cn-btn-primary:hover { border-color: #aab5ff; background: #8293f7; }

.cn-hero-stats { display: flex; max-width: 610px; margin: 38px 0 0; padding: 24px 0 0; border-top: 1px solid var(--cn-line); }
.cn-hero-stats > div { flex: 1; min-width: 0; padding-left: 22px; border-left: 1px solid var(--cn-line); }
.cn-hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.cn-hero-stats dd {
  margin: 0;
  color: var(--cn-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.05em;
}
.cn-hero-stats dt { margin-top: 6px; color: var(--cn-faint); font-size: 11px; letter-spacing: .06em; }

/* 技术雷达 */
.cn-radar-wrap { position: relative; min-width: 0; animation: cn-enter .7s .1s ease both; }
.cn-radar-wrap::before {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 12%;
  z-index: -1;
  border: 1px solid var(--cn-line);
  border-radius: 28px;
  transform: rotate(4deg);
}
.cn-radar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 174, 204, .2);
  border-radius: 24px;
  color: #ecf1fb;
  background: #0d131e;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .05);
}
.cn-radar-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(160, 174, 204, .13); }
.cn-window-dots { display: flex; gap: 6px; }
.cn-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3a4558; }
.cn-window-dots i:first-child { background: #7184f3; }
.cn-radar-live { display: inline-flex; align-items: center; gap: 7px; color: #7fe3c5; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.cn-radar-live i,
.cn-radar-foot i { width: 6px; height: 6px; border-radius: 50%; background: #68e0c0; box-shadow: 0 0 0 4px rgba(104, 224, 192, .09); animation: cn-pulse 2.2s ease infinite; }
.cn-radar-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.cn-radar-heading span { color: #758299; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.cn-radar-heading h2 { margin: 6px 0 0; color: #f2f5fa; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.cn-radar-heading .cn-radar-code { padding-top: 3px; color: #657188; }
.cn-radar-stage { position: relative; height: 260px; margin: 0 12px; }
.cn-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(142, 157, 190, .16); border-radius: 50%; transform: translate(-50%, -50%); }
.cn-orbit-a { width: 218px; height: 218px; }
.cn-orbit-b { width: 154px; height: 154px; border-style: dashed; }
.cn-orbit-c { width: 86px; height: 86px; border-color: rgba(151, 165, 255, .22); }
.cn-radar-cross::before,
.cn-radar-cross::after { content: ""; position: absolute; top: 50%; left: 50%; background: rgba(142, 157, 190, .09); transform: translate(-50%, -50%); }
.cn-radar-cross::before { width: 260px; height: 1px; }
.cn-radar-cross::after { width: 1px; height: 240px; }
.cn-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 218px;
  height: 218px;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 20deg, transparent 0deg, transparent 290deg, rgba(104, 224, 192, .1) 340deg, rgba(104, 224, 192, .25) 360deg);
  animation: cn-radar-spin 9s linear infinite;
}
.cn-radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(151, 165, 255, .36);
  border-radius: 50%;
  color: #aab5ff;
  background: #131c2b;
  box-shadow: 0 0 36px rgba(117, 135, 255, .15);
  transform: translate(-50%, -50%);
}
.cn-radar-core svg { width: 25px; height: 25px; }
.cn-radar-core span { margin-top: 4px; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.cn-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(151, 165, 190, .2);
  border-radius: 6px;
  color: #9ba8bd;
  background: #121a27;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
}
.cn-node::before { content: ""; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: #68e0c0; }
.cn-node-ai { top: 18%; left: 17%; }
.cn-node-oss { top: 21%; right: 12%; }
.cn-node-web { top: 58%; right: 5%; }
.cn-node-ops { bottom: 9%; left: 24%; }
.cn-node-api { top: 48%; left: 5%; }
.cn-radar-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 20px 20px; border: 1px solid rgba(151, 165, 190, .13); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.cn-radar-pipeline > div { position: relative; min-width: 0; padding: 13px 12px; border-left: 1px solid rgba(151, 165, 190, .12); }
.cn-radar-pipeline > div:first-child { border-left: 0; }
.cn-radar-pipeline > div > span { color: #66758e; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.cn-radar-pipeline p { margin: 5px 0 0; }
.cn-radar-pipeline strong { display: block; color: #dce4f2; font-size: 12px; font-weight: 600; }
.cn-radar-pipeline small { display: block; overflow: hidden; margin-top: 3px; color: #748198; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cn-radar-foot { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 20px; border-top: 1px solid rgba(151, 165, 190, .12); color: #6f7c92; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.cn-radar-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

.cn-source-strip { display: flex; align-items: center; gap: 28px; margin-top: clamp(54px, 7vw, 84px); padding: 22px 0; border-top: 1px solid var(--cn-line); border-bottom: 1px solid var(--cn-line); }
.cn-source-strip > span { flex: none; color: var(--cn-faint); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.cn-source-list { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--cn-muted); }
.cn-source-list span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.cn-source-list span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cn-faint); }

/* 通用内容区 */
.cn-section { margin-top: clamp(72px, 8vw, 108px); }
.cn-section-head { margin-bottom: 28px !important; }
.cn-home .section-title { position: relative; margin: 0; padding-left: 16px; color: var(--cn-text); font-size: clamp(23px, 2.5vw, 30px); font-weight: 720; letter-spacing: -.035em; }
.cn-home .section-title::before { content: ""; position: absolute; top: .2em; bottom: .15em; left: 0; width: 3px; border-radius: 4px; background: var(--cn-accent); }
.cn-section-head p { color: var(--cn-muted) !important; line-height: 1.7; }
.cn-section-head > a { color: var(--cn-muted) !important; font-size: 12px !important; text-decoration: none; }
.cn-section-head > a:hover { color: var(--cn-accent) !important; }
.cn-home .card {
  border-color: var(--cn-line);
  border-radius: 15px;
  color: var(--cn-text);
  background: color-mix(in srgb, var(--cn-panel) 88%, transparent);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.cn-home .card::before { display: none; }
.cn-home .card-hover:hover { border-color: color-mix(in srgb, var(--cn-accent) 50%, var(--cn-line)); background: var(--cn-panel); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); transform: translateY(-3px); }
.cn-home .card h3,
.cn-home .card b { color: var(--cn-text); }
.cn-home .chip { border-color: var(--cn-line); border-radius: 7px; color: var(--cn-muted); background: var(--cn-panel-strong); }

/* 快捷入口 */
.cn-quick .quick-card { position: relative; min-height: 148px; padding: 22px; border-radius: 15px; counter-increment: cn-quick; }
.cn-quick .grid { counter-reset: cn-quick; }
.cn-quick .quick-card::after { content: "0" counter(cn-quick); position: absolute; top: 21px; right: 20px; color: var(--cn-faint); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.cn-quick .quick-card .quick-ico { width: 38px; height: 38px; margin-bottom: 19px; border: 1px solid color-mix(in srgb, var(--cn-accent) 22%, transparent); border-radius: 10px; color: var(--cn-accent); background: color-mix(in srgb, var(--cn-accent) 9%, transparent); }
.cn-quick .quick-card b { font-size: 14px; }
.cn-quick .quick-card small { max-width: 170px; color: var(--cn-muted); font-size: 11px; }
.cn-quick .quick-card:hover { border-color: color-mix(in srgb, var(--cn-accent) 52%, var(--cn-line)); background: var(--cn-panel); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }

/* 文章与教程 */
.cn-articles .card { min-height: 124px; padding: 16px; }
.cn-articles .card > div:first-child { border-radius: 10px; }
.cn-articles .card h3 { font-size: 14px; line-height: 1.55; }
.cn-articles .card p { color: var(--cn-muted); }
.cn-tutorials { padding: clamp(52px, 6vw, 76px) 0; border-top: 1px solid var(--cn-line); border-bottom: 1px solid var(--cn-line); background: color-mix(in srgb, var(--cn-bg-soft) 76%, transparent); }
.cn-tutorials .card { padding: 18px; }
.cn-tutorials .card > div:first-child { border-radius: 10px; }
.cn-tutorials .no-scrollbar { scrollbar-width: none; }
.cn-tutorials .no-scrollbar::-webkit-scrollbar { display: none; }

/* 资源 */
.cn-category-grid > a { min-height: 84px; justify-content: center; border-radius: 13px; }
.cn-category-grid > a > span:first-child { color: var(--cn-accent); }
.cn-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.cn-resource-grid > div { width: auto !important; }
.cn-resource-grid .card { height: 100%; }
.cn-resource-grid .card > .h-1 { height: 2px; }
.cn-resource-grid .chip { background: transparent; }

/* 服务与结尾 CTA */
.cn-services .card { min-height: 250px; }
.cn-services .card .btn-primary { min-height: 42px; border-radius: 9px; background: color-mix(in srgb, var(--cn-accent-strong) 88%, transparent); font-size: 12px; }
.cn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--cn-line-strong);
  border-radius: 22px;
  background: var(--cn-panel);
  box-shadow: var(--cn-shadow);
}
.cn-cta::after { content: "</>"; position: absolute; right: 28%; bottom: -62px; color: color-mix(in srgb, var(--cn-accent) 6%, transparent); font: 180px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.2em; pointer-events: none; transform: rotate(-10deg); }
.cn-cta-copy { position: relative; z-index: 1; }
.cn-cta-copy > span { color: var(--cn-mint); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.cn-cta h2 { margin: 12px 0 0; color: var(--cn-text); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -.04em; }
.cn-cta p { max-width: 550px; margin: 14px 0 0; color: var(--cn-muted); font-size: 13px; line-height: 1.8; }
.cn-cta-actions { position: relative; z-index: 1; display: flex; flex: none; flex-direction: column; gap: 10px; min-width: 160px; }

/* 首页悬浮工具 */
.cn-home-page .dr-quickbar { right: 18px; bottom: 18px; }
.cn-home-page .quick-btn { border-color: var(--cn-line-strong); color: var(--cn-muted); background: color-mix(in srgb, var(--cn-panel) 90%, transparent); }
.cn-home-page .quick-btn:hover { color: var(--cn-accent); border-color: var(--cn-accent); }

@keyframes cn-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes cn-radar-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 1100px) {
  .cn-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 38px; }
  .cn-home #hero-slogan.cn-hero-title { font-size: clamp(38px, 4.5vw, 54px); }
  .cn-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cn-source-strip { gap: 20px; }
  .cn-source-list { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .cn-home-page > header .container-page { height: 64px; }
  .cn-home-page > header + main { padding-top: 64px; }
  .cn-hero { padding-top: 50px; }
  .cn-hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .cn-hero-copy { max-width: 700px; }
  .cn-home #hero-slogan.cn-hero-title { max-width: 650px; font-size: clamp(42px, 7.5vw, 62px); }
  .cn-radar-wrap { width: min(100%, 580px); margin: 0 auto; }
  .cn-source-strip { align-items: flex-start; flex-direction: column; gap: 16px; }
  .cn-source-list { width: 100%; justify-content: space-between; }
  .cn-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-quick .quick-card { min-height: 138px; }
}

@media (max-width: 639px) {
  .cn-home .container-page { width: min(100% - 32px, 1180px); }
  .cn-hero { padding-top: 38px; }
  .cn-hero::before { background-size: 44px 44px; }
  .cn-eyebrow { margin-bottom: 18px; font-size: 9px; }
  .cn-home #hero-slogan.cn-hero-title { min-height: 2.35em; font-size: clamp(34px, 10.4vw, 46px); line-height: 1.18; }
  .cn-hero-intro { margin-top: 18px; font-size: 13px; line-height: 1.85; }
  .cn-search { min-height: 56px; margin-top: 25px; padding: 6px 6px 6px 14px; border-radius: 14px; }
  .cn-search input { height: 42px; font-size: 13px; }
  .cn-search kbd { display: none; }
  .cn-search button { min-height: 42px; padding: 0 17px; }
  .cn-hot-tags { gap: 8px 12px; }
  .cn-hot-tags a:nth-of-type(n+5) { display: none; }
  .cn-hero-actions { margin-top: 24px; }
  .cn-hero-actions .cn-btn { flex: 1; }
  .cn-hero-stats { margin-top: 30px; padding-top: 20px; }
  .cn-hero-stats > div { padding-left: 13px; }
  .cn-hero-stats dd { font-size: 20px; }
  .cn-hero-stats dt { font-size: 10px; letter-spacing: 0; }
  .cn-radar-wrap::before { display: none; }
  .cn-radar { border-radius: 19px; }
  .cn-radar-heading { padding: 19px 18px 0; }
  .cn-radar-stage { height: 230px; transform: scale(.92); transform-origin: center; }
  .cn-radar-pipeline { margin: 0 12px 14px; }
  .cn-radar-pipeline > div { padding: 11px 9px; }
  .cn-radar-pipeline small { font-size: 8px; }
  .cn-source-strip { margin-top: 46px; padding: 19px 0; }
  .cn-source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .cn-source-list span { font-size: 11px; }
  .cn-section { margin-top: 66px; }
  .cn-section-head { margin-bottom: 22px !important; }
  .cn-home .section-title { font-size: 23px; }
  .cn-section-head p { max-width: 260px; font-size: 12px !important; }
  .cn-quick .grid { gap: 12px !important; }
  .cn-quick .quick-card { min-height: 132px; padding: 17px; }
  .cn-quick .quick-card::after { top: 16px; right: 14px; }
  .cn-quick .quick-card .quick-ico { width: 34px; height: 34px; margin-bottom: 14px; }
  .cn-quick .quick-card small { font-size: 10px; line-height: 1.55; }
  .cn-articles .grid { gap: 12px !important; }
  .cn-articles .card { min-height: 108px; padding: 12px; }
  .cn-tutorials { padding: 50px 0; }
  .cn-tutorials .card { padding: 13px; }
  .cn-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 9px !important; }
  .cn-category-grid > a { min-height: 72px; padding: 10px 5px !important; }
  .cn-resource-grid { display: flex; gap: 12px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .cn-resource-grid::-webkit-scrollbar { display: none; }
  .cn-resource-grid > div { width: 258px !important; }
  .cn-services .card { min-height: 0; }
  .cn-cta { align-items: flex-start; flex-direction: column; gap: 26px; padding: 28px 24px; border-radius: 18px; }
  .cn-cta-actions { width: 100%; flex-direction: row; }
  .cn-cta-actions .cn-btn { flex: 1; padding: 0 12px; }
  .cn-home-page > footer { margin-top: 66px; }
  .cn-home-page .dr-quickbar { right: 12px; bottom: 12px; }
}

@media (max-width: 380px) {
  .cn-home #hero-slogan.cn-hero-title { font-size: 32px; }
  .cn-search button { padding: 0 13px; }
  .cn-hero-stats dd { font-size: 18px; }
  .cn-radar-stage { margin: 0 -4px; transform: scale(.82); }
  .cn-radar-pipeline small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-hero-copy,
  .cn-radar-wrap,
  .cn-radar-sweep,
  .cn-radar-live i,
  .cn-radar-foot i { animation: none !important; }
  .cn-home .card-hover:hover,
  .cn-btn:hover,
  .cn-search button:hover { transform: none; }
}
