.codearts-article-page { color: #243b59; background: #f4f8fc; }

.codearts-article-page main { min-height: 70vh; }

.codearts-article-hero { height: 430px; min-height: 430px; display: flex; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 20%,rgba(33,151,255,.3),transparent 33%),linear-gradient(135deg,#031b43,#074e9e); }

.codearts-article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 25px; color: #a9c8e8; font-size: 14px; }

.codearts-article-breadcrumb a { color: #d5e9ff; }

.codearts-article-breadcrumb a:hover { color: #fff; }

.codearts-article-badge { display: inline-flex; align-items: center; padding: 6px 12px; color: #8ddcff; border: 1px solid rgba(91,204,255,.42); border-radius: 999px; background: rgba(17,117,207,.22); font-size: 13px; font-weight: 600; letter-spacing: .4px; }

.codearts-article-hero h1 { max-width: 940px; margin: 17px 0 14px; color: #fff; font-size: clamp(30px,4vw,48px); line-height: 1.28; }

.codearts-article-summary { max-width: 960px; margin: 0; color: #c0d7ee; font-size: 17px; line-height: 1.9; }

.codearts-article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.codearts-article-meta span { padding: 6px 10px; color: #d4eaff; border-radius: 5px; background: rgba(255,255,255,.09); font-size: 13px; }

.codearts-article-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: start; gap: 30px; padding-top: 44px; padding-bottom: 62px; }

.codearts-article-toc { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow: auto; padding: 21px 18px; border: 1px solid #d8e5f2; border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(28,83,151,.05); }

.codearts-article-toc h2 { margin: 0 0 13px; color: #17385f; font-size: 17px; }

.codearts-article-toc ol { margin: 0; padding: 0; list-style: none; }

.codearts-article-toc li + li { margin-top: 2px; }

.codearts-article-toc li.is-sub { padding-left: 13px; }

.codearts-article-toc a { display: block; padding: 7px 8px; color: #61758d; border-radius: 5px; font-size: 13px; line-height: 1.55; }

.codearts-article-toc a:hover { color: #096fdc; background: #eef6ff; }

.codearts-article { min-width: 0; padding: 42px 46px; border: 1px solid #d8e5f2; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(28,83,151,.06); }

.codearts-article > p:first-child { margin-top: 0; padding: 18px 20px; color: #405b78; border-left: 4px solid #1680eb; border-radius: 0 7px 7px 0; background: #f0f7ff; }

.codearts-article h2,.codearts-article h3 { scroll-margin-top: 90px; color: #17385f; }

.codearts-article h3 { margin: 45px 0 17px; padding-bottom: 11px; border-bottom: 1px solid #e2ebf4; font-size: 24px; line-height: 1.5; }

.codearts-article h2 { margin: 31px 0 13px; font-size: 20px; line-height: 1.55; }

.codearts-article p { margin: 0 0 17px; color: #455d76; line-height: 1.9; }

.codearts-article ul,.codearts-article ol { margin: 0 0 20px; padding-left: 24px; color: #455d76; }

.codearts-article li { margin-bottom: 9px; padding-left: 3px; line-height: 1.85; }

.codearts-article strong { color: #234b77; }

.codearts-article .table-wrap { margin: 24px 0 28px; overflow-x: auto; border: 1px solid #d8e5f2; border-radius: 8px; }

.codearts-article table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }

.codearts-article th { padding: 13px 14px; color: #fff; background: #176fcd; text-align: left; white-space: nowrap; }

.codearts-article td { padding: 12px 14px; color: #4a6077; border-bottom: 1px solid #e1ebf4; line-height: 1.65; vertical-align: top; }

.codearts-article tr:last-child td { border-bottom: 0; }

.codearts-article tbody tr:nth-child(even) { background: #f7faff; }

.codearts-article blockquote { margin: 31px 0 0; padding: 20px 22px; color: #536d88; border: 1px solid #cfe2f5; border-radius: 8px; background: #f7fbff; }

.codearts-article blockquote strong { color: #426686; }

.codearts-article-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 27px; border-top: 1px solid #e1eaf3; }

.codearts-article-back { color: #176fcf; font-weight: 600; }

.codearts-article-back:hover { color: #075db7; }

.codearts-article-cta { padding: 35px 0; color: #fff; background: linear-gradient(90deg,#0877eb,#075aca); }

.codearts-article-cta .page-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.codearts-article-cta h2 { margin: 0; color: #fff; }

.codearts-article-cta p { margin: 7px 0 0; color: #d7e8ff; }

.codearts-article-cta .button { min-width: 168px; color: #0864cc; background: #fff; }

@media (max-width: 960px) {
  .codearts-article-layout { grid-template-columns: 1fr; }
  .codearts-article-toc { position: static; max-height: none; }
  .codearts-article-toc ol { columns: 2; column-gap: 24px; }
  .codearts-article-toc li { break-inside: avoid; }
}

@media (max-width: 700px) {
  .codearts-article-hero { height: 430px; min-height: 430px; }
  .codearts-article-breadcrumb { margin-bottom: 18px; }
  .codearts-article-hero h1 { margin-top: 14px; font-size: 29px; }
  .codearts-article-summary { font-size: 15px; line-height: 1.8; }
  .codearts-article-layout { gap: 18px; padding-top: 25px; padding-bottom: 42px; }
  .codearts-article-toc { padding: 17px 14px; }
  .codearts-article-toc ol { columns: 1; }
  .codearts-article { padding: 25px 17px; border-radius: 8px; }
  .codearts-article h3 { margin-top: 36px; font-size: 21px; }
  .codearts-article h2 { font-size: 18px; }
  .codearts-article > p:first-child { padding: 15px 14px; }
  .codearts-article-actions { align-items: stretch; flex-direction: column; }
  .codearts-article-actions .button { text-align: center; }
  .codearts-article-cta .page-shell { display: block; text-align: center; }
  .codearts-article-cta .button { margin-top: 19px; }
}
