*{box-sizing:border-box}
:root{--bg:#f4f7fb;--card:#fff;--text:#101828;--muted:#667085;--line:#e5e7eb;--blue:#1677ff;--green:#16a34a;--orange:#fa8c16;--red:#ef4444;--side:#071827}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--text);background:var(--bg)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app{display:flex;min-height:100vh}
.sidebar{width:270px;min-width:270px;background:linear-gradient(180deg,#05131f,#092239);padding:20px 16px;color:#fff}
.brand{height:138px;border-radius:18px;background:#000;border:1px solid rgba(255,232,0,.28);display:flex;align-items:center;justify-content:center;box-shadow:0 0 24px rgba(255,232,0,.16);margin-bottom:20px;overflow:hidden}
.brand-logo{display:block;width:236px;height:auto;object-fit:contain}
.nav{display:flex;flex-direction:column;gap:8px}
.nav-item{height:50px;border:0;border-radius:11px;background:transparent;color:#d7e3ef;text-align:left;padding:0 20px;font-weight:700;font-size:17px}
.nav-item:hover{background:rgba(255,255,255,.08)}
.nav-item.active{background:var(--blue);color:#fff;box-shadow:0 10px 20px rgba(22,119,255,.22)}
.nav-item.logout{margin-top:10px;color:#ffb4b4}
.main{flex:1;min-width:0}
.topbar{height:104px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}
.topbar h1{margin:0;font-size:34px}.topbar p{margin:9px 0 0;color:var(--muted);font-size:15px}
.top-actions{display:flex;align-items:center;gap:10px;color:#344054}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--green);display:inline-block}.user{background:#eef4ff;color:var(--blue);padding:8px 14px;border-radius:18px;font-weight:800}
.page{display:none;padding:28px 34px}.page.active{display:block}
.grid{display:grid;gap:18px}.home-grid{grid-template-columns:minmax(1050px,1fr) 560px;max-width:none;margin:0}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.span-main{grid-column:1}.template-card-wrap{grid-column:2;grid-row:1 / span 2}.system-card{grid-column:2}
.card h2{margin:0 0 18px;font-size:22px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.sub{margin:6px 0 0;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{border:1px solid var(--line);border-radius:14px;padding:26px;background:#fbfdff;min-height:104px}.stat b{display:block;font-size:42px;color:var(--blue);line-height:1}.stat span{display:block;margin-top:12px;color:var(--muted);font-size:15px}.stat.warning b{color:var(--orange)}.stat.danger b{color:var(--red)}.stat.success b{color:var(--green)}
.template-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.tpl{border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center}.tpl b{display:block;margin:10px 0 6px;font-size:15px}.tpl p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.paper{width:124px;height:150px;margin:0 auto;background:linear-gradient(#fff,#fafafa);border:1px solid #d9dee8;position:relative;box-shadow:0 6px 16px rgba(15,23,42,.06)}.paper strong{position:absolute;top:18px;left:0;right:0;font-size:11px}.paper:before{content:"";position:absolute;left:18px;right:18px;top:48px;height:1px;background:#ccd3dd;box-shadow:0 14px 0 #ccd3dd,0 28px 0 #ccd3dd,0 42px 0 #ccd3dd}.paper span{position:absolute;right:12px;bottom:12px;width:34px;height:34px;border:3px solid rgba(239,68,68,.8);border-radius:50%}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:900px}th{background:#f8fafc;text-align:left;color:#344054;font-size:14px;padding:14px;white-space:nowrap}td{border-top:1px solid #eef2f7;padding:14px;font-size:14px;white-space:nowrap}.tag{display:inline-block;border-radius:14px;padding:4px 10px;font-weight:700}.tag.ok{background:#ecfdf3;color:#027a48}.tag.soon{background:#fff7ed;color:#c2410c}.tag.expired{background:#fef2f2;color:#b42318}
.primary,.ghost,.danger-btn{border:0;border-radius:10px;height:40px;padding:0 16px;font-weight:800}.primary{background:var(--blue);color:#fff}.ghost{background:#eef4ff;color:var(--blue)}.danger-btn{background:#fff1f1;color:#d92d20}.small{height:34px;padding:0 12px;border-radius:8px;font-size:13px}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick button{height:118px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;padding:22px}.quick button:hover{border-color:var(--blue);box-shadow:0 8px 22px rgba(22,119,255,.12)}.quick b{display:block;font-size:18px}.quick span{display:block;color:var(--muted);font-size:14px;margin-top:10px}
.info-list p{display:flex;margin:0;padding:11px 0;border-bottom:1px solid #f1f3f6}.info-list span{width:78px;color:var(--muted)}.info-list b{font-weight:800}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{display:flex;flex-direction:column;gap:8px;color:#344054;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea,.filters input,.filters select{height:44px;border:1px solid #d0d5dd;border-radius:10px;padding:0 12px;background:#fff}.form-grid textarea{height:90px;padding:12px;resize:vertical}.full{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:12px}#matchTip{color:var(--blue);font-weight:800}
.filters{display:flex;gap:10px}.filters input{width:260px}
.rules{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.rules div{border:1px solid var(--line);border-radius:14px;padding:18px}.rules b{font-size:17px}.rules p,.empty{color:var(--muted);line-height:1.7}.logs{margin:0;padding-left:20px;color:#344054}.logs li{margin:8px 0}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;padding:24px}.modal.show{display:flex}.modal-box{width:min(900px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:18px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.modal-head h2{margin:0}.modal-head button{border:0;background:#eef4ff;color:#1677ff;border-radius:8px;padding:8px 14px;font-weight:800}
.cert-preview{width:720px;min-height:980px;margin:0 auto;background:#fff;border:1px solid #ddd;box-shadow:0 12px 32px rgba(15,23,42,.16);padding:72px 76px;position:relative;color:#111;font-family:"SimSun","宋体",serif}.cert-preview h3{text-align:center;font-size:30px;margin:0 0 46px}.cert-preview p{font-size:21px;line-height:2.05;text-indent:2em}.cert-preview .seal{position:absolute;right:92px;bottom:110px;width:150px;height:150px;border:5px solid rgba(220,38,38,.72);border-radius:50%;transform:rotate(-15deg)}.cert-preview .sign{text-align:right;margin-top:70px;font-size:20px;line-height:2}
@media(max-width:1300px){.home-grid{grid-template-columns:1fr}.span-main,.template-card-wrap,.system-card{grid-column:1}.template-card-wrap{grid-row:auto}.stats{grid-template-columns:repeat(2,1fr)}.quick{grid-template-columns:repeat(2,1fr)}}


/* ===== V3 响应式自适应修正 =====
   目标：自动适配 1366、1440、1600、1920、2K、4K、笔记本和小屏。
   原则：不固定死宽度，使用 clamp / minmax / auto-fit。
*/
html {
  font-size: clamp(14px, 0.78vw, 18px);
}

.app {
  width: 100%;
}

.sidebar {
  width: clamp(220px, 13vw, 286px);
  min-width: clamp(220px, 13vw, 286px);
  padding: clamp(14px, 1vw, 22px);
}

.brand {
  height: clamp(104px, 7.2vw, 148px);
}

.brand-logo {
  width: min(92%, 250px);
  max-height: 88%;
}

.nav {
  gap: clamp(6px, 0.5vw, 10px);
}

.nav-item {
  height: clamp(40px, 2.7vw, 54px);
  font-size: clamp(14px, 0.86vw, 18px);
  padding: 0 clamp(14px, 1vw, 22px);
}

.topbar {
  height: clamp(82px, 5.5vw, 112px);
  padding: 0 clamp(22px, 1.9vw, 42px);
}

.topbar h1 {
  font-size: clamp(24px, 1.55vw, 36px);
}

.topbar p {
  font-size: clamp(12px, 0.78vw, 16px);
}

.page {
  padding: clamp(18px, 1.45vw, 34px);
}

.home-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 30vw);
  gap: clamp(14px, 1vw, 22px);
}

.card {
  padding: clamp(16px, 1.25vw, 26px);
  border-radius: clamp(12px, 0.85vw, 18px);
}

.card h2 {
  font-size: clamp(18px, 1.08vw, 24px);
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 0.8vw, 18px);
}

.stat {
  min-height: clamp(86px, 5.5vw, 116px);
  padding: clamp(16px, 1.25vw, 28px);
}

.stat b {
  font-size: clamp(30px, 2vw, 46px);
}

.stat span {
  font-size: clamp(12px, 0.78vw, 16px);
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 0.8vw, 18px);
}

.tpl {
  padding: clamp(12px, 0.95vw, 20px);
}

.tpl b {
  font-size: clamp(13px, 0.78vw, 16px);
}

.tpl p {
  font-size: clamp(11px, 0.68vw, 13px);
}

.paper {
  width: clamp(92px, 6vw, 128px);
  height: clamp(112px, 7.4vw, 154px);
}

.quick {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.quick button {
  height: clamp(96px, 6vw, 126px);
  padding: clamp(16px, 1.1vw, 24px);
}

.quick b {
  font-size: clamp(15px, 0.9vw, 19px);
}

.quick span {
  font-size: clamp(12px, 0.75vw, 15px);
}

th {
  font-size: clamp(12px, 0.72vw, 15px);
  padding: clamp(10px, 0.75vw, 15px);
}

td {
  font-size: clamp(12px, 0.72vw, 15px);
  padding: clamp(10px, 0.75vw, 15px);
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.rules {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cert-preview {
  width: min(720px, 92vw);
  min-height: min(980px, 126vw);
}

/* 1600 以下：右侧栏缩窄，避免内容被挤 */
@media (max-width: 1600px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 28vw);
  }

  .sidebar {
    width: 238px;
    min-width: 238px;
  }

  .brand-logo {
    width: 212px;
  }
}

/* 1366 / 1440 笔记本：改为单列，避免右侧空白和卡片过挤 */
@media (max-width: 1450px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .span-main,
  .template-card-wrap,
  .system-card {
    grid-column: 1;
  }

  .template-card-wrap {
    grid-row: auto;
  }

  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 小屏笔记本和平板：侧栏变窄 */
@media (max-width: 1100px) {
  .app {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
    display: block;
    padding: 12px;
  }

  .brand {
    height: 86px;
    margin-bottom: 10px;
  }

  .brand-logo {
    width: 210px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-item {
    text-align: center;
    padding: 0 10px;
  }

  .topbar {
    height: auto;
    min-height: 82px;
    padding: 18px;
    align-items: flex-start;
    gap: 14px;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机或极小窗口 */
@media (max-width: 720px) {
  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters input {
    width: 100%;
  }

  table {
    min-width: 820px;
  }
}


/* ===== V4 卡片视觉修正：恢复更好看的数据概览和快捷操作 ===== */
.stats {
  align-items: stretch;
}

.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 0.9vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(22,119,255,.10);
  background:
    radial-gradient(circle at 92% 12%, rgba(22,119,255,.10), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.stat::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(22,119,255,.06);
}

.stat-icon {
  width: clamp(46px, 3vw, 58px);
  height: clamp(46px, 3vw, 58px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: clamp(18px, 1vw, 22px);
  box-shadow: 0 10px 22px rgba(22,119,255,.20);
  flex: 0 0 auto;
}

.stat-text {
  position: relative;
  z-index: 1;
}

.stat.blue .stat-icon {
  background: linear-gradient(135deg, #1677ff, #4f9cff);
}

.stat.warning {
  border-color: rgba(250,140,22,.14);
  background:
    radial-gradient(circle at 92% 12%, rgba(250,140,22,.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fffaf3 100%);
}

.stat.warning .stat-icon {
  background: linear-gradient(135deg, #fa8c16, #ffb45c);
  box-shadow: 0 10px 22px rgba(250,140,22,.20);
}

.stat.warning::after {
  background: rgba(250,140,22,.08);
}

.stat.danger {
  border-color: rgba(239,68,68,.14);
  background:
    radial-gradient(circle at 92% 12%, rgba(239,68,68,.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff7f7 100%);
}

.stat.danger .stat-icon {
  background: linear-gradient(135deg, #ef4444, #ff7777);
  box-shadow: 0 10px 22px rgba(239,68,68,.20);
}

.stat.danger::after {
  background: rgba(239,68,68,.08);
}

.stat.success {
  border-color: rgba(22,163,74,.14);
  background:
    radial-gradient(circle at 92% 12%, rgba(22,163,74,.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f5fff9 100%);
}

.stat.success .stat-icon {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  box-shadow: 0 10px 22px rgba(22,163,74,.20);
}

.stat.success::after {
  background: rgba(22,163,74,.08);
}

.quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  border: 1px solid #e5eaf2;
  background:
    radial-gradient(circle at 100% 0%, rgba(22,119,255,.09), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.quick button::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(22,119,255,.06);
}

.quick button:hover {
  transform: translateY(-1px);
  border-color: rgba(22,119,255,.45);
  box-shadow: 0 12px 28px rgba(22,119,255,.12);
}

.quick i {
  grid-row: 1 / span 2;
  width: clamp(44px, 2.8vw, 54px);
  height: clamp(44px, 2.8vw, 54px);
  border-radius: 16px;
  background: linear-gradient(135deg, #1677ff, #4f9cff);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(17px, 0.95vw, 21px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(22,119,255,.20);
  position: relative;
  z-index: 1;
}

.quick strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(16px, 0.95vw, 20px);
  color: #101828;
}

.quick span {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  line-height: 1.55;
}

/* 覆盖旧 quick b 样式 */
.quick b {
  display: none;
}

@media (max-width: 1450px) {
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .quick {
    grid-template-columns: 1fr;
  }
}


/* ===== V5：LOGO 去外框 + 新增授权表单列表排列 ===== */

/* LOGO：不要外面卡片框，直接贴在侧边栏背景上，只保留发光凸显 */
.brand {
  height: clamp(96px, 6.4vw, 130px);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 22px;
  overflow: visible;
  position: relative;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 240px);
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,232,0,.22), rgba(255,232,0,.08) 45%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.brand-logo {
  width: min(92%, 238px);
  max-height: 88%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255,232,0,.30)) drop-shadow(0 0 18px rgba(255,232,0,.12));
}

/* 新增授权：改为列表式表单，一行一个字段 */
#new .card {
  max-width: 1180px;
}

#new .form-grid {
  display: block;
}

#new .form-grid label {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 14px;
  color: #101828;
  font-weight: 800;
}

#new .form-grid input,
#new .form-grid select {
  width: 100%;
  height: 46px;
}

#new .form-grid textarea {
  width: 100%;
  height: 112px;
}

#new .form-grid label.full {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
}

#new .form-grid label.full textarea {
  margin-top: 0;
}

#new .form-actions.full {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 186px;
  margin-top: 8px;
}

/* 清空表单按钮别贴太边 */
#new .card-head {
  align-items: flex-start;
}

/* 小屏下表单自动变回上下排列 */
@media (max-width: 900px) {
  #new .form-grid label,
  #new .form-grid label.full {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #new .form-actions.full {
    padding-left: 0;
    flex-wrap: wrap;
  }
}


/* ===== V7：严格使用原始 LOGO 文件，不裁剪、不重绘、不改像素 ===== */
.sidebar {
  width: clamp(260px, 15vw, 320px);
  min-width: clamp(260px, 15vw, 320px);
  overflow: visible;
}

.brand {
  height: clamp(120px, 7.5vw, 160px);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative;
  padding: 0;
  margin-bottom: 22px;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 280px);
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,232,0,.22), rgba(255,232,0,.08) 42%, transparent 74%);
  filter: blur(14px);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block !important;
  width: min(92%, 280px) !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 0 10px rgba(255,232,0,.28)) drop-shadow(0 0 20px rgba(255,232,0,.14));
}

/* 低于 1600 宽度也不裁 LOGO，只整体缩放 */
@media (max-width: 1600px) {
  .sidebar {
    width: 260px;
    min-width: 260px;
  }

  .brand-logo {
    width: min(92%, 250px) !important;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .brand {
    height: 110px;
  }

  .brand-logo {
    width: min(300px, 78vw) !important;
  }
}


/* ===== V9：修复 LOGO 显示比例，不改原图文件 =====
   原图仍是用户上传 PNG，字节级一致。
   只把整张原图按合适宽度显示在侧栏里，不再过度放大。
*/
.sidebar {
  width: 290px !important;
  min-width: 290px !important;
  overflow: hidden !important;
}

.brand {
  height: 132px !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 0 22px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,232,0,.28), rgba(255,232,0,.10) 44%, transparent 76%);
  filter: blur(15px);
  pointer-events: none;
}

.brand-logo {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 350px !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 0 10px rgba(255,232,0,.28)) drop-shadow(0 0 20px rgba(255,232,0,.14));
}

@media (max-width: 1600px) {
  .sidebar {
    width: 290px !important;
    min-width: 290px !important;
  }

  .brand-logo {
    width: 350px !important;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 100% !important;
    min-width: 0 !important;
  }

  .brand {
    height: 112px !important;
  }

  .brand-logo {
    width: 330px !important;
  }
}


/* ===== V10：LOGO 尺寸最终修正，只缩小显示，不改原图 ===== */
.sidebar {
  width: 270px !important;
  min-width: 270px !important;
  overflow: hidden !important;
}

.brand {
  height: 118px !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,232,0,.24), rgba(255,232,0,.09) 44%, transparent 76%);
  filter: blur(13px);
  pointer-events: none;
}

.brand-logo {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 300px !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 0 8px rgba(255,232,0,.26)) drop-shadow(0 0 16px rgba(255,232,0,.12));
}

@media (max-width: 1600px) {
  .sidebar {
    width: 270px !important;
    min-width: 270px !important;
  }

  .brand-logo {
    width: 300px !important;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 100% !important;
    min-width: 0 !important;
  }

  .brand {
    height: 104px !important;
  }

  .brand-logo {
    width: 290px !important;
  }
}


/* ===== V11：仅预览，LOGO 再缩小三分之一，不生成源码包 ===== */
.brand {
  height: 96px !important;
  margin-bottom: 18px !important;
}

.brand::before {
  width: 150px !important;
  height: 52px !important;
  filter: blur(11px) !important;
}

.brand-logo {
  width: 200px !important;
  filter: drop-shadow(0 0 7px rgba(255,232,0,.24)) drop-shadow(0 0 13px rgba(255,232,0,.10)) !important;
}

@media (max-width: 1600px) {
  .brand-logo {
    width: 200px !important;
  }
}

@media (max-width: 1100px) {
  .brand {
    height: 92px !important;
  }

  .brand-logo {
    width: 200px !important;
  }
}


/* ===== V12：仅预览，LOGO 在 V11 基础上增大十分之一 ===== */
.brand {
  height: 102px !important;
}

.brand::before {
  width: 165px !important;
  height: 58px !important;
}

.brand-logo {
  width: 220px !important;
}

@media (max-width: 1600px) {
  .brand-logo {
    width: 220px !important;
  }
}

@media (max-width: 1100px) {
  .brand-logo {
    width: 220px !important;
  }
}


/* ===== V13：仅预览，左侧菜单文字协调放大 ===== */
.nav {
  gap: 9px !important;
}

.nav-item {
  height: 52px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  padding: 0 22px !important;
  border-radius: 12px !important;
}

.nav-item.active {
  box-shadow: 0 10px 24px rgba(22,119,255,.24) !important;
}

.nav-item.logout {
  color: #ff9f9f !important;
}

@media (max-width: 1600px) {
  .nav-item {
    height: 52px !important;
    font-size: 18px !important;
  }
}

@media (max-width: 1100px) {
  .nav-item {
    height: 48px !important;
    font-size: 16px !important;
    text-align: center !important;
  }
}


/* ===== V15：侧边栏文字改细一点，更协调 ===== */
.nav-item {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  letter-spacing: 0.1px !important;
}

.nav-item.active {
  font-weight: 700 !important;
}

@media (max-width: 1600px) {
  .nav-item {
    font-size: 17px !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 1100px) {
  .nav-item {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}

.dl{height:34px;padding:0 12px;border-radius:8px;font-size:13px;background:#eef4ff;color:#1677ff;font-weight:800;}
