:root{
      --primary:#0B3D91;
      --primary-dark:#072d6d;
      --primary-soft:#eaf1ff;
      --cyan:#0891B2;
      --cyan-soft:#ecfeff;
      --ink:#172033;
      --muted:#657087;
      --line:#dce4ef;
      --surface:#ffffff;
      --page:#f5f8fc;
      --template-theme:{主题色};
      --radius:18px;
      --shadow:0 16px 42px rgba(20,44,82,.11);
    }

    *{
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      margin:0;
      color:var(--ink);
      background:var(--page);
      font-family:"Noto Sans Thai","Tahoma",sans-serif;
      line-height:1.65;
      -webkit-font-smoothing:antialiased;
    }

    body.drawer-lock{
      overflow:hidden;
    }

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

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

    button,
    input{
      font:inherit;
    }

    button{
      color:inherit;
    }

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

    .topbar{
      color:#dce9ff;
      background:#071d43;
      font-size:13px;
    }

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

    .topbar-welcome{
      margin:0;
    }

    .topbar-contact{
      display:flex;
      align-items:center;
      gap:18px;
    }

    .topbar-contact a{
      transition:color .2s ease;
    }

    .topbar-contact a:hover{
      color:#67e8f9;
    }

    .header{
      position:relative;
      z-index:50;
      background:rgba(255,255,255,.97);
      border-bottom:1px solid var(--line);
      box-shadow:0 5px 22px rgba(12,36,72,.05);
    }

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

    .logo{
      display:inline-flex;
      align-items:center;
      gap:10px;
      min-width:0;
      color:var(--primary);
      font-size:19px;
      font-weight:800;
      letter-spacing:-.02em;
    }

    .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{
      align-self:stretch;
      flex:1;
      display:flex;
      justify-content:center;
    }

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

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

    .nav-link{
      position:relative;
      display:flex;
      align-items:center;
      padding:0 11px;
      color:#26344e;
      font-size:13px;
      font-weight:700;
      white-space:nowrap;
      transition:color .2s ease,background .2s ease;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link{
      color:var(--primary);
      background:var(--primary-soft);
    }

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

    .dropdown-panel,
    .mega-menu{
      position:absolute;
      top:100%;
      left:0;
      z-index:60;
      visibility:hidden;
      opacity:0;
      transform:translateY(10px);
      pointer-events:none;
      transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
      color:var(--ink);
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 18px 18px;
      box-shadow:var(--shadow);
    }

    .dropdown-panel::before,
    .mega-menu::before{
      position:absolute;
      right:0;
      bottom:100%;
      left:0;
      height:10px;
      content:"";
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu{
      visibility:visible;
      opacity:1;
      transform:translateY(0);
      pointer-events:auto;
    }

    .dropdown-panel{
      width:330px;
      padding:20px;
    }

    .dropdown-title,
    .mega-title{
      margin:0 0 13px;
      color:var(--primary);
      font-size:14px;
      font-weight:800;
    }

    .dropdown-list{
      display:grid;
      gap:4px;
    }

    .dropdown-list a{
      padding:9px 10px;
      border-radius:9px;
      font-size:13px;
      line-height:1.45;
    }

    .dropdown-list a:hover{
      color:var(--primary);
      background:var(--primary-soft);
    }

    .dropdown-all,
    .mega-footer{
      display:block;
      margin-top:14px;
      padding-top:13px;
      color:var(--primary);
      border-top:1px solid var(--line);
      font-size:13px;
      font-weight:800;
    }

    .mega-menu{
      width:600px;
      padding:20px;
    }

    .mega-wide{
      width:760px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu{
      right:0;
      left:auto;
    }

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

    .mega-card{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:11px;
      padding:11px;
      border:1px solid #e7edf5;
      border-radius:12px;
      transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
    }

    .mega-card:hover{
      border-color:#a9c5f6;
      box-shadow:0 8px 22px rgba(11,61,145,.09);
      transform:translateY(-2px);
    }

    .mega-card > img{
      width:48px;
      height:48px;
      flex:0 0 48px;
      object-fit:cover;
      border-radius:10px;
      background:#eef3f9;
    }

    .mega-card-body{
      min-width:0;
      display:block;
    }

    .mega-card-body strong{
      display:block;
      overflow:hidden;
      color:#1b2a43;
      font-size:13px;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .mega-card-body small{
      display:block;
      margin-top:2px;
      color:var(--muted);
      font-size:11px;
      line-height:1.4;
    }

    .mega-card-body p{
      display:-webkit-box;
      margin:4px 0 0;
      overflow:hidden;
      color:var(--muted);
      font-size:11px;
      line-height:1.45;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .mega-category-list{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:14px;
    }

    .mega-category-list a{
      padding:6px 11px;
      color:#30415e;
      background:#f2f6fb;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
    }

    .mega-category-list a:hover{
      color:#fff;
      background:var(--primary);
    }

    .header-btns{
      display:flex;
      align-items:center;
      gap:10px;
      white-space:nowrap;
    }

    .account-link{
      display:inline-flex;
      min-height:40px;
      align-items:center;
      justify-content:center;
      padding:8px 15px;
      color:#fff;
      background:var(--primary);
      border-radius:10px;
      font-size:13px;
      font-weight:800;
      box-shadow:0 7px 18px rgba(11,61,145,.2);
      transition:background .2s ease,transform .2s ease;
    }

    .account-link:hover{
      background:var(--primary-dark);
      transform:translateY(-1px);
    }

    .hamburger{
      width:42px;
      height:42px;
      display:none;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:5px;
      padding:0;
      background:#fff;
      border:1px solid var(--line);
      border-radius:10px;
      cursor:pointer;
    }

    .hamburger span{
      width:20px;
      height:2px;
      background:var(--ink);
      border-radius:2px;
      transition:transform .2s ease,opacity .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;
      inset:0;
      z-index:80;
      visibility:hidden;
      opacity:0;
      background:rgba(4,16,38,.62);
      backdrop-filter:blur(3px);
      transition:opacity .25s ease,visibility .25s ease;
    }

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

    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      z-index:90;
      width:min(390px,92vw);
      height:100dvh;
      overflow-y:auto;
      color:var(--ink);
      background:#fff;
      box-shadow:-18px 0 50px rgba(7,29,67,.22);
      transform:translateX(105%);
      transition:transform .28s ease;
    }

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

    .drawer-head{
      position:sticky;
      top:0;
      z-index:2;
      min-height:72px;
      display:flex;
      align-items:center;
      gap:10px;
      padding:14px 18px;
      background:#fff;
      border-bottom:1px solid var(--line);
    }

    .drawer-head > a{
      padding:8px 12px;
      color:#fff;
      background:var(--primary);
      border-radius:9px;
      font-size:13px;
      font-weight:800;
    }

    .drawer-close{
      width:40px;
      height:40px;
      margin-left:auto;
      padding:0;
      color:#32415b;
      background:#f2f5f9;
      border:0;
      border-radius:10px;
      font-size:27px;
      line-height:1;
      cursor:pointer;
    }

    .drawer-menu{
      padding:12px 18px 30px;
    }

    .drawer-link,
    .drawer-toggle{
      width:100%;
      min-height:48px;
      display:flex;
      align-items:center;
      padding:10px 12px;
      color:#26354e;
      background:transparent;
      border:0;
      border-bottom:1px solid #edf1f6;
      font-weight:800;
      text-align:left;
      cursor:pointer;
    }

    .drawer-toggle{
      justify-content:space-between;
    }

    .drawer-toggle::after{
      width:8px;
      height:8px;
      border-right:2px solid var(--primary);
      border-bottom:2px solid var(--primary);
      content:"";
      transform:rotate(45deg);
      transition:transform .2s ease;
    }

    .drawer-toggle.active::after{
      transform:rotate(225deg);
    }

    .drawer-submenu{
      max-height:0;
      overflow:hidden;
      background:#f7f9fc;
      border-radius:0 0 12px 12px;
      transition:max-height .3s ease;
    }

    .drawer-submenu.open{
      max-height:1000px;
    }

    .drawer-submenu a{
      display:block;
      padding:10px 18px;
      color:#56647a;
      border-bottom:1px solid #e8edf4;
      font-size:13px;
    }

    .drawer-submenu a:hover{
      color:var(--primary);
      background:#edf3ff;
    }

    .tag-index-page{
      min-height:620px;
    }

    .tag-index-page .tag-hero{
      position:relative;
      overflow:hidden;
      padding:72px 0 64px;
      color:#fff;
      background:
        radial-gradient(circle at 15% 15%,rgba(34,211,238,.22),transparent 30%),
        radial-gradient(circle at 85% 75%,rgba(96,165,250,.2),transparent 28%),
        linear-gradient(135deg,#071d43 0%,#0b3d91 55%,#075f78 100%);
    }

    .tag-index-page .tag-hero::before,
    .tag-index-page .tag-hero::after{
      position:absolute;
      content:"";
      border:1px solid rgba(255,255,255,.12);
      border-radius:50%;
    }

    .tag-index-page .tag-hero::before{
      width:320px;
      height:320px;
      top:-180px;
      right:8%;
    }

    .tag-index-page .tag-hero::after{
      width:220px;
      height:220px;
      bottom:-150px;
      left:7%;
    }

    .tag-index-page .breadcrumb{
      position:relative;
      z-index:1;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-bottom:20px;
      color:#c7ddff;
      font-size:14px;
    }

    .tag-index-page .breadcrumb a:hover{
      color:#67e8f9;
    }

    .tag-index-page .tag-heading{
      position:relative;
      z-index:1;
      max-width:800px;
      margin:0 auto;
      text-align:center;
    }

    .tag-index-page .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:14px;
      padding:7px 13px;
      color:#cffafe;
      background:rgba(8,145,178,.24);
      border:1px solid rgba(165,243,252,.25);
      border-radius:999px;
      font-size:13px;
      font-weight:800;
    }

    .tag-index-page .eyebrow::before{
      width:8px;
      height:8px;
      background:#22d3ee;
      border-radius:50%;
      box-shadow:0 0 0 5px rgba(34,211,238,.14);
      content:"";
    }

    .tag-index-page h1{
      margin:0;
      font-size:clamp(36px,6vw,64px);
      line-height:1.15;
      letter-spacing:-.04em;
    }

    .tag-index-page .tag-intro{
      max-width:700px;
      margin:18px auto 0;
      color:#d8e8ff;
      font-size:17px;
    }

    .tag-index-page .tag-section{
      padding:66px 0 84px;
    }

    .tag-index-page .section-head{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:26px;
    }

    .tag-index-page .section-head h2{
      margin:0;
      color:#12233e;
      font-size:30px;
      line-height:1.3;
    }

    .tag-index-page .section-head p{
      max-width:620px;
      margin:7px 0 0;
      color:var(--muted);
    }

    .tag-index-page .topic-mark{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:9px 13px;
      color:var(--primary);
      background:var(--primary-soft);
      border-radius:999px;
      font-size:13px;
      font-weight:800;
    }

    .tag-index-page .tag-cloud{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:center;
      gap:14px;
      min-height:300px;
      padding:42px;
      background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg,#b7d4ff,#a5f3fc) border-box;
      border:1px solid transparent;
      border-radius:26px;
      box-shadow:var(--shadow);
    }

    .tag-index-page .tag-chip{
      display:inline-flex;
      align-items:center;
      gap:9px;
      min-height:46px;
      padding:10px 17px;
      color:#263752;
      background:#f5f8fd;
      border:1px solid #dce6f2;
      border-radius:999px;
      font-size:15px;
      font-weight:800;
      transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
    }

    .tag-index-page .tag-chip::before{
      color:var(--cyan);
      content:"#";
      font-weight:900;
    }

    .tag-index-page .tag-chip:nth-child(3n+1){
      font-size:18px;
    }

    .tag-index-page .tag-chip:nth-child(4n+2){
      color:#075f78;
      background:var(--cyan-soft);
      border-color:#a5f3fc;
    }

    .tag-index-page .tag-chip:nth-child(5n+3){
      color:var(--primary);
      background:var(--primary-soft);
      border-color:#bfd3f8;
    }

    .tag-index-page .tag-chip:hover{
      color:#fff;
      background:var(--primary);
      border-color:var(--primary);
      box-shadow:0 12px 25px rgba(11,61,145,.2);
      transform:translateY(-3px);
    }

    .tag-index-page .tag-count{
      min-width:27px;
      height:27px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:0 7px;
      color:var(--primary);
      background:#fff;
      border-radius:999px;
      font-size:11px;
    }

    .tag-index-page .tag-guide{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:18px;
      margin-top:28px;
    }

    .tag-index-page .guide-card{
      padding:24px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:18px;
    }

    .tag-index-page .guide-icon{
      width:42px;
      height:42px;
      display:grid;
      place-items:center;
      margin-bottom:14px;
      color:#fff;
      background:linear-gradient(135deg,var(--primary),var(--cyan));
      border-radius:12px;
      font-weight:900;
    }

    .tag-index-page .guide-card h3{
      margin:0 0 7px;
      color:#182942;
      font-size:18px;
    }

    .tag-index-page .guide-card p{
      margin:0;
      color:var(--muted);
      font-size:14px;
    }

    .tag-index-page .tag-cta{
      margin-top:28px;
      padding:30px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
      color:#fff;
      background:linear-gradient(115deg,#071d43,var(--primary));
      border-radius:22px;
    }

    .tag-index-page .tag-cta h2{
      margin:0 0 6px;
      font-size:25px;
    }

    .tag-index-page .tag-cta p{
      margin:0;
      color:#d6e5ff;
    }

    .tag-index-page .cta-links{
      flex:0 0 auto;
      display:flex;
      gap:10px;
    }

    .tag-index-page .cta-links a{
      display:inline-flex;
      min-height:44px;
      align-items:center;
      justify-content:center;
      padding:9px 16px;
      color:#082a5f;
      background:#fff;
      border-radius:10px;
      font-weight:800;
    }

    .tag-index-page .cta-links a:last-child{
      color:#fff;
      background:var(--cyan);
    }

    .footer{
      color:#c9d6ea;
      background:#07162f;
      border-top:4px solid var(--cyan);
    }

    .footer .container{
      padding-top:56px;
    }

    .footer-grid{
      display:grid;
      grid-template-columns:1.5fr 1fr 1fr 1.1fr;
      gap:36px;
      padding-bottom:42px;
    }

    .footer .logo{
      color:#fff;
    }

    .footer-brand p{
      max-width:420px;
      margin:18px 0;
      color:#aebdd2;
      font-size:14px;
    }

    .footer-social{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }

    .footer h3{
      margin:6px 0 17px;
      color:#fff;
      font-size:16px;
    }

    .footer-links,
    .footer-contact{
      display:grid;
      gap:10px;
      color:#afbed2;
      font-size:14px;
    }

    .footer-links a,
    .footer-contact a{
      transition:color .2s ease,transform .2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover{
      color:#67e8f9;
      transform:translateX(3px);
    }

    .footer-bottom{
      min-height:68px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      color:#8fa0b8;
      border-top:1px solid rgba(255,255,255,.1);
      font-size:13px;
    }

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

      .hamburger{
        display:flex;
      }

      .header-btns{
        margin-left:auto;
      }

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

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

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

      .topbar-contact{
        flex-wrap:wrap;
        gap:5px 14px;
      }

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

      .logo img{
        width:37px;
        height:37px;
        flex-basis:37px;
      }

      .logo span{
        max-width:145px;
        font-size:16px;
      }

      .header-btns > .account-link{
        display:none;
      }

      .tag-index-page .tag-hero{
        padding:52px 0 48px;
      }

      .tag-index-page .tag-intro{
        font-size:15px;
      }

      .tag-index-page .tag-section{
        padding:48px 0 62px;
      }

      .tag-index-page .section-head{
        align-items:flex-start;
        flex-direction:column;
      }

      .tag-index-page .tag-cloud{
        min-height:240px;
        padding:24px 16px;
        gap:10px;
        border-radius:20px;
      }

      .tag-index-page .tag-chip,
      .tag-index-page .tag-chip:nth-child(3n+1){
        min-height:42px;
        padding:8px 13px;
        font-size:14px;
      }

      .tag-index-page .tag-guide{
        grid-template-columns:1fr;
      }

      .tag-index-page .tag-cta{
        align-items:flex-start;
        flex-direction:column;
      }

      .tag-index-page .cta-links{
        width:100%;
        flex-wrap:wrap;
      }

      .tag-index-page .cta-links a{
        flex:1;
      }

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

      .footer-bottom{
        padding:18px 0;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:5px;
      }
    }

    @media (max-width:420px){
      .header-btns{
        gap:6px;
      }

      .hamburger{
        width:39px;
        height:39px;
      }

      .tag-index-page .tag-heading h1{
        font-size:34px;
      }

      .tag-index-page .cta-links{
        flex-direction:column;
      }
    }