:root {
  --ink: #eef3ff;
  --muted: #9ba8c4;
  --paper: #08101f;
  --paper-2: #0d172a;
  --paper-3: #121e34;
  --line: rgba(184, 202, 238, 0.15);
  --violet: #9d7cff;
  --cyan: #39d9e7;
  --rose: #ff5c8a;
  --amber: #ffbd5b;
  --green: #64dda5;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  --radius: 6px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(157, 124, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(57, 217, 231, 0.1), transparent 27rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #07101d;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-topline {
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 17, 0.78);
}

.site-topline__inner,
.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-topline__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-topline__inner p {
  margin: 0;
}

.spectrum-line {
  height: 3px;
  background: linear-gradient(90deg, #ff5c8a 0 16%, #ffbd5b 16% 33%, #f2df67 33% 50%, #64dda5 50% 67%, #39d9e7 67% 84%, #9d7cff 84%);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 31, 0.91);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: conic-gradient(from 220deg, var(--rose), var(--amber), var(--green), var(--cyan), var(--violet), var(--rose));
  box-shadow: none;
}

.brand-mark::after {
  content: "";
  width: 19px;
  height: 19px;
  border-radius: 3px;
  background: var(--paper);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 19px;
  height: 2px;
  display: block;
  position: absolute;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 13px;
  color: #c9d2e7;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(157, 124, 255, 0.13);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--violet);
}

.carousel {
  width: min(calc(100% - 40px), var(--content));
  height: clamp(310px, 34vw, 500px);
  margin: 30px auto 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.carousel__slides,
.carousel__slide {
  position: absolute;
  inset: 0;
}

.carousel__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 550ms ease, visibility 550ms ease;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 9, 18, 0.88), rgba(4, 9, 18, 0.24) 64%, rgba(4, 9, 18, 0.15));
}

.carousel__caption {
  max-width: 650px;
  position: absolute;
  z-index: 2;
  left: clamp(26px, 6vw, 78px);
  bottom: clamp(34px, 6vw, 74px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #b9c6df;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--rose), var(--cyan));
}

.carousel__caption h2 {
  max-width: 12em;
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.carousel__caption p {
  max-width: 38em;
  margin: 0;
  color: #d6deef;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.carousel__button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 3;
  top: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(4, 9, 18, 0.62);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__button:hover,
.carousel__button:focus-visible {
  background: rgba(157, 124, 255, 0.85);
}

.carousel__button--prev {
  left: 18px;
}

.carousel__button--next {
  right: 18px;
}

.carousel__dots {
  display: flex;
  gap: 8px;
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 24px;
}

.carousel__dot {
  width: 24px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.carousel__dot[aria-current="true"] {
  background: #fff;
}

.page-shell {
  padding: 34px 0 70px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  align-items: start;
  gap: 28px;
}

.main-column,
.sidebar {
  min-width: 0;
}

.panel {
  margin-bottom: 24px;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(157, 124, 255, 0.48);
  border-radius: var(--radius);
  background: rgba(13, 23, 42, 0.9);
  box-shadow: none;
}

.panel--plain {
  border-top-color: rgba(57, 217, 231, 0.45);
  background: rgba(8, 16, 31, 0.46);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(190px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.hero-copy h1,
.page-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-intro > p {
  margin: 0;
  color: #c8d2e7;
}

.hero-copy img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: none;
}

.page-intro {
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 62px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet);
  border-radius: 6px;
  background:
    linear-gradient(130deg, rgba(157, 124, 255, 0.19), transparent 42%),
    linear-gradient(145deg, #121e34, #0b1527);
}

.page-intro::after {
  content: "";
  width: 72px;
  height: 3px;
  position: absolute;
  right: clamp(28px, 5vw, 62px);
  bottom: 0;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--green), var(--cyan), var(--violet));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.article-body h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  min-height: 100%;
  padding: 20px 20px 20px 22px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 2px solid rgba(157, 124, 255, 0.36);
  border-radius: 0;
  background: rgba(8, 16, 31, 0.24);
  transition: border-color 180ms ease, background 180ms ease;
}

a.content-card:hover,
a.content-card:focus-visible {
  border-left-color: var(--cyan);
  background: rgba(57, 217, 231, 0.045);
}

.content-card .tag,
.tag-row .tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0 3px;
  color: var(--cyan);
  border: 0;
  border-bottom: 1px solid rgba(57, 217, 231, 0.34);
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 720;
}

.content-card h3 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.content-card > .text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 13px;
  color: #8492ae;
  font-size: 0.76rem;
}

.feature-list,
.link-list,
.check-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-index {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.text-link {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(57, 217, 231, 0.34);
  text-underline-offset: 4px;
}

.text-link:hover,
.text-link:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

.sidebar {
  position: sticky;
  top: 102px;
}

.sidebar-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(184, 202, 238, 0.28);
  border-radius: 4px;
  background: rgba(13, 23, 42, 0.72);
}

.sidebar-card--accent {
  border-top-color: var(--violet);
  background: rgba(157, 124, 255, 0.075);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 13px;
  font-size: 1rem;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.link-list li + li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: #ccd6ea;
  font-size: 0.9rem;
}

.link-list a::after {
  content: "↗";
  color: #70809e;
}

.link-list a:hover,
.link-list a:focus-visible {
  color: var(--cyan);
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: #c5d0e5;
  font-size: 0.88rem;
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 17px;
  left: 0;
  border-radius: 0;
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.article-body h2 {
  margin: 34px 0 12px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
}

.article-body p {
  margin: 0 0 16px;
  color: #c7d1e4;
}

.article-body strong {
  color: #fff;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  color: #c7d1e4;
}

.article-body li {
  margin-bottom: 8px;
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  color: #d7e2f5;
  border: 1px solid rgba(255, 189, 91, 0.24);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  background: rgba(255, 189, 91, 0.06);
  font-size: 0.9rem;
}

.source-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8f9db8;
  font-size: 0.8rem;
}

.source-note a {
  color: #b7c5de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
}

.editorial-table th,
.editorial-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.editorial-table th {
  color: #fff;
  background: rgba(157, 124, 255, 0.1);
  font-size: 0.82rem;
}

.editorial-table td {
  color: #bdc8dc;
  font-size: 0.86rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.related-reading {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 3px;
  background: rgba(8, 16, 31, 0.34);
}

.related-reading h2 {
  margin: 0 0 12px;
  color: #dce6f7;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.related-reading div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.related-reading a {
  padding: 4px 0;
  color: #c9d7ed;
  border: 0;
  border-bottom: 1px solid rgba(184, 202, 238, 0.2);
  border-radius: 0;
  background: transparent;
  font-size: 0.83rem;
}

.related-reading a:hover,
.related-reading a:focus-visible {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050b16;
}

.site-footer__inner {
  padding: 42px 0 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 32px;
}

.footer-main h2,
.footer-main h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-main p {
  max-width: 40em;
  margin: 0;
  color: #8d9bb6;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: #aab7ce;
  font-size: 0.84rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: #75839d;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.domain-name {
  color: #b9c6dd;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(8, 16, 31, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    position: static;
  }

  .sidebar-card {
    margin: 0;
  }

  .card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-topline__inner,
  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .carousel {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-topline__inner p:last-child {
    display: none;
  }

  .site-header__inner {
    min-height: 70px;
  }

  .brand-copy small {
    display: none;
  }

  .carousel {
    height: 380px;
    margin-top: 18px;
    border-radius: 6px;
  }

  .carousel__slide::after {
    background: linear-gradient(0deg, rgba(4, 9, 18, 0.92), rgba(4, 9, 18, 0.13) 84%);
  }

  .carousel__caption {
    right: 24px;
    left: 24px;
    bottom: 48px;
  }

  .carousel__caption h2 {
    font-size: 2.15rem;
  }

  .carousel__button {
    top: 24px;
    transform: none;
  }

  .carousel__button--prev {
    right: 70px;
    left: auto;
  }

  .carousel__button--next {
    right: 18px;
  }

  .carousel__dots {
    right: auto;
    bottom: 22px;
    left: 24px;
  }

  .page-shell {
    padding-top: 24px;
  }

  .hero-copy,
  .footer-main,
  .sidebar,
  .card-grid,
  .card-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy img {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 22px;
  }

  .editorial-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
