:root {
  --blog-navy: #06162f;
  --blog-deep: #071b3b;
  --blog-blue: #075cff;
  --blog-cyan: #36d8ff;
  --blog-text: #0d1728;
  --blog-muted: #68758a;
  --blog-line: #dbe2ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.theme-blog { margin: 0; color: var(--blog-text); background: #fff; font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.theme-blog a { color: inherit; text-decoration: none; }
.theme-blog button, .theme-blog input { font: inherit; }
.theme-blog img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.blog-header { position: sticky; top: 0; z-index: 30; }
.theme-blog .blog-header .nav-cta { color: #fff; }
.blog-header .nav-cta i { margin-left: 8px; color: var(--blog-cyan); font-size: 12px; }
.blog-header .nav-cta .cta-arrow { transform: rotate(-45deg); }
.blog-menu-toggle { display: none; width: 42px; height: 42px; place-items: center; color: var(--blog-text); border: 1px solid #e0e6ef; background: #fff; cursor: pointer; }

.blog-hero { position: relative; overflow: hidden; color: #fff; background-color: var(--blog-navy); background-image: linear-gradient(rgba(43,117,220,.085) 1px, transparent 1px), linear-gradient(90deg, rgba(43,117,220,.085) 1px, transparent 1px), radial-gradient(circle at 84% 46%, rgba(0,103,255,.28), transparent 38%); background-size: 56px 56px, 56px 56px, auto; }
.blog-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(2,12,29,.12), transparent 42%, rgba(4,20,46,.08)); }
.blog-hero-inner { position: relative; z-index: 1; width: min(1248px, calc(100% - 64px)); min-height: 360px; margin: auto; padding: 42px 0 34px; display: grid; grid-template-columns: minmax(440px,.9fr) minmax(690px,1.45fr); align-items: center; gap: 42px; }
.blog-kicker { margin: 0 0 24px; color: var(--blog-cyan); font-size: 12px; font-weight: 800; letter-spacing: 2.1px; }
.blog-kicker span { margin: 0 8px; opacity: .55; }
.blog-intro h1 { margin: 0; color: #fff; font-size: clamp(48px,3.75vw,56px); line-height: 1.08; letter-spacing: -2.5px; white-space: nowrap; }
.blog-title-rule { display: block; width: 42px; height: 4px; margin: 26px 0 24px; background: var(--blog-cyan); }
.blog-lede { max-width: 480px; margin: 0; color: #b7c7de; font-size: 15px; line-height: 1.9; }

.featured-story { min-width: 0; display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid rgba(117,190,255,.28); background: rgba(8,31,67,.58); backdrop-filter: blur(8px); }
.featured-image { min-height: 270px; display: block; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.featured-story:hover .featured-image img { transform: scale(1.035); }
.featured-copy { min-width: 0; padding: 27px 30px 23px; display: flex; flex-direction: column; }
.featured-label { margin-bottom: 15px; color: #2185ff; font-size: 12px; font-weight: 800; }
.featured-copy h2 { margin: 0; color: #fff; font-size: clamp(21px,2vw,29px); line-height: 1.42; letter-spacing: -.5px; }
.featured-copy h2 a:hover { color: #8ee9ff; }
.featured-copy > p { margin: 14px 0 20px; color: #aebed4; font-size: 13px; line-height: 1.75; }
.featured-meta { margin-top: auto; padding-top: 17px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; color: #91a3bd; font-size: 11px; border-top: 1px solid rgba(155,196,240,.15); }
.featured-meta time { color: #1a78ff; }
.featured-meta span i { margin-right: 5px; color: #dce7f7; }
.featured-meta a { justify-self: end; color: #1780ff; font-size: 22px; transition: transform .25s, color .25s; }
.featured-meta a:hover { color: var(--blog-cyan); transform: translateX(5px); }

.blog-library { width: min(1248px, calc(100% - 64px)); margin: auto; padding: 29px 0 88px; }
.library-toolbar { min-height: 54px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--blog-line); }
.category-filters { display: flex; align-self: stretch; gap: 34px; }
.category-filters button { position: relative; padding: 0; color: #303a4c; border: 0; background: transparent; font-size: 13px; cursor: pointer; }
.category-filters button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blog-blue); transform: scaleX(0); transition: transform .25s; }
.category-filters button:hover, .category-filters button.is-active { color: var(--blog-blue); }
.category-filters button.is-active::after { transform: scaleX(1); }
.blog-search { width: 232px; height: 40px; display: grid; grid-template-columns: 1fr 38px; border-bottom: 1px solid #acb7c7; }
.blog-search:focus-within { border-color: var(--blog-blue); }
.blog-search input { min-width: 0; padding: 0 7px; color: var(--blog-text); border: 0; outline: 0; background: transparent; font-size: 12px; }
.blog-search input::placeholder { color: #99a4b5; }
.blog-search button { color: #101827; border: 0; background: transparent; cursor: pointer; }
.blog-search button:hover { color: var(--blog-blue); }

.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 31px 30px; }
.article-card { min-width: 0; transition: transform .28s; }
.article-card[hidden] { display: none; }
.article-card:hover { transform: translateY(-4px); }
.published-card-link { display: block; }
.published-card-link:hover h3 { color: var(--blog-blue); }
.article-image { position: relative; height: 150px; display: block; overflow: hidden; background: #0b2145; }
.article-image::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blog-cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.article-card:hover .article-image::after { transform: scaleX(1); }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s; }
.article-card:hover .article-image img { transform: scale(1.035); filter: brightness(1.08); }
.article-copy { padding-top: 14px; }
.article-copy h3 { margin: 0; color: #111a28; font-size: 17px; line-height: 1.45; }
.article-copy h3 a:hover { color: var(--blog-blue); }
.article-copy > p { min-height: 45px; margin: 6px 0 15px; color: #697588; font-size: 12px; line-height: 1.65; }
.article-meta { display: flex; align-items: center; gap: 13px; color: #8994a5; font-size: 10px; }
.article-meta > * + * { padding-left: 13px; border-left: 1px solid #cad2df; }
.article-meta span i { margin-right: 4px; }
.article-meta b { color: var(--blog-blue); font-weight: 700; }
.blog-empty { padding: 80px 20px; color: #647086; text-align: center; border: 1px solid var(--blog-line); }
.blog-pagination { margin-top: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.blog-pagination[hidden] { display: none; }
.blog-pagination > button,
.blog-pagination #pagination-pages button { min-width: 42px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #425069; border: 1px solid #cdd7e4; background: #fff; cursor: pointer; font: inherit; font-size: 12px; transition: color .2s, border-color .2s, background .2s; }
.blog-pagination > button:hover:not(:disabled),
.blog-pagination #pagination-pages button:hover,
.blog-pagination #pagination-pages button.is-active { color: #fff; border-color: var(--blog-blue); background: var(--blog-blue); }
.blog-pagination > button:disabled { cursor: default; opacity: .38; }
.blog-pagination #pagination-pages { display: flex; align-items: center; gap: 8px; }
.pagination-ellipsis { min-width: 24px; color: #7e8999; text-align: center; }

.blog-contact { width: min(1248px, calc(100% - 64px)); margin: 0 auto 80px; padding: 48px 52px; display: flex; align-items: end; justify-content: space-between; gap: 30px; color: #fff; background: var(--blog-deep); }
.blog-contact span { color: var(--blog-cyan); font-size: 11px; letter-spacing: 2px; }
.blog-contact h2 { margin: 10px 0 0; font-size: clamp(25px,3vw,39px); }
.blog-contact > a { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 28px; color: #fff; background: var(--blog-blue); font-size: 13px; font-weight: 800; }
.blog-contact > a:hover { background: #0a70ff; }

@media (max-width: 1100px) {
  .blog-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .blog-intro { max-width: 660px; }
  .blog-intro h1 { white-space: normal; }
  .featured-story { max-width: 860px; }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .category-filters { gap: 22px; }
}

@media (max-width: 820px) {
  .blog-header { height: 72px; padding: 0 22px; display: grid; grid-template-columns: 1fr auto; }
  .blog-header .brand img { width: 180px; }
  .blog-menu-toggle { display: grid; }
  .blog-header .desktop-nav { position: absolute; top: 72px; right: 0; left: 0; width: auto; max-height: 0; margin: 0; padding: 0 22px; display: grid; gap: 0; overflow: hidden; border: 0; background: #fff; box-shadow: 0 18px 40px rgba(5,17,38,.13); transition: max-height .35s, padding .35s; }
  .blog-header .desktop-nav.is-open { max-height: 520px; padding-top: 8px; padding-bottom: 16px; }
  .blog-header .desktop-nav a { padding: 13px 0; border-bottom: 1px solid #edf1f6; }
  .blog-header .desktop-nav .active::after { right: auto; bottom: 0; left: 0; width: 34px; }
  .blog-header .nav-cta { display: none; }
  .blog-hero-inner, .blog-library, .blog-contact { width: min(100% - 40px, 680px); }
  .featured-story { grid-template-columns: 1fr; }
  .featured-image { min-height: 260px; }
  .library-toolbar { align-items: stretch; flex-direction: column; padding-bottom: 20px; }
  .category-filters { min-height: 47px; overflow-x: auto; gap: 26px; }
  .category-filters button { white-space: nowrap; }
  .blog-search { width: 100%; }
  .blog-contact { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .blog-hero-inner, .blog-library, .blog-contact { width: calc(100% - 32px); }
  .blog-hero-inner { padding: 48px 0 38px; }
  .blog-intro h1 { font-size: 46px; letter-spacing: -2px; }
  .blog-lede { font-size: 14px; }
  .featured-image { min-height: 220px; }
  .featured-copy { padding: 24px 21px 20px; }
  .featured-copy h2 { font-size: 22px; }
  .featured-meta { grid-template-columns: auto 1fr auto; gap: 10px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-image { height: 185px; }
  .article-copy > p { min-height: 0; }
  .blog-pagination { margin-top: 38px; gap: 10px; }
  .blog-pagination > button { min-width: 42px; padding: 0; }
  .blog-pagination > button span { display: none; }
  .blog-pagination #pagination-pages { gap: 5px; }
  .blog-pagination #pagination-pages button { min-width: 38px; height: 38px; padding: 0 8px; }
  .blog-contact { margin-bottom: 48px; padding: 35px 26px; }
}
