:root{
      --primary:#0B3D91;
      --primary-dark:#082b68;
      --ink:#17243b;
      --muted:#6c7890;
      --line:#dfe6f0;
      --surface:#ffffff;
      --soft:#f3f7fc;
      --shadow:0 16px 45px rgba(25,54,98,.10);
      --radius:18px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:#f7f9fc;
      font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;
      line-height:1.7;
    }
    a{color:inherit;text-decoration:none}
    img{max-width:100%;display:block}
    button{font:inherit}
    .container{width:min(1180px,calc(100% - 40px));margin:0 auto}

    .topbar{
      background:#102b57;
      color:#dbe7f8;
      font-size:13px;
    }
    .topbar .container{
      min-height:36px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }
    .topbar-links{display:flex;gap:22px}
    .topbar a{color:#e9f1ff}
    .header{
      position:relative;
      z-index:20;
      background:rgba(255,255,255,.96);
      border-bottom:1px solid #e7edf5;
    }
    .header-inner{
      min-height:78px;
      display:flex;
      align-items:center;
      gap:34px;
    }
    .logo{
      display:flex;
      align-items:center;
      gap:10px;
      color:var(--primary-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;
      list-style:none;
      padding:0;
      margin:0;
      gap:4px;
    }
    .nav-item{position:relative}
    .nav-link{
      display:flex;
      align-items:center;
      min-height:78px;
      padding:0 14px;
      color:#35445c;
      font-size:15px;
      font-weight:600;
      white-space:nowrap;
    }
    .nav-link:hover,.nav-link:focus-visible{color:var(--primary)}
    .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);
      width:280px;
      padding:18px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 16px 16px;
      box-shadow:var(--shadow);
      opacity:0;
      visibility:hidden;
      pointer-events:none;
      transition:.22s ease;
    }
    .mega-menu{width:650px}
    .dropdown-panel:before,.mega-menu:before{
      content:"";
      position:absolute;
      left:0;
      right:0;
      top:-12px;
      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;
      pointer-events:auto;
      transform:translateX(-50%) translateY(0);
    }
    .dropdown-panel a{
      display:block;
      padding:8px 9px;
      border-bottom:1px solid #edf1f6;
      font-size:14px;
    }
    .dropdown-panel a:hover{color:var(--primary);background:var(--soft)}
    .mega-section-title{
      margin:0 0 12px;
      color:var(--primary-dark);
      font-size:14px;
      font-weight:800;
    }
    .mega-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }
    .mega-card{
      display:flex;
      align-items:flex-start;
      gap:9px;
      min-width:0;
      padding:10px;
      border:1px solid #e8edf4;
      border-radius:11px;
      background:#fbfcfe;
    }
    .mega-card:hover{border-color:#aac1e5;background:#f2f7ff}
    .mega-card img{
      flex:0 0 34px;
      width:34px;
      height:34px;
      border-radius:8px;
      object-fit:cover;
      background:#e8eef8;
    }
    .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{font-size:13px}
    .mega-card small{color:var(--muted);font-size:11px;line-height:1.5}
    .mega-links{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:14px;
    }
    .mega-links a{
      display:inline-block;
      padding:5px 10px;
      border-radius:20px;
      background:#eef4fc;
      color:var(--primary);
      font-size:12px;
    }
    .mega-links a:hover{background:#dce9fb}
    .header-btns{display:flex;align-items:center;gap:13px}
    .member-btn{
      padding:9px 16px;
      border-radius:24px;
      background:var(--primary);
      color:#fff;
      font-size:13px;
      font-weight:700;
      white-space:nowrap;
    }
    .member-btn:hover{background:var(--primary-dark)}
    .hamburger{
      display:none;
      width:42px;
      height:42px;
      padding:9px;
      border:1px solid #d7e0ec;
      border-radius:10px;
      background:#fff;
      cursor:pointer;
    }
    .hamburger span{
      display:block;
      width:22px;
      height:2px;
      margin:5px auto;
      background:var(--primary);
      transition:.2s;
    }
    .hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
    .hamburger.active span:nth-child(2){opacity:0}
    .hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

    .drawer-overlay{
      position:fixed;
      z-index:90;
      inset:0;
      background:rgba(8,25,53,.48);
      opacity:0;
      visibility:hidden;
      transition:.25s;
    }
    .drawer-overlay.open{opacity:1;visibility:visible}
    .mobile-drawer{
      position:fixed;
      z-index:100;
      top:0;
      right:0;
      width:min(390px,88vw);
      height:100vh;
      overflow:auto;
      background:#fff;
      transform:translateX(100%);
      transition:.3s ease;
      box-shadow:-14px 0 40px rgba(11,61,145,.18);
    }
    .mobile-drawer.open{transform:translateX(0)}
    .drawer-head{
      display:flex;
      align-items:center;
      gap:14px;
      padding:22px 20px;
      color:var(--primary-dark);
      font-weight:800;
      border-bottom:1px solid var(--line);
    }
    .drawer-head a:nth-child(2){
      margin-left:auto;
      color:var(--primary);
      font-size:14px;
    }
    .drawer-close{
      width:32px;
      height:32px;
      border:0;
      background:#eef4fc;
      color:var(--primary);
      border-radius:50%;
      font-size:24px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:12px 20px 35px}
    .drawer-link,.drawer-toggle{
      display:block;
      width:100%;
      padding:13px 0;
      border:0;
      border-bottom:1px solid #edf1f6;
      background:transparent;
      color:var(--ink);
      text-align:left;
      font-weight:700;
      cursor:pointer;
    }
    .drawer-toggle:after{
      content:"+";
      float:right;
      color:var(--primary);
      font-size:20px;
      line-height:1;
    }
    .drawer-toggle.active:after{content:"−"}
    .drawer-submenu{
      display:none;
      padding:5px 0 8px 15px;
      border-bottom:1px solid #edf1f6;
    }
    .drawer-submenu.open{display:block}
    .drawer-submenu a{
      display:block;
      padding:7px 0;
      color:var(--muted);
      font-size:14px;
    }
    .drawer-submenu a:hover{color:var(--primary)}

    .tools-page{
      min-height:650px;
      padding:72px 0 90px;
      background:
        radial-gradient(circle at 8% 8%,rgba(196,218,250,.52),transparent 29%),
        radial-gradient(circle at 92% 18%,rgba(223,237,255,.9),transparent 30%),
        #f7f9fc;
    }
    .tools-hero{text-align:center;max-width:760px;margin:0 auto 42px}
    .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:6px 13px;
      border-radius:30px;
      background:#e4eefc;
      color:var(--primary);
      font-size:13px;
      font-weight:800;
    }
    .eyebrow:before{
      content:"";
      width:7px;
      height:7px;
      border-radius:50%;
      background:#42a5f5;
      box-shadow:0 0 0 5px rgba(66,165,245,.14);
    }
    .tools-hero h1{
      margin:18px 0 12px;
      color:#132b52;
      font-size:clamp(32px,5vw,54px);
      line-height:1.18;
      letter-spacing:-1px;
    }
    .tools-hero p{
      margin:0;
      color:var(--muted);
      font-size:16px;
    }
    .tools-filter{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      margin-bottom:22px;
      padding:17px 20px;
      background:#fff;
      border:1px solid #e4ebf5;
      border-radius:16px;
      box-shadow:0 8px 24px rgba(31,65,110,.05);
    }
    .tools-filter strong{font-size:17px;color:#203654}
    .tools-filter span{color:var(--muted);font-size:13px}
    .tools-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:20px;
    }
    .tool-card{
      position:relative;
      display:flex;
      flex-direction:column;
      min-height:245px;
      padding:24px;
      background:rgba(255,255,255,.96);
      border:1px solid #e1e9f4;
      border-radius:var(--radius);
      box-shadow:0 10px 30px rgba(27,64,111,.07);
      overflow:hidden;
      transition:transform .25s,box-shadow .25s,border-color .25s;
    }
    .tool-card:after{
      content:"";
      position:absolute;
      width:105px;
      height:105px;
      right:-44px;
      top:-44px;
      border-radius:50%;
      background:#edf4ff;
    }
    .tool-card:hover{
      transform:translateY(-5px);
      border-color:#aec6e9;
      box-shadow:0 18px 38px rgba(27,64,111,.14);
    }
    .tool-icon{
      position:relative;
      z-index:1;
      display:grid;
      place-items:center;
      width:54px;
      height:54px;
      margin-bottom:17px;
      border-radius:15px;
      background:#e8f0fc;
      color:var(--primary);
      overflow:hidden;
    }
    .tool-icon img{width:34px;height:34px;object-fit:contain}
    .tool-card h2{
      margin:0 0 8px;
      color:#1a3154;
      font-size:19px;
      line-height:1.35;
    }
    .tool-card p{
      display:-webkit-box;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:3;
      overflow:hidden;
      margin:0;
      color:var(--muted);
      font-size:14px;
      line-height:1.75;
    }
    .tool-card-footer{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:15px;
      margin-top:auto;
      padding-top:20px;
    }
    .tool-card-footer small{color:#8a97a9;font-size:12px}
    .tool-link{
      color:var(--primary);
      font-size:13px;
      font-weight:800;
    }
    .tool-link:after{content:" →";transition:.2s}
    .tool-card:hover .tool-link:after{padding-left:4px}
    .tools-note{
      display:flex;
      align-items:center;
      gap:12px;
      margin-top:30px;
      padding:17px 20px;
      border-left:4px solid var(--primary);
      border-radius:10px;
      background:#edf4fd;
      color:#49617e;
      font-size:13px;
    }
    .tools-note strong{color:var(--primary-dark)}

    .footer{
      background:#102b57;
      color:#d6e2f2;
      padding:55px 0 22px;
    }
    .footer-grid{
      display:grid;
      grid-template-columns:1.5fr 1fr 1fr 1fr;
      gap:35px;
    }
    .footer-brand strong{display:block;color:#fff;font-size:21px;margin-bottom:12px}
    .footer p{margin:0;color:#aebed4;font-size:13px;line-height:1.8}
    .footer h3{margin:0 0 13px;color:#fff;font-size:15px}
    .footer-grid>div:not(.footer-brand) a{
      display:block;
      margin:7px 0;
      color:#c5d5e8;
      font-size:13px;
    }
    .footer-grid>div:not(.footer-brand) a:hover{color:#fff}
    .footer-bottom{
      display:flex;
      justify-content:space-between;
      gap:20px;
      margin-top:38px;
      padding-top:20px;
      border-top:1px solid rgba(220,235,255,.16);
      color:#9eb1ca;
      font-size:12px;
    }

    @media (max-width:1050px){
      .header-inner{gap:18px}
      .nav-link{padding:0 9px}
      .mega-menu{width:590px}
      .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media (max-width:820px){
      .container{width:min(100% - 30px,680px)}
      .main-nav{display:none}
      .hamburger{display:block}
      .topbar .container{min-height:42px;align-items:flex-start;padding-top:8px;padding-bottom:8px}
      .topbar-links{gap:10px;flex-direction:column;align-items:flex-end;line-height:1.1}
      .header-inner{min-height:68px}
      .member-btn{padding:8px 11px;font-size:12px}
      .tools-page{padding:52px 0 65px}
      .tools-hero{margin-bottom:30px}
      .tools-filter{align-items:flex-start;flex-direction:column;gap:4px}
      .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
      .footer-brand{grid-column:1/-1}
    }
    @media (max-width:540px){
      .logo span{font-size:16px}
      .topbar .container{font-size:11px}
      .tools-grid{grid-template-columns:1fr;gap:15px}
      .tool-card{min-height:225px;padding:20px}
      .tools-hero h1{font-size:34px}
      .tools-hero p{font-size:14px;text-align:left}
      .footer-grid{grid-template-columns:1fr}
      .footer-brand{grid-column:auto}
      .footer-bottom{display:block}
      .footer-bottom span{display:block;margin-top:5px}
    }