:root{--bg:#eef5ff;--card:rgba(255,255,255,.92);--text:#172033;--muted:#6b7280;--primary:#2563eb;--primary-dark:#1d4ed8;--border:#dbe7ff;--danger:#dc2626;--warn:#b45309;--ok:#16a34a;--sidebar:#07111f;--sidebarText:#dbeafe;--glow:rgba(37,99,235,.22)}
*{box-sizing:border-box}html,body{height:100%;max-height:100%;overflow:hidden}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC",sans-serif;background:var(--bg);color:var(--text);width:100%;max-width:100%;}
body:before{content:"";position:fixed;inset:0;z-index:-3;background:radial-gradient(circle at 8% 12%,rgba(37,99,235,.18),transparent 28%),radial-gradient(circle at 78% 8%,rgba(14,165,233,.15),transparent 24%),radial-gradient(circle at 55% 92%,rgba(249,115,22,.12),transparent 26%),linear-gradient(135deg,#f8fbff 0%,#eef5ff 48%,#f8fbff 100%)}
body:after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:linear-gradient(rgba(37,99,235,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.06) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),rgba(0,0,0,.2));animation:gridMove 18s linear infinite}
@keyframes gridMove{from{background-position:0 0,0 0}to{background-position:84px 84px,84px 84px}}@keyframes cardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes floatGlow{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(12px,-18px,0) scale(1.04)}}@keyframes pulseLine{0%{transform:translateX(-100%);opacity:0}20%,80%{opacity:.8}100%{transform:translateX(100%);opacity:0}}
#app{display:block;height:100vh;width:100%;max-width:100%;overflow:hidden}.sidebar{width:236px;min-width:236px;background:linear-gradient(180deg,#06111f 0%,#0f172a 100%);color:var(--sidebarText);padding:22px 16px;position:fixed;left:0;top:0;bottom:0;z-index:20;height:100vh;overflow:hidden;box-shadow:12px 0 32px rgba(15,23,42,.22);isolation:isolate}.sidebar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 10%,rgba(37,99,235,.35),transparent 30%),radial-gradient(circle at 80% 70%,rgba(14,165,233,.16),transparent 32%);z-index:-1;animation:floatGlow 9s ease-in-out infinite}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.logo{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#f97316,#ffb347);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 12px 30px rgba(249,115,22,.35)}.brand h1{font-size:16px;margin:0;white-space:nowrap;font-weight:700}.brand p{margin:2px 0 0;color:#93c5fd;font-size:12px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{border:1px solid transparent;text-align:left;background:transparent;color:#bfdbfe;padding:12px 14px;border-radius:12px;cursor:pointer;font-size:14px;font-weight:500;transition:.2s}.nav button.active,.nav button:hover{background:rgba(37,99,235,.18);border-color:rgba(147,197,253,.22);color:#fff;box-shadow:0 8px 22px rgba(37,99,235,.12)}.main{margin-left:236px;width:calc(100% - 236px);min-width:0;max-width:calc(100% - 236px);height:100vh;overflow-y:auto;overflow-x:hidden;padding:0 24px 40px}.main::-webkit-scrollbar{width:8px;height:8px}.main::-webkit-scrollbar-thumb{background:rgba(100,116,139,.38);border-radius:999px}.main::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar{display:none}.sidebar{scrollbar-width:none;-ms-overflow-style:none}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;position:relative}.topbar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(37,99,235,.45),transparent);overflow:hidden}.topbar strong{font-size:22px;margin-right:12px}.topbar span{color:var(--muted)}.userbox{display:flex;align-items:center;gap:12px}.page{animation:cardIn .28s ease-out}.card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 12px 30px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.65);backdrop-filter:blur(10px);position:relative;overflow:hidden;animation:cardIn .3s ease-out}.card:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,rgba(37,99,235,.65),rgba(14,165,233,.45),transparent);transform:translateX(-100%);animation:pulseLine 4.2s ease-in-out infinite}.card:hover{box-shadow:0 16px 42px rgba(15,23,42,.09),0 0 0 1px rgba(37,99,235,.05)}.login-card{max-width:460px;margin:60px auto}.card h2{margin:0 0 14px;font-size:18px}.card h3{margin:16px 0 10px;font-size:15px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-head h2{margin-bottom:6px}.muted{color:var(--muted);font-size:13px}.warn{color:var(--warn);background:#fffbeb;border:1px solid #fde68a;padding:10px 12px;border-radius:10px}.row{display:flex;gap:10px;align-items:center}.wrap{flex-wrap:wrap}.sync-row{margin-top:14px}input,select,textarea{border:1px solid var(--border);border-radius:12px;padding:11px 12px;font-size:14px;background:rgba(255,255,255,.95);min-height:42px;outline:none;transition:.18s}input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.1)}input,select{min-width:180px}textarea{width:100%;height:120px;resize:vertical;margin-bottom:12px}label{display:block;margin:12px 0 6px;font-weight:700;font-size:14px}.check{display:flex;align-items:center;gap:6px;margin:0;font-weight:600;white-space:nowrap}.check input{min-width:unset;min-height:unset}button{border:0;border-radius:11px;padding:11px 14px;cursor:pointer;font-weight:800;transition:.2s}.nav button{font-weight:500}.primary{background:linear-gradient(135deg,var(--primary),#0ea5e9);color:white;box-shadow:0 10px 24px rgba(37,99,235,.2)}.primary:hover{background:linear-gradient(135deg,var(--primary-dark),#0284c7);transform:translateY(-1px)}.ghost{background:#eef2ff;color:#1d4ed8}.ghost:hover{background:#dbeafe}.hidden{display:none!important}.grid{display:grid;gap:14px}.stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-bottom:18px}.stat{background:rgba(255,255,255,.9);border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.05);position:relative;overflow:hidden}.stat:after{content:"";position:absolute;right:-25px;top:-25px;width:70px;height:70px;border-radius:50%;background:rgba(37,99,235,.08)}.stat .num{font-size:28px;font-weight:900;margin-bottom:6px}.stat .label{color:var(--muted);font-size:13px}.table-wrap{max-width:100%;overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.table th{background:#f8fafc;color:#475569}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e5e7eb;color:#374151;font-weight:800;font-size:12px}.badge.ok{background:#dcfce7;color:#166534}.badge.warn{background:#fef3c7;color:#92400e}.badge.danger{background:#fee2e2;color:#991b1b}.cloud-on{color:#ea580c;font-weight:900}.cloud-off{color:#64748b;font-weight:900}.msg{margin-top:12px;color:var(--danger)}.toast{position:fixed;right:28px;bottom:28px;background:#111827;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.2);z-index:99}.mini-btn{padding:6px 10px;border-radius:8px;background:#eef2ff;color:#1d4ed8;margin-right:6px}.danger-btn{background:#fee2e2!important;color:#991b1b!important}.table input[type=checkbox]{min-width:unset;min-height:unset}.table td button{margin-bottom:4px}.table-wrap p{margin:8px 0}.row.wrap input{min-width:160px}

/* v1.0.4 独立登录 / 注册验证码 / 科技感背景 */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1fr) 560px;background:linear-gradient(135deg,#07111f 0%,#10254e 55%,#0b4a7a 100%);color:#fff;position:relative;overflow:hidden}.auth-shell:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(147,197,253,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(147,197,253,.08) 1px,transparent 1px);background-size:36px 36px;animation:gridMove 14s linear infinite}.auth-left{padding:56px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;z-index:1}.auth-left:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 22% 24%,rgba(59,130,246,.32),transparent 28%),radial-gradient(circle at 68% 66%,rgba(14,165,233,.2),transparent 24%);z-index:-1;animation:floatGlow 8s ease-in-out infinite}.tech-orbit{position:absolute;right:58px;top:88px;width:210px;height:210px;border-radius:50%;border:1px solid rgba(147,197,253,.22);box-shadow:0 0 60px rgba(37,99,235,.3),inset 0 0 35px rgba(14,165,233,.18);animation:spin 18s linear infinite}.tech-orbit:before,.tech-orbit:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(147,197,253,.16)}.tech-orbit:before{inset:28px}.tech-orbit:after{inset:64px;background:rgba(37,99,235,.12)}@keyframes spin{to{transform:rotate(360deg)}}.auth-brand{display:flex;gap:14px;align-items:center;position:relative;z-index:1}.auth-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#f97316,#fbbf24);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px;box-shadow:0 18px 45px rgba(249,115,22,.35)}.auth-brand h1{margin:0;font-size:24px}.auth-brand p{margin:6px 0 0;color:#bfdbfe}.auth-feature{max-width:720px;position:relative;z-index:1}.eyebrow{display:inline-flex;padding:7px 11px;border:1px solid rgba(219,234,254,.22);border-radius:999px;background:rgba(255,255,255,.08);color:#bfdbfe;font-size:12px;margin-bottom:18px}.auth-feature h2{font-size:44px;line-height:1.12;margin:0 0 18px;letter-spacing:-.02em}.auth-feature p{font-size:16px;line-height:1.8;color:#dbeafe}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;margin-top:24px}.feature-grid span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:14px;color:#eff6ff;backdrop-filter:blur(8px)}.auth-right{background:rgba(248,250,252,.92);color:var(--text);display:flex;align-items:center;justify-content:center;padding:38px;position:relative;z-index:2;box-shadow:-18px 0 50px rgba(2,6,23,.18)}.auth-card{width:100%;max-width:480px;background:#fff;border:1px solid var(--border);border-radius:24px;padding:32px;box-shadow:0 24px 60px rgba(15,23,42,.18)}.auth-card h2{margin:0 0 8px;font-size:28px}.wide{width:100%;margin-top:16px}.auth-switch{margin-top:16px;text-align:center;color:var(--muted);font-size:14px}.link-btn{background:transparent;color:var(--primary);padding:0;margin:0;font-weight:900}.auth-card input{width:100%;min-width:100%}.captcha-row{display:grid;grid-template-columns:1fr 150px;gap:10px;align-items:center}.captcha-box{height:44px;padding:0;background:#eef6ff;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.captcha-box svg{width:100%;height:44px;display:block}.page.hidden{display:none!important}

/* modal */
.modal-overlay{position:fixed;inset:0;background:rgba(2,6,23,.55);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:90}.modal-dialog{width:100%;max-width:560px;max-height:88vh;overflow:auto;background:#fff;border:1px solid rgba(219,231,255,.9);border-radius:22px;box-shadow:0 30px 80px rgba(2,6,23,.35);animation:cardIn .2s ease-out}.modal-wide{max-width:760px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,#f8fbff,#eef6ff)}.modal-header h3{margin:0;font-size:19px}.modal-close{background:transparent;color:#64748b;font-size:24px;line-height:1;padding:0 8px}.modal-body{padding:20px 22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--border);background:#f8fafc}.modal-body input,.modal-body select,.modal-body textarea{width:100%;min-width:100%}.modal-body textarea{height:190px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-check{margin:12px 0 0}.modal-check input{width:auto;min-width:unset!important}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-left{min-height:auto;padding:28px}.auth-feature,.tech-orbit{display:none}.auth-right{min-height:calc(100vh - 120px);padding:24px}.captcha-row{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}}
@media(max-width:800px){.sidebar{width:86px;min-width:86px}.brand div:not(.logo),.nav button{font-size:0}.nav button:before{font-size:14px}.main{margin-left:86px;width:calc(100% - 86px);max-width:calc(100% - 86px);height:100vh;padding:0 12px}.row{align-items:stretch;flex-direction:column}input,select{width:100%}}


/* v1.0.6：取消左侧菜单滚动条与页面级空白滚动，只保留内容区必要滚动，避免滚动条一会出现一会消失。 */

/* v1.0.7：列表分页、按域名筛选 DNS、域名跳转操作 */
.toolbar-row{margin:10px 0 14px}.toolbar-row input{min-width:260px}.pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:13px}.pager button[disabled]{opacity:.45;cursor:not-allowed;transform:none}.list-title{display:inline-flex;align-items:center;margin:0 0 10px;padding:8px 12px;border-radius:999px;background:#eef6ff;border:1px solid var(--border);color:#1d4ed8;font-size:13px;font-weight:700}.zone-check{min-width:unset!important;min-height:unset!important}
.tenant-scope{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:12px}.tenant-scope span{font-size:13px;color:#64748b}.tenant-scope select{min-width:220px;height:38px;min-height:38px;padding:8px 10px;border-radius:10px}.super-only.hidden{display:none!important}.tenant-card-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tenant-tag{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:600}


/* v1.0.9：仪表盘说明文字移除，统计卡片固定为桌面端两行展示 */
.stats.stats-two-rows{
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
}
.stats.stats-two-rows .stat{
  min-height:72px;
  padding:16px 18px;
}
.stats.stats-two-rows .stat .num{
  font-size:26px;
}
@media(max-width:1400px){
  .stats.stats-two-rows{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:1000px){
  .stats.stats-two-rows{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .stats.stats-two-rows{grid-template-columns:1fr;}
}


/* v1.0.10：DNS 长 TXT / DKIM 内容列表摘要显示，避免撑宽表格 */
#dnsList .table{
  table-layout:fixed;
  min-width:980px;
}
#dnsList .table th:nth-child(1), #dnsList .table td:nth-child(1){width:52px;}
#dnsList .table th:nth-child(2), #dnsList .table td:nth-child(2){width:70px;}
#dnsList .table th:nth-child(3), #dnsList .table td:nth-child(3){width:76px;}
#dnsList .table th:nth-child(4), #dnsList .table td:nth-child(4){width:220px;max-width:220px;overflow:hidden;text-overflow:ellipsis;}
#dnsList .table th:nth-child(5), #dnsList .table td:nth-child(5){width:360px;max-width:360px;}
#dnsList .table th:nth-child(6), #dnsList .table td:nth-child(6){width:80px;}
#dnsList .table th:nth-child(7), #dnsList .table td:nth-child(7){width:130px;}
#dnsList .table th:nth-child(8), #dnsList .table td:nth-child(8){width:220px;}
.dns-content-preview{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:12px;
  color:#334155;
}
.dns-content-preview.is-long{
  padding:6px 8px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#f8fafc;
}
.dns-edit-textarea{
  min-height:156px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  line-height:1.55;
  word-break:break-all;
}
.dns-edit-textarea.compact{min-height:96px;}
@media(max-width:1200px){
  #dnsList .table th:nth-child(5), #dnsList .table td:nth-child(5){width:300px;max-width:300px;}
}

/* v1.0.11：独立授权验证页，后台登录前强制授权 */
.license-status{
  border:1px solid var(--border);
  border-radius:16px;
  background:#f8fbff;
  padding:14px;
  margin:16px 0;
  line-height:1.7;
}
.license-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  margin-bottom:8px;
}
.license-badge.ok{background:#dcfce7;color:#166534;}
.license-badge.danger{background:#fee2e2;color:#991b1b;}
.license-instance{
  word-break:break-all;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
.small-note{font-size:12px;line-height:1.7;margin-top:14px;}
