/*
Theme Name: VMKON Knowledge
Theme URI: https://www.vmkon.cn/
Author: VMKON
Author URI: https://www.vmkon.cn/
Description: VMKON 运动地板知识库主题（两行导航 + 首屏 Banner + 专题入口 + 精选内容 + 右侧企业入口/专题标签 + 品牌化页脚）
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vmkon-knowledge
*/
/* v14 */

:root{
      --bg:#f5f7fb;
      --card:#ffffff;
      --text:#0b1220;
      --muted:#5b677a;
      --line:rgba(20,30,50,.10);
      --brand:#0b57d0;
      --brand2:#0a3e9a;
      --dark1:#071022;
      --dark2:#04102a;
      --shadow: 0 16px 40px rgba(9,20,40,.08);
      --radius:18px;
      --radius2:14px;
      --font: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
    }
    *{box-sizing:border-box}
    body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg)}
    a{color:inherit;text-decoration:none}
    .wrap{max-width:1180px;margin:0 auto;padding:0 18px}
    /* ===== Header (两行) ===== */
    .site-header{position:sticky;top:0;z-index:50;background:rgba(245,247,251,.88);backdrop-filter: blur(10px);border-bottom:1px solid var(--line)}
    .topbar{display:flex;align-items:center;gap:14px;padding:14px 0}
    .brand{display:flex;align-items:center;gap:12px;min-width:260px}
    .logo-box{
      width:170px;height:42px;display:flex;align-items:center;justify-content:center;
      font-weight:800;color:#0b3c92;letter-spacing:.5px;
      border-radius:12px;background:linear-gradient(180deg,#fff,#eef3ff);
      border:1px solid rgba(11,87,208,.18);
    }
    .top-right{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.site-header .search{
      display:flex;align-items:center;gap:10px;
      min-width:360px;max-width:460px;flex:1;
      background:#fff;border:1px solid rgba(20,30,50,.14);
      border-radius:999px;padding:10px 14px;
      box-shadow: 0 6px 18px rgba(9,20,40,.05);
    }
    .site-header .search svg{flex:0 0 auto;opacity:.7}
    .site-header .search input{
      border:0;outline:0;background:transparent;width:100%;
      font-size:14px;color:#0b1220;
    }
    .btn{border:1px solid rgba(20,30,50,.16);background:#fff;color:#0b1220;
      padding:10px 14px;border-radius:999px;font-weight:600;font-size:14px;
      box-shadow: 0 6px 18px rgba(9,20,40,.04);
    }
    .btn-primary{
      border:1px solid rgba(11,87,208,.0);
      background:linear-gradient(135deg,var(--brand),var(--brand2));
      color:#fff;
      box-shadow: 0 14px 26px rgba(11,87,208,.18);
    }
    .navrow{border-top:1px solid var(--line);background:rgba(245,247,251,.82)}
    .nav{display:flex;align-items:center;gap:18px;padding:10px 0;flex-wrap:wrap}
    .nav a{
      padding:10px 12px;border-radius:12px;font-weight:700;font-size:14px;color:#1b2a44;
    }
    .nav a:hover{background:rgba(11,87,208,.08);color:var(--brand)}
    .nav a.is-active{background:rgba(11,87,208,.12);color:var(--brand)}
    /* ===== Hero ===== */
    .hero{
      background: radial-gradient(1200px 520px at 12% 10%, rgba(26,90,220,.42), transparent 60%),
                  radial-gradient(900px 500px at 86% 22%, rgba(40,160,255,.22), transparent 56%),
                  linear-gradient(180deg, #06112a, #050a18 56%, #071530);
      color:#fff;
      padding:42px 0 30px;
    }
    .hero-grid{display:grid;grid-template-columns: 1.2fr .9fr;gap:18px;align-items:stretch}
    .hero h1{margin:10px 0 10px;font-size:40px;line-height:1.12;letter-spacing:.2px}
    .hero .kicker{font-size:12px;opacity:.88;letter-spacing:1.8px;text-transform:uppercase}
    .hero p{margin:0 0 18px;color:rgba(255,255,255,.82);line-height:1.7}
    .hero-actions{display:flex;gap:10px;flex-wrap:wrap}
    .hero-actions .btn{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff}
    .hero-actions .btn-primary{background:linear-gradient(135deg,#2a86ff,#0b57d0);border:0}
    .mini-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
    .mini{
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.06);
      border-radius:14px;padding:12px 12px 10px;
    }
    .mini b{display:block;font-size:13px;margin-bottom:4px}
    .mini span{display:block;font-size:12px;opacity:.82;line-height:1.4}
    .hero-panel{
      border-radius:22px;
      border:1px solid rgba(255,255,255,.16);
      background: linear-gradient(180deg, rgba(20,90,220,.30), rgba(255,255,255,.05));
      box-shadow: 0 30px 60px rgba(0,0,0,.28);
      padding:16px;
      display:flex;flex-direction:column;gap:12px;
    }
    .slider{
      position:relative;overflow:hidden;border-radius:18px;
      background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
      border:1px solid rgba(255,255,255,.14);
      min-height:220px;
    }
    .slide{
      position:absolute;inset:0;opacity:0;transition:opacity .35s ease;
      background-size:cover;background-position:center;
    }
    .slide.is-active{opacity:1}
    .slide::after{
      content:"";position:absolute;inset:0;
      background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
    }
    .slide-caption{
      position:absolute;left:14px;right:14px;bottom:12px;z-index:2;
      display:flex;align-items:flex-end;justify-content:space-between;gap:10px
    }
    .slide-caption .title{font-weight:900;font-size:16px;line-height:1.2}
    .dots{display:flex;gap:8px;align-items:center}
    .dot{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.35);border:1px solid rgba(255,255,255,.22)}
    .dot.is-active{background:#fff}
    .slider--hero .arrow{
      position:absolute;top:50%;transform:translateY(-50%);
      width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.20);
      background:rgba(0,0,0,.18);color:#fff;display:flex;align-items:center;justify-content:center;
      cursor:pointer;z-index:3;
    }
    .arrow:hover{background:rgba(0,0,0,.28)}
    .slider--hero .arrow.prev{left:10px}
    .slider--hero .arrow.next{right:10px}
    .panel-cta{
      border-radius:16px;border:1px solid rgba(255,255,255,.14);
      background:rgba(0,0,0,.10);
      padding:12px 12px 12px;
      display:flex;flex-direction:column;gap:10px
    }
    .panel-cta .line{display:flex;align-items:center;justify-content:space-between;gap:10px}
    .badge{font-size:12px;color:rgba(255,255,255,.75)}
    .cta-mini{display:flex;gap:10px}
    .cta-mini .btn{padding:10px 12px}
    /* ===== Sections ===== */
    .section{padding:34px 0}
    .section h2{margin:0 0 8px;font-size:26px;letter-spacing:.2px}
    .section .sub{margin:0 0 18px;color:var(--muted);line-height:1.65}
    .topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
    .topic{
      background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
      box-shadow: 0 10px 26px rgba(9,20,40,.05);
      padding:14px;
      display:flex;gap:12px;align-items:flex-start;
    }
    .ico{
      width:42px;height:42px;border-radius:999px;
      background:linear-gradient(180deg,#eaf1ff,#dbe8ff);
      border:1px solid rgba(11,87,208,.22);
      display:flex;align-items:center;justify-content:center;
      flex:0 0 auto;
    }
    .topic b{display:block;font-size:15px;margin:0 0 4px}
    .topic small{display:block;color:var(--muted);line-height:1.5}
    /* ===== Featured + Sidebar ===== */
    .two-col{display:grid;grid-template-columns: 1.4fr .9fr;gap:18px;align-items:start}
    .card{background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
    .card-pad{padding:18px}
    .list{display:flex;flex-direction:column;gap:12px}
    .item{
      display:flex;gap:12px;align-items:center;
      padding:12px;border-radius:16px;border:1px solid rgba(20,30,50,.10);
      background:linear-gradient(180deg,#fff,#fbfcff);
    }
    .thumb{width:64px;height:48px;border-radius:12px;background:linear-gradient(135deg,#0a3e9a,#66a5ff);opacity:.85}
    .meta{font-size:12px;color:var(--muted);margin-bottom:4px}
    .title{font-weight:800}
    .side-actions{display:flex;flex-direction:column;gap:10px}
    .side-actions .btn{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:16px}

    /* Sidebar quick pack (replaces 2 big buttons) */
    .quick-pack{background:rgba(245,248,255,.75);border:1px solid rgba(20,30,50,.08);
      padding:14px;border-radius:18px}
    .qp-title{font-weight:900;margin-bottom:8px}
    .qp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
    .qp-actions .btn{padding:9px 12px;border-radius:999px}
    .chip-row{display:flex;gap:10px;flex-wrap:wrap}
    .chip{
      font-size:12px;padding:8px 10px;border-radius:999px;border:1px solid rgba(20,30,50,.14);
      background:#fff;color:#1b2a44;
    }
    .hint{font-size:13px;color:var(--muted);line-height:1.6;margin-top:2px}
    /* ===== Gallery (参考 FastAdmin 图集布局) ===== */
    .gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
    .more{font-size:13px;color:var(--muted)}
    .gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
    .gcard{
      background:var(--card);border:1px solid var(--line);
      border-radius:18px;overflow:hidden;box-shadow: 0 12px 26px rgba(9,20,40,.05);
    }
    .gimg{height:118px;background-size:cover;background-position:center}
    .gpad{padding:12px}
    .gtitle{font-weight:800;font-size:14px;margin:0 0 6px}
    .gsub{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
    /* ===== Footer (参考图三：上浅下深) ===== */
    .footer-light{background:#fff;border-top:1px solid var(--line);padding:22px 0}
    .footer-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
    .foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
    .foot-title{font-weight:900}
    .foot-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
    .foot-links a{color:#1b2a44;font-size:13px}
    .footer-dark{background:linear-gradient(180deg,#0a1223,#070e1c);color:#d8e1f0;padding:18px 0}
    .footer-dark .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .footer-dark small{opacity:.85}
    /* ===== Responsive ===== */
    @media (max-width: 1020px){
      .hero-grid{grid-template-columns:1fr}
      .topic-grid{grid-template-columns:repeat(2,1fr)}
      .two-col{grid-template-columns:1fr}
      .gallery{grid-template-columns:repeat(2,1fr)}
      .site-header .search{min-width:260px}
      .brand{min-width:auto}
      .logo-box{width:150px}
    }
    @media (max-width: 520px){
      .topic-grid{grid-template-columns:1fr}
      .gallery{grid-template-columns:1fr}
      .hero h1{font-size:30px}
    }
  
/* --- Sidebar redesign --- */
.side-stack{display:grid;gap:14px}
.side-card{background:var(--card);border:1px solid rgba(15,23,42,.06);border-radius:18px;padding:16px;box-shadow:var(--shadow)}
.side-head{margin-bottom:10px}
.side-title{font-weight:800;font-size:15px;letter-spacing:.2px;margin: 0 0 12px;}
.side-sub{color:var(--muted);font-size:12px;margin-top:4px}
.side-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px;border:1px solid rgba(15,23,42,.10);border-radius:14px;margin-top:10px;background:#fff}
.side-link:hover{border-color:rgba(12,74,173,.25);box-shadow:0 10px 22px rgba(2,6,23,.06)}
.side-link .arr{color:rgba(2,6,23,.55);font-weight:800}
.side-contact{margin-top:12px;color:rgba(2,6,23,.72);font-size:12px;line-height:1.55}
.side-contact a{color:inherit;text-decoration:none;border-bottom:1px dashed rgba(255,255,255,0)}
.side-contact a:hover{color:var(--brand)}

/* --- Topic icon as image --- */
.topic .ico{display:flex;align-items:center;justify-content:center}
.topic .ico img{width:18px;height:18px;display:block}

/* --- Footer enhanced --- */
.footer-dark{background:linear-gradient(180deg,#06142d 0%,#020617 100%);color:#cbd5e1;margin-top:0}
.foot-dark-grid{display:grid;grid-template-columns:minmax(720px,1fr) auto auto;column-gap:88px;row-gap:28px;padding:28px 0;align-items:start}
.foot-brand .foot-logo{height:38px;width:auto;display:block}
.foot-brand-link{display:inline-flex;align-items:center}
.foot-tag{margin-top:10px;color:#e2e8f0;font-weight:800;font-size:14px}
.foot-desc{margin-top:10px;color:rgba(226,232,240,.75);font-size:12.5px;line-height:1.65;max-width:46ch}
.foot-col{display:grid;gap:10px;align-content:start}
.foot-h{color:#e2e8f0;font-weight:800;margin-bottom:4px}
.foot-col a{color:rgba(226,232,240,.78);text-decoration:none;font-size:12.5px}
.foot-col a:hover{color:#fff}
.foot-line{color:rgba(226,232,240,.78);font-size:12.5px}
.foot-line a{color:rgba(226,232,240,.92);text-decoration:none;border-bottom:1px dashed rgba(226,232,240,.35)}
.foot-line a:hover{color:#fff}
.foot-legal{display:flex;justify-content:space-between;gap:16px;padding:14px 0 20px;border-top:1px solid rgba(148,163,184,.18)}
.foot-legal small{color:rgba(226,232,240,.62)}
@media (max-width:980px){
  .foot-dark-grid{display:grid;grid-template-columns:minmax(320px,1fr) auto auto;column-gap:88px;row-gap:28px;padding:28px 0;align-items:start}
  .foot-legal{flex-direction:column}
}



/* ===== v4 tweaks ===== */
.topic{align-items:center;}
.topic .ico{display:flex;align-items:center;justify-content:center;}
.topic .ico img{width:22px;height:22px;display:block;object-fit:contain;}
.qa-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.qa-link{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border:1px solid var(--line);border-radius:12px;
  background:rgba(255,255,255,.65);
  color:var(--text);text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.qa-link:after{content:"→";color:var(--muted);}
.qa-link:hover{background:rgba(255,255,255,.9);transform:translateY(-1px);box-shadow:0 10px 22px rgba(9,20,40,.08)}
@media (max-width: 960px){
  .topic-grid{grid-template-columns:repeat(2,1fr)}
}


/* Topic icons (emoji) centered */
.topic-card .ico{
  display:flex;align-items:center;justify-content:center;
  font-size:22px;line-height:1;
}
.topic-card .ico img{display:none;}
/* Knowledge positioning card */
.kbpos{color:var(--text);font-size:14px;line-height:1.7}
.kbpos ul{margin:8px 0 0 18px;padding:0}
.kbpos li{margin:6px 0;color:var(--text)}
.kbpos .tip{margin-top:10px;color:var(--muted);font-size:13px}

/* ===== VMKON KB v4 overrides ===== */
.vmkon-kb-frontpage .hero.hero--carousel{padding-top:14px}
.vmkon-kb-frontpage .slider--hero{
  height: 420px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
}
.vmkon-kb-frontpage .slider--hero .slide{position:absolute; inset:0; background-size:cover; background-position:center}
.vmkon-kb-frontpage .slider--hero .hero-overlay{
  position:absolute; left:38px; bottom:34px; right:260px;
  max-width: 760px;
  color:#fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.vmkon-kb-frontpage .slider--hero .hero-overlay h1{font-size:36px; line-height:1.2; margin:10px 0 10px}
.vmkon-kb-frontpage .slider--hero .hero-overlay p{opacity:.92; margin:0 0 14px; max-width: 62ch}
.vmkon-kb-frontpage .slider--hero .hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.vmkon-kb-frontpage .slider--hero .slide::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(2,6,23,.55), rgba(2,6,23,.10) 55%, rgba(2,6,23,0) 75%);
}
.vmkon-kb-frontpage .slider--hero .slide-caption{position:absolute; left:0; right:0; bottom:0}

/* Topic entry: match screenshot pill cards */
.vmkon-kb-frontpage .topic-grid{grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px}
@media (max-width: 980px){ .vmkon-kb-frontpage .topic-grid{grid-template-columns: repeat(2, minmax(0,1fr));} }
.vmkon-kb-frontpage .topic{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px;
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
}
.vmkon-kb-frontpage .topic .ico{
  width:44px; height:44px;
  border-radius: 16px;
  background: rgba(11,87,208,.10);
  display:grid; place-items:center;
  flex: 0 0 44px;
}
.vmkon-kb-frontpage .topic .ico svg{width:24px; height:24px}
.vmkon-kb-frontpage .topic b{display:block; font-size:15px}
.vmkon-kb-frontpage .topic small{display:block; margin-top:2px; opacity:.72}

/* Two-col keep right sidebar on the right */
.vmkon-kb-frontpage .two-col--fixed{grid-template-columns: 1.35fr .95fr}
@media (max-width: 980px){ .vmkon-kb-frontpage .two-col--fixed{grid-template-columns:1fr} }

/* Chips roomy */
.vmkon-kb-frontpage .chips--roomy{display:flex; flex-wrap:wrap; gap:10px}
.vmkon-kb-frontpage .chips--roomy .chip{padding:8px 12px; border-radius: 999px}

/* ===== VMKON KB: Article (single.php) ===== */
.article-hero{padding:22px 18px 0}
.breadcrumb{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;color:rgba(27,42,68,.70)}
.breadcrumb a{color:rgba(27,42,68,.78);text-decoration:none}
.breadcrumb a:hover{color:#0b57d0}
.breadcrumb .sep{opacity:.45}
.article-title{margin:12px 0 10px;font-size:34px;line-height:1.15}
.article-hero .meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:10px 0 12px;color:rgba(27,42,68,.70);font-size:13px}
.article-hero .lead{margin:0;max-width:80ch;color:rgba(27,42,68,.78);line-height:1.75}
.article-hero .cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.article-hero .sep{height:1px;background:rgba(15,23,42,.10);margin:18px 0 0}

.article-wrap{padding:18px}
.article-grid{display:grid;grid-template-columns: 1.45fr .85fr;gap:18px;align-items:start}
@media (max-width: 980px){ .article-grid{grid-template-columns:1fr} }

.card.content{padding:18px 18px}
.entry-content{line-height:1.9}
.entry-content h2{margin:22px 0 10px;font-size:20px}
.entry-content p{margin:12px 0}
.entry-content ul, .entry-content ol{padding-left:18px}

.callout{border:1px solid rgba(1,70,173,.18);background:rgba(1,70,173,.05);border-radius:18px;padding:14px 16px;margin:0 0 16px}
.callout b{color:#0146ad}
.cta-box{border:1px solid rgba(1,70,173,.16);padding:16px;border-radius:18px;background:rgba(1,70,173,.04);margin-top:16px}
.cta-box__inner{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.cta-box__text{min-width:240px}
.cta-box__text span{display:block;color:rgba(27,42,68,.72);font-weight:650;margin-top:6px;line-height:1.7}
.cta-box__actions{display:flex;gap:10px;flex-wrap:wrap}

.post-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px;padding-top:12px;border-top:1px solid rgba(15,23,42,.10)}
.post-nav .right{text-align:right}

.sidebar .card{padding:16px}
.sidebar .toc h4{margin:0 0 10px;font-size:16px}
.sticky{position:sticky;top:84px}
.notice{font-size:13px;color:rgba(27,42,68,.70);line-height:1.7}
.toc-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.toc-list a{text-decoration:none;color:rgba(27,42,68,.82);font-size:13px}
.toc-list a:hover{color:#0b57d0}
.rel-item{display:flex;gap:12px;padding:10px;border-radius:16px;text-decoration:none;border:1px solid rgba(15,23,42,.08)}
.rel-item:hover{border-color:rgba(11,87,208,.25);background:rgba(11,87,208,.03)}
.rel-thumb{width:60px;height:60px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg, rgba(11,87,208,.18), rgba(0,0,0,.02))}
.rel-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rel-meta{font-size:12px;color:rgba(27,42,68,.70);margin-bottom:4px}
.rel-title{font-weight:800;color:rgba(27,42,68,.92);line-height:1.35}

/* ===== VMKON KB: layout width (leave side gutters, avoid full-bleed) ===== */
:root{ --vmkon-maxw: 1180px; --vmkon-gutter: 18px; }
.wrap, .container{
  max-width: var(--vmkon-maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--vmkon-gutter);
  padding-right: var(--vmkon-gutter);
}
@media (min-width: 1440px){
  :root{ --vmkon-maxw: 1240px; }
}

/* Sidebar CTA arrow */
.cta-item .arr{opacity:.65;font-weight:800}

/* ===== VMKON KB: 404 page ===== */
.page-404{padding:26px 18px; display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
@media (max-width: 980px){ .page-404{grid-template-columns:1fr} }

.card-404{padding:22px; position:relative; overflow:hidden}
.badge-404{
  display:inline-flex; align-items:center; justify-content:center;
  height:34px; padding:0 12px; border-radius:999px;
  background:rgba(11,87,208,.10); color:#0b57d0; font-weight:900;
  letter-spacing:.08em;
}
.title-404{margin:12px 0 8px; font-size:36px; line-height:1.12}
.desc-404{margin:0; color:rgba(27,42,68,.74); line-height:1.75; max-width:70ch}
.desc-404__tips{display:block; margin-top:6px}

.search-404{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.search-404__input{
  flex:1 1 260px;
  height:44px; border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  padding:0 14px; outline:none;
}
.search-404__input:focus{border-color:rgba(11,87,208,.35); box-shadow:0 10px 28px rgba(11,87,208,.12)}
.search-404__btn{
  height:44px; padding:0 16px; border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff; cursor:pointer; font-weight:800;
}
.search-404__btn:hover{border-color:rgba(11,87,208,.35); background:rgba(11,87,208,.03)}

.actions-404{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.card-404-list .sep{height:1px; background:rgba(15,23,42,.10)}

/* ===== VMKON KB: hero dots pill (match screenshot) ===== */
.vmkon-kb-frontpage .slider--hero .hero-dots-global{
  position:absolute;
  right: 18px;
  bottom: 18px;
  display:flex;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}
.vmkon-kb-frontpage .slider--hero .hero-dots-global .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  display:inline-block;
}
.vmkon-kb-frontpage .slider--hero .hero-dots-global .dot.is-active{
  width: 20px;
  background: rgba(255,255,255,.95);
}

/* hide legacy hero dots (old markup) */
.slider--hero .dots{display:none !important;}

/* ===== VMKON KB: hot topics spacing ===== */
.widget.hot-topics h4,
.card.widget.hot-topics h4{
  margin: 0 0 12px;
}
.widget.hot-topics .chips,
.card.widget.hot-topics .chips{
  margin-top: 2px;
  gap: 10px 10px;
}

/* ===== VMKON KB: sidebar stack spacing (card to card gap) ===== */
.sidebar-stack > .card{
  margin-bottom: 18px;
}
.sidebar-stack > .card:last-child{
  margin-bottom: 0;
}

/* Topic icon image (customizer upload) */
.topic .topic-ico-img{
  width: 20px;
  height: 20px;
  display:block;
  object-fit: contain;
}


/* Footer alignment tweaks */
.foot-legal{display:flex;gap:570px;align-items:center;flex-wrap:wrap}
.foot-legal small:last-child{margin-left:auto;text-align:right}

/* Custom logo in header */
.logo-box{display:flex;align-items:center;justify-content:center}
.logo-box img.brand-img{max-height:60px;width:auto;display:block}
.logo-box .custom-logo{max-height:34px;width:auto}
a.brand{text-decoration:none}

/* Custom logo in footer */
.foot-logo{max-height:36px;width:auto;display:block}

/* Header logo no border */
.site-header .brand .logo-box{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ===== Sidebar: tidy & structured (v2 standard copy) ===== */
.side-card--quick{background:linear-gradient(180deg, rgba(11,87,208,.06), rgba(255,255,255,1));}
.side-head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.side-more{font-size:12px;color:var(--muted);text-decoration:none}
.side-more:hover{color:var(--brand)}

.side-actions-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
.side-btn{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 12px;border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.86);
  box-shadow: 0 10px 22px rgba(2,6,23,.04);
}
.side-btn:hover{border-color:rgba(12,74,173,.28);transform:translateY(-1px);transition:transform .12s ease,border-color .12s ease}
.side-btn .txt{font-weight:750;font-size:13px;line-height:1.35}
.side-btn .arr{color:rgba(2,6,23,.55);font-weight:900}

.side-btn--primary{
  border:0;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  box-shadow: 0 16px 34px rgba(11,87,208,.18);
}
.side-btn--primary .arr{color:rgba(255,255,255,.92)}
.side-btn--primary:hover{filter:brightness(1.02)}

.side-details{margin-top:10px;border-radius:14px;border:1px dashed rgba(15,23,42,.18);background:rgba(255,255,255,.55);overflow:hidden}
.side-details > summary{
  list-style:none;cursor:pointer;
  padding:10px 12px;font-weight:800;font-size:13px;color:rgba(27,42,68,.86);
  display:flex;align-items:center;justify-content:space-between;
}
.side-details > summary::-webkit-details-marker{display:none}
.side-details > summary:after{content:"▾";opacity:.6}
.side-details[open] > summary:after{content:"▴"}
.side-details .side-contact{padding:10px 12px;border-top:1px dashed rgba(15,23,42,.16);color:rgba(2,6,23,.72)}
.side-details .side-contact span{color:rgba(2,6,23,.55)}
.side-details .side-contact a{color:inherit;text-decoration:none;border-bottom:1px dashed rgba(11,87,208,.25)}
.side-details .side-contact a:hover{color:var(--brand)}

.kb-steps{margin:10px 0 0;padding-left:18px;display:grid;gap:8px}
.kb-steps li{color:rgba(2,6,23,.82);font-size:13px;line-height:1.6}
.kb-steps b{color:rgba(2,6,23,.92)}

.side-reading{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.side-reading a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border-radius:12px;border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.70);
  text-decoration:none;color:rgba(27,42,68,.92);font-size:13px;line-height:1.35;
}
.side-reading a:after{content:"→";opacity:.55;font-weight:900}
.side-reading a:hover{border-color:rgba(11,87,208,.25);background:rgba(11,87,208,.03)}


/* ===============================
   Mobile / Tablet enhancements
   (v15) - improve responsive layout
   =============================== */

/* Tablet: make header and footer safer */
@media (max-width: 980px){
  /* Header */
  .topbar{padding:12px 0}
  .brand{min-width:0}
  .logo-box{width:150px;height:40px}

  /* Cards & lists */
  .two-col{gap:14px}
  .card-pad{padding:16px}

  /* Footer dark: switch to single column (prevents squeezing) */
  .foot-dark-grid{
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }
}

/* Phone: stack header elements, make nav scrollable */
@media (max-width: 768px){
  .wrap{padding:0 16px}

  .topbar{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .brand{
    width:100%;
    justify-content:center;
  }
  .top-right{
    width:100%;
    margin-left:0;
    justify-content:stretch;
    gap:10px;
  }
  .site-header .search{
    width:100%;
    min-width:0;
    max-width:none;
  }
  .top-right .btn{
    flex:1 1 auto;
    text-align:center;
    justify-content:center;
  }

  /* Nav: horizontal scroll instead of wrapping into 2-3 lines */
  .navrow{overflow-x:auto}
  .nav{
    flex-wrap:nowrap;
    min-width:max-content;
    gap:10px;
  }
  .nav::-webkit-scrollbar{display:none}

  /* Sidebar cards spacing */
  .side-actions-grid{gap:10px}
  .chips{gap:8px}

  /* Search page head (if present) */
  body.search-results .search-head{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  body.search-results .search-head-form{
    width:100%;
    display:flex;
    gap:10px;
  }
  body.search-results .search-head-form input{
    flex:1;
    min-width:0;
  }
}

/* Small phone */
@media (max-width: 520px){
  .wrap{padding:0 14px}

  .logo-box{width:140px;height:38px}
  .site-header .search{padding:9px 12px}

  .btn{padding:9px 12px;font-size:13px}
  .nav a{padding:9px 10px;font-size:13px}

  .item{padding:10px;border-radius:14px}
  .thumb{width:54px;height:42px;border-radius:12px}

  .foot-legal{gap:6px}
}

/* Ensure search-results body never gets clipped horizontally */
body.search-results{overflow-x:hidden;}

/* Sidebar: “热门专题”标签间距更宽 */
.sidebar-stack .chips--roomy,
.side-card .chips--roomy{
  display:flex;
  flex-wrap:wrap;
  gap:8px 8px; /* 行距/列距 */
}
.sidebar-stack .chips--roomy .chip,
.side-card .chips--roomy .chip{
  padding:8px 12px; /* 让每个标签更“松”一点 */
}

/* ===== Mobile: force single column for Home "精选内容" + "企业服务入口" =====
   Why: .two-col--fixed is defined after the generic .two-col mobile rule, so it can override back to 2 columns.
   Scope: only homepage wrapper .vmkon-kb-front
*/
@media (max-width: 680px){
  .two-col.two-col--fixed{grid-template-columns:1fr !important;}
  .two-col.two-col--fixed > main{grid-column:1;}
  .two-col.two-col--fixed > aside{grid-column:1;}
  .two-col.two-col--fixed > aside{margin-top:14px;}
}

/* Base two-col small-screen stack hardening */
@media (max-width: 680px){
  .two-col{grid-template-columns:1fr !important;}
}

/* Footer legal line: fix huge vertical gap, keep row on >=721px */
.footer-dark .foot-legal{
  position: static !important;         /* 防止被 absolute/fixed 影响 */
  height: auto !important;
  min-height: 0 !important;

  display: flex !important;
  flex-direction: row !important;      /* 强制同行 */
  flex-wrap: wrap;                     /* 屏幕变窄时允许换行 */
  align-items: center !important;
  justify-content: space-between !important;

  gap: 10px 18px;                      /* 行距/列距 */
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-dark .foot-legal small{
  margin: 0 !important;
  display: block;
}

/* <=720px：分行显示，但不要拉开很大距离 */
@media (max-width: 720px){
  .footer-dark .foot-legal{
    justify-content: flex-start !important;
    gap: 6px 12px;
  }
}


/* ===== Article breadcrumb & meta fixes (v2) ===== */
/* 1) 面包屑分隔符 / 垂直对齐 */
.breadcrumb{align-items:center}
.breadcrumb a,.breadcrumb span{display:inline-flex;align-items:center;line-height:1.2}
.breadcrumb .sep{display:inline-flex;align-items:center;line-height:1;transform:translateY(-8px)}

/* 2) 文章标题下方：分类名显示在“发布”左边（胶囊样式） */
.meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.meta .meta-cat{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(11,87,208,.18);background:rgba(11,87,208,.06);color:#0b57d0;
  text-decoration:none;font-weight:600;font-size:12px}
.meta .meta-cat:hover{background:rgba(11,87,208,.10)}

/* ===== Category page adjustments to match single.php layout ===== */
body.category .category-main{padding:18px}
body.category .category-list{gap:10px}
body.category .category-item{display:flex;text-decoration:none;color:inherit}
body.category .category-item:hover{transform:translateY(-1px)}
body.category .category-thumb{flex:0 0 64px;height:48px;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#0a3e9a,#66a5ff);opacity:.85}
body.category .category-text{flex:1;min-width:0}
body.category .category-title{line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Meta line like screenshot 图三：“分类 · 更新：YYYY-MM-DD” */
body.category .category-itemmeta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px;font-size:12px;color:rgba(27,42,68,.66)}
body.category .category-itemmeta .category-cat{font-weight:700;color:rgba(27,42,68,.82)}
body.category .category-itemmeta .dot{opacity:.5}
body.category .category-itemmeta .category-updated{white-space:nowrap}

/* Chips in sidebar */
body.category .cat-quick .cat-chips{gap:10px}
body.category .cat-quick .chip{display:inline-flex;align-items:center;gap:8px}
body.category .cat-quick .chip .chip-count{font-size:11px;line-height:1;padding:3px 7px;border-radius:999px;background:rgba(1,70,173,.08)}
body.category .cat-quick .chip.is-active{background:#0146ad;color:#fff;border-color:#0146ad}
body.category .cat-quick .chip.is-active .chip-count{background:rgba(255,255,255,.22);color:#fff}

/* Pagination pills */
body.category .vmk-pagination{margin-top:14px}
body.category .vmk-pagination__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
body.category .vmk-pagination__list::-webkit-scrollbar{height:6px}
body.category .vmk-pagination__item{margin:0;padding:0}
body.category .vmk-pagination__item .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:36px;padding:0 12px;
  border-radius:999px;border:1px solid rgba(20,30,50,.12);
  background:#fff;color:#1b2a44;
  text-decoration:none;font-weight:750;font-size:13px;
}
body.category .vmk-pagination__item .page-numbers:hover{border-color:rgba(1,70,173,.45)}
body.category .vmk-pagination__item .page-numbers.current{background:#0146ad;border-color:#0146ad;color:#fff}
body.category .vmk-pagination__item .page-numbers.dots{background:transparent;border-color:transparent;min-width:auto;padding:0 6px}

/* Ensure sidebar stays on right on category page even if theme overrides grid somewhere */
@media (min-width: 980px){
  body.category .article-grid{grid-template-columns: 1.4fr .9fr !important; align-items:start}
}

/* 分类页：文章列表 与 分页之间留更大间距 */
body.category .vmk-postlist { 
  margin-bottom: 18px;   /* 你觉得还不够可改 24/30 */
}

body.category .vmk-pagination{
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(2,6,23,.06);
}

/* ===== Category page (safe scoped) ===== */
body.category .category-itemmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.category .category-bullet{color:rgba(2,6,23,.35)}

body.category .chip.chip-cat{
  display:inline-flex;align-items:center;
  padding:4px 10px;border-radius:999px;
  font-size:12px;line-height:1;
  border:1px solid rgba(2,6,23,.10);
  background:#fff;
}
body.category .chip.chip-cat:hover{border-color:rgba(11,87,208,.35); background:rgba(11,87,208,.03)}

body.category .category-excerpt{
  margin-top:6px;
  font-size:13px;
  line-height:1.55;
  color:rgba(2,6,23,.62);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* pagination one line + spacing */
body.category .vmk-pagination{margin-top:28px;padding-top:14px;border-top:1px solid rgba(2,6,23,.06)}
body.category .vmk-pagination__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden}
body.category .vmk-pagination__item{margin:0;padding:0}