*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f7fb;color:#1f2937}a{text-decoration:none}
.login-body{min-height:100vh;background:linear-gradient(135deg,#0f172a,#1d4ed8 55%,#60a5fa);display:flex;align-items:center;justify-content:center;padding:24px}
.login-wrap{width:100%;max-width:460px}.login-card{background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-radius:24px;padding:36px;box-shadow:0 20px 60px rgba(15,23,42,.22)}
.login-brand{width:56px;height:56px;border-radius:18px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:28px;margin-bottom:18px}.login-card h1{margin:0 0 10px;font-size:30px}.login-card p{margin:0 0 24px;color:#6b7280;line-height:1.7}.login-card label,.form-card label{display:block;font-size:14px;font-weight:600;margin:14px 0 8px}.login-card input,.form-card input,.form-card select{width:100%;height:46px;border:1px solid #dbe3ef;border-radius:14px;padding:0 14px;background:#fff;outline:none}.login-card button,.form-card button{margin-top:18px;width:100%;height:48px;border:0;border-radius:14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(37,99,235,.25)}
.login-tip{margin-top:16px;color:#64748b;font-size:13px}.alert{padding:12px 14px;border-radius:14px;margin-bottom:16px;font-size:14px}.alert.error{background:#fef2f2;color:#b91c1c}.alert.success{background:#ecfdf5;color:#047857}
.admin-layout{display:flex;min-height:100vh}.sidebar{width:260px;background:#0f172a;color:#fff;padding:28px 20px;position:sticky;top:0;height:100vh}.logo-block{display:flex;align-items:center;gap:14px;margin-bottom:28px}.logo-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#60a5fa);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}.logo-title{font-size:18px;font-weight:700}.logo-sub{font-size:12px;color:#94a3b8;margin-top:4px}.menu{display:flex;flex-direction:column;gap:8px}.menu a{padding:13px 14px;border-radius:14px;color:#cbd5e1;transition:.2s}.menu a:hover,.menu a.active{background:rgba(255,255,255,.08);color:#fff}.main-panel{flex:1;padding:28px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:16px}.topbar h1{margin:0;font-size:30px}.topbar p{margin:8px 0 0;color:#64748b}.user-box{background:#fff;padding:14px 16px;border-radius:16px;box-shadow:0 10px 30px rgba(15,23,42,.06);text-align:right}.user-box span{display:block;font-weight:700}.user-box small{color:#64748b}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-bottom:24px}.stat-card,.panel,.form-card,.category-card,.article-item{background:#fff;border-radius:22px;box-shadow:0 8px 30px rgba(15,23,42,.06)}.stat-card{padding:24px}.stat-card h3{margin:0 0 14px;color:#64748b;font-size:14px;font-weight:600}.stat-card strong{font-size:34px}.panel{overflow:hidden;margin-bottom:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #eef2f7}.panel-head h2{margin:0;font-size:20px}.panel-body{padding:24px}.form-grid{display:grid;gap:20px}.two-col{grid-template-columns:1.2fr .8fr}.form-card{padding:22px}.form-card h3{margin:0 0 12px}.tips-list{margin:0;padding-left:18px;color:#64748b;line-height:1.9}.table-wrap{overflow:auto}.modern-table{width:100%;border-collapse:collapse}.modern-table th,.modern-table td{padding:14px 12px;border-bottom:1px solid #eef2f7;text-align:left;font-size:14px}.modern-table th{color:#64748b;background:#f8fafc}.badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge-green{background:#ecfdf5;color:#047857}.badge-red{background:#fef2f2;color:#b91c1c}.badge-blue{background:#eff6ff;color:#1d4ed8}.badge-gray{background:#f1f5f9;color:#475569}.table-link{color:#2563eb;font-weight:600}
.front-body{background:#f8fafc}.hero{background:linear-gradient(135deg,#0f172a,#1d4ed8 60%,#93c5fd);padding:80px 24px 110px;color:#fff}.hero-inner{max-width:1080px;margin:0 auto}.eyebrow{display:inline-block;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:700;letter-spacing:1px}.hero h1{font-size:54px;line-height:1.08;margin:18px 0 16px;max-width:700px}.hero p{font-size:18px;line-height:1.8;max-width:760px;color:#dbeafe}.search-box{margin-top:28px;background:#fff;border-radius:22px;padding:10px;display:flex;gap:10px;max-width:760px;box-shadow:0 18px 50px rgba(15,23,42,.18)}.search-box input{flex:1;border:0;outline:none;height:54px;padding:0 18px;font-size:16px;border-radius:16px}.search-box button{border:0;border-radius:16px;background:#2563eb;color:#fff;padding:0 28px;font-size:15px;font-weight:700}.front-wrap{max-width:1080px;margin:-56px auto 0;padding:0 24px 40px}.front-panel{margin-bottom:24px}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.category-card{padding:22px}.category-card h3,.article-item h3{margin:0 0 8px}.category-card p,.article-item p{margin:0;color:#64748b;line-height:1.7}.article-list{display:grid;gap:14px}.article-item{padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.article-item span{background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}.empty-tip{padding:10px 0;color:#64748b}
@media (max-width: 960px){.sidebar{display:none}.main-panel{padding:18px}.two-col{grid-template-columns:1fr}.hero h1{font-size:38px}.search-box{flex-direction:column}.search-box button{height:52px}}

.panel-head-between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.btn,.text-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:12px;padding:10px 16px;font-weight:700;font-size:14px;border:0;cursor:pointer}
.btn-primary{background:#2563eb;color:#fff}.btn-secondary{background:#e2e8f0;color:#0f172a}.text-link{padding:0;color:#2563eb;background:none}
.filter-bar{display:flex;gap:12px;flex-wrap:wrap}.filter-bar input,.filter-bar select{max-width:260px}.filter-bar button{width:auto;padding:0 18px}
.inline-form{display:inline}.link-button{border:0;background:none;color:#2563eb;font-weight:600;cursor:pointer;padding:0;margin-left:12px}.link-button.danger{color:#dc2626}
.editor-form label{display:block;font-size:13px;font-weight:700;color:#334155;margin:0 0 8px}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.editor-grid .full-width{grid-column:1/-1}.editor-form textarea,.editor-form input,.editor-form select{width:100%}.editor-textarea{min-height:420px;line-height:1.8}.editor-actions{display:flex;gap:12px;align-items:center;margin-top:18px}
.pagination{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:20px 0 4px}.pagination a{display:inline-flex;min-width:40px;height:40px;padding:0 12px;border-radius:10px;align-items:center;justify-content:center;background:#f1f5f9;color:#0f172a;text-decoration:none;font-weight:700}.pagination a.active{background:#2563eb;color:#fff}
.badge-orange{background:#fff7ed;color:#c2410c}
.front-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid rgba(148,163,184,.16)}
.front-nav-inner{max-width:1080px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#0f172a}.brand-mark{width:42px;height:42px;border-radius:14px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.brand strong{display:block;font-size:15px}.brand small{display:block;font-size:12px;color:#64748b}.front-menu{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.front-menu a{text-decoration:none;color:#334155;font-weight:700}.front-menu a.active,.front-menu a:hover{color:#2563eb}
.front-inner-top{margin-top:24px}.section-desc{margin:0;color:#64748b;line-height:1.8}.category-link-card,.article-link-card{display:block;text-decoration:none;color:inherit}.article-link-card:hover,.category-link-card:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:0 16px 36px rgba(15,23,42,.08)}
.article-detail-panel{padding:0}.article-detail{padding:34px}.article-detail h1{font-size:38px;line-height:1.2;margin:16px 0 18px}.article-meta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.meta-pill{background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700}.meta-text{color:#64748b;font-size:14px}.article-summary{font-size:18px;line-height:1.8;color:#475569;margin:0 0 22px}.article-cover{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:20px;margin:18px 0 24px}.article-content{line-height:1.95;color:#1e293b;font-size:16px;white-space:normal;word-break:break-word}
.search-box-inline{margin-top:0;max-width:none;box-shadow:none;border:1px solid #e2e8f0;background:#f8fafc}
.front-pagination{padding:10px 24px 26px}
.front-footer{margin-top:48px;background:#0f172a;color:#cbd5e1}.front-footer-inner{max-width:1080px;margin:0 auto;padding:30px 24px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.front-footer p{margin:8px 0 0;max-width:520px;line-height:1.8}.footer-links{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}.footer-links a{color:#e2e8f0;text-decoration:none}
.message-card p{margin:0 0 10px}.message-box{padding:16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;line-height:1.8}.compact-form{max-width:860px}
@media (max-width: 960px){.front-nav-inner{padding:14px 16px}.front-menu{gap:12px}.editor-grid{grid-template-columns:1fr}.article-detail{padding:22px}.article-detail h1{font-size:28px}.front-footer-inner{padding:24px 16px}}


.docs-layout{max-width:1380px;margin:0 auto;padding:18px 20px 36px;display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px}.docs-sidebar{background:#f3f4f6;border-right:1px solid #e5e7eb;min-height:calc(100vh - 130px);padding:10px 0 24px}.docs-search-box{padding:0 16px 14px}.docs-search-box input{width:100%;height:40px;border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:0 14px;outline:none}.docs-tree{padding:0 10px}.tree-category,.tree-subcategory{margin-bottom:6px}.tree-category-link,.tree-subcategory-link,.tree-article-link{display:flex;align-items:center;gap:8px;padding:10px 10px;border-radius:10px;color:#334155}.tree-category-link:hover,.tree-subcategory-link:hover,.tree-article-link:hover{background:#e8eefc;color:#1d4ed8}.tree-category.open>.tree-category-link,.tree-subcategory.open>.tree-subcategory-link,.tree-article-link.active{background:#e8f0ff;color:#2563eb}.tree-arrow{width:14px;text-align:center;color:#64748b;flex:0 0 14px}.tree-folder,.tree-file,.tree-doc{width:18px;display:inline-flex;justify-content:center;flex:0 0 18px}.tree-children{padding-left:14px}.tree-sub-articles{padding-left:18px}.tree-article-link{font-size:14px;line-height:1.4}.docs-content{min-width:0}.docs-article-panel{min-height:calc(100vh - 150px);border-radius:0;box-shadow:0 2px 12px rgba(15,23,42,.08)}.docs-meta-row{margin-bottom:10px}.meta-pill-sub{background:#f1f5f9;color:#475569}.docs-content .article-detail{padding:38px 48px}.docs-content .article-detail h1{text-align:center;font-size:24px;margin:10px 0 26px}.docs-content .article-summary{font-size:15px}.docs-content .article-content{font-size:15px;line-height:2}.docs-content .article-content p{margin:0 0 14px}.docs-content .article-content hr{border:0;border-top:1px solid #e5e7eb;margin:18px 0}.front-footer{margin-top:0}@media (max-width: 980px){.docs-layout{grid-template-columns:1fr;padding:12px}.docs-sidebar{min-height:auto;border-right:0;border-bottom:1px solid #e5e7eb}.docs-content .article-detail{padding:22px}}


/* ===== Front docs redesign 2026-04-05 ===== */
html{scroll-behavior:smooth}
body.front-body{background:linear-gradient(180deg,#eef3f9 0%,#f7f9fc 220px,#f8fafc 100%);color:#0f172a}
.front-nav{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.95);box-shadow:0 8px 28px rgba(15,23,42,.04)}
.front-nav-inner{max-width:1440px;padding:14px 24px}
.brand-mark{width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,#0f172a,#1d4ed8)}
.brand strong{font-size:22px;font-weight:800;letter-spacing:.2px}
.brand small{font-size:12px;color:#64748b;margin-top:2px}
.front-menu a{position:relative;padding:8px 2px;font-size:15px}
.front-menu a.active::after,.front-menu a:hover::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;border-radius:2px;background:#2563eb}

.docs-shell{max-width:1440px;margin:0 auto;padding:22px 20px 30px}
.docs-layout{max-width:none;display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;padding:0;margin:0}
.docs-sidebar{position:sticky;top:86px;align-self:start;min-height:calc(100vh - 110px);background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border:1px solid #e2e8f0;border-radius:28px;padding:18px 14px 18px;box-shadow:0 12px 34px rgba(15,23,42,.06)}
.docs-side-head{padding:6px 8px 14px}
.docs-side-title{font-size:13px;font-weight:800;letter-spacing:.12em;color:#94a3b8;text-transform:uppercase;margin:0 0 14px}
.docs-search-box{padding:0 6px 10px}
.docs-search-box form{position:relative}
.docs-search-box input{height:46px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;padding:0 14px 0 42px;font-size:14px;transition:.2s box-shadow,.2s border-color}
.docs-search-box input:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.10)}
.docs-search-box .search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:15px;color:#94a3b8}
.docs-tree{padding:4px 6px 0;max-height:calc(100vh - 220px);overflow:auto}
.docs-tree::-webkit-scrollbar{width:8px}.docs-tree::-webkit-scrollbar-thumb{background:#dbe3ef;border-radius:999px}
.tree-category,.tree-subcategory{margin-bottom:8px}
.tree-category-link,.tree-subcategory-link,.tree-article-link{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 12px;border-radius:14px;color:#334155;font-size:14px;font-weight:600;transition:.18s ease}
.tree-category-link:hover,.tree-subcategory-link:hover,.tree-article-link:hover{background:#f1f5ff;color:#1d4ed8;transform:translateX(1px)}
.tree-category.open>.tree-category-link{background:linear-gradient(135deg,#eff6ff,#eef2ff);color:#1d4ed8;box-shadow:inset 0 0 0 1px rgba(59,130,246,.10)}
.tree-subcategory.open>.tree-subcategory-link{background:#f8fafc;color:#0f172a}
.tree-article-link.active{background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.24)}
.tree-arrow{width:16px;flex:0 0 16px;font-size:11px;color:inherit;opacity:.82}
.tree-folder,.tree-file,.tree-doc{width:18px;flex:0 0 18px;font-size:14px}
.tree-folder,.tree-file{opacity:.9}
.tree-children{padding:8px 0 0 12px;margin-left:8px;border-left:1px dashed #dbe3ef}
.tree-sub-articles{padding:8px 0 0 12px;margin-left:8px;border-left:1px dashed #e2e8f0}
.tree-article-link{font-size:13px;font-weight:500;line-height:1.45}
.tree-article-link.active .tree-doc{opacity:1}
.tree-count{margin-left:auto;font-size:11px;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b}
.tree-article-link.active .tree-count{background:rgba(255,255,255,.18);color:#fff}

.docs-content{min-width:0}
.docs-article-panel{min-height:calc(100vh - 110px);background:rgba(255,255,255,.76);border:1px solid #e2e8f0;border-radius:30px;box-shadow:0 18px 44px rgba(15,23,42,.08);overflow:hidden}
.docs-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(255,255,255,.92))}
.docs-breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#64748b;font-size:13px}
.docs-breadcrumbs strong{color:#0f172a}
.docs-actions{display:flex;align-items:center;gap:10px}
.docs-action-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;border:1px solid #e2e8f0;background:#fff;color:#334155;font-size:16px;cursor:pointer;transition:.2s}
.docs-action-btn:hover{border-color:#cbd5e1;background:#f8fafc;transform:translateY(-1px)}
.docs-content .article-detail{padding:36px 54px 48px}
.docs-meta-row{justify-content:center;gap:10px;margin-bottom:14px}
.meta-pill{background:#eff6ff;color:#1d4ed8}
.meta-pill-sub{background:#f1f5f9;color:#475569}
.docs-content .article-detail h1{text-align:center;font-size:34px;line-height:1.25;margin:8px 0 20px;font-weight:800;letter-spacing:.01em}
.docs-content .article-summary{max-width:900px;margin:0 auto 26px;text-align:center;font-size:16px;line-height:1.95;color:#64748b}
.article-content-wrap{max-width:980px;margin:0 auto}
.docs-content .article-content{font-size:16px;line-height:2;color:#1e293b}
.docs-content .article-content h2,.docs-content .article-content h3{margin:30px 0 14px;color:#0f172a}
.docs-content .article-content p{margin:0 0 16px}
.docs-content .article-content ul,.docs-content .article-content ol{margin:0 0 18px 20px;padding:0}
.docs-content .article-content li{margin-bottom:8px}
.docs-content .article-content hr{border:0;border-top:1px solid #e5e7eb;margin:22px 0}
.docs-empty{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 180px);padding:30px}
.docs-empty-card{max-width:520px;text-align:center;padding:42px;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e2e8f0}
.docs-empty-icon{font-size:42px;margin-bottom:10px}
.docs-empty-card h3{margin:0 0 8px;font-size:26px}.docs-empty-card p{margin:0;color:#64748b;line-height:1.9}
.front-footer{margin-top:24px;background:transparent;color:#64748b}
.front-footer-inner{max-width:1440px;padding:0 24px 24px}
.front-footer p{max-width:none}
.footer-links a{color:#475569}

@media (max-width:1200px){.docs-layout{grid-template-columns:290px minmax(0,1fr)}.docs-content .article-detail{padding:30px 34px 40px}}
@media (max-width:980px){.front-nav-inner{padding:12px 16px}.brand strong{font-size:18px}.docs-shell{padding:14px 12px 24px}.docs-layout{grid-template-columns:1fr;gap:14px}.docs-sidebar{position:relative;top:0;min-height:auto}.docs-tree{max-height:none}.docs-article-panel{min-height:auto}.docs-topbar{padding:14px 16px}.docs-content .article-detail{padding:22px 18px 28px}.docs-content .article-detail h1{font-size:26px}.docs-content .article-summary{text-align:left;font-size:15px}.docs-meta-row{justify-content:flex-start}.front-footer-inner{padding:0 16px 18px}}


/* 2026-04-05 layout simplification */
.front-nav-inner,.front-footer-inner,.docs-shell{max-width:1180px!important}.docs-shell{padding:22px 24px 24px!important}.docs-layout{grid-template-columns:280px minmax(0,1fr)!important}.docs-sidebar{top:84px!important}.docs-content .article-detail{padding:32px 36px 40px!important}.compact-form{max-width:980px}.compact-form .editor-grid{grid-template-columns:1fr!important}.compact-form .editor-textarea{min-height:520px}
@media (max-width:980px){.docs-shell{padding:14px 12px 20px!important}.docs-layout{grid-template-columns:1fr!important}}


/* 2026-04-05 reference-style front layout */
body.front-body{background:#efefef!important;color:#1f2937!important}
.front-nav{position:relative!important;top:auto!important;background:#fff!important;border-bottom:1px solid #e5e7eb!important;box-shadow:none!important;backdrop-filter:none!important}
.front-nav-inner{max-width:1180px!important;margin:0 auto!important;padding:14px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.brand{gap:12px!important}.brand-mark{width:40px!important;height:40px!important;border-radius:12px!important;background:#0f1f48!important;font-size:18px!important}
.brand strong{font-size:17px!important;font-weight:800!important;color:#111827!important}
.brand small{font-size:13px!important;color:#64748b!important}
.front-menu{gap:22px!important}.front-menu a{font-size:14px!important;font-weight:700!important;color:#374151!important;padding:0!important}.front-menu a.active,.front-menu a:hover{color:#2563eb!important}.front-menu a::after{display:none!important}

.docs-shell{max-width:1180px!important;margin:22px auto 0!important;padding:0 18px 24px!important}
.docs-layout{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:24px!important;align-items:start!important}
.docs-sidebar{position:relative!important;top:auto!important;min-height:auto!important;background:transparent!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.docs-side-head{padding:0 0 12px!important}.docs-side-title{font-size:14px!important;font-weight:700!important;color:#374151!important;letter-spacing:0!important;text-transform:none!important;margin-bottom:10px!important}
.docs-search-box{padding:0 0 10px!important}.docs-search-box input{height:34px!important;border:1px solid #d1d5db!important;border-radius:3px!important;padding:0 12px 0 12px!important;background:#fff!important;box-shadow:none!important;font-size:14px!important}
.docs-search-box .search-icon{display:none!important}
.docs-tree{padding:0!important;max-height:none!important;overflow:visible!important}
.tree-category,.tree-subcategory{margin:0 0 4px 0!important}
.tree-category-link,.tree-subcategory-link,.tree-article-link{min-height:unset!important;padding:5px 4px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;font-size:14px!important;font-weight:500!important;color:#374151!important}
.tree-category-link:hover,.tree-subcategory-link:hover,.tree-article-link:hover{background:transparent!important;color:#2563eb!important}
.tree-category.open>.tree-category-link,.tree-subcategory.open>.tree-subcategory-link,.tree-article-link.active{background:transparent!important;color:#2563eb!important;box-shadow:none!important}
.tree-arrow{width:12px!important;flex:0 0 12px!important;font-size:10px!important;color:#6b7280!important}
.tree-folder,.tree-file,.tree-doc{width:18px!important;flex:0 0 18px!important;font-size:13px!important;opacity:1!important}
.tree-count{display:none!important}
.tree-children{padding:2px 0 4px 16px!important;margin-left:8px!important;border-left:none!important}
.tree-sub-articles{padding:2px 0 4px 18px!important;margin-left:0!important;border-left:none!important}
.tree-article-link{font-size:13px!important;line-height:1.6!important}

.docs-content{min-width:0!important}
.docs-article-panel{background:#fff!important;border:1px solid #e3e3e3!important;border-radius:0!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important;min-height:760px!important;overflow:visible!important}
.docs-topbar{padding:14px 20px!important;background:#fff!important;border-bottom:1px solid #efefef!important}
.docs-breadcrumbs{font-size:13px!important;color:#6b7280!important}.docs-breadcrumbs strong{color:#374151!important}
.docs-actions{display:flex!important}.docs-action-btn{width:28px!important;height:28px!important;border-radius:4px!important;background:#fff!important;border:1px solid #d1d5db!important;font-size:13px!important}
.docs-content .article-detail{padding:26px 48px 40px!important}
.docs-meta-row{justify-content:flex-start!important;margin-bottom:16px!important}.meta-pill,.meta-pill-sub{padding:0!important;border-radius:0!important;background:transparent!important;color:#2563eb!important;font-size:13px!important}
.docs-content .article-detail h1{text-align:left!important;font-size:26px!important;font-weight:800!important;color:#0f172a!important;margin:10px 0 18px!important}
.docs-content .article-summary{max-width:none!important;text-align:left!important;font-size:15px!important;margin:0 0 14px!important;color:#475569!important}
.article-content-wrap{max-width:none!important;margin:0!important}.docs-content .article-content{font-size:16px!important;line-height:2!important;color:#111827!important}.docs-content .article-content p{margin:0 0 12px!important}.docs-content .article-content hr{margin:18px 0!important;border-top:1px solid #e5e7eb!important}
.docs-empty{min-height:420px!important}.docs-empty-card{background:#fff!important;border-radius:0!important;box-shadow:none!important}
.front-footer{margin-top:24px!important;background:#fff!important;border-top:1px solid #e5e7eb!important;color:#374151!important}.front-footer-inner{max-width:1180px!important;margin:0 auto!important;padding:20px 18px!important;display:flex!important;justify-content:space-between!important;gap:16px!important}.front-footer p{margin-top:8px!important;color:#6b7280!important}.footer-links a{color:#374151!important}

@media (max-width:980px){
  .front-nav-inner,.docs-shell,.front-footer-inner{padding-left:12px!important;padding-right:12px!important}
  .docs-layout{grid-template-columns:1fr!important;gap:14px!important}
  .docs-article-panel{min-height:auto!important}
  .docs-content .article-detail{padding:20px 18px 28px!important}
}


/* 2026-04-05 white sidebar + collapsed tree + simple footer */
.docs-sidebar-white{background:#fff!important;border:1px solid #e3e3e3!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important;padding:14px 14px 18px!important}.tree-toggle{width:100%;border:0;cursor:pointer;text-align:left;font-family:inherit}.tree-children[hidden],.tree-sub-articles[hidden]{display:none!important}.front-footer-inner{display:block!important;text-align:center!important}.front-footer-inner strong,.front-footer-inner p,.front-footer .footer-links{display:none!important}.front-footer-inner::before{content:"版权所有，HIPOS海梦科技 [Ayuda.Hipos.Es]";display:block;font-size:14px;color:#374151}.front-footer{margin-top:18px!important}.front-footer-inner{padding:14px 18px!important}.docs-sidebar .tree-category-link,.docs-sidebar .tree-subcategory-link{display:flex;align-items:center;gap:8px}.docs-sidebar .tree-category-link span:last-child,.docs-sidebar .tree-subcategory-link span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-tip{padding:8px 4px;color:#6b7280;font-size:13px}

/* 2026-04-05 rich editor + share patch */
.rich-html img{max-width:100%;height:auto;border-radius:10px}
.rich-html video{max-width:100%;height:auto;border-radius:10px;background:#000}
.rich-html table{width:100%;border-collapse:collapse;margin:16px 0}
.rich-html th,.rich-html td{border:1px solid #e5e7eb;padding:10px 12px}
.docs-empty-no-default{display:flex;align-items:center;justify-content:center}
.article-share-box{margin-top:34px;padding-top:24px;border-top:1px solid #e5e7eb;display:flex;justify-content:space-between;gap:24px;align-items:flex-start;flex-wrap:wrap}
.article-share-left{flex:1 1 420px}
.article-share-left h3{margin:0 0 8px;font-size:18px;color:#111827}
.article-share-left p{margin:0 0 14px;color:#6b7280;font-size:14px}
.share-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.share-btn{border:0;background:#1d4ed8;color:#fff;border-radius:10px;padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer}
.share-btn:hover{background:#1e40af}
.share-tip{color:#16a34a;font-size:14px;font-weight:700}
.share-link-preview{padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;color:#334155;font-size:13px;line-height:1.7;word-break:break-all}
.article-share-qr{width:170px;display:flex;flex-direction:column;align-items:center;gap:8px}
#articleQr{width:132px;height:132px;padding:8px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;align-items:center;justify-content:center}
#articleQr img{display:block;margin:0 auto}
.qr-tip{font-size:13px;color:#6b7280;text-align:center}
.tox-tinymce{border-radius:12px!important;border-color:#dbe3ef!important}
.message-box.rich-html{padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.front-footer{margin-top:18px!important;background:#fff!important;border-top:1px solid #e5e7eb!important;color:#374151!important}
.front-footer-inner{max-width:1180px!important;margin:0 auto!important;padding:14px 18px!important;display:block!important;text-align:center!important;font-size:14px!important;color:#374151!important}
@media (max-width:980px){.article-share-box{flex-direction:column}.article-share-qr{width:auto;align-items:flex-start}.front-footer-inner{padding:12px!important}}


/* 2026-04-05 backend simplified to match front style */
body{background:#f3f4f6!important;color:#111827}
.admin-layout{display:block!important;min-height:100vh!important}
.sidebar{display:none!important}
.main-panel{padding:0!important;max-width:none!important}
.admin-topbar{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:40}
.admin-topbar-inner{max-width:1180px;margin:0 auto;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.admin-brand{display:flex;align-items:center;gap:12px;color:#111827;text-decoration:none}.admin-brand:hover{color:#111827}
.admin-brand-mark{width:40px;height:40px;border-radius:14px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
.admin-brand-title{font-size:14px;font-weight:800;line-height:1.2}.admin-brand-sub{font-size:12px;color:#6b7280;margin-top:2px}
.admin-menu{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.admin-menu a{color:#374151;font-weight:700;text-decoration:none;font-size:14px}.admin-menu a:hover,.admin-menu a.active{color:#2563eb}
.admin-user{font-size:13px;color:#6b7280;white-space:nowrap}
.admin-shell{max-width:1180px;margin:0 auto;padding:18px}
.admin-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}.admin-page-head h1{margin:0;font-size:28px}.admin-page-head p{margin:6px 0 0;color:#6b7280}
.user-box{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important;text-align:right!important}
.user-box span,.user-box small{display:inline!important}.user-box small:before{content:' · ';}
.cards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.stat-card,.panel,.form-card,.category-card,.article-item{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:14px!important;box-shadow:none!important}
.stat-card{padding:18px!important}.stat-card h3{font-size:13px!important;margin-bottom:10px!important;color:#6b7280!important}.stat-card strong{font-size:28px!important}
.panel{margin-bottom:16px!important}.panel-head{padding:16px 18px!important;border-bottom:1px solid #e5e7eb!important}.panel-head h2{font-size:18px!important}.panel-body{padding:18px!important}
.modern-table th{background:#f9fafb!important;color:#6b7280!important}.modern-table th,.modern-table td{padding:12px 10px!important;border-bottom:1px solid #e5e7eb!important}
.btn,.login-card button,.form-card button{border-radius:10px!important;box-shadow:none!important}.btn-primary{background:#2563eb!important}.btn-secondary{background:#eef2f7!important;color:#111827!important}
.filter-bar input,.filter-bar select,.login-card input,.form-card input,.form-card select,.editor-form textarea{border-radius:10px!important;border:1px solid #d1d5db!important;background:#fff!important}
.login-body{background:#f3f4f6!important}.login-card{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:none!important;border-radius:16px!important}.login-brand{background:#0f172a!important;border-radius:14px!important}
.admin-footer{max-width:1180px;margin:0 auto;padding:10px 18px 18px;text-align:center;color:#6b7280;font-size:13px}
@media (max-width:980px){.admin-topbar-inner,.admin-shell,.admin-footer{padding-left:12px;padding-right:12px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page-head{display:block}.admin-user{display:none}}
@media (max-width:640px){.cards-grid{grid-template-columns:1fr}.admin-menu{gap:12px}}
