:root{
  --wrap:1200px;

  --bg:#f4f7ff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;

  --p1:#6d28d9; /* 紫 */
  --p2:#2563eb; /* 蓝 */
  --p3:#06b6d4; /* 青 */
  --p4:#22c55e; /* 绿 */
  --p5:#f59e0b; /* 橙 */

  --shadow: 0 14px 40px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 26px rgba(15, 23, 42, .07);
  --r:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.portal-body{
  margin:0;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(109,40,217,.12), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(6,182,212,.14), transparent 55%),
    radial-gradient(900px 650px at 50% 110%, rgba(245,158,11,.10), transparent 55%),
    linear-gradient(180deg, #f7f9ff, var(--bg));
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--p2); text-decoration:underline; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 16px; }
.muted{ color:var(--muted); }
.sep{ color:#cbd5e1; margin:0 8px; }
.sr-only{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.dot{ opacity:.7; margin:0 10px; }

/* 顶部彩色工具条 */
.topbar{
  color:rgba(255,255,255,.88);
  background:
    linear-gradient(90deg, rgba(109,40,217,.95), rgba(37,99,235,.95), rgba(6,182,212,.92));
  box-shadow: 0 10px 24px rgba(37,99,235,.16);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  font-size:12px;
}
.topbar a{ color:rgba(255,255,255,.92); text-decoration:none; margin-left:10px; }
.topbar a:hover{ color:#fff; text-decoration:none; }
.topbar-brand{ font-weight:900; letter-spacing:.3px; }
.topbar-right a{ margin-left:12px; opacity:.95; }

/* 主头部：带“背景图”纹理（SVG dataURI） */
.header{
  position:relative;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}
.header::before{
  content:"";
  position:absolute;
  inset:-40px -40px auto -40px;
  height:200px;
  background:
    radial-gradient(220px 140px at 12% 45%, rgba(109,40,217,.16), transparent 70%),
    radial-gradient(220px 140px at 52% 10%, rgba(37,99,235,.14), transparent 70%),
    radial-gradient(220px 140px at 88% 50%, rgba(6,182,212,.14), transparent 70%);
  pointer-events:none;
}
.header::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23e6eeff' stroke-width='1'%3E%3Cpath d='M0 20h140M0 60h140M0 100h140'/%3E%3Cpath d='M20 0v140M60 0v140M100 0v140'/%3E%3C/g%3E%3C/svg%3E");
  opacity:.55;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.header-inner{
  position:relative;
  display:grid;
  grid-template-columns: 320px 1fr 260px;
  gap:18px;
  align-items:center;
  padding:18px 16px;
}

/* 品牌 */
.brand-link{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:46px; height:46px; border-radius:16px;
  background: linear-gradient(135deg, var(--p1), var(--p2), var(--p3));
  box-shadow: 0 14px 30px rgba(109,40,217,.18);
}
.brand-name{
  display:block;
  font-size:22px;
  font-weight:1000;
  letter-spacing:.6px;
  line-height:1.1;
}
.brand-sub{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

/* 搜索：更细腻（内阴影 + 高光） */
.searchbox{ min-width: 520px; }
.search-form{
  display:flex;
  border-radius: 14px;
  overflow:hidden;
  background: #ffffff;
  border:1px solid #dbeafe;
  box-shadow: var(--shadow2);
}
.search-form input{
  flex:1;
  height:44px;
  border:0;
  outline:none;
  padding:0 14px;
  font-size:14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.search-form button{
  width:104px;
  border:0;
  cursor:pointer;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, var(--p2), var(--p3));
}
.search-form button:hover{ filter:brightness(1.03); }

.hotwords{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hotwords a{
  color:#334155;
  background:#f1f5ff;
  border:1px solid #e2e8ff;
  padding:4px 10px;
  border-radius:999px;
  text-decoration:none;
}
.hotwords a:hover{
  background:#eaf2ff;
  border-color:#c7dbff;
  color:var(--p2);
}

/* 右侧数据块：更像门户角标 */
.head-stats{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.stat{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border:1px solid #e6eeff;
  border-radius: 14px;
  padding:10px 12px;
  min-width:122px;
  box-shadow: var(--shadow2);
}
.stat .k{ font-size:12px; color:var(--muted); }
.stat .v{ margin-top:6px; font-weight:1000; display:flex; gap:6px; align-items:baseline; }
.stat .num{ font-size:18px; color:var(--p2); }
.stat .u{ font-size:12px; color:var(--muted); }

/* 导航：彩色频道条（更丰富） */
.nav{
  background: linear-gradient(90deg, #1d4ed8, #2563eb, #06b6d4);
  box-shadow: 0 10px 24px rgba(37,99,235,.16);
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
}
.nav-item{
  height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  font-size:14px;
  color:rgba(255,255,255,.95);
  border-radius: 999px;
  text-decoration:none;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}
.nav-item:hover{
  background: rgba(255,255,255,.14);
  text-decoration:none;
}
.nav-item.active{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.28);
  font-weight:1000;
}
.nav-spacer{ flex:1; }
.nav-mini{
  height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  font-size:12px;
  color:rgba(255,255,255,.92);
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.nav-mini:hover{ background: rgba(255,255,255,.12); text-decoration:none; }

/* 面包屑：带浅色条 */
.crumbs{
  background: rgba(255,255,255,.78);
  border-bottom:1px solid #edf2ff;
  backdrop-filter: blur(10px);
}
.crumbs .wrap{ padding:10px 16px; }
.crumbs-default{ font-size:12px; color:var(--muted); }
.crumbs-default a{ color:#334155; }

/* 主体 */
.main{ padding:16px 0 30px; }

/* Footer */
.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  padding:18px 16px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.footer-links a{ color:var(--muted); margin:0 8px; }
.footer-links a:hover{ color:var(--p2); }
.footer-copy{ margin-top:8px; color:#334155; font-weight:900; }
.footer-tip{ margin-top:8px; font-size:11px; opacity:.85; }

/* 响应式（只在 CSS） */
@media (max-width: 1100px){
  .header-inner{ grid-template-columns: 1fr; }
  .searchbox{ min-width:auto; }
  .head-stats{ justify-content:flex-start; }
}
@media (max-width: 640px){
  .nav-inner{ flex-wrap:wrap; }
}
