:root{--blue:#1672f8;--blue2:#0c61df;--ink:#17243b;--muted:#71809a;--line:#dce7f7;--panel:#fff;--bg:#f5f9ff;--green:#49ad50;--shadow:0 12px 30px rgba(41,91,160,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}button,input,select{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:340px minmax(0,1fr)}
.sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;background:rgba(255,255,255,.94);border-right:4px solid #1781b9;box-shadow:8px 0 24px rgba(33,90,150,.06);z-index:5}.brand-card{padding:20px 18px 18px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#fff,#f3f8ff)}.brand-row{display:flex;align-items:center;gap:13px}.brand-logo{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#fff;box-shadow:0 6px 20px rgba(25,105,220,.13);font-size:15px;color:#7c8492}.brand-logo span{color:var(--blue)}h1{font-size:18px;margin:0 0 4px;font-weight:800;letter-spacing:.1px}.brand-row p{margin:0;color:#8190a8;font-size:12px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}.stats div{height:57px;border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.stats strong{font-size:16px}.stats span{font-size:11px;color:var(--muted);margin-top:2px}.sidebar-tools{padding:12px 12px 13px;border-bottom:1px solid #e7eef9}.search-wrap,.select-wrap{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;align-items:center;padding:0 12px;margin-bottom:9px}.search-wrap span{font-size:23px;color:#8997ac;margin-right:8px}.search-wrap input{width:100%;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}.select-wrap{position:relative;padding:0 10px 0 13px}.select-wrap select{width:100%;appearance:none;border:0;outline:0;background:transparent;color:#263650;font-size:13px;cursor:pointer}.select-wrap span{pointer-events:none;color:#273a55}.filters{display:flex;gap:7px}.filter{border:1px solid var(--line);background:#fff;color:#52627d;border-radius:9px;padding:7px 11px;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}.filter:hover{border-color:#9fc4ff;color:var(--blue)}.filter.active{background:var(--blue);border-color:var(--blue);color:white}.article-list{padding:9px 9px 14px;overflow:auto;flex:1}.article-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px 11px;margin:0 0 7px;text-align:left;border:0;border-radius:9px;background:#fff;color:#42516b;cursor:pointer;transition:.18s;min-height:62px}.article-item:hover{background:#f0f6ff;transform:translateX(2px)}.article-item.active{background:linear-gradient(110deg,#1676ff,#1263df);color:#fff;box-shadow:0 8px 18px rgba(22,114,248,.2)}.article-num{width:38px;height:40px;flex:0 0 38px;border-radius:9px;background:#e6f0ff;color:#1672f8;display:grid;place-items:center;font-size:12px;font-weight:800}.article-item.active .article-num{background:rgba(255,255,255,.2);color:#fff}.article-meta{min-width:0}.article-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.article-category{font-size:11px;margin-top:5px;color:#8a98ad}.article-item.active .article-category{color:#d8e8ff}.sidebar-footer{padding:10px 14px;border-top:1px solid var(--line);font-size:10px;color:#9aa7b9;text-align:center}
.main-content{min-width:0;min-height:100vh;padding:0 20px 22px;background:radial-gradient(circle at 12% 9%,rgba(37,134,255,.045),transparent 30%),#f8fbff}.article-content{max-width:1120px;margin:0 auto;padding:20px 0 0}.page-heading{padding:5px 2px 17px}.eyebrow{font-size:11px;color:var(--blue);font-weight:800;letter-spacing:1px;text-transform:uppercase}.page-heading h2{font-size:25px;margin:7px 0 6px;letter-spacing:-.5px}.page-heading p{margin:0;color:#77869d;font-size:13px;line-height:1.7}.doc-card{border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.72);padding:20px 21px;margin:0 0 16px;box-shadow:0 3px 12px rgba(44,91,145,.025)}.doc-card h3{font-size:16px;margin:0 0 15px;display:flex;align-items:center;gap:8px}.doc-card h4{font-size:13px;margin:18px 0 12px}.doc-card p,.doc-card li{font-size:13px;color:#52617a;line-height:1.9}.doc-card ul{padding-left:21px;margin:9px 0}.doc-card li{padding:3px 0}.language-group{margin:0 0 20px}.language-group:last-child{margin-bottom:0}.language-buttons{display:flex;flex-wrap:wrap;gap:9px}.language-btn{border:0;border-radius:7px;background:var(--green);color:#fff;padding:12px 18px;font-size:13px;font-weight:750;min-width:129px;box-shadow:0 9px 18px rgba(54,155,72,.12);cursor:pointer;transition:.18s}.language-btn:hover{background:#399b43;transform:translateY(-2px);box-shadow:0 11px 20px rgba(54,155,72,.2)}.language-btn.selected{outline:3px solid rgba(73,173,80,.22);background:#318d3a}.notice{background:#fffdf4;border-color:#f2e7c1}.notice h3{color:#28354b}.notice p{margin:0}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-tile{border:1px solid #e4ecf8;background:#fff;border-radius:9px;padding:14px}.info-tile strong{display:block;font-size:13px;margin-bottom:5px}.info-tile span{font-size:12px;line-height:1.7;color:#78869b}.step-list{counter-reset:step;list-style:none;padding:0!important}.step-list li{counter-increment:step;position:relative;padding:7px 0 7px 38px!important}.step-list li:before{content:counter(step);position:absolute;left:0;top:8px;width:25px;height:25px;border-radius:8px;background:#eaf2ff;color:var(--blue);display:grid;place-items:center;font-weight:800;font-size:11px}.callout{padding:12px 14px;border-radius:8px;background:#eef6ff;color:#45617f;font-size:12px;line-height:1.8;border:1px solid #dcecff}.main-footer{max-width:1120px;margin:18px auto 0;padding:13px 2px;color:#9aa7b9;font-size:11px;border-top:1px solid #e6edf7}.mobile-top{display:none}.empty-state{text-align:center;padding:45px 15px;color:#8a98ad;font-size:13px}
@media(max-width:900px){.app-shell{grid-template-columns:290px minmax(0,1fr)}.filters{flex-wrap:wrap}.main-content{padding:0 15px 20px}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(86vw,340px);transform:translateX(-105%);transition:transform .25s;box-shadow:15px 0 35px rgba(20,50,90,.18)}.sidebar.open{transform:translateX(0)}.main-content{padding:0 13px 18px}.mobile-top{height:54px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.85);position:sticky;top:0;z-index:3}.mobile-top button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 10px;color:#52627d}.mobile-top b{font-size:14px}.article-content{padding-top:16px}.page-heading h2{font-size:22px}.doc-card{padding:16px;margin-bottom:12px}.language-btn{flex:1 1 135px}.info-grid{grid-template-columns:1fr}}

.brand-logo{overflow:hidden}.brand-logo img{width:100%;height:100%;object-fit:cover;border-radius:12px}

/* V2.2 structured tutorial blocks */
.download-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}
.download-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border-radius:8px;background:#218b4b;color:#fff!important;text-decoration:none;font-weight:750;box-shadow:0 6px 14px rgba(33,139,75,.14)}
.download-btn:hover{background:#176f3b;transform:translateY(-1px)}
.warning-box{margin:16px 0;padding:14px 16px;border:1px solid #f3b4b4;border-left:5px solid #dc3545;border-radius:9px;background:#fff1f1;color:#a51f2b}
.warning-box strong{display:block;margin-bottom:5px;color:#b4232f}.warning-box p{margin:0;color:#9f2932}
.tutorial-figure{margin:16px 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.tutorial-figure img{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:7px}
.tutorial-figure figcaption{padding:8px 3px 2px;text-align:center;color:#65748b;font-size:12px}
.faq-item{padding:12px 14px;margin:10px 0;border:1px solid #e2eaf5;border-radius:9px;background:#fff}
.faq-item strong{display:block;color:#263650}.faq-item p{margin:6px 0 0}
.step-list li p{margin:3px 0 0}

.tutorial-figure{margin:16px 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.tutorial-figure img{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:7px}
.tutorial-figure figcaption{padding:8px 3px 2px;text-align:center;color:#65748b;font-size:12px}
.warning-box{margin:16px 0;padding:14px 16px;border:1px solid #f3b4b4;border-left:5px solid #dc3545;border-radius:9px;background:#fff1f1;color:#a51f2b}
.warning-box strong{display:block;margin-bottom:5px;color:#b4232f}.warning-box p{margin:0;color:#9f2932}
.download-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}
.download-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border-radius:8px;background:#218b4b;color:#fff!important;text-decoration:none;font-weight:750}
.faq-item{padding:12px 14px;margin:10px 0;border:1px solid #e2eaf5;border-radius:9px;background:#fff}
.faq-item strong{display:block;color:#263650}.faq-item p{margin:6px 0 0}


/* V2.12 structured module rendering and download button alignment */
.custom-module{margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #edf1f7}
.custom-module:last-child{border-bottom:0}
.custom-module h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;line-height:1.6}
.custom-module h3 .module-icon{width:25px;height:25px;object-fit:cover;border-radius:6px;flex:0 0 25px}
.custom-module-body{line-height:1.9;overflow-wrap:anywhere}
.download-item{margin:14px 0;padding:14px;border:1px solid #e3eaf4;border-radius:12px;background:#f8fbff}
.download-desc{margin:0 0 10px;color:#64748b}
.download-client-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 20px;border-radius:9px;background:#218b4b;color:#fff!important;text-decoration:none;font-size:13px;font-weight:750;transition:.2s}
.download-client-btn:hover{background:#176f3b;transform:translateY(-1px)}
.doc-content img{display:block;max-width:100%;height:auto;border-radius:10px}
.doc-content figure{margin:16px 0}
.doc-content figcaption{margin-top:8px;text-align:center;color:#71809a;font-size:12px}
@media(max-width:680px){.custom-module{margin-bottom:18px;padding-bottom:14px}.download-item{padding:12px}.download-client-btn{width:100%}}


/* Download client links: match the green side-by-side buttons in the reference */
.custom-module-body a[href^="http"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0 8px 8px 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #45ad55;
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(39, 150, 66, .16);
  transition: background .18s ease, transform .18s ease;
}
.custom-module-body a[href^="http"]:hover {
  background: #329747;
  transform: translateY(-1px);
}
.custom-module-body br { display: none; }
.custom-module-body p:has(> a[href^="http"]) {
  display: inline-block;
  margin: 0 0 8px;
  vertical-align: top;
}
@media (max-width: 520px) {
  .custom-module-body a[href^="http"] {
    max-width: 100%;
    white-space: normal;
  }
}
