/* Shared landing styles for every non-Chinese locale page. Kept in docs/assets
   because that path is already served by Caddy, so no extra route is needed. */
:root {
        --bg: #0b0c10;
        --panel: #141724;
        --line: #22273a;
        --text: #f3f4f6;
        --muted: #8e95a5;
        --brand: #ff7a45;
        --brand-2: #2d8cff;
        --maxw: 1120px;
      }
      * { box-sizing: border-box; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--text);
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
        font-size: 16px;
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
      }
      a { color: #9eb8ff; }
      .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
      .site-header {
        position: sticky; top: 0; z-index: 20;
        border-bottom: 1px solid var(--line);
        background: rgba(11, 12, 16, 0.92);
        backdrop-filter: blur(14px);
      }
      .site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
      .brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
      .brand-mark { color: var(--brand); }
      .site-nav { display: flex; gap: 18px; margin-left: auto; }
      .site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
      .site-nav a:hover { color: var(--text); }
      .btn {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
        color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap;
      }
      .btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
      .hero { padding: 60px 0 40px; }
      h1 { margin: 16px 0 14px; font-size: 44px; line-height: 1.18; letter-spacing: -0.6px; }
      h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; }
      h3 { margin: 0 0 8px; font-size: 17px; }
      p { margin: 0 0 14px; }
      .pill {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
        color: var(--muted); font-size: 14px;
      }
      .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
      .hero-sub { max-width: 780px; color: var(--muted); font-size: 18px; }
      .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
      .section { padding: 50px 0; }
      .section + .section { border-top: 1px solid var(--line); }
      .section-sub { color: var(--muted); margin-bottom: 22px; }
      .grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
      .card p { margin: 0; color: var(--muted); font-size: 14.5px; }
      .stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: center; }
      .stat b { display: block; font-size: 24px; }
      .stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
      pre {
        margin: 0 0 14px; padding: 18px; overflow-x: auto;
        border: 1px solid var(--line); border-radius: 14px; background: #0d0f16;
        font-size: 13.5px; line-height: 1.6;
      }
      code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
      .faq details { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
      .faq summary { cursor: pointer; font-weight: 600; }
      .faq p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
      .site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
      .site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
      .site-footer a { color: #cbd5e1; text-decoration: none; }
      /* Language switcher. Every locale page links to all 24 locales so the
         translated trees are reachable by internal links, not just by hreflang
         and the sitemap. Selector is `.site-footer .lang-switch` on purpose:
         the generic `.site-footer nav` rule above is more specific than a bare
         `.lang-switch` class and would otherwise win the gap/margin. */
      .site-footer .lang-switch {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin: 0 0 18px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
      }
      .site-footer .lang-switch a { color: var(--muted); font-size: 13px; text-decoration: none; }
      .site-footer .lang-switch a:hover { color: var(--text); }
      .site-footer .lang-switch a[aria-current] { color: var(--text); font-weight: 600; }
      /* Header language menu. Duplicates the footer list above the fold and gives
         every page an early internal link to all 24 locales. <details> keeps it
         working with no JavaScript. */
      .lang-menu { position: relative; }
      .lang-menu > summary {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 0 12px;
        cursor: pointer;
        list-style: none;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--muted);
        font-size: 14px;
      }
      .lang-menu > summary::-webkit-details-marker { display: none; }
      .lang-menu[open] > summary { color: var(--text); border-color: #3b4256; }
      .lang-menu-panel {
        position: absolute;
        z-index: 60;
        inset-inline-end: 0;
        margin-top: 8px;
        width: min(320px, calc(100vw - 40px));
        max-height: 340px;
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--panel);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 8px;
      }
      .lang-menu-panel a { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
      .lang-menu-panel a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
      .lang-menu-panel a[aria-current] { color: var(--text); font-weight: 600; }
      @media (max-width: 900px) {
        .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        h1 { font-size: 33px; }
        .site-nav { display: none; }
      }
      @media (max-width: 560px) {
        .grid { grid-template-columns: minmax(0, 1fr); }
        h1 { font-size: 27px; }
        .lang-menu > summary span:not([aria-hidden]) { display: none; }
      }
