:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-2: #0a1627;
  --panel: #101d31;
  --panel-2: #13263f;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e7f2ff;
  --muted: #9fb2c9;
  --cyan: #22d3ee;
  --cyan-2: #0891b2;
  --orange: #f59e0b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --radius-lg: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #05101d 0%, #071320 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.site-main {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(6, 17, 31, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #fff;
}

.brand-logo {
  width: auto;
  max-height: 44px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.brand-copy strong {
  font-size: 18px;
  font-weight: 900;
}

.brand-copy small {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 800;
}

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

.site-nav a,
.mobile-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #d8e8f7;
  font-weight: 800;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.menu-toggle {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ticker-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #081424;
}

.ticker-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
  padding-block: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e6f4;
  white-space: nowrap;
}

.ticker-item small {
  color: var(--muted);
  font-size: 12px;
}

.ticker-item strong {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-accent {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #05111b;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.18);
}

.btn-accent:hover {
  background: linear-gradient(90deg, #5eead4, var(--cyan));
  color: #05111b;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-section {
  position: relative;
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(7, 17, 31, 0) 45%),
    linear-gradient(180deg, #0c1627 0%, #06111f 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.08), transparent 25%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.hero-section h1 {
  margin-top: 16px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
}

.hero-lead {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.hero-panel-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

.hero-panel-copy {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.hero-panel-copy strong {
  color: #fff;
}

.section-shell {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, #071222, #0a1627);
}

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

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h2 {
  font-size: 20px;
}

.nav-board {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nav-tile,
.feature-card,
.news-card,
.sidebar-card,
.gallery-card,
.faq-grid article,
.cta-inner,
.article-detail,
.related-card,
.article-neighbors a,
.pagination-wrap a {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.nav-tile {
  display: grid;
  gap: 4px;
  min-height: 124px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
}

.nav-tile small {
  color: var(--orange);
  font-weight: 900;
}

.nav-tile strong {
  font-size: 18px;
  font-weight: 900;
}

.nav-tile span {
  color: var(--muted);
}

.nav-tile.featured {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(245, 158, 11, 0.08)), rgba(255, 255, 255, 0.045);
}

.feature-card {
  display: block;
  min-height: 100%;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #05111b;
  font-weight: 900;
}

.feature-card h3 {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
}

.news-stack,
.listing-stack,
.side-links {
  display: grid;
  gap: 16px;
}

.news-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
}

.news-card-link {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  color: inherit;
}

.listing-card .news-card-link {
  grid-template-columns: 200px minmax(0, 1fr);
}

.news-media {
  height: 100%;
  min-height: 100%;
}

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

.news-body {
  padding: 18px;
}

.news-meta,
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.news-meta {
  margin-bottom: 10px;
}

.news-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.news-body p {
  margin-top: 8px;
  color: var(--muted);
}

.sidebar-card {
  padding: 18px;
}

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

.quick-board.compact {
  grid-template-columns: 1fr;
}

.quick-board a,
.side-links a,
.footer-quick a,
.footer-links a,
.pagination-wrap a {
  display: grid;
  gap: 2px;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.quick-board a strong,
.side-links a strong,
.footer-quick a strong {
  font-size: 14px;
  font-weight: 900;
}

.quick-board a span,
.side-links small {
  color: var(--muted);
  font-size: 12px;
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px 16px;
  font-weight: 900;
}

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

.faq-grid article {
  padding: 18px;
  min-height: 100%;
}

.faq-grid h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

.faq-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.cta-banner {
  padding: 0 0 64px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(245, 158, 11, 0.08)), rgba(255, 255, 255, 0.045);
}

.cta-inner h2 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.cta-inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(245, 158, 11, 0.08)), #081424;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: 36px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb-nav a {
  color: #d7e6f4;
}

.page-hero-copy {
  margin-top: 18px;
  max-width: 860px;
}

.page-hero-copy p {
  margin-bottom: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero-copy h1 {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 900;
}

.page-hero-copy strong {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
}

.article-hero-copy h1 {
  font-size: 42px;
}

.article-detail {
  padding: 18px;
}

.page-detail,
.article-detail {
  overflow: hidden;
}

.article-cover {
  margin: 18px 0;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.article-body {
  color: #e1edf9;
  line-height: 1.9;
  font-size: 16px;
}

.article-body :is(p, h2, h3, ul, ol, blockquote) {
  margin-bottom: 16px;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
}

.body-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.body-gallery figure {
  margin: 0;
}

.body-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.body-gallery figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-meta-row {
  margin-bottom: 16px;
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.article-neighbors a {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
}

.article-neighbors small {
  color: var(--muted);
}

.article-neighbors strong {
  font-size: 14px;
  line-height: 1.4;
}

.related-section {
  margin-top: 24px;
}

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

.related-card {
  overflow: hidden;
}

.related-card a {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.related-card strong {
  display: block;
  line-height: 1.4;
  font-size: 14px;
}

.related-card small {
  color: var(--muted);
  font-size: 12px;
}

.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pagination-wrap a {
  color: #d7e6f4;
}

.site-footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.96), rgba(5, 12, 22, 0.98));
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer-summary,
.footer-meta {
  color: var(--muted);
}

.footer-links,
.footer-quick {
  display: grid;
  gap: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}

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

.mobile-grid a {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-grid strong {
  font-size: 14px;
  font-weight: 900;
}

.mobile-grid span {
  color: var(--muted);
  font-size: 12px;
}

.site-offcanvas {
  background: #06111f;
  color: #fff;
}

.site-offcanvas .offcanvas-header,
.site-offcanvas .offcanvas-body {
  border-color: var(--line);
}

.site-offcanvas .btn-close {
  filter: invert(1) grayscale(100%);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #05111b;
  box-shadow: var(--shadow);
  z-index: 1000;
  display: none;
}

@media (max-width: 1199.98px) {
  .hero-section {
    padding-top: 56px;
  }

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

  .news-card-link,
  .listing-card .news-card-link {
    grid-template-columns: 1fr;
  }

  .news-media {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 991.98px) {
  .site-nav {
    display: none;
  }

  .gallery-grid,
  .faq-grid,
  .related-grid,
  .body-gallery,
  .nav-board {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-neighbors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .site-header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .ticker-shell {
    min-height: 44px;
  }

  .ticker-label {
    display: none;
  }

  .hero-section h1,
  .page-hero-copy h1,
  .article-hero-copy h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section-shell {
    padding: 48px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card,
  .sidebar-card,
  .article-detail {
    padding: 16px;
  }

  .quick-board,
  .mobile-grid {
    grid-template-columns: 1fr;
  }

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