:root {
  --ink: #13243b;
  --muted: #617087;
  --paper: #f5f7fc;
  --card: #ffffff;
  --line: #dfe5f0;
  --accent: #635bff;
  --accent-dark: #4438d8;
  --cyan: #20d5e8;
  --night: #0b1730;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(29, 43, 80, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(32, 213, 232, .08), transparent 28rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #12a9c1;
  outline-offset: 4px;
  border-radius: 4px;
}
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin-top: 0; }
figure { margin-left: 0; margin-right: 0; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 18px; color: #fff; background: var(--accent-dark);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { color: #fff; background: var(--night); }
.masthead { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; flex-direction: column; color: #fff; line-height: 1.3; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 25px; font-weight: 800; letter-spacing: .02em; }
.brand-tagline { margin-top: 7px; color: #aab9d2; font-size: 12px; }
.primary-nav { display: flex; align-items: center; gap: 10px; }
.primary-nav a { padding: 9px 16px; color: #d9e3f3; border-radius: 999px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.category-strip { border-top: 1px solid rgba(255, 255, 255, .1); }
.category-strip nav { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 13px; }
.category-strip a { color: #aebbd0; font-size: 14px; }
.category-strip a:hover, .category-strip a[aria-current="page"] { color: var(--cyan); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  color: #fff; border: 1px solid #3c4b65; border-radius: 999px; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.nav-toggle-icon { display: grid; gap: 5px; width: 18px; }
.nav-toggle-icon i { display: block; height: 2px; background: currentColor; }
.mobile-nav[open] .nav-toggle-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.mobile-nav[open] .nav-toggle-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav nav {
  position: absolute; z-index: 20; top: calc(100% + 12px); right: 0;
  width: min(320px, calc(100vw - 32px)); padding: 12px;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.mobile-nav nav a { display: block; padding: 10px 12px; color: var(--ink); border-radius: 8px; }
.mobile-nav nav a[aria-current="page"] { color: var(--accent-dark); background: #eeedff; }

.site-main { min-height: 60vh; }
.hero { padding: 42px 0 0; }
.hero-grid {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.55fr .8fr; gap: 56px;
  padding: 74px; color: #fff; background: linear-gradient(125deg, #101c3c 5%, #35329a 62%, #087f9c 125%);
  border-radius: 30px; box-shadow: 0 28px 70px rgba(25, 35, 83, .2);
}
.hero-grid::after {
  content: ""; position: absolute; width: 330px; height: 330px; right: -120px; top: -160px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255, 255, 255, .03);
}
.hero-copy, .hero-aside { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero .eyebrow { color: #85edf6; }
.hero h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(38px, 5vw, 68px); line-height: 1.15; letter-spacing: -.04em; }
.hero-intro { max-width: 720px; margin-bottom: 30px; color: #d9e2f5; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: #101b37; background: #79edf4; }
.button-secondary { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.hero-aside { align-self: center; padding: 28px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .17); border-radius: var(--radius); backdrop-filter: blur(10px); }
.aside-label { color: #8beef5; font-size: 13px; font-weight: 800; }
.hero-aside ul { margin: 0 0 24px; padding: 0; list-style: none; }
.hero-aside li { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.aside-note { margin: 0; color: #c5d2e8; font-size: 13px; }

.section-block { padding-block: 76px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.025em; }
.heading-with-link { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-link { flex: none; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { padding: 32px; background: var(--card); border: 1px solid rgba(223, 229, 240, .8); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-index { display: block; margin-bottom: 30px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .15em; }
.service-card h3 { margin-bottom: 12px; font-size: 22px; }
.service-card p { margin: 0; color: var(--muted); }
.latest-section { padding-top: 30px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(29, 43, 80, .06); }
.article-card.no-cover { border-top: 4px solid var(--accent); }
.article-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #e8edf5; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-media img { transform: scale(1.025); }
.article-card-body { padding: 25px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.article-meta a { font-weight: 700; }
.article-title { margin-bottom: 12px; font-size: 21px; line-height: 1.45; }
.article-title a { color: var(--ink); }
.article-summary { display: -webkit-box; overflow: hidden; margin-bottom: 20px; color: var(--muted); font-size: 14px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.read-more { font-size: 14px; font-weight: 800; }
.empty-state { margin: 0; padding: 28px; color: var(--muted); background: #fff; border: 1px dashed #b9c4d6; border-radius: 14px; }
.home-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 80px; }
.category-block { padding: 28px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: var(--radius); }
.category-block .section-heading h2 { font-size: 24px; }
.story-list { margin: 0; padding: 0; list-style: none; }
.story-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.story-list a { color: var(--ink); font-weight: 650; }
.story-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.page-hero { padding: 72px 0; color: #fff; background: linear-gradient(115deg, var(--night), #293485); }
.page-hero .eyebrow { color: var(--cyan); }
.narrow-heading { max-width: 900px; }
.narrow-heading h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.2; }
.narrow-heading > p:last-child { max-width: 760px; margin: 0; color: #d4def0; font-size: 18px; }
.listing-section { padding-top: 54px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 45px; }
.page-direction, .page-number { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.page-numbers { display: flex; gap: 7px; }
.page-number { min-width: 42px; padding-inline: 10px; }
.page-number[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.page-direction.is-disabled { color: #98a3b4; background: transparent; }
.page-ellipsis { align-self: center; }
.pagination-status { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 13px; }

.article-detail { max-width: 980px; padding-top: 46px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; color: var(--muted); font-size: 13px; }
.article-header { max-width: 880px; }
.article-header h1 { margin-bottom: 24px; font-size: clamp(35px, 5vw, 58px); line-height: 1.25; letter-spacing: -.035em; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.article-lead { margin-top: 26px; color: #465974; font-size: 20px; line-height: 1.8; }
.article-cover { margin: 40px 0; overflow: hidden; border-radius: var(--radius); }
.article-cover img { width: 100%; height: auto; }
.article-content { max-width: 800px; margin: 52px auto 0; overflow-wrap: anywhere; font-size: 18px; line-height: 2; }
.article-content h2 { margin: 2em 0 .8em; font-size: 30px; line-height: 1.4; }
.article-content h3 { margin: 1.8em 0 .7em; font-size: 23px; }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 1.5em; }
.article-content img { height: auto; margin: 30px auto; border-radius: 12px; }
.article-content blockquote { margin: 32px 0; padding: 8px 24px; color: #465974; border-left: 4px solid var(--accent); background: #eeedff; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 20px; color: #eaf3ff; background: var(--night); border-radius: 12px; }
.article-content table { display: block; width: 100%; max-width: 100%; margin: 30px 0; overflow-x: auto; border-collapse: collapse; background: #fff; }
.article-content th, .article-content td { min-width: 120px; padding: 12px 15px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: #eef2fb; }
.article-footer { max-width: 800px; margin: 45px auto 0; padding: 26px 0 60px; border-top: 1px solid var(--line); }
.article-tags { display: flex; align-items: start; gap: 18px; margin-bottom: 22px; }
.article-tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article-tags li { padding: 3px 12px; color: var(--accent-dark); background: #e9e8ff; border-radius: 999px; font-size: 13px; }
.original-link { margin: 0; color: var(--muted); }
.related-articles { padding-top: 0; }
.related-story-list { max-width: 980px; }

.about-intro { padding-bottom: 10px; }
.prose-panel { max-width: 900px; padding: 42px; background: #fff; border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.prose-panel h2 { font-size: 32px; }
.prose-panel p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.contact-section { padding-top: 10px; }
.contact-panel { padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list { margin: 0; font-style: normal; }
.contact-list p { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list strong { font-weight: 600; }
.error-panel { padding-block: 100px; text-align: center; }
.error-code { margin-bottom: 0; color: var(--accent); font-size: clamp(80px, 16vw, 180px); font-weight: 900; line-height: 1; opacity: .2; }
.error-panel h1 { font-size: 40px; }
.error-panel .hero-actions { justify-content: center; margin-top: 28px; }
.error-panel .button-secondary { color: var(--accent-dark); border-color: var(--accent); }

.site-footer { padding: 52px 0 24px; color: #b7c3d8; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; padding-bottom: 36px; }
.footer-brand strong { color: #fff; font-size: 22px; }
.footer-brand p { margin: 10px 0 0; }
.footer-source p { margin-top: 0; }
.footer-source a, .footer-legal a { color: #8eeaf3; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.related-links span { color: #7f91af; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer-legal p { margin: 0; }

@media (max-width: 960px) {
  .hero-grid { padding: 52px; gap: 34px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 55px 1fr; column-gap: 15px; }
  .service-index { grid-row: span 2; margin: 4px 0 0; }
  .service-card h3 { margin-bottom: 6px; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 1180px); }
  .masthead { min-height: 78px; }
  .primary-nav, .category-strip { display: none; }
  .mobile-nav { display: block; }
  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; padding: 42px; border-radius: 22px; }
  .hero-aside { max-width: 540px; }
  .home-categories { grid-template-columns: 1fr; }
  .article-content { font-size: 17px; }
}
@media (max-width: 600px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 21px; }
  .hero-grid { padding: 32px 24px; }
  .hero h1 { font-size: 38px; }
  .hero-intro { font-size: 16px; }
  .hero-actions, .button { width: 100%; }
  .section-block { padding-block: 50px; }
  .heading-with-link { align-items: start; }
  .section-heading h2 { font-size: 27px; }
  .service-card { display: block; padding: 25px; }
  .service-index { margin-bottom: 20px; }
  .article-grid, .listing-grid { grid-template-columns: 1fr; }
  .category-block { padding: 22px; }
  .story-list li { grid-template-columns: 1fr; gap: 3px; }
  .page-hero { padding: 52px 0; }
  .pagination { flex-wrap: wrap; gap: 10px; }
  .page-numbers { order: 3; width: 100%; justify-content: center; }
  .page-number { min-width: 38px; min-height: 38px; }
  .article-detail { padding-top: 28px; }
  .breadcrumbs { margin-bottom: 30px; }
  .article-header h1 { font-size: 34px; }
  .article-lead { font-size: 18px; }
  .article-tags { display: block; }
  .article-tags strong { display: block; margin-bottom: 10px; }
  .prose-panel, .contact-panel { padding: 26px 22px; }
  .contact-list p { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
