:root{
      --theme:#0B3D91;
      --theme-dark:#072b68;
      --theme-soft:#eaf1fc;
      --ink:#132238;
      --muted:#64748b;
      --line:#dbe4ef;
      --surface:#ffffff;
      --surface-soft:#f5f8fc;
      --success:#087f5b;
      --shadow:0 18px 45px rgba(15,42,78,.11);
      --shadow-soft:0 10px 28px rgba(15,42,78,.08);
      --radius:18px;
      --container:1200px;
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:#f7f9fc;
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
      line-height:1.65;
      overflow-x:hidden;
    }
    body.drawer-lock{overflow:hidden}
    img{display:block;max-width:100%}
    a{color:inherit;text-decoration:none}
    button,input,textarea,select{font:inherit}
    button{color:inherit}
    .container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}
    .skip-link{
      position:fixed;
      z-index:2000;
      top:12px;
      left:12px;
      padding:10px 16px;
      border-radius:10px;
      color:#fff;
      background:var(--theme);
      transform:translateY(-160%);
      transition:.2s ease;
    }
    .skip-link:focus{transform:translateY(0)}

    .topbar{
      color:#dce8fb;
      background:#071d3e;
      font-size:13px;
    }
    .topbar-inner{
      min-height:36px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }
    .topbar-contact{display:flex;align-items:center;gap:20px}
    .topbar-contact a:hover{color:#fff}

    .header{
      position:relative;
      z-index:100;
      background:rgba(255,255,255,.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 5px 18px rgba(15,42,78,.04);
    }
    .header-inner{
      min-height:78px;
      display:flex;
      align-items:center;
      gap:24px;
    }
    .logo{
      display:inline-flex;
      align-items:center;
      gap:11px;
      min-width:0;
      font-weight:800;
      color:var(--theme-dark);
    }
    .logo img{
      width:42px;
      height:42px;
      flex:0 0 42px;
      object-fit:contain;
      border-radius:10px;
    }
    .logo span{
      max-width:180px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .main-nav{margin-left:auto;height:78px}
    .nav-list{
      height:100%;
      display:flex;
      align-items:stretch;
      gap:2px;
      margin:0;
      padding:0;
      list-style:none;
    }
    .nav-item{
      position:relative;
      display:flex;
      align-items:center;
    }
    .nav-link{
      height:100%;
      display:flex;
      align-items:center;
      padding:0 11px;
      color:#27384e;
      font-size:14px;
      font-weight:700;
      white-space:nowrap;
      transition:.2s ease;
    }
    .nav-link:hover,
    .nav-item:focus-within>.nav-link{
      color:var(--theme);
      background:var(--theme-soft);
    }
    .has-arrow::after{
      content:"";
      width:6px;
      height:6px;
      margin-left:7px;
      border-right:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
    }
    .dropdown-panel,
    .mega-menu{
      position:absolute;
      z-index:130;
      top:100%;
      left:0;
      visibility:hidden;
      opacity:0;
      transform:translateY(8px);
      pointer-events:none;
      transition:opacity .18s ease,transform .18s ease,visibility .18s;
      border:1px solid var(--line);
      border-radius:0 0 16px 16px;
      background:#fff;
      box-shadow:var(--shadow);
    }
    .dropdown-panel{
      width:310px;
      padding:12px;
    }
    .dropdown-panel>a:not(.dropdown-footer){
      display:block;
      padding:10px 12px;
      border-radius:9px;
      color:#33465e;
      font-size:14px;
    }
    .dropdown-panel>a:not(.dropdown-footer):hover{
      color:var(--theme);
      background:var(--theme-soft);
    }
    .dropdown-footer,
    .mega-footer{
      display:block;
      margin-top:8px;
      padding:11px 13px;
      color:var(--theme);
      background:var(--theme-soft);
      border-radius:9px;
      text-align:center;
      font-size:13px;
      font-weight:800;
    }
    .mega-menu{
      left:50%;
      width:min(760px,calc(100vw - 40px));
      padding:20px;
      transform:translate(-50%,8px);
    }
    .mega-menu-wide{width:min(900px,calc(100vw - 40px))}
    .nav-item:hover>.dropdown-panel,
    .nav-item:focus-within>.dropdown-panel{
      visibility:visible;
      opacity:1;
      transform:translateY(0);
      pointer-events:auto;
    }
    .nav-item:hover>.mega-menu,
    .nav-item:focus-within>.mega-menu{
      visibility:visible;
      opacity:1;
      transform:translate(-50%,0);
      pointer-events:auto;
    }
    .mega-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      margin-bottom:15px;
      padding-bottom:12px;
      border-bottom:1px solid var(--line);
    }
    .mega-head strong{color:var(--theme);font-size:17px}
    .mega-head span{color:var(--muted);font-size:13px}
    .mega-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }
    .mega-card{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:10px;
      padding:10px;
      border:1px solid #edf1f6;
      border-radius:12px;
      transition:.2s ease;
    }
    .mega-card:hover{
      border-color:#b9cceb;
      background:var(--theme-soft);
      transform:translateY(-2px);
    }
    .mega-card img{
      width:48px;
      height:48px;
      flex:0 0 48px;
      object-fit:cover;
      border-radius:10px;
      background:#eef3fa;
    }
    .mega-card-text{min-width:0}
    .mega-card-text b{
      display:block;
      color:#20334c;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      font-size:14px;
    }
    .mega-card-text p{
      display:-webkit-box;
      margin:3px 0;
      overflow:hidden;
      color:var(--muted);
      font-size:12px;
      line-height:1.45;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
    }
    .mega-card-text small{
      display:block;
      color:#78889c;
      font-size:11px;
    }
    .mega-categories{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:14px;
    }
    .mega-categories a{
      padding:6px 10px;
      color:#40536b;
      background:#f3f6fa;
      border-radius:999px;
      font-size:12px;
    }
    .mega-categories a:hover{color:#fff;background:var(--theme)}

    .header-btns{
      display:flex;
      align-items:center;
      gap:9px;
    }
    .member-entry{font-size:14px}
    .member-entry a{
      display:inline-flex;
      align-items:center;
      min-height:38px;
      padding:7px 12px;
      color:var(--theme);
      border:1px solid #b9cceb;
      border-radius:10px;
      font-weight:700;
    }
    .account-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:40px;
      padding:8px 16px;
      color:#fff;
      background:var(--theme);
      border-radius:10px;
      font-size:14px;
      font-weight:800;
      box-shadow:0 8px 18px rgba(11,61,145,.2);
    }
    .account-btn:hover{background:var(--theme-dark)}
    .hamburger{
      width:42px;
      height:42px;
      display:none;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:5px;
      padding:0;
      border:1px solid var(--line);
      border-radius:10px;
      background:#fff;
      cursor:pointer;
    }
    .hamburger span{
      width:20px;
      height:2px;
      background:var(--theme);
      transition:.2s ease;
    }
    .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:800;
      inset:0;
      visibility:hidden;
      opacity:0;
      background:rgba(4,16,35,.58);
      backdrop-filter:blur(2px);
      transition:.25s ease;
    }
    .drawer-overlay.open{visibility:visible;opacity:1}
    .mobile-drawer{
      position:fixed;
      z-index:900;
      top:0;
      right:0;
      width:min(390px,90vw);
      height:100dvh;
      overflow-y:auto;
      background:#fff;
      box-shadow:-20px 0 50px rgba(2,20,46,.2);
      transform:translateX(105%);
      transition:transform .28s ease;
    }
    .mobile-drawer.open{transform:translateX(0)}
    .drawer-head{
      min-height:70px;
      display:flex;
      align-items:center;
      gap:8px;
      padding:12px 18px;
      color:#fff;
      background:var(--theme);
    }
    .drawer-head>a{
      padding:7px 10px;
      border:1px solid rgba(255,255,255,.35);
      border-radius:9px;
      font-size:13px;
    }
    .drawer-close{
      width:38px;
      height:38px;
      margin-left:auto;
      padding:0;
      border:0;
      color:#fff;
      background:rgba(255,255,255,.12);
      border-radius:10px;
      font-size:28px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:14px 18px 28px}
    .drawer-link,
    .drawer-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:13px 5px;
      border:0;
      border-bottom:1px solid var(--line);
      background:transparent;
      color:#24364d;
      text-align:left;
      font-weight:750;
      cursor:pointer;
    }
    .drawer-toggle::after{
      content:"+";
      color:var(--theme);
      font-size:21px;
      font-weight:400;
    }
    .drawer-toggle.active::after{content:"−"}
    .drawer-submenu{
      max-height:0;
      overflow:hidden;
      opacity:0;
      transition:max-height .3s ease,opacity .2s ease;
    }
    .drawer-submenu.open{
      max-height:700px;
      opacity:1;
    }
    .drawer-submenu a{
      display:block;
      margin-left:7px;
      padding:9px 12px;
      color:var(--muted);
      border-left:2px solid #dce7f7;
      font-size:14px;
    }
    .drawer-submenu a:hover{color:var(--theme);background:var(--theme-soft)}

    .tool-detail-page{
      min-width:0;
      padding:34px 0 76px;
    }
    .tool-detail-page .breadcrumb{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      gap:8px;
      margin-bottom:22px;
      color:var(--muted);
      font-size:14px;
    }
    .tool-detail-page .breadcrumb a:hover{color:var(--theme)}
    .tool-detail-page .breadcrumb span[aria-hidden="true"]{color:#a7b3c2}
    .tool-detail-page .tool-hero{
      position:relative;
      overflow:hidden;
      padding:42px;
      color:#fff;
      background:
        radial-gradient(circle at 85% 15%,rgba(121,174,255,.34),transparent 34%),
        linear-gradient(135deg,#071d3e 0%,var(--theme) 72%,#3169bc 100%);
      border-radius:26px;
      box-shadow:var(--shadow);
    }
    .tool-detail-page .tool-hero::after{
      content:"";
      position:absolute;
      right:-85px;
      bottom:-115px;
      width:300px;
      height:300px;
      border:45px solid rgba(255,255,255,.08);
      border-radius:50%;
    }
    .tool-detail-page .tool-icon-wrap{
      position:relative;
      z-index:1;
      width:76px;
      height:76px;
      display:grid;
      place-items:center;
      margin-bottom:20px;
      padding:13px;
      background:#fff;
      border-radius:19px;
      box-shadow:0 13px 30px rgba(0,0,0,.18);
    }
    .tool-detail-page .tool-icon-wrap img{
      width:100%;
      height:100%;
      object-fit:contain;
    }
    .tool-detail-page .tool-kicker{
      position:relative;
      z-index:1;
      display:inline-flex;
      margin-bottom:10px;
      padding:5px 11px;
      color:#dceaff;
      background:rgba(255,255,255,.12);
      border:1px solid rgba(255,255,255,.2);
      border-radius:999px;
      font-size:13px;
      font-weight:800;
    }
    .tool-detail-page .tool-hero h1{
      position:relative;
      z-index:1;
      max-width:850px;
      margin:0;
      font-size:clamp(32px,5vw,54px);
      line-height:1.12;
      letter-spacing:-.03em;
    }
    .tool-detail-page .tool-summary{
      position:relative;
      z-index:1;
      max-width:820px;
      margin:17px 0 0;
      color:#e4edfa;
      font-size:17px;
    }
    .tool-detail-page .tool-meta{
      position:relative;
      z-index:1;
      display:flex;
      flex-wrap:wrap;
      gap:10px 18px;
      margin-top:25px;
      color:#d4e2f6;
      font-size:13px;
    }
    .tool-detail-page .tool-meta span{
      display:inline-flex;
      align-items:center;
      gap:7px;
    }
    .tool-detail-page .tool-meta span::before{
      content:"";
      width:7px;
      height:7px;
      background:#8ec5ff;
      border-radius:50%;
      box-shadow:0 0 0 4px rgba(142,197,255,.14);
    }
    .tool-detail-page .detail-layout{
      min-width:0;
      display:grid;
      grid-template-columns:minmax(0,1fr) 330px;
      align-items:start;
      gap:26px;
      margin-top:28px;
    }
    .tool-detail-page .tool-content-card,
    .tool-detail-page .related-tools,
    .tool-detail-page .notice-card{
      min-width:0;
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow-soft);
    }
    .tool-detail-page .tool-content-card{padding:34px}
    .tool-detail-page .section-heading{
      margin:0 0 20px;
      padding-bottom:14px;
      color:#152945;
      border-bottom:1px solid var(--line);
      font-size:24px;
      line-height:1.3;
    }
    .tool-detail-page .tool-content{
      min-width:0;
      max-width:100%;
      overflow-x:auto;
      color:#354860;
      font-size:16px;
    }
    .tool-detail-page .tool-content>*:first-child{margin-top:0}
    .tool-detail-page .tool-content>*:last-child{margin-bottom:0}
    .tool-detail-page .tool-content h2,
    .tool-detail-page .tool-content h3,
    .tool-detail-page .tool-content h4{
      color:#172b46;
      line-height:1.3;
    }
    .tool-detail-page .tool-content a{
      color:var(--theme);
      text-decoration:underline;
      text-underline-offset:3px;
    }
    .tool-detail-page .tool-content img,
    .tool-detail-page .tool-content video,
    .tool-detail-page .tool-content iframe{
      max-width:100%;
      height:auto;
      border-radius:12px;
    }
    .tool-detail-page .tool-content table{
      width:100%;
      max-width:100%;
      border-collapse:collapse;
    }
    .tool-detail-page .tool-content th,
    .tool-detail-page .tool-content td{
      padding:10px 12px;
      border:1px solid var(--line);
      text-align:left;
    }
    .tool-detail-page .tool-content blockquote{
      margin:22px 0;
      padding:15px 18px;
      color:#344962;
      background:var(--theme-soft);
      border-left:4px solid var(--theme);
      border-radius:0 10px 10px 0;
    }
    .tool-detail-page .tool-actions{
      display:flex;
      flex-wrap:wrap;
      gap:11px;
      margin-top:28px;
      padding-top:22px;
      border-top:1px solid var(--line);
    }
    .tool-detail-page .primary-action,
    .tool-detail-page .secondary-action{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:46px;
      padding:10px 18px;
      border-radius:11px;
      font-weight:800;
    }
    .tool-detail-page .primary-action{
      color:#fff;
      background:var(--theme);
      box-shadow:0 9px 20px rgba(11,61,145,.2);
    }
    .tool-detail-page .primary-action:hover{background:var(--theme-dark)}
    .tool-detail-page .secondary-action{
      color:var(--theme);
      background:var(--theme-soft);
      border:1px solid #c8d8ef;
    }
    .tool-detail-page .detail-sidebar{
      display:grid;
      gap:20px;
    }
    .tool-detail-page .notice-card{padding:22px}
    .tool-detail-page .notice-card h2{
      margin:0 0 9px;
      color:#1a304e;
      font-size:18px;
    }
    .tool-detail-page .notice-card p{
      margin:0;
      color:var(--muted);
      font-size:14px;
    }
    .tool-detail-page .notice-list{
      display:grid;
      gap:9px;
      margin:17px 0 0;
      padding:0;
      list-style:none;
    }
    .tool-detail-page .notice-list li{
      position:relative;
      padding-left:20px;
      color:#42566e;
      font-size:14px;
    }
    .tool-detail-page .notice-list li::before{
      content:"✓";
      position:absolute;
      left:0;
      top:0;
      color:var(--success);
      font-weight:900;
    }
    .tool-detail-page .related-tools{padding:22px}
    .tool-detail-page .related-tools h2{
      margin:0 0 15px;
      color:#1a304e;
      font-size:20px;
    }
    .tool-detail-page .related-list{display:grid;gap:10px}
    .tool-detail-page .related-tool{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:11px;
      padding:11px;
      background:#f8fafd;
      border:1px solid #e9eef5;
      border-radius:12px;
      transition:.2s ease;
    }
    .tool-detail-page .related-tool:hover{
      border-color:#bfd0e9;
      background:var(--theme-soft);
      transform:translateY(-2px);
    }
    .tool-detail-page .related-tool img{
      width:45px;
      height:45px;
      flex:0 0 45px;
      object-fit:contain;
      padding:5px;
      background:#fff;
      border-radius:10px;
    }
    .tool-detail-page .related-copy{min-width:0}
    .tool-detail-page .related-copy strong{
      display:block;
      overflow:hidden;
      color:#203650;
      text-overflow:ellipsis;
      white-space:nowrap;
      font-size:14px;
    }
    .tool-detail-page .related-copy p{
      display:-webkit-box;
      margin:3px 0 0;
      overflow:hidden;
      color:var(--muted);
      font-size:12px;
      line-height:1.45;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
    }

    .footer{
      color:#c9d6e7;
      background:#07182f;
      border-top:4px solid var(--theme);
    }
    .footer-grid{
      display:grid;
      grid-template-columns:1.45fr 1fr 1fr 1fr;
      gap:38px;
      padding:56px 0 38px;
    }
    .footer .logo{color:#fff}
    .footer-brand p{
      max-width:430px;
      margin:17px 0;
      color:#aebdd0;
      font-size:14px;
    }
    .footer-social{color:#fff}
    .footer h2{
      margin:0 0 16px;
      color:#fff;
      font-size:16px;
    }
    .footer-links,
    .footer-contact{
      display:grid;
      gap:9px;
    }
    .footer-links a,
    .footer-contact a{
      color:#b7c6d8;
      font-size:14px;
    }
    .footer-links a:hover,
    .footer-contact a:hover{color:#fff}
    .footer-bottom{
      min-height:65px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      padding:16px 0;
      color:#91a4bb;
      border-top:1px solid rgba(255,255,255,.1);
      font-size:13px;
    }

    @media (max-width:1100px){
      .main-nav{display:none}
      .hamburger{display:flex}
      .header-inner{min-height:70px}
      .header-btns{margin-left:auto}
      .detail-layout{grid-template-columns:minmax(0,1fr) 300px}
    }
    @media (max-width:860px){
      .tool-detail-page .detail-layout{grid-template-columns:1fr}
      .tool-detail-page .detail-sidebar{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }
      .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media (max-width:640px){
      .container{width:min(100% - 28px,var(--container))}
      .topbar-inner{
        min-height:44px;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:1px;
        padding:6px 0;
      }
      .topbar-contact{gap:12px;flex-wrap:wrap}
      .header-inner{gap:10px}
      .header .logo span{max-width:112px}
      .header .logo img{width:38px;height:38px;flex-basis:38px}
      .member-entry{display:none}
      .account-btn{padding:8px 12px}
      .tool-detail-page{padding-top:22px}
      .tool-detail-page .tool-hero{
        padding:28px 22px;
        border-radius:20px;
      }
      .tool-detail-page .tool-icon-wrap{
        width:65px;
        height:65px;
      }
      .tool-detail-page .tool-summary{font-size:15px}
      .tool-detail-page .tool-content-card{padding:22px 18px}
      .tool-detail-page .detail-sidebar{grid-template-columns:1fr}
      .tool-detail-page .primary-action,
      .tool-detail-page .secondary-action{width:100%}
      .footer-grid{
        grid-template-columns:1fr;
        gap:28px;
        padding-top:42px;
      }
      .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
      }
    }