:root {
  --bg-primary: #0c1119;
  --bg-secondary: #111a25;
  --panel: rgba(13, 26, 38, 0.8);
  --panel-strong: rgba(9, 18, 29, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --text-main: #e8edf5;
  --text-soft: #b9c4d4;
  --accent: #f6c65b;
  --accent-strong: #ffb022;
  --accent-cold: #42c5c9;
  --ok: #7cd67e;
  --warn: #ff8f70;
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Montserrat", "Trebuchet MS", "Verdana", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 0%, #21344a 0%, var(--bg-primary) 42%, #070b12 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(140deg, rgba(5, 10, 16, 0.78), rgba(4, 8, 15, 0.9)), var(--texture-image);
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  pointer-events: none;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.28) 0%, rgba(3, 8, 14, 0.84) 100%);
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 22, 0.82);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 190, 63, 0.22), rgba(63, 220, 209, 0.2));
}

.top-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  filter: brightness(1.04);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  color: #1b1406;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #d9e2f1;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 36px 0 24px;
}

.hero-box {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  overflow: hidden;
  min-height: min(72vh, 720px);
  background-image: linear-gradient(122deg, rgba(3, 9, 16, 0.84), rgba(8, 19, 29, 0.56)), var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: min(760px, 94%);
  margin: 0 0 clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(7, 15, 24, 0.88), rgba(8, 17, 28, 0.72));
  backdrop-filter: blur(7px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(18px, 3vw, 30px);
}

.breadcrumbs {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #071019;
  background: linear-gradient(130deg, rgba(246, 198, 91, 0.96), rgba(66, 197, 201, 0.9));
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero p {
  color: #d6dfeb;
  margin-bottom: 18px;
  font-size: clamp(0.97rem, 1.36vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #d8e4f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.main-content {
  padding: 8px 0 24px;
}

.section {
  margin: 20px 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(155deg, rgba(8, 17, 28, 0.9), rgba(10, 21, 34, 0.74));
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.section h2 {
  font-size: clamp(1.34rem, 2vw, 2rem);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section p {
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  background: linear-gradient(160deg, rgba(12, 24, 36, 0.88), rgba(7, 16, 27, 0.72));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 1.06rem;
}

.card p,
.card li {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.card ul li::before {
  content: "▹";
  color: var(--accent-cold);
  margin-right: 7px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(246, 198, 91, 0.16);
  color: #fff;
  font-weight: 700;
}

.cta-box {
  border: 1px solid rgba(246, 198, 91, 0.42);
  background: linear-gradient(140deg, rgba(246, 198, 91, 0.16), rgba(66, 197, 201, 0.12));
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
}

.cta-box h3 {
  margin-bottom: 8px;
}

.cta-box p {
  margin-bottom: 12px;
}

.link-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.link-grid a {
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6f7;
  padding: 10px 12px;
  font-size: 0.93rem;
  transition: all 0.16s ease;
}

.link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 198, 91, 0.48);
}

.notice {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(124, 214, 126, 0.38);
  background: rgba(124, 214, 126, 0.12);
  color: #e6ffe6;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.notice.warn {
  border-color: rgba(255, 143, 112, 0.45);
  background: rgba(255, 143, 112, 0.13);
  color: #ffeadf;
}

.footer {
  padding: 20px 0 38px;
}

.footer-inner {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-strong);
  padding: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p {
  color: #b7c3d7;
  font-size: 0.88rem;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-box {
    min-height: 62vh;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-box {
    background-image: linear-gradient(122deg, rgba(3, 9, 16, 0.86), rgba(8, 19, 29, 0.6)), var(--hero-image-mobile, var(--hero-image));
    background-position: center;
  }

  .hero-content {
    margin-left: 14px;
    margin-right: 14px;
    width: auto;
  }

  .data-table {
    font-size: 0.88rem;
  }
}
