:root{
      --theme:#0B3D91;
      --theme-dark:#082b67;
      --theme-light:#eaf1ff;
      --ink:#152238;
      --muted:#65738a;
      --line:#dfe6f0;
      --bg:#f5f8fc;
      --white:#fff;
      --shadow:0 16px 40px rgba(11,61,145,.10);
      --radius:16px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:var(--bg);
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;
      line-height:1.6;
    }
    a{color:inherit;text-decoration:none}
    img{max-width:100%;display:block}
    .container{width:min(1180px,calc(100% - 40px));margin:0 auto}

    .topbar{
      background:#071d43;
      color:#dce8ff;
      font-size:13px;
    }
    .topbar .container{
      min-height:36px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:20px;
    }
    .topbar-links{display:flex;gap:22px}
    .topbar a{color:#fff;opacity:.9}
    .topbar a:hover{opacity:1;color:#fff}

    .header{
      position:relative;
      z-index:20;
      background:rgba(255,255,255,.97);
      border-bottom:1px solid var(--line);
    }
    .header-inner{
      min-height:76px;
      display:flex;
      align-items:center;
      gap:28px;
    }
    .logo{
      display:flex;
      align-items:center;
      gap:10px;
      flex:0 0 auto;
      color:var(--theme-dark);
      font-weight:800;
      font-size:19px;
      white-space:nowrap;
    }
    .logo img{width:38px;height:38px;object-fit:contain}
    .main-nav{margin-left:auto}
    .nav-list{
      display:flex;
      align-items:stretch;
      gap:4px;
      list-style:none;
      margin:0;
      padding:0;
    }
    .nav-item{position:relative}
    .nav-link{
      display:flex;
      align-items:center;
      min-height:76px;
      padding:0 14px;
      color:#26364f;
      font-size:15px;
      font-weight:600;
      white-space:nowrap;
    }
    .nav-link:hover,.nav-link:focus{color:var(--theme)}
    .has-arrow:after{
      content:"";
      width:6px;
      height:6px;
      margin-left:8px;
      border-right:1px solid currentColor;
      border-bottom:1px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
    }
    .dropdown-panel,.mega-menu{
      position:absolute;
      top:calc(100% - 1px);
      left:50%;
      transform:translateX(-50%) translateY(8px);
      visibility:hidden;
      opacity:0;
      transition:.2s ease;
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 14px 14px;
      box-shadow:var(--shadow);
      z-index:30;
    }
    .dropdown-panel{
      width:270px;
      padding:12px;
    }
    .dropdown-panel a{
      display:block;
      padding:10px 12px;
      border-radius:8px;
      font-size:14px;
    }
    .dropdown-panel a:hover{background:var(--theme-light);color:var(--theme)}
    .mega-menu{
      width:700px;
      padding:20px;
    }
    .nav-item:hover .dropdown-panel,
    .nav-item:focus-within .dropdown-panel,
    .nav-item:hover .mega-menu,
    .nav-item:focus-within .mega-menu{
      visibility:visible;
      opacity:1;
      transform:translateX(-50%) translateY(0);
    }
    .nav-item:after{
      content:"";
      position:absolute;
      left:0;
      right:0;
      height:12px;
      top:100%;
    }
    .mega-grid{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:12px;
    }
    .mega-card{
      min-width:0;
      padding:12px;
      border:1px solid var(--line);
      border-radius:11px;
      background:#fbfdff;
      transition:.2s ease;
    }
    .mega-card:hover{
      border-color:#9bb8eb;
      background:var(--theme-light);
      transform:translateY(-2px);
    }
    .mega-card img{
      width:34px;
      height:34px;
      object-fit:contain;
      border-radius:7px;
      margin-bottom:7px;
    }
    .mega-card strong,.mega-card small{display:block}
    .mega-card strong{
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      font-size:14px;
    }
    .mega-card small{
      color:var(--muted);
      font-size:12px;
      line-height:1.5;
      margin-top:3px;
    }
    .mega-footer{
      display:flex;
      flex-wrap:wrap;
      gap:8px 16px;
      margin-top:18px;
      padding-top:14px;
      border-top:1px solid var(--line);
      color:var(--theme);
      font-size:13px;
      font-weight:600;
    }
    .header-btns{
      display:flex;
      align-items:center;
      gap:10px;
      flex:0 0 auto;
    }
    .member-link{
      color:var(--theme);
      font-size:14px;
      font-weight:700;
    }
    .open-account{
      padding:10px 16px;
      border-radius:8px;
      background:var(--theme);
      color:#fff;
      font-size:14px;
      font-weight:700;
    }
    .open-account:hover{background:var(--theme-dark)}
    .hamburger{
      display:none;
      width:42px;
      height:40px;
      border:1px solid var(--line);
      border-radius:8px;
      background:#fff;
      padding:8px;
      cursor:pointer;
    }
    .hamburger span{
      display:block;
      width:22px;
      height:2px;
      margin:4px auto;
      background:var(--theme);
      transition:.2s;
    }
    .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;
      background:rgba(4,20,45,.52);
      opacity:0;
      visibility:hidden;
      transition:.25s;
      z-index:50;
    }
    .drawer-overlay.open{opacity:1;visibility:visible}
    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      width:min(390px,88vw);
      height:100vh;
      overflow:auto;
      background:#fff;
      transform:translateX(100%);
      transition:.28s ease;
      z-index:51;
      box-shadow:-14px 0 35px rgba(0,0,0,.15);
    }
    .mobile-drawer.open{transform:translateX(0)}
    .drawer-head{
      min-height:72px;
      display:flex;
      align-items:center;
      gap:14px;
      padding:16px 20px;
      border-bottom:1px solid var(--line);
      color:var(--theme-dark);
    }
    .drawer-head strong{margin-right:auto}
    .drawer-head a{
      padding:7px 12px;
      border-radius:7px;
      background:var(--theme);
      color:#fff;
      font-size:13px;
    }
    .drawer-close{
      border:0;
      background:transparent;
      color:var(--ink);
      font-size:29px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:10px 20px 30px}
    .drawer-link,.drawer-toggle{
      display:block;
      width:100%;
      padding:14px 0;
      border:0;
      border-bottom:1px solid #edf1f6;
      background:transparent;
      color:var(--ink);
      text-align:left;
      font:inherit;
      font-weight:600;
      cursor:pointer;
    }
    .drawer-toggle:after{
      content:"+";
      float:right;
      color:var(--theme);
      font-size:20px;
      line-height:1;
    }
    .drawer-toggle.active:after{content:"−"}
    .drawer-submenu{
      display:none;
      padding:4px 0 8px 14px;
      border-left:2px solid var(--theme-light);
    }
    .drawer-submenu.open{display:block}
    .drawer-submenu a{
      display:block;
      padding:8px 0;
      color:var(--muted);
      font-size:14px;
    }

    .tools-page{
      padding:64px 0 86px;
      background:
        radial-gradient(circle at 8% 8%,rgba(11,61,145,.10),transparent 28%),
        linear-gradient(180deg,#f8fbff 0%,#f5f8fc 100%);
    }
    .tools-hero{text-align:center;max-width:760px;margin:0 auto 42px}
    .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:6px 12px;
      border-radius:999px;
      background:var(--theme-light);
      color:var(--theme);
      font-size:13px;
      font-weight:700;
    }
    .eyebrow:before{
      content:"";
      width:7px;
      height:7px;
      border-radius:50%;
      background:#3b82f6;
      box-shadow:0 0 0 5px rgba(59,130,246,.12);
    }
    .tools-hero h1{
      margin:18px 0 12px;
      color:#102b59;
      font-size:clamp(32px,5vw,54px);
      line-height:1.18;
      letter-spacing:-1px;
    }
    .tools-hero p{
      margin:0;
      color:var(--muted);
      font-size:17px;
    }
    .tools-toolbar{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:20px;
      margin-bottom:22px;
    }
    .tools-toolbar h2{margin:0;font-size:24px;color:var(--ink)}
    .tools-note{color:var(--muted);font-size:14px}
    .tools-grid{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:20px;
    }
    .tool-card{
      display:flex;
      flex-direction:column;
      min-height:248px;
      padding:23px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:0 7px 24px rgba(17,42,82,.05);
      transition:.25s ease;
    }
    .tool-card:hover{
      transform:translateY(-5px);
      border-color:#9bb8eb;
      box-shadow:var(--shadow);
    }
    .tool-icon{
      width:58px;
      height:58px;
      display:grid;
      place-items:center;
      margin-bottom:16px;
      border-radius:14px;
      background:var(--theme-light);
      color:var(--theme);
    }
    .tool-icon img{width:38px;height:38px;object-fit:contain}
    .tool-card h3{
      margin:0 0 8px;
      color:#142d57;
      font-size:19px;
    }
    .tool-card p{
      display:-webkit-box;
      overflow:hidden;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:3;
      min-height:72px;
      margin:0;
      color:var(--muted);
      font-size:14px;
      line-height:1.7;
    }
    .tool-card-bottom{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin-top:auto;
      padding-top:18px;
      border-top:1px solid #edf1f6;
    }
    .tool-card-meta{color:#8a96a8;font-size:12px}
    .tool-link{
      color:var(--theme);
      font-size:14px;
      font-weight:700;
    }
    .tool-link:after{content:" →";transition:.2s}
    .tool-card:hover .tool-link:after{padding-left:4px}
    .tools-empty{
      grid-column:1/-1;
      padding:45px;
      text-align:center;
      color:var(--muted);
      background:#fff;
      border:1px dashed #b8c7dd;
      border-radius:var(--radius);
    }

    .footer{
      padding:54px 0 0;
      background:#071d43;
      color:#cbd8ee;
    }
    .footer-grid{
      display:grid;
      grid-template-columns:1.5fr 1fr 1fr 1.2fr;
      gap:38px;
      padding-bottom:42px;
    }
    .footer h3{
      margin:0 0 16px;
      color:#fff;
      font-size:16px;
    }
    .footer-brand strong{
      display:block;
      margin-bottom:13px;
      color:#fff;
      font-size:20px;
    }
    .footer p{margin:7px 0;font-size:13px}
    .footer-grid>div:not(.footer-brand) a{
      display:block;
      width:max-content;
      max-width:100%;
      margin:8px 0;
      color:#cbd8ee;
      font-size:13px;
    }
    .footer-grid a:hover{color:#fff}
    .footer-bottom{
      display:flex;
      justify-content:space-between;
      gap:20px;
      padding:18px 0;
      border-top:1px solid rgba(255,255,255,.15);
      color:#9fb2d0;
      font-size:12px;
    }

    @media (max-width:1050px){
      .main-nav{display:none}
      .hamburger{display:block}
      .tools-grid{grid-template-columns:repeat(2,1fr)}
    }
    @media (max-width:700px){
      .container{width:min(100% - 28px,560px)}
      .topbar .container{align-items:flex-start;flex-direction:column;gap:3px;padding-top:8px;padding-bottom:8px}
      .topbar-links{gap:12px;flex-wrap:wrap}
      .header-inner{min-height:68px;gap:12px}
      .member-link,.open-account{display:none}
      .logo{font-size:17px}
      .logo img{width:34px;height:34px}
      .tools-page{padding:42px 0 62px}
      .tools-hero{margin-bottom:32px}
      .tools-hero h1{font-size:34px}
      .tools-hero p{font-size:15px}
      .tools-toolbar{display:block}
      .tools-note{display:block;margin-top:5px}
      .tools-grid{grid-template-columns:1fr;gap:15px}
      .tool-card{min-height:230px;padding:20px}
      .footer-grid{grid-template-columns:1fr 1fr;gap:28px 20px}
      .footer-brand{grid-column:1/-1}
      .footer-bottom{display:block}
      .footer-bottom span{display:block;margin:5px 0}
    }
    @media (prefers-reduced-motion:reduce){
      *,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
    }