:root {
  --knowledge-ink: #162338;
  --knowledge-muted: #66778d;
  --knowledge-paper: #f4f7fb;
  --knowledge-red: #ef4444;
  --knowledge-line: rgba(15, 23, 42, .1);
}

.knowledge-site { color: var(--knowledge-ink); background: #fff; }
.knowledge-site main { overflow: hidden; }
.knowledge-site h1,
.knowledge-site h2,
.knowledge-site h3 { color: var(--knowledge-ink); letter-spacing: 0; }
.knowledge-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 42px; font-size: 13px; color: #71808d; }
.knowledge-breadcrumbs a { color: inherit; text-decoration: none; }
.knowledge-breadcrumbs a:hover { color: var(--knowledge-red); }
.knowledge-kicker,
.knowledge-section-heading > p,
.knowledge-cta__inner > div > p { margin: 0 0 14px; color: var(--knowledge-red); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.knowledge-hero { position: relative; display: grid; min-height: 640px; align-items: center; padding: 108px 0 76px; overflow: hidden; background: #f1f5f9; }
.knowledge-hero::before { position: absolute; inset: 0; z-index: 0; background-image: url("../images/knowledge/ai168-logistics-handbook.c93f110a03f5.webp"); background-position: center right; background-size: cover; content: ""; }
.knowledge-hero__backdrop { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(248,250,253,.99) 0%, rgba(248,250,253,.96) 38%, rgba(248,250,253,.74) 57%, rgba(248,250,253,.18) 78%, rgba(248,250,253,.06) 100%), linear-gradient(180deg, rgba(255,255,255,.4), rgba(239,244,249,.2)); }
.knowledge-hero__inner { position: relative; z-index: 2; }
.knowledge-hero__copy { width: min(690px, 57%); }
.knowledge-hero__copy h1 { max-width: 12ch; margin: 0; font-size: clamp(44px, 5.2vw, 68px); font-weight: 700; line-height: 1; }
.knowledge-hero__lead { max-width: 650px; margin: 26px 0 0; color: var(--knowledge-muted); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.knowledge-hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.knowledge-hero__actions .btn-secondary { border-color: rgba(15,23,42,.14); }

.knowledge-featured,
.knowledge-topics,
.knowledge-related { padding: 94px 0; }
.knowledge-section-heading { max-width: 860px; margin-bottom: 48px; }
.knowledge-section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; }
.knowledge-featured { background: linear-gradient(180deg, #fff, #f5f8fc); }
.knowledge-featured__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.knowledge-featured-card { display: flex; min-height: 300px; flex-direction: column; padding: 34px; border: 1px solid var(--knowledge-line); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 18px 40px rgba(20,38,63,.07); color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.knowledge-featured-card > span,
.knowledge-related__grid a > span { color: var(--knowledge-red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.knowledge-featured-card h3 { max-width: 560px; margin: 34px 0 15px; font-size: clamp(25px, 3vw, 38px); line-height: 1.07; }
.knowledge-featured-card p { margin: 0 0 28px; color: var(--knowledge-muted); line-height: 1.65; }
.knowledge-featured-card strong { margin-top: auto; font-size: 14px; }
.knowledge-featured-card:hover { border-color: rgba(239,68,68,.28); box-shadow: 0 24px 50px rgba(20,38,63,.12); transform: translateY(-3px); }

.knowledge-topics { position: relative; background: linear-gradient(180deg, #101723, #0c121d); color: white; }
.knowledge-topics::before { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(11,18,29,.94), rgba(11,18,29,.76)), url("../images/hero-block-background-neon.ec5f7c2cf04d.png"); background-position: center; background-size: cover; opacity: .26; content: ""; pointer-events: none; }
.knowledge-topics > .container { position: relative; z-index: 1; }
.knowledge-topics h2,
.knowledge-topics h3 { color: white; }
.knowledge-topics .knowledge-section-heading { border-color: rgba(255,255,255,.18); }
.knowledge-category { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.knowledge-category__intro { display: grid; grid-template-columns: 42px 1fr; gap: 20px; }
.knowledge-category__intro > span { color: #8da0b5; font-variant-numeric: tabular-nums; }
.knowledge-category__intro h3 { margin: 0 0 10px; font-size: 30px; }
.knowledge-category__intro p { margin: 0; color: #aebdcc; line-height: 1.55; }
.knowledge-category__links a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: white; text-decoration: none; font-size: 18px; }
.knowledge-category__links a:first-child { padding-top: 0; }
.knowledge-category__links a:last-child { border-bottom: 0; }
.knowledge-category__links i { color: #8da0b5; font-style: normal; transition: transform .2s ease; }
.knowledge-category__links a:hover i { color: #fff; transform: translate(3px, -3px); }
.knowledge-updated { margin: 36px 0 0; color: #8da0b5; font-size: 13px; }

.knowledge-article-hero { position: relative; padding: 112px 0 76px; overflow: hidden; background: radial-gradient(circle at 85% 12%, rgba(14,165,233,.1), transparent 28%), linear-gradient(180deg, #fbfdff, var(--knowledge-paper)); }
.knowledge-article-hero::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,52,82,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(30,52,82,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 58%, transparent 100%); content: ""; pointer-events: none; }
.knowledge-article-hero__inner { position: relative; z-index: 1; max-width: 1120px; }
.knowledge-article-hero h1 { max-width: 1000px; margin: 0; font-size: clamp(42px, 5vw, 64px); font-weight: 700; line-height: 1.02; }
.knowledge-article-hero__lead { max-width: 820px; margin: 28px 0 0; color: var(--knowledge-muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.knowledge-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.knowledge-keywords span { padding: 7px 11px; border: 1px solid #d4d0ca; border-radius: 999px; color: #66737e; font-size: 12px; }
.knowledge-article-layout { display: grid; grid-template-columns: minmax(0, 920px); justify-content: center; gap: 28px; padding-top: 56px; padding-bottom: 100px; }
.knowledge-article-content,
.knowledge-section-body { min-width: 0; }
.knowledge-article-aside { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: stretch; gap: 14px; }
.knowledge-aside-card { padding: 24px 26px; border: 1px solid var(--knowledge-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(20,38,63,.06); }
.knowledge-aside-card > strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.knowledge-aside-card ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: contents; }
.knowledge-aside-card li { counter-increment: contents; margin: 0; }
.knowledge-aside-card a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(15,23,42,.09); border-radius: 999px; background: #f5f8fb; color: #52657b; font-size: 12px; line-height: 1.35; text-decoration: none; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.knowledge-aside-card a:hover { color: var(--knowledge-red); }
.knowledge-aside-card a:hover { border-color: rgba(239,68,68,.26); background: #fff7f7; }
.knowledge-aside-note { margin: 0; padding: 22px; border-radius: 14px; background: linear-gradient(145deg, #17263a, #213750); box-shadow: 0 14px 34px rgba(20,38,63,.12); color: #fff; }
.knowledge-aside-note span { display: block; color: var(--knowledge-muted); font-size: 11px; text-transform: uppercase; }
.knowledge-aside-note span { color: #9fb0c4; }
.knowledge-aside-note strong { display: block; margin-top: 5px; color: #fff; font-size: 17px; }
.knowledge-aside-note p { margin: 12px 0 0; color: #bdc9d8; font-size: 12px; line-height: 1.5; }
.knowledge-quick-answer { padding: 34px 38px; background: linear-gradient(135deg, #17263a, #213750); color: white; border-radius: 16px; box-shadow: 0 20px 50px rgba(20,38,63,.16); }
.knowledge-quick-answer > span { color: #f3837d; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.knowledge-quick-answer h2 { margin: 10px 0 16px; color: white; font-size: 30px; }
.knowledge-quick-answer p { margin: 0; font-size: 18px; line-height: 1.65; }
.knowledge-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 32px; overflow: hidden; border: 1px solid var(--knowledge-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(20,38,63,.05); }
.knowledge-facts div { padding: 22px 24px; border-right: 1px solid var(--knowledge-line); }
.knowledge-facts div:last-child { border-right: 0; }
.knowledge-facts dt { color: var(--knowledge-red); font-size: 21px; font-weight: 850; }
.knowledge-facts dd { margin: 6px 0 0; color: var(--knowledge-muted); font-size: 12px; line-height: 1.35; }
.knowledge-article-content { padding: 18px; border-radius: 22px; background: #f4f7fb; }
.knowledge-copy-section { position: relative; display: block; margin: 0 0 18px; padding: 40px 44px 42px 94px; scroll-margin-top: 88px; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(20,38,63,.05); }
.knowledge-section-number { position: absolute; top: 43px; left: 38px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff1f1; color: var(--knowledge-red); font-size: 12px; font-weight: 850; }
.knowledge-section-body h2 { max-width: 16ch; margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
.knowledge-section-body > p { margin: 0 0 18px; color: #435362; font-size: 18px; line-height: 1.75; }
.knowledge-section-body > ul { display: grid; gap: 11px; margin: 26px 0; padding: 0; list-style: none; }
.knowledge-section-body > ul li { position: relative; padding-left: 34px; color: #435362; font-size: 17px; line-height: 1.6; }
.knowledge-section-body > ul li::before { position: absolute; top: .28em; left: 0; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #fff0f0; color: var(--knowledge-red); content: "✓"; font-size: 11px; font-weight: 900; line-height: 1; }
.knowledge-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--knowledge-line); }
.knowledge-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; }
.knowledge-table-wrap th { padding: 15px 18px; background: #f1f3f5; color: #475766; font-size: 12px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.knowledge-table-wrap td { padding: 16px 18px; border-top: 1px solid var(--knowledge-line); color: #3d4d5c; font-size: 14px; line-height: 1.5; vertical-align: top; }
.knowledge-table-wrap td:first-child { color: var(--knowledge-ink); font-weight: 750; }
.knowledge-callout { margin: 30px 0 0; padding: 24px 28px; border-left: 3px solid var(--knowledge-red); background: #fff4f1; }
.knowledge-callout strong { font-size: 14px; }
.knowledge-callout p { margin: 8px 0 0; color: #5b4d4b; line-height: 1.6; }
.knowledge-steps { display: grid; gap: 0; margin: 28px 0; padding: 0; list-style: none; }
.knowledge-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--knowledge-line); }
.knowledge-steps li > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--knowledge-ink); color: white; font-size: 13px; }
.knowledge-steps h3 { margin: 0 0 7px; font-size: 20px; }
.knowledge-steps p { margin: 0; color: var(--knowledge-muted); line-height: 1.6; }
.knowledge-faq { margin-top: 18px; padding: 42px 44px; scroll-margin-top: 90px; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(20,38,63,.05); }
.knowledge-faq h2 { margin: 0 0 28px; font-size: 44px; }
.knowledge-faq details { border-top: 1px solid var(--knowledge-line); }
.knowledge-faq details:last-child { border-bottom: 1px solid var(--knowledge-line); }
.knowledge-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 750; list-style: none; }
.knowledge-faq summary::-webkit-details-marker { display: none; }
.knowledge-faq summary span { color: var(--knowledge-red); font-size: 24px; font-weight: 400; }
.knowledge-faq details[open] summary span { transform: rotate(45deg); }
.knowledge-faq details p { max-width: 680px; margin: -6px 0 24px; color: var(--knowledge-muted); line-height: 1.65; }
.knowledge-source-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 18px 28px 4px; padding-top: 18px; border-top: 1px solid var(--knowledge-line); color: #788697; font-size: 12px; line-height: 1.55; }
.knowledge-source-note > span { flex: none; font-weight: 700; }
.knowledge-source-note p { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; }
.knowledge-source-note a { color: #60758a; text-decoration-color: rgba(96,117,138,.35); text-underline-offset: 3px; transition: color .18s ease, text-decoration-color .18s ease; }
.knowledge-source-note a:hover { color: var(--knowledge-red); text-decoration-color: rgba(239,68,68,.5); }
.knowledge-source-note i { color: #a4afba; font-style: normal; }

.knowledge-related { background: linear-gradient(180deg, #f4f8fc, #edf3f9); }
.knowledge-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.knowledge-related__grid a { display: flex; min-height: 230px; flex-direction: column; padding: 28px; border: 1px solid var(--knowledge-line); border-radius: 14px; background: white; box-shadow: 0 16px 36px rgba(20,38,63,.06); color: inherit; text-decoration: none; }
.knowledge-related__grid h3 { margin: 28px 0 20px; font-size: 25px; line-height: 1.12; }
.knowledge-related__grid strong { margin-top: auto; font-size: 13px; }
.knowledge-related__grid i { margin-left: 5px; font-style: normal; }
.knowledge-cta { padding: 72px 0; background: white; }
.knowledge-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 42px 48px; border-radius: 18px; background: linear-gradient(110deg, rgba(14,165,233,.12), transparent 42%), #17263a; box-shadow: 0 28px 70px rgba(20,38,63,.18); color: white; }
.knowledge-cta__inner h2 { margin: 0 0 10px; color: white; font-size: clamp(32px, 4vw, 52px); }
.knowledge-cta__inner span { color: #bac6d2; }
.knowledge-cta__inner .btn { flex: none; }

@media (max-width: 980px) {
  .knowledge-hero { min-height: 600px; }
  .knowledge-hero::before { background-position: 62% center; }
  .knowledge-hero__backdrop { background: linear-gradient(90deg, rgba(248,250,253,.99) 0%, rgba(248,250,253,.94) 52%, rgba(248,250,253,.52) 76%, rgba(248,250,253,.2) 100%); }
  .knowledge-hero__copy { width: min(650px, 68%); }
  .knowledge-category { grid-template-columns: 1fr; gap: 30px; }
  .knowledge-article-layout { grid-template-columns: minmax(0, 820px); }
  .knowledge-article-aside { grid-template-columns: 1fr; }
  .knowledge-aside-note { display: none; }
  .knowledge-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .knowledge-hero,
  .knowledge-article-hero { padding: 92px 0 54px; }
  .knowledge-hero { min-height: auto; padding: 96px 0 58px; }
  .knowledge-hero::before { background-position: 68% center; }
  .knowledge-hero__backdrop { background: linear-gradient(180deg, rgba(248,250,253,.98) 0%, rgba(248,250,253,.94) 62%, rgba(248,250,253,.8) 100%); }
  .knowledge-breadcrumbs { margin-bottom: 30px; }
  .knowledge-hero__copy { width: 100%; }
  .knowledge-hero__copy h1,
  .knowledge-article-hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .knowledge-hero__actions { align-items: flex-start; flex-direction: column; }
  .knowledge-featured,
  .knowledge-topics,
  .knowledge-related { padding: 64px 0; }
  .knowledge-section-heading { display: block; }
  .knowledge-section-heading h2 { margin-left: 0; text-align: left; }
  .knowledge-featured__grid { grid-template-columns: 1fr; }
  .knowledge-featured-card { min-height: 0; padding: 26px; }
  .knowledge-category__intro { grid-template-columns: 34px 1fr; }
  .knowledge-category__links a { font-size: 16px; }
  .knowledge-article-layout { padding-top: 42px; padding-bottom: 70px; }
  .knowledge-article-aside { display: none; }
  .knowledge-article-content { padding: 8px; border-radius: 16px; }
  .knowledge-quick-answer { padding: 28px 24px; border-radius: 3px 22px 3px 3px; }
  .knowledge-facts { grid-template-columns: 1fr; margin-bottom: 58px; }
  .knowledge-facts div { border-right: 0; border-bottom: 1px solid var(--knowledge-line); }
  .knowledge-facts div:last-child { border-bottom: 0; }
  .knowledge-copy-section { margin-bottom: 10px; padding: 28px 22px; }
  .knowledge-section-number { position: static; width: 30px; height: 30px; margin-bottom: 18px; }
  .knowledge-section-body h2 { font-size: 34px; }
  .knowledge-section-body > p { font-size: 17px; }
  .knowledge-table-wrap { margin-inline: -18px; }
  .knowledge-faq { margin-top: 10px; padding: 30px 22px; }
  .knowledge-source-note { margin: 14px 14px 4px; padding-top: 16px; }
  .knowledge-cta__inner { align-items: flex-start; flex-direction: column; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-featured-card,
  .knowledge-text-link span,
  .knowledge-category__links i { transition: none; }
}
