:root {
      --theme: #0B3D91;
      --theme-dark: #071b3d;
      --ink: #101827;
      --muted: #637089;
      --line: #dce4ef;
      --surface: #ffffff;
      --soft: #f3f7fc;
      --accent: #20d7c5;
      --shadow: 0 18px 50px rgba(7, 27, 61, .11);
      --radius: 12px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: #f7f9fc;
      font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
      line-height: 1.7;
    }

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

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

    button,
    input {
      font: inherit;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

    .topbar {
      color: #d8e7ff;
      background: #061a38;
      font-size: 13px;
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 38px;
      gap: 18px;
    }

    .topbar-links {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .topbar a:hover {
      color: #ffffff;
    }

    .header {
      position: relative;
      z-index: 20;
      background: #ffffff;
      border-bottom: 1px solid var(--line);
    }

    .header-inner {
      display: flex;
      align-items: center;
      min-height: 78px;
      gap: 28px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
      font-size: 19px;
      font-weight: 800;
      color: var(--theme-dark);
      white-space: nowrap;
    }

    .logo img {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

    .main-nav {
      flex: 1;
      align-self: stretch;
    }

    .nav-list {
      display: flex;
      align-items: stretch;
      justify-content: center;
      height: 100%;
      gap: 4px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-link {
      display: inline-flex;
      align-items: center;
      height: 100%;
      padding: 0 14px;
      color: #24324a;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--theme);
    }

    .has-arrow::after {
      content: "";
      width: 6px;
      height: 6px;
      margin-left: 8px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: calc(100% - 1px);
      left: 50%;
      z-index: 30;
      width: 330px;
      padding: 20px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 0 0 12px 12px;
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 8px);
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .mega-menu {
      width: min(650px, 90vw);
    }

    .dropdown-panel::before,
    .mega-menu::before {
      content: "";
      position: absolute;
      top: -12px;
      left: 0;
      right: 0;
      height: 12px;
    }

    .nav-item:hover .dropdown-panel,
    .nav-item:focus-within .dropdown-panel,
    .nav-item:hover .mega-menu,
    .nav-item:focus-within .mega-menu {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
    }

    .panel-title {
      margin: 0 0 14px;
      color: var(--theme-dark);
      font-size: 14px;
      font-weight: 800;
    }

    .panel-list {
      display: grid;
      gap: 8px;
    }

    .panel-list a {
      display: block;
      padding: 7px 0;
      color: #45536a;
      font-size: 13px;
      border-bottom: 1px solid #edf1f6;
    }

    .panel-list a:hover,
    .mega-card:hover strong {
      color: var(--theme);
    }

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

    .mega-card {
      display: flex;
      align-items: center;
      min-width: 0;
      gap: 10px;
      padding: 10px;
      border: 1px solid #e7edf5;
      border-radius: 8px;
      background: #fbfdff;
    }

    .mega-card img {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      object-fit: cover;
      border-radius: 7px;
      background: #e8eff9;
    }

    .mega-card span {
      min-width: 0;
    }

    .mega-card strong,
    .mega-card small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card strong {
      color: #1b2a44;
      font-size: 13px;
    }

    .mega-card small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      display: inline-block;
      margin-top: 15px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-btns > :first-child {
      color: var(--theme);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .member-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 0 15px;
      color: #ffffff;
      background: var(--theme);
      border-radius: 7px;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .member-btn:hover {
      background: #082e70;
    }

    .hamburger {
      display: none;
      width: 42px;
      height: 38px;
      padding: 8px;
      cursor: pointer;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #ffffff;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      margin: 4px auto;
      background: var(--theme-dark);
      transition: transform .2s ease, opacity .2s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 40;
      background: rgba(2, 13, 31, .54);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }

    .drawer-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 50;
      width: min(380px, 88vw);
      height: 100vh;
      padding: 20px;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -20px 0 50px rgba(0, 0, 0, .18);
      transform: translateX(105%);
      transition: transform .25s ease;
    }

    .mobile-drawer.open {
      transform: translateX(0);
    }

    .drawer-head {
      display: flex;
      align-items: center;
      gap: 13px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
      color: var(--theme);
      font-weight: 800;
    }

    .drawer-head > :first-child {
      flex: 1;
    }

    .drawer-head a {
      color: var(--theme);
      font-size: 13px;
    }

    .drawer-close {
      width: 34px;
      height: 34px;
      cursor: pointer;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #ffffff;
      color: var(--ink);
      font-size: 24px;
      line-height: 1;
    }

    .drawer-menu {
      padding-top: 12px;
    }

    .drawer-link,
    .drawer-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      min-height: 45px;
      padding: 8px 0;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      background: transparent;
      color: #263650;
      cursor: pointer;
      font-size: 15px;
      text-align: left;
    }

    .drawer-toggle::after {
      content: "+";
      color: var(--theme);
      font-size: 19px;
    }

    .drawer-toggle.active::after {
      content: "−";
    }

    .drawer-submenu {
      display: none;
      padding: 7px 0 8px 14px;
      border-bottom: 1px solid #edf1f6;
    }

    .drawer-submenu.open {
      display: grid;
      gap: 5px;
    }

    .drawer-submenu a {
      padding: 5px 0;
      color: var(--muted);
      font-size: 13px;
    }

    .footer {
      margin-top: 70px;
      padding: 52px 0 22px;
      color: #c8d7ed;
      background: #071b3d;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1fr;
      gap: 34px;
    }

    .footer .logo {
      color: #ffffff;
    }

    .footer .logo img {
      filter: brightness(0) invert(1);
    }

    .footer-brand p {
      max-width: 310px;
      margin: 20px 0 0;
      color: #aebfd8;
      font-size: 13px;
    }

    .footer h3 {
      margin: 0 0 14px;
      color: #ffffff;
      font-size: 14px;
    }

    .footer-links {
      display: grid;
      gap: 8px;
      color: #aebfd8;
      font-size: 13px;
    }

    .footer-links a:hover {
      color: #ffffff;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 40px;
      padding-top: 18px;
      border-top: 1px solid rgba(210, 227, 252, .16);
      color: #91a7c6;
      font-size: 12px;
    }

    .download-page-main {
      padding: 64px 0 20px;
    }

    .download-hero {
      padding: 48px;
      border-radius: var(--radius);
      color: #ffffff;
      background:
        linear-gradient(118deg, rgba(7, 27, 61, .98), rgba(11, 61, 145, .9)),
        radial-gradient(circle at 80% 10%, rgba(32, 215, 197, .24), transparent 34%);
      box-shadow: var(--shadow);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      border: 1px solid rgba(255, 255, 255, .3);
      border-radius: 99px;
      color: #8cf6e9;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .04em;
    }

    .download-hero h1 {
      max-width: 700px;
      margin: 20px 0 14px;
      font-size: clamp(32px, 5vw, 58px);
      line-height: 1.2;
    }

    .download-hero p {
      max-width: 680px;
      margin: 0;
      color: #dbe8fb;
      font-size: 16px;
    }

    .download-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 28px;
    }

    .button-primary,
    .button-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 19px;
      border-radius: 7px;
      font-size: 14px;
      font-weight: 800;
    }

    .button-primary {
      color: var(--theme-dark);
      background: var(--accent);
    }

    .button-secondary {
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, .34);
      background: rgba(255, 255, 255, .08);
    }

    .download-section {
      padding-top: 58px;
    }

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

    .section-heading h2 {
      margin: 0;
      color: var(--theme-dark);
      font-size: 28px;
      line-height: 1.3;
    }

    .section-heading p {
      max-width: 560px;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

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

    .step-card,
    .software-card,
    .faq-item {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 26px rgba(13, 42, 82, .05);
    }

    .step-card {
      padding: 24px;
    }

    .step-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      margin-bottom: 18px;
      border-radius: 50%;
      color: #ffffff;
      background: var(--theme);
      font-size: 14px;
      font-weight: 800;
    }

    .step-card h3,
    .software-card h3 {
      margin: 0 0 8px;
      color: var(--theme-dark);
      font-size: 17px;
    }

    .step-card p,
    .software-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

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

    .software-card {
      display: flex;
      flex-direction: column;
      padding: 24px;
    }

    .software-icon {
      width: 50px;
      height: 50px;
      margin-bottom: 18px;
      border-radius: 10px;
      object-fit: cover;
      background: #eaf1fb;
    }

    .software-card .software-meta {
      margin: 16px 0 20px;
      color: #7a879c;
      font-size: 12px;
    }

    .software-card .button-primary {
      align-self: flex-start;
      min-height: 40px;
      padding: 0 14px;
      color: #ffffff;
      background: var(--theme);
    }

    .faq-list {
      display: grid;
      gap: 12px;
    }

    .faq-item {
      padding: 20px 24px;
    }

    .faq-item h3 {
      margin: 0 0 8px;
      color: var(--theme-dark);
      font-size: 16px;
    }

    .faq-item p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

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

      .hamburger {
        display: block;
      }

      .header-btns > :first-child {
        display: none;
      }

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

      .download-steps,
      .software-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 28px, 1180px);
      }

      .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
      }

      .topbar-links {
        gap: 10px;
      }

      .header-inner {
        min-height: 68px;
        gap: 12px;
      }

      .member-btn {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
      }

      .download-page-main {
        padding-top: 28px;
      }

      .download-hero {
        padding: 30px 22px;
      }

      .download-hero h1 {
        font-size: 34px;
      }

      .section-heading {
        display: block;
      }

      .section-heading h2 {
        margin-bottom: 10px;
        font-size: 24px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .footer-bottom {
        display: grid;
        gap: 8px;
      }
    }