:root {
      --bg: #0a0f1a;
      --bg-soft: #101a2d;
      --panel: #121f35;
      --line: #2d3f5e;
      --text: #e7edf8;
      --muted: #aebbd4;
      --primary: #ff9900;
      --primary-soft: #ffbc59;
      --link: #89d2ff;
      --success: #26d07c;
      --radius: 14px;
      --max: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      background: radial-gradient(circle at top right, #1a2d52 0, var(--bg) 36%);
      color: var(--text);
      font-family: "Segoe UI", Arial, sans-serif;
      line-height: 1.65;
    }

    a {
      color: var(--link);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .container {
      width: min(100% - 32px, var(--max));
      margin: 0 auto;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(10, 15, 26, 0.94);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(5px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .header-inner {
      min-height: 51px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;
      gap: 10px;
      padding: 10px 0;
    }

    .header-top {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .brand {
      font-weight: 700;
      letter-spacing: 0.2px;
      font-size: 20px;
    }

    .brand span {
      color: var(--primary);
    }
    .brand-logo {
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .brand-logo img {
      display: block;
      height: 48px;
      width: auto;
    }

    .nav {
      display: none;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 13px;
      width: 100%;
      overflow: visible;
      padding-bottom: 2px;
      margin-bottom: 4px;
    }

    .nav.open {
      display: flex;
      background: rgba(13, 21, 36, 0.95);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px;
    }

    .nav a {
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 7px 11px;
      background: rgba(18, 31, 53, 0.75);
      color: var(--text);
    }

    .menu-toggle {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 10px;
      background: rgba(18, 31, 53, 0.75);
      color: var(--text);
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      min-width: 42px;
    }

    .nav a:hover {
      text-decoration: none;
      border-color: #3d567f;
      background: rgba(30, 48, 78, 0.95);
    }

    .hero {
      padding: 46px 0 20px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .language-nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .language-nav label {
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .language-nav select {
      width: min(100%, 360px);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 12px;
      background: rgba(18, 31, 53, 0.95);
      color: var(--text);
      font: inherit;
    }

    .card {
      background: linear-gradient(180deg, var(--bg-soft), #0f1728);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .pill {
      display: inline-block;
      border: 1px solid var(--line);
      color: var(--primary-soft);
      border-radius: 999px;
      font-size: 12px;
      padding: 4px 10px;
      margin-bottom: 12px;
    }

    h1, h2, h3 {
      margin: 0 0 12px;
      line-height: 1.25;
    }

    h1 {
      font-size: clamp(2rem, 2.8vw, 2.6rem);
    }

    h2 {
      font-size: clamp(1.55rem, 2.1vw, 2rem);
    }

    h3 {
      font-size: clamp(1.12rem, 1.5vw, 1.35rem);
    }

    .muted {
      color: var(--muted);
      margin: 0;
    }

    .hero p {
      margin: 0;
    }

    .giveaway {
      margin-top: 16px;
      border-left: 4px solid var(--primary);
      padding: 8px 0 8px 12px;
      color: var(--text);
    }

    .btn-row {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .btn {
      display: inline-block;
      border: 1px solid var(--line);
      padding: 10px 14px;
      border-radius: 10px;
      color: var(--text);
      font-weight: 600;
      font-size: 14px;
      background: transparent;
    }

    .btn.primary {
      background: var(--primary);
      color: #1b1407;
      border-color: #c67800;
    }

    .banner {
      width: 100%;
      min-height: 300px;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #0c1324;
    }

    .section {
      padding: 20px 0 28px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .list {
      margin: 0;
      padding-left: 20px;
      color: var(--muted);
      display: grid;
      gap: 8px;
    }

    .exam-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 10px;
    }

    .library-hero {
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      background: #0f1728;
    }

    .library-hero img {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 1912 / 861;
      object-fit: cover;
    }

    .status {
      display: inline-block;
      border-radius: 999px;
      border: 1px solid var(--line);
      padding: 2px 8px;
      margin-top: 8px;
      font-size: 12px;
      color: var(--success);
    }

    .article-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 10px;
    }

    .article-title {
      font-size: 18px;
      margin-bottom: 8px;
    }

    .article-link {
      display: block;
      color: inherit;
      text-decoration: none;
      transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .article-link:hover {
      text-decoration: none;
      border-color: #486390;
      background: linear-gradient(180deg, #152340, #121d33);
      transform: translateY(-2px);
    }

    .featured-card {
      border-color: rgba(255, 153, 0, 0.55);
      background: linear-gradient(180deg, #1a2439, #121a2c);
      box-shadow: 0 10px 26px rgba(255, 153, 0, 0.16);
    }

    .founder-link {
      display: block;
      color: inherit;
      text-decoration: none;
      transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .founder-link:hover {
      text-decoration: none;
      border-color: #486390;
      background: linear-gradient(180deg, #152340, #121d33);
      transform: translateY(-2px);
    }

    .card-cta {
      display: inline-block;
      margin-top: 12px;
      border: 1px solid #4b6694;
      border-radius: 999px;
      padding: 5px 11px;
      font-size: 12px;
      color: #d5e4ff;
      background: rgba(20, 34, 58, 0.85);
      font-weight: 600;
    }

    .footer {
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      padding: 24px 0 32px;
      margin-top: 16px;
    }

    @media (max-width: 980px) {
      .header {
        position: static;
      }

      .container {
        width: min(100% - 24px, var(--max));
      }

      .hero-grid,
      .grid-2 {
        grid-template-columns: 1fr;
      }

      .exam-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .hero {
        padding-top: 24px;
      }

      .card {
        padding: 18px;
      }

      h1 {
        font-size: 32px;
      }

      h2 {
        font-size: 26px;
      }

      .section {
        padding: 16px 0 24px;
      }

      .library-hero img {
        aspect-ratio: 986 / 674;
      }
    }

    @media (max-width: 640px) {
      .header-inner {
        min-height: 51px;
        padding: 8px 0;
        gap: 8px;
      }

      .brand-logo img {
        height: 40px;
      }
      .container {
        width: min(100% - 18px, var(--max));
      }

      .brand {
        font-size: 18px;
      }

      .nav {
        font-size: 13px;
      }

      .nav.open {
        gap: 8px;
      }

      .nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 9px 12px;
      }

      h1 {
        font-size: 27px;
      }

      h2 {
        font-size: 22px;
      }

      h3 {
        font-size: 18px;
      }

      .pill {
        font-size: 11px;
      }

      .btn-row {
        flex-direction: column;
      }

      .btn {
        width: 100%;
        text-align: center;
      }

      .banner {
        min-height: 220px;
      }

      .article-grid {
        grid-template-columns: 1fr;
      }

      .exam-grid {
        grid-template-columns: 1fr;
      }

      .card-cta {
        margin-top: 10px;
      }
    }
  
    .article-hero {
      padding: 34px 0 14px;
    }

    .article-shell {
      max-width: 920px;
      margin: 0 auto;
    }

    .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .article-page {
      margin-bottom: 20px;
    }

    .article-page h2 {
      margin-top: 24px;
      padding-top: 4px;
    }

    .article-page h3 {
      margin-top: 18px;
      color: var(--primary-soft);
    }

    .article-page p {
      color: var(--muted);
      margin: 0 0 14px;
    }

    .article-page hr {
      border: 0;
      border-top: 1px solid var(--line);
      margin: 24px 0;
    }

    .article-page pre {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px;
      background: #08111f;
      color: #dce8fb;
      line-height: 1.55;
      font-size: 14px;
    }

    .article-page code {
      color: #f6c36d;
    }

    .article-page p code,
    .article-page li code {
      background: rgba(255, 153, 0, 0.12);
      border: 1px solid rgba(255, 153, 0, 0.28);
      border-radius: 6px;
      padding: 1px 5px;
    }

    .article-list {
      margin-bottom: 16px;
    }
    .series-card {
      margin-top: 14px;
    }

    .series-card h2 {
      font-size: 1.15rem;
      margin-bottom: 10px;
    }

    .series-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .series-list a,
    .series-list span {
      display: block;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 11px 13px;
      background: rgba(18, 31, 53, 0.75);
      color: var(--text);
    }

    .series-list a:hover {
      text-decoration: none;
      border-color: #3d567f;
      background: rgba(30, 48, 78, 0.95);
    }

    .series-list span {
      border-color: rgba(255, 153, 0, 0.55);
      color: var(--primary-soft);
      background: rgba(255, 153, 0, 0.10);
      font-weight: 700;
    }

h4 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 14px;
}

.article-table th,
.article-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: rgba(255, 153, 0, 0.12);
  color: var(--primary-soft);
  font-weight: 700;
}

.article-table td {
  background: rgba(18, 31, 53, 0.55);
}

.strategy-figure {
  margin: 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(18, 31, 53, 0.5);
}

.strategy-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a111f;
}

.strategy-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
