/* DDNA-5D 管理后台样式 */
:root{
  --primary:#4f6ef7; --primary-d:#3b5bd6; --primary-l:#eef2ff;
  --bg:#f0f2f8; --card:#fff; --border:#e5e8f0;
  --text:#1a1f36; --muted:#6b7280; --muted2:#9ca3af;
  --success:#10b981; --danger:#ef4444; --warn:#f59e0b;
  --sidebar:#0f1429; --sidebar2:#1a2244; --sidebar-text:#8b95b8;
  --radius:12px; --shadow:0 1px 3px rgba(0,0,0,.04),0 4px 16px rgba(0,0,0,.04);
  --shadow-lg:0 8px 40px rgba(0,0,0,.12);
  --grad:linear-gradient(135deg,#4f6ef7,#7c3aed);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;border-radius:8px;font-size:14px;padding:8px 16px;transition:.2s}
.btn{background:var(--grad);color:#fff;padding:8px 18px;border-radius:8px;display:inline-block;border:none;cursor:pointer;font-size:14px;font-weight:500;box-shadow:0 2px 8px rgba(79,110,247,.25)}
.btn:hover{box-shadow:0 4px 16px rgba(79,110,247,.35);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border);font-weight:500}
.btn-ghost:hover{background:var(--primary-l);color:var(--primary);border-color:var(--primary)}
.log-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.log-tab.active:hover{background:var(--primary-d);color:#fff;border-color:var(--primary-d)}
.btn-danger{background:var(--danger);color:#fff;box-shadow:0 2px 8px rgba(239,68,68,.2)}
.btn-danger:hover{box-shadow:0 4px 16px rgba(239,68,68,.3);transform:translateY(-1px)}
.btn-sm{padding:5px 12px;font-size:12px}
.btn-lg{padding:12px 28px;font-size:15px;border-radius:10px}
.btn-block{width:100%;padding:11px;margin-top:8px}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}
input,select,textarea{font-family:inherit;font-size:14px;padding:10px 14px;border:1.5px solid var(--border);border-radius:10px;background:#fff;color:var(--text);width:100%;outline:none;transition:.2s}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(79,110,247,.1)}
label{display:block;margin-bottom:6px;font-weight:600;color:var(--text);font-size:13px}
.form-row{margin-bottom:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* ===== 登录弹窗 ===== */
.auth-tabs{display:flex;gap:0;margin-bottom:20px;border-bottom:2px solid var(--border)}
.auth-tabs .tab{flex:1;background:none;color:var(--muted);padding:10px;font-size:14px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-2px;font-weight:500;transition:.2s}
.auth-tabs .tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}

/* ===== 布局 ===== */
.layout{display:flex;min-height:100vh}
.sidebar{width:230px;background:var(--sidebar);color:var(--sidebar-text);display:flex;flex-direction:column;position:fixed;height:100vh;left:0;top:0;z-index:20;box-shadow:2px 0 20px rgba(0,0,0,.08)}
.sidebar .brand{padding:22px 20px;font-size:18px;color:#fff;font-weight:700;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.06);text-decoration:none;cursor:pointer;transition:.2s}
.sidebar .brand:hover{background:rgba(255,255,255,.06);color:#fff}
.sidebar .brand .dot{width:34px;height:34px;border-radius:10px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 4px 12px rgba(79,110,247,.4)}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px}
.sidebar nav::-webkit-scrollbar{width:6px}
.sidebar nav::-webkit-scrollbar-track{background:transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:3px}
.sidebar nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3)}
.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;color:var(--sidebar-text);margin-bottom:3px;font-size:14px;font-weight:500;transition:.2s;position:relative}
.sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.sidebar nav a.active{background:rgba(79,110,247,.15);color:#fff}
.sidebar nav a.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:20px;border-radius:0 3px 3px 0;background:var(--grad)}
.sidebar nav a .ico{width:20px;text-align:center;opacity:.85;font-size:16px}
.sidebar nav a.active .ico{opacity:1}
.sidebar nav .nav-group{margin:16px 6px 8px;padding:0 22px 0 6px;font-size:11px;letter-spacing:.6px;color:rgba(255,255,255,.34);font-weight:600;display:flex;align-items:center;gap:8px;text-transform:uppercase;cursor:pointer;user-select:none;position:relative;transition:.2s}
.sidebar nav .nav-group:hover{color:rgba(255,255,255,.62)}
.sidebar nav .nav-group .g-arrow{position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:9px;line-height:1;transition:transform .2s;opacity:.7}
.sidebar nav .nav-group.is-collapsed .g-arrow{transform:translateY(-50%) rotate(-90deg)}
.sidebar nav .nav-items.collapsed{display:none}
.sidebar nav .nav-group:first-child{margin-top:2px}
.sidebar nav .nav-group::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.08)}
.sidebar .foot{padding:16px 20px;border-top:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--muted2)}
.sidebar .foot .user{color:#fff;font-weight:600;margin-bottom:2px;font-size:13px}

.main{flex:1;margin-left:230px;display:flex;flex-direction:column;min-height:100vh}
.topbar{background:var(--card);border-bottom:1px solid var(--border);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10;box-shadow:0 1px 3px rgba(0,0,0,.03)}
.topbar h2{font-size:18px;font-weight:700;letter-spacing:-.3px}
.topbar .right{display:flex;align-items:center;gap:12px}
.topbar .right .chip{background:var(--primary-l);color:var(--primary);padding:5px 14px;border-radius:20px;font-size:12px;font-weight:600}
.top-portal{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.top-portal a{white-space:nowrap}
/* 产品列表（商铺 / 详情） */
.prod-list{display:flex;flex-direction:column;gap:10px}
.prod-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fafbfd}
.prod-item .prod-img{width:56px;height:56px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#eef1f6}
.prod-item .prod-noimg{display:flex;align-items:center;justify-content:center;font-size:24px}
.prod-item .prod-main{flex:1;min-width:0}
.prod-item .prod-price{font-weight:700}
.prod-item .prod-ops{flex-shrink:0;white-space:nowrap}
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.prod-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.prod-card img,.prod-card .prod-noimg{width:100%;height:110px;object-fit:cover;background:#eef1f6;display:flex;align-items:center;justify-content:center;font-size:30px}
.prod-card .prod-info{padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.prod-card .prod-price{color:#ea580c;font-weight:700;font-size:15px}
/* 站内信收件人搜索候选 */
.user-search-list{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);z-index:30;max-height:220px;overflow:auto}
.user-search-item{padding:9px 14px;font-size:13px;cursor:pointer}
.user-search-item:hover{background:#fff7ed;color:#ea580c}
.content{padding:28px;flex:1}

/* ===== 卡片/表格 ===== */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin-bottom:20px;transition:.2s}
.card:hover{box-shadow:0 2px 4px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06)}
.card-title{font-size:16px;font-weight:700;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;letter-spacing:-.2px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;margin-bottom:22px}
.stat{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 22px;display:flex;align-items:center;gap:16px;transition:.2s}
.stat:hover{transform:translateY(-2px);box-shadow:0 4px 20px rgba(0,0,0,.08)}
.stat .ic{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff;flex-shrink:0}
.stat .ic.b1{background:linear-gradient(135deg,#4f6ef7,#7c3aed)}
.stat .ic.b2{background:linear-gradient(135deg,#10b981,#34d399)}
.stat .ic.b3{background:linear-gradient(135deg,#f59e0b,#fbbf24)}
.stat .ic.b4{background:linear-gradient(135deg,#ef4444,#f87171)}
.stat .ic.b5{background:linear-gradient(135deg,#06b6d4,#22d3ee)}
.stat .ic.b6{background:linear-gradient(135deg,#8b5cf6,#a78bfa)}
.stat .num{font-size:24px;font-weight:800;letter-spacing:-.5px}
.stat .lbl{color:var(--muted);font-size:12px;font-weight:500}

table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--border);font-size:13px}
th{color:var(--muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.05em;background:#f8f9fc}
tr:hover td{background:#f8f9fc}
.tag{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600}
.tag-ok{background:#d1fae5;color:var(--success)}
.tag-no{background:#fee2e2;color:var(--danger)}
.tag-info{background:var(--primary-l);color:var(--primary)}
.tag-warn{background:#fef3c7;color:var(--warn)}
.empty{text-align:center;padding:48px;color:var(--muted);font-size:14px}

/* ===== 弹窗 ===== */
.modal-mask{position:fixed;inset:0;background:rgba(10,14,39,.5);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:50;animation:fadeIn .2s}
.modal{background:var(--card);border-radius:18px;box-shadow:var(--shadow-lg);width:660px;max-width:94vw;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;animation:slideUp .25s ease-out}
.modal.modal-lg{width:1040px}
.modal .mhd{padding:22px 28px;border-bottom:1px solid var(--border);font-size:18px;font-weight:700;display:flex;justify-content:space-between;align-items:center;letter-spacing:-.3px;flex:none}
.modal .mhd .x{cursor:pointer;color:var(--muted);font-size:24px;transition:.15s}
.modal .mhd .x:hover{color:var(--text)}
.modal .mbd{padding:28px;flex:1 1 auto;min-height:0;overflow:auto}
.modal .mft{padding:18px 28px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;flex:none}
.modal .mft-top{border-top:none;border-bottom:1px solid var(--border);padding:14px 28px}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}

/* ===== toast ===== */
.toast-wrap{position:fixed;top:24px;right:24px;z-index:100;display:flex;flex-direction:column;gap:10px}
.toast{background:var(--card);border-radius:10px;box-shadow:var(--shadow-lg);padding:14px 20px;font-size:13px;font-weight:500;border-left:4px solid var(--primary);min-width:260px;animation:slideIn .25s ease-out}
.toast.ok{border-left-color:var(--success)}
.toast.err{border-left-color:var(--danger)}
@keyframes slideIn{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}

.toolbar{display:flex;gap:10px;margin-bottom:18px;align-items:center;flex-wrap:wrap}
.toolbar .grow{flex:1}
.muted{color:var(--muted)}
.right{text-align:right}
.mono{font-family:Consolas,Monaco,monospace;font-size:12px}
.pill{display:inline-flex;align-items:center;gap:6px}
.dot-on{width:8px;height:8px;border-radius:50%;background:var(--success);display:inline-block;box-shadow:0 0 8px var(--success)}
.dot-off{width:8px;height:8px;border-radius:50%;background:var(--muted2);display:inline-block}

/* ===== DDNS 介绍页 ===== */
.lnav{position:fixed;top:0;left:0;right:0;z-index:30;background:rgba(10,14,39,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06)}
.lnav-inner{max-width:1140px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between}
.lnav-brand{color:#fff;font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px}
.lnav-links{display:flex;align-items:center;gap:28px}
.lnav-links a{color:#a0aac8;font-size:14px;font-weight:500;transition:.2s}
.lnav-links a:hover{color:#fff}

.btn-glow{background:linear-gradient(135deg,#6366f1,#06b6d4);color:#fff;border:none;border-radius:10px;padding:12px 28px;font-size:15px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;box-shadow:0 4px 24px rgba(99,102,241,.4);transition:.25s}
.btn-glow:hover{box-shadow:0 8px 32px rgba(99,102,241,.55);transform:translateY(-2px)}
.btn-glow.btn-sm{padding:7px 18px;font-size:13px;border-radius:8px}
.btn-outline{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.2);border-radius:10px;padding:12px 28px;font-size:15px;font-weight:500;cursor:pointer;transition:.25s}
.btn-outline:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.06);transform:translateY(-1px)}

.hero{position:relative;min-height:92vh;display:flex;align-items:center;justify-content:center;background:#0a0e27;color:#fff;text-align:center;padding:100px 24px 80px;overflow:hidden}
.hero-blob{position:absolute;border-radius:50%;filter:blur(90px);opacity:.45;animation:float 8s ease-in-out infinite}
.hero-blob.b1{width:520px;height:520px;background:#6366f1;top:-160px;left:-120px}
.hero-blob.b2{width:480px;height:480px;background:#06b6d4;bottom:-120px;right:-100px;animation-delay:-4s}
.hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:50px 50px;mask-image:radial-gradient(ellipse at center,#000 30%,transparent 70%)}
@keyframes float{0%,100%{transform:translate(0,0)}50%{transform:translate(30px,-30px)}}
.hero-inner{position:relative;max-width:720px;z-index:1}
.hero-badge{display:inline-block;background:rgba(99,102,241,.12);border:1px solid rgba(99,102,241,.3);color:#a5b4fc;padding:7px 20px;border-radius:20px;font-size:13px;font-weight:500;margin-bottom:28px}
.hero h1{font-size:54px;font-weight:800;line-height:1.12;margin-bottom:24px;letter-spacing:-1.5px}
.grad-text{background:linear-gradient(135deg,#818cf8,#22d3ee);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{font-size:17px;color:#94a3b8;margin-bottom:36px;line-height:1.7;max-width:580px;margin-left:auto;margin-right:auto}
.hero-cta{display:flex;gap:16px;justify-content:center;margin-bottom:48px}

.sec{padding:80px 24px;max-width:1140px;margin:0 auto}
.sec-alt{background:#f8fafc;max-width:none;padding-left:0;padding-right:0}
.sec-alt>.sec-head,.sec-alt>.prov-row,.sec-alt>.guide-grid{max-width:1140px;margin-left:auto;margin-right:auto}
.sec-head{text-align:center;margin-bottom:56px}
.sec-head h2{font-size:34px;font-weight:800;margin-bottom:12px;letter-spacing:-.8px}
.sec-head p{color:var(--muted);font-size:15px}

/* ===== 配置指南 ===== */
.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.guide-card{background:#fff;border:1px solid #f1f5f9;border-radius:16px;padding:30px 28px;transition:.3s;position:relative;overflow:hidden}
.guide-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--grad);transform:scaleX(0);transform-origin:left;transition:.3s}
.guide-card:hover{box-shadow:0 16px 48px rgba(15,23,42,.1);transform:translateY(-4px);border-color:transparent}
.guide-card:hover::before{transform:scaleX(1)}
.guide-step{width:40px;height:40px;border-radius:12px;background:var(--grad);color:#fff;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:18px;box-shadow:0 4px 16px rgba(79,110,247,.3)}
.guide-card h3{font-size:17px;font-weight:700;margin-bottom:10px;letter-spacing:-.2px}
.guide-card p{color:var(--muted);font-size:13.5px;line-height:1.7}
.guide-card .kw{color:var(--primary);font-weight:600}

.prov-guide{background:#fff;border:1px solid #f1f5f9;border-radius:16px;overflow:hidden;transition:.3s}
.prov-guide:hover{box-shadow:0 12px 36px rgba(15,23,42,.08);transform:translateY(-2px)}
.prov-guide .pg-head{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #f1f5f9}
.prov-guide .pg-logo{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px}
.prov-guide .pg-head b{font-size:15px;font-weight:700}
.prov-guide .pg-head .pg-tag{margin-left:auto;font-size:11px;color:var(--muted);background:#f1f5f9;padding:4px 12px;border-radius:20px;font-weight:500}
.prov-guide .pg-body{padding:20px 24px}
.prov-guide .pg-body ol{margin:0;padding-left:20px}
.prov-guide .pg-body li{color:var(--muted);font-size:13px;line-height:2;margin-bottom:2px}
.prov-guide .pg-body li b{color:var(--text)}
.prov-guide .pg-body .cred{display:flex;gap:10px;align-items:center;margin-top:10px;padding:10px 14px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:8px;font-size:12px}
.prov-guide .pg-body .cred span{color:var(--muted)}
.prov-guide .pg-body .cred b{color:var(--primary);font-family:Consolas,monospace;font-size:12px}

.flow-row{display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:wrap;margin-top:8px}
.flow-node{background:#fff;border:1px solid #f1f5f9;border-radius:14px;padding:20px 28px;text-align:center;min-width:150px;transition:.3s}
.flow-node:hover{box-shadow:0 8px 28px rgba(15,23,42,.08);transform:translateY(-3px);border-color:transparent}
.flow-node .fn-ic{font-size:28px;margin-bottom:10px}
.flow-node b{font-size:14px;font-weight:700;display:block;margin-bottom:2px}
.flow-node span{font-size:11px;color:var(--muted)}
.flow-arrow{color:#cbd5e1;font-size:22px;padding:0 10px}

.lfoot{background:#0a0e27;color:#64748b;text-align:center;padding:52px 24px}
.lfoot-inner{max-width:1140px;margin:0 auto}
.lfoot-brand{display:flex;align-items:center;gap:8px;justify-content:center;margin-bottom:12px;color:#fff;font-size:17px;font-weight:700}
.lfoot p{margin-bottom:4px;font-size:14px}
.lfoot-tech{color:#475569;font-size:12px}

@media(max-width:760px){
  .sidebar{width:64px}.sidebar .brand span,.sidebar nav a span,.sidebar .foot,.sidebar nav .nav-group,.sidebar nav .nav-group .g-arrow{display:none}.sidebar nav .nav-items.collapsed{display:block}.main{margin-left:64px}.form-grid{grid-template-columns:1fr}
  .hero h1{font-size:36px}.lnav-links a[href]{display:none}.flow-arrow{display:none}
  .hero-cta{flex-direction:column;align-items:center}
}

/* ============================================================ */
/* 移动端 H5 专属样式（body.mobile 由 common.js 注入）            */
/* ============================================================ */
body.mobile .content{padding:14px}
body.mobile .topbar{padding:12px 16px}
body.mobile .topbar h2{font-size:16px}
body.mobile .top-portal a:not(:first-child){display:none}
body.mobile .prod-grid{grid-template-columns:1fr 1fr}
body.mobile .card{padding:16px;border-radius:10px;margin-bottom:14px}
body.mobile .toolbar{gap:8px;margin-bottom:14px}
body.mobile .toolbar .btn{padding:7px 14px;font-size:13px}
body.mobile .toolbar .btn-ghost.btn-sm{padding:5px 10px;font-size:12px;margin-left:2px!important}

/* 帖子卡片（移动端列表） */
.post-card{background:var(--card);border-radius:12px;padding:14px 16px;margin-bottom:12px;box-shadow:var(--shadow);cursor:pointer;transition:.15s;border:1px solid transparent}
.post-card:active{background:#f8f9fc;border-color:var(--border)}
.post-card-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:6px;line-height:1.4}
.post-card-title .tag{margin-right:4px}
.post-summary{font-size:13px;line-height:1.5;margin:4px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.post-card-meta .tag{font-size:11px}
.post-card-ops{display:flex;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--border)}
.post-card-ops .btn-ghost{font-size:11px;padding:4px 10px}

/* 移动端帖子详情 */
body.mobile .post-content, body.mobile .reply-content{font-size:15px;line-height:1.7}
body.mobile .modal{width:94vw;max-height:92vh}
body.mobile .modal .mbd{padding:16px}
body.mobile .modal .mhd{padding:14px 16px;font-size:16px}
body.mobile .modal .mft{padding:12px 16px}
body.mobile .rich-editor .re-body{min-height:120px!important}
body.mobile .re-toolbar{gap:2px}
body.mobile .re-btn{min-width:26px!important;height:26px!important;padding:0 4px!important;font-size:12px!important}

/* 门户首页移动端优化 */
body.mobile .portal-hero{padding:36px 16px 32px}
body.mobile .portal-hero h1{font-size:28px}
body.mobile .portal-hero p{font-size:14px}
body.mobile .tz-search{flex-wrap:wrap}
body.mobile .tz-search select{width:100%;margin-bottom:6px}
body.mobile .tz-search input{flex:1;min-width:0}
body.mobile .tz-cats{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
body.mobile .tz-cat{padding:14px 8px}
body.mobile .tz-cat .tz-ic{width:38px;height:38px;font-size:18px}
body.mobile .tz-cat b{font-size:13px}
body.mobile .portal-sec{padding:28px 14px}
body.mobile .portal-sec-h h2{font-size:18px}
body.mobile .tz-feed-item{padding:14px}
body.mobile .tz-feed-item h4{font-size:14px}
body.mobile .tz-feed-item .tz-meta{font-size:11px;gap:8px}
body.mobile .tz-side-card{padding:14px}

/* 确保表格在移动端可横向滚动 */
body.mobile .card > table{display:block;overflow-x:auto;white-space:nowrap}

/* toast 移动端居中 */
body.mobile .toast-wrap{top:12px;left:12px;right:12px;align-items:center}
body.mobile .toast{min-width:auto;width:100%}

/* ===== 授权管理 / 通用 Tab ===== */
.tabs{display:flex;gap:0;margin-bottom:20px;border-bottom:1px solid var(--border)}
.tabs .tab{padding:10px 20px;cursor:pointer;border-bottom:2px solid transparent;font-size:14px;color:var(--muted);font-weight:500;transition:.2s}
.tabs .tab.active{border-bottom-color:var(--primary);color:var(--primary);font-weight:600}
.tabs .tab:hover{color:var(--primary)}
.tab-content{display:none}
.tab-content.active{display:block}

/* ============================================================ */
/* 门户首页专属样式（只作用于 #home / #portal 页面）              */
/* 不会影响 dashboard / tasks / license 等后台管理页              */
/* ============================================================ */

/* --- 门户主题变量覆盖（仅首页导航/hero 区块使用） --- */
:root{ --tz-primary:#f97316; --tz-primary-d:#ea580c; --tz-primary-l:#fff7ed; --tz-grad:linear-gradient(135deg,#f97316,#ea580c); }

/* --- 公告滚动条 --- */
.tz-notice{background:linear-gradient(90deg,#fff7ed,#fed7aa);border-bottom:1px solid #fed7aa;padding:10px 24px;display:flex;align-items:center;gap:14px;font-size:13px;color:#9a3412}
.tz-notice .tz-ic{background:#f97316;color:#fff;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}
.tz-notice .tz-track{flex:1;overflow:hidden;white-space:nowrap;position:relative}
.tz-notice .tz-track span{display:inline-block;padding-left:100%;animation:tzMarquee 30s linear infinite}
@keyframes tzMarquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* --- 大搜索框 --- */
.tz-search{background:#fff;border-radius:999px;padding:6px;box-shadow:0 12px 40px rgba(249,115,22,.18),0 2px 10px rgba(0,0,0,.06);display:flex;align-items:center;gap:4px;margin-top:28px;max-width:960px;width:100%;transition:box-shadow .2s}
.tz-search:focus-within{box-shadow:0 12px 48px rgba(249,115,22,.28),0 0 0 3px rgba(249,115,22,.15)}
.tz-search select{flex:0 0 auto;width:120px;border:none;background:#fff7ed;color:#ea580c;padding:10px 12px 10px 14px;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 12px center;padding-right:28px}
.tz-search input{flex:1;min-width:0;border:none;padding:10px 18px;font-size:15px;outline:none;background:transparent;color:#1f2937}
.tz-search input::placeholder{color:#94a3b8}
.tz-search button{flex:0 0 auto;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;border:none;padding:10px 26px;border-radius:999px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(234,88,12,.35);transition:transform .12s,box-shadow .12s,filter .12s;display:flex;align-items:center;gap:6px;white-space:nowrap}
.tz-search button:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(234,88,12,.45);filter:brightness(1.05)}
.tz-search button:active{transform:translateY(0);box-shadow:0 2px 8px rgba(234,88,12,.3)}

/* --- 分类导航网格 --- */
.tz-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-top:32px}
.tz-cat{background:#fff;border-radius:12px;padding:20px 14px;text-align:center;cursor:pointer;text-decoration:none;color:#1f2937;transition:.25s;border:1px solid #f1f5f9;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.tz-cat:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(249,115,22,.15);border-color:#fed7aa}
.tz-cat .tz-ic{width:44px;height:44px;border-radius:12px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:22px;background:#fff7ed}
.tz-cat b{display:block;font-size:14px;margin-bottom:2px;color:#1f2937}
.tz-cat small{color:#94a3b8;font-size:11px}

/* --- 信息流列表 --- */
.tz-feed{background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.04);border:1px solid #f1f5f9}
.tz-feed-head{padding:16px 20px;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;justify-content:space-between}
.tz-feed-head h3{font-size:16px;font-weight:700;color:#1f2937}
.tz-feed-head .tz-more{color:#f97316;font-size:13px;text-decoration:none;font-weight:500}
.tz-feed-head .tz-more:hover{text-decoration:underline}
.tz-feed-item{padding:16px 20px;border-bottom:1px solid #f8fafc;display:flex;gap:14px;cursor:pointer;transition:.15s}
.tz-feed-item:last-child{border-bottom:none}
.tz-feed-item:hover{background:#fff7ed}
.tz-feed-item .tz-cat-tag{background:#fff7ed;color:#ea580c;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;flex-shrink:0;height:fit-content;margin-top:3px}
.tz-feed-item h4{font-size:15px;font-weight:600;margin-bottom:4px;color:#1f2937;display:flex;align-items:center;gap:8px}
.tz-feed-item .tz-pin{background:#f97316;color:#fff;font-size:10px;padding:1px 6px;border-radius:3px;font-weight:600}
.tz-feed-item .tz-meta{font-size:12px;color:#94a3b8;display:flex;gap:12px}
.tz-empty{padding:40px;text-align:center;color:#94a3b8;font-size:13px}

/* --- 门户 Hero 区 --- */
.portal-hero{background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 50%,#fed7aa 100%);padding:56px 24px 48px;text-align:center;position:relative;overflow:hidden}
.portal-hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M0 60 L60 0 M-5 5 L55 65 M5 -5 L65 55' stroke='%23f97316' stroke-opacity='.05' stroke-width='1'/></svg>");pointer-events:none}
.portal-hero h1{font-size:42px;font-weight:800;color:#9a3412;margin-bottom:12px;letter-spacing:-1px;position:relative;z-index:1}
.portal-hero h1 span{color:#ea580c}
.portal-hero p{color:#9a3412;font-size:16px;max-width:620px;margin:0 auto;line-height:1.7;opacity:.85;position:relative;z-index:1}
.portal-hero .tz-search-wrap{position:relative;z-index:1;display:flex;justify-content:center}
.portal-loc{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #fed7aa;border-radius:20px;padding:4px 14px;font-size:13px;color:#ea580c;font-weight:600;margin-bottom:14px}

/* --- 微信登录按钮 --- */
.wx-login-divider{display:flex;align-items:center;text-align:center;margin:16px 0 12px;color:#9ca3af;font-size:12px}
.wx-login-divider::before,.wx-login-divider::after{content:'';flex:1;border-bottom:1px solid #e5e7eb}
.wx-login-divider span{padding:0 12px}
.btn-wechat{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px 16px;background:#07c160;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:.15s}
.btn-wechat:hover{background:#06ad56}
.btn-wechat .wx-icon{font-size:18px}

/* --- 门户区块标题 --- */
.portal-sec{max-width:1140px;margin:0 auto;padding:40px 24px}
.portal-sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.portal-sec-h h2{font-size:22px;font-weight:800;color:#1f2937;letter-spacing:-.5px}
.portal-sec-h h2::before{content:'';display:inline-block;width:4px;height:22px;background:var(--tz-grad);border-radius:2px;margin-right:12px;vertical-align:-4px}
.portal-sec-h .tz-more{color:#94a3b8;font-size:13px;text-decoration:none}
.portal-sec-h .tz-more:hover{color:#ea580c}

/* --- 两栏布局 --- */
.portal-2col{display:grid;grid-template-columns:1fr 320px;gap:24px}
@media (max-width:860px){.portal-2col{grid-template-columns:1fr}}

/* --- 侧栏 --- */
.tz-side-card{background:#fff;border-radius:12px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.04);border:1px solid #f1f5f9;margin-bottom:18px}
.tz-side-card h4{font-size:14px;font-weight:700;margin-bottom:12px;color:#1f2937;display:flex;align-items:center;gap:6px}
.tz-side-card ul{list-style:none;padding:0;margin:0}
.tz-side-card li{padding:8px 0;border-bottom:1px dashed #f1f5f9;font-size:13px}
.tz-side-card li:last-child{border-bottom:none}
.tz-side-card li a{color:#475569;text-decoration:none}
.tz-side-card li a:hover{color:#ea580c}

/* --- 首页下载区：免费软件两列卡片 + 右侧热门下载 --- */
.dl-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.dl-card{background:#fff;border:1px solid #f1f5f9;border-radius:12px;padding:14px 16px;transition:.2s;display:flex;flex-direction:column;gap:8px}
.dl-card:hover{border-color:#fed7aa;box-shadow:0 6px 18px rgba(234,88,12,.1);transform:translateY(-2px)}
.dl-card-head{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#1f2937;line-height:1.4}
.dl-card-head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-card-desc{font-size:12px;color:#94a3b8;line-height:1.6;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dl-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:11px;color:#94a3b8}
.hot-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #f1f5f9;text-decoration:none;color:inherit}
.hot-row:hover .hot-name{color:#ea580c}
.hot-row:last-child{border-bottom:none}
.hot-no{width:20px;height:20px;flex:none;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.hot-row:nth-child(1) .hot-no{background:#fff7ed;color:#ea580c}
.hot-row:nth-child(2) .hot-no{background:#fef3c7;color:#d97706}
.hot-row:nth-child(3) .hot-no{background:#fce7f3;color:#be185d}
.hot-name{flex:1;min-width:0;font-size:13px;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:.2s}
.hot-dl{font-size:11px;color:#ea580c;font-weight:600;white-space:nowrap}
@media (max-width:860px){.dl-grid{grid-template-columns:1fr}}

/* --- 软件下载独立页 --- */
.dl-nav{background:#fff;border-bottom:1px solid #f1f5f9;position:sticky;top:0;z-index:30;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.dl-nav-inner{max-width:1140px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.dl-brand{display:flex;align-items:center;gap:10px;color:#1f2937;font-size:18px;font-weight:700;text-decoration:none}
.dl-links{display:flex;align-items:center;gap:22px;font-size:14px}
.dl-links a{color:#475569;text-decoration:none;font-weight:500;transition:.2s}
.dl-links a:hover,.dl-links a.on{color:#ea580c}
.dl-links .dl-login{background:var(--tz-grad,linear-gradient(90deg,#f97316,#ea580c));color:#fff;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600}
.dl-hero{background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 60%,#fed7aa 100%);border-bottom:1px solid #fed7aa}
.dl-hero-inner{max-width:1140px;margin:0 auto;padding:34px 24px 26px}
.dl-hero-inner h1{font-size:28px;font-weight:800;color:#9a3412;letter-spacing:-.5px;margin-bottom:8px}
.dl-hero-inner p{font-size:14px;color:#b45309;margin-bottom:4px}
.dl-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
.dl-search{display:flex;flex:1;min-width:260px;max-width:420px;background:#fff;border:1px solid #fed7aa;border-radius:10px;overflow:hidden}
.dl-search input{flex:1;border:none;outline:none;padding:10px 14px;font-size:13px;background:transparent}
.dl-search button{border:none;border-radius:0;background:linear-gradient(90deg,#f97316,#ea580c);color:#fff;padding:0 18px;font-size:13px;font-weight:600}
.dl-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.dl-chip{padding:6px 14px;border-radius:20px;background:#fff;border:1px solid #fed7aa;color:#9a3412;font-size:12.5px;font-weight:500;text-decoration:none;cursor:pointer;transition:.2s}
.dl-chip:hover{border-color:#ea580c;color:#ea580c}
.dl-chip.on{background:linear-gradient(90deg,#f97316,#ea580c);border-color:transparent;color:#fff;font-weight:600}
.pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:26px 0 8px}
.pager a,.pager span{min-width:36px;height:36px;padding:0 10px;border-radius:9px;border:1px solid #e2e8f0;background:#fff;color:#475569;font-size:13px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:.2s}
.pager a:hover{border-color:#fdba74;color:#ea580c}
.pager a.on{background:linear-gradient(90deg,#f97316,#ea580c);border-color:transparent;color:#fff;font-weight:700}
.pager a.dis{opacity:.4;cursor:not-allowed}
.pager .info{border:none;background:none;color:#94a3b8;font-size:12px;min-width:auto}
@media (max-width:760px){
  .dl-links{gap:14px}
  .dl-links a:not(.on):not(.dl-login){display:none}
  .dl-hero-inner{padding:24px 16px 20px}
  .dl-hero-inner h1{font-size:22px}
}

/* --- 分类图标的品牌色微调覆盖 --- */
.tz-cat-ic-1{background:#fff7ed;color:#ea580c}
.tz-cat-ic-2{background:#fef3c7;color:#d97706}
.tz-cat-ic-3{background:#fce7f3;color:#be185d}
.tz-cat-ic-4{background:#dcfce7;color:#16a34a}
.tz-cat-ic-5{background:#dbeafe;color:#2563eb}
.tz-cat-ic-6{background:#f3e8ff;color:#7c3aed}
.tz-cat-ic-7{background:#e0e7ff;color:#4f46e5}
.tz-cat-ic-8{background:#f1f5f9;color:#475569}
