/* ==========================
   站内动态 · 现代蓝渐变企业门户
   ========================== */
:root{
  --brand:#2e5cd5;
  --brand-2:#4a7cff;
  --brand-deep:#2340a0;
  --brand-grad:linear-gradient(135deg,#2340a0 0%,#2e5cd5 46%,#4a7cff 100%);
  --brand-grad-soft:linear-gradient(135deg,rgba(35,64,160,.06),rgba(74,124,255,.1));
  --accent:#ff8a1e;
  --ink:#262b33;
  --ink-2:#5a6474;
  --ink-3:#9099a8;
  --line:#e7eaf2;
  --line-soft:#f0f2f8;
  --bg:#f4f6fb;
  --card:#ffffff;
  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 2px 10px rgba(30,50,100,.06);
  --shadow:0 10px 30px -12px rgba(30,50,100,.18);
  --shadow-lg:0 18px 44px -16px rgba(30,50,100,.28);
  --focus:0 0 0 4px rgba(46,92,213,.16);
  --tr:.22s cubic-bezier(.4,0,.2,1);
}
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; overflow-x:hidden; }
body{
  font-family:"PingFang SC","Microsoft YaHei",Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1200px 420px at 10% -6%, rgba(46,92,213,.08), transparent 60%),
    radial-gradient(1000px 380px at 92% -8%, rgba(74,124,255,.10), transparent 55%),
    var(--bg);
  background-attachment:fixed;
  color:var(--ink); font-size:14px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--brand); text-decoration:none; transition:color var(--tr); }
a:hover{ color:var(--brand-deep); }
.container{ max-width:100vw; margin:0 auto; padding:0 20px; }

/* ---------- 头部 ---------- */
.site-header{
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;
  position:sticky; top:0; z-index:900;
  box-shadow:0 1px 0 var(--line), 0 8px 24px -20px rgba(30,50,100,.35);
}
.header-inner{ display:flex; align-items:center; height:64px; gap:20px; }
.logo{
  font-size:21px; font-weight:800; letter-spacing:.3px;
  background:var(--brand-grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  display:inline-flex; align-items:center; gap:8px;
}
.logo::before{
  content:""; width:10px; height:10px; border-radius:3px;
  background:var(--brand-grad); box-shadow:0 0 0 4px rgba(46,92,213,.12);
}
.site-nav{ display:flex; gap:6px; }
.nav-link{
  padding:8px 16px; border-radius:999px; color:var(--ink-2);
  font-weight:600; font-size:14px; transition:all var(--tr);
}
.nav-link:hover{ background:var(--brand-grad-soft); color:var(--brand); }
.nav-link.active{
  background:var(--brand-grad); color:#fff;
  box-shadow:0 6px 16px -8px rgba(46,92,213,.8);
}
.user-area{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.user-hi{ color:var(--ink-2); font-weight:600; font-size:13.5px; }

/* ---------- 按钮 ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border:1px solid transparent; border-radius:999px; padding:9px 18px; cursor:pointer;
  font-size:14px; font-weight:600; transition:all var(--tr); }
.btn:focus-visible{ outline:none; box-shadow:var(--focus); }
.btn-primary{ background:var(--brand-grad); color:#fff; box-shadow:0 8px 18px -10px rgba(46,92,213,.85); }
.btn-primary:hover{ color:#fff; transform:translateY(-1px); box-shadow:0 12px 24px -10px rgba(46,92,213,.9); }
.btn-primary:active{ transform:translateY(0); }
.btn-outline{ border-color:#c6cfe9; color:var(--brand); background:#fff; }
.btn-outline:hover{ border-color:var(--brand); background:var(--brand-grad-soft); }
.btn-link{ background:none; color:var(--brand); padding:6px 10px; }
.btn-link:hover{ background:var(--brand-grad-soft); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none !important; }
.btn-add-anno{ padding:7px 14px; font-size:13px; }

/* ---------- 布局 ---------- */
.main{ padding:26px 40px 44px; min-height:60vh; }

/* ---------- 卡片面板 ---------- */
.panel{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow-sm); transition:box-shadow var(--tr), transform var(--tr);
}
.panel:hover{ box-shadow:var(--shadow); }
.panel-head{ display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--line-soft); position:relative; }
.panel-head::before{ content:""; position:absolute; left:0; top:0; bottom:2px;
  width:4px; border-radius:4px; background:var(--brand-grad); }
.panel-head h2{ font-size:19px; font-weight:800; padding-left:4px; }
.panel-head .more{ color:var(--brand); font-size:13px; font-weight:600; }

/* ---------- 新闻列表 ---------- */
.news-list{ list-style:none; }
.news-item{ padding:16px 10px 16px 4px; border-bottom:1px solid var(--line-soft);
  transition:background var(--tr), padding var(--tr); border-radius:var(--radius-sm); }
.news-item:hover{ background:linear-gradient(90deg,var(--brand-grad-soft),transparent 60%); padding-left:12px; }
.news-item:last-child{ border-bottom:none; }
.news-title{ font-size:17px; color:var(--ink); font-weight:600; line-height:1.5; display:block;
  display:flex; align-items:center; transition:color var(--tr); }
.news-title:before{ content:""; width:6px; height:6px; border-radius:2px; background:var(--brand);
  margin-right:10px; flex:0 0 6px; box-shadow:0 0 0 3px rgba(46,92,213,.12); }
.news-title:hover{ color:var(--brand); }
.news-meta{ margin-top:7px; color:var(--ink-3); font-size:13px;
  display:flex; gap:20px; flex-wrap:wrap; margin-left:16px; }
.news-list-lg{ padding:0; }
.list-empty{ color:var(--ink-3); text-align:center; padding:36px; }

/* ---------- 分页 ---------- */
.pager{ margin-top:22px; text-align:center; }
.pager a,.pager span{ display:inline-block; padding:7px 13px; margin:0 3px;
  border:1px solid var(--line); border-radius:999px; color:var(--ink-2); background:#fff;
  font-weight:600; transition:all var(--tr); }
.pager a:hover{ border-color:var(--brand); color:var(--brand); box-shadow:var(--focus); }
.pager span.current,.pager .active span{ background:var(--brand-grad); color:#fff; border-color:transparent; }

/* ---------- 首页网格 ---------- */
.home-grid{ display:grid; grid-template-columns:1fr 320px; gap:22px; align-items:start; }
.home-side{ display:flex; flex-direction:column; gap:22px; }
.hot-block{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow-sm); }
.hot-block-title{ font-size:16px; font-weight:800; margin-bottom:14px; padding-bottom:12px;
  border-bottom:1px solid var(--line-soft); position:relative; }
.hot-block-title::before{ content:""; position:absolute; left:0; bottom:-1px; width:36px; height:3px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2)); border-radius:3px; }
.hot-list{ list-style:none; counter-reset:hot; }
.hot-list li{ counter-increment:hot; display:flex; align-items:center;
  padding:9px 2px; border-bottom:1px dashed var(--line-soft); gap:10px; transition:background var(--tr); border-radius:8px; }
.hot-list li:hover{ background:var(--brand-grad-soft); }
.hot-list li:last-child{ border-bottom:none; }
.hot-list li::before{ content:counter(hot); width:22px; height:22px; flex:0 0 22px; border-radius:7px;
  background:linear-gradient(135deg,#eef2fc,#e3e9fb); color:var(--brand); font-size:12px; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; }
.hot-list li:nth-child(-n+3)::before{ background:var(--brand-grad); color:#fff; box-shadow:0 4px 10px -4px rgba(46,92,213,.8); }
.hot-list a{ color:var(--ink-2); font-size:14px; flex:1; margin-right:6px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color var(--tr); }
.hot-list a:hover{ color:var(--brand); }
.hot-meta{ color:var(--ink-3); font-size:12px; }

/* ---------- 轮播 ---------- */
.banner{ margin:-24px -20px 26px; position:relative; }
.banner-viewport{ position:relative; height:340px; overflow:hidden;
  border-radius:0 0 var(--radius) var(--radius); box-shadow:var(--shadow); }
.banner-track{ position:absolute; inset:0; display:flex; transition:transform .55s ease; height:100%; }
.banner-slide{ flex:0 0 100%; height:100%; background-size:cover; background-position:center;
  display:flex; align-items:flex-end; position:relative; }
.banner-slide::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(20,32,70,.1) 0%,transparent 30%,rgba(20,32,70,.62) 100%); }
.banner-cap{ position:relative; z-index:1; display:block; width:100%;
  padding:76px 44px 30px; color:#fff; font-size:25px; font-weight:700; letter-spacing:.5px;
  text-shadow:0 2px 12px rgba(0,0,0,.35); }
.banner-btn{ position:absolute; top:50%; transform:translateY(-50%); z-index:6;
  width:46px; height:46px; border:0; border-radius:50%;
  background:rgba(255,255,255,.9); color:var(--brand);
  box-shadow:0 6px 18px -6px rgba(0,0,0,.4); font-size:28px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  opacity:0; transition:all var(--tr); }
.banner:hover .banner-btn{ opacity:1; }
.banner-btn:hover{ background:#fff; color:var(--brand-deep); transform:translateY(-50%) scale(1.06); }
.banner-btn.prev{ left:20px; }
.banner-btn.next{ right:20px; }
.banner-dots{ position:absolute; bottom:18px; left:0; right:0; display:flex;
  justify-content:center; gap:8px; z-index:6; }
.banner-dots span{ width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,.6); cursor:pointer; transition:all var(--tr); }
.banner-dots span.on{ background:#fff; width:24px; border-radius:6px; }
.banner-hidden{ display:none !important; }
.banner-empty{ padding:60px; text-align:center; color:var(--ink-3); }

/* ---------- 详情 ---------- */
.article .news-head{ margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--line-soft); }
.article .news-head h1{ font-size:27px; line-height:1.4; font-weight:800; }
.article .news-meta{ margin-left:0; color:var(--ink-3); font-size:13px; }
.article-content{ color:var(--ink-2); line-height:1.9; font-size:15px; }
.article-content p{ margin:0 0 14px; }
.article-content img{ max-width:100%; border-radius:10px; }
.article-embed{ margin-top:26px; }
.embed-title{ font-size:15px; font-weight:700; color:var(--ink); margin-bottom:10px;
  display:inline-flex; align-items:center; gap:8px; }
.embed-title::before{ content:""; width:7px; height:7px; border-radius:2px; background:var(--brand-grad); }

/* 上一篇/下一篇 左右卡片 */
.prevnext{ display:flex; align-items:stretch; gap:14px; margin-top:30px; }
.prevnext a{ flex:1; border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:14px 16px; color:var(--ink-2); font-size:14px; font-weight:600;
  background:var(--card); transition:all var(--tr); display:flex; align-items:center; }
.prevnext .prev{ margin-right:auto; }
.prevnext .next{ margin-left:auto; justify-content:flex-end; text-align:right; }
.prevnext a:hover{ border-color:var(--brand); color:var(--brand); box-shadow:var(--shadow); transform:translateY(-2px); }
.prevnext .prev:empty,.prevnext .next:empty{ display:none; }

/* ---------- 登录/注册 ---------- */
.auth-wrap{ max-width:440px; margin:34px auto; }
.auth-card{ background:var(--card); padding:36px 38px; border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow-lg); position:relative; overflow:hidden; }
.auth-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--brand-grad); }
.auth-title{ font-size:24px; font-weight:800; text-align:center; }
.auth-sub{ text-align:center; color:var(--ink-3); margin:8px 0 24px; font-size:13px; }
.auth-field{ display:block; margin-bottom:18px; }
.auth-field span{ display:block; margin-bottom:7px; color:var(--ink-2); font-size:13px; font-weight:600; }
.auth-field input{ width:100%; padding:11px 14px; border:1px solid var(--line);
  border-radius:var(--radius-sm); font-size:14px; color:var(--ink); background:#fbfcfe;
  transition:all var(--tr); }
.auth-field input:focus{ outline:none; border-color:var(--brand); background:#fff; box-shadow:var(--focus); }
.auth-foot{ margin-top:18px; text-align:center; color:var(--ink-3); font-size:13px; }
.auth-foot a{ font-weight:700; }

/* ---------- 批注 ---------- */
.anno-empty{ color:var(--ink-3); font-size:13px; text-align:center; padding:16px; }

/* ---------- 页脚 ---------- */
.site-footer{ background:linear-gradient(135deg,#171c28,#1e2430 55%,#232a3a);
  color:#9aa3b2; text-align:center; padding:26px 0; font-size:13px; }
.site-footer a{ color:#c7cfdd; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px){
  .home-grid{ grid-template-columns:1fr; }
  .banner-viewport{ height:220px; }
  .header-inner{ gap:10px; }
  .site-nav{ gap:4px; }
  .nav-link{ padding:7px 12px; font-size:13.5px; }
  .logo{ font-size:18px; }
}
@media (max-width: 640px){
  .container{ padding:0 12px; }
  .banner{ margin:-24px -12px 22px; }
  .auth-card{ padding:26px 22px; }
  .article .news-head h1{ font-size:22px; }
  .user-hi{ max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
/* ========== 分页组件（TP 默认 <ul.pagination> 结构，重设为横向胶囊） ========== */
.pager .pagination,.pagination{list-style:none;display:inline-flex;align-items:center;justify-content:center;
  gap:6px;margin:0;padding:0;}
.pagination li{margin:0;padding:0;display:inline-flex;}
.pagination li a,.pagination li span{display:inline-flex;align-items:center;justify-content:center;
  min-width:36px;height:36px;padding:0 11px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:var(--ink-2);font-weight:600;font-size:14px;text-decoration:none;transition:all var(--tr);}
.pagination li a:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--focus);transform:translateY(-1px);}
.pagination li.active span,.pagination li.current span,.pagination .current,
.pagination span.current{background:var(--brand-grad);color:#fff;border-color:transparent;font-weight:600;}
.pagination li.disabled a,.pagination li.disabled span{opacity:.45;cursor:not-allowed;pointer-events:none;}

/* ==========================
   项目健康度（前台，仅登录可见）
   ========================== */
.health-section{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-sm);
  padding:20px 22px;margin-bottom:22px;
}
.health-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.health-head h2{font-size:18px;color:var(--ink);}
.health-head .more{font-size:13px;color:var(--brand);text-decoration:none;}
.health-head .more:hover{text-decoration:underline;}
.health-grid{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.health-chart{flex:0 0 220px;width:220px;}
.health-summary{display:flex;gap:12px;flex-wrap:wrap;flex:1;}
.health-num{
  flex:1;min-width:96px;text-align:center;
  padding:12px 8px;border-radius:var(--radius-sm);
  background:var(--bg);border:1px solid var(--line-soft);
}
.health-num b{display:block;font-size:24px;font-weight:700;color:var(--ink);line-height:1.2;}
.health-num span{font-size:12px;color:var(--ink-3);}
.health-num.h-red b{color:#e74c3c;}
.health-num.h-yellow b{color:#b76e00;}
.health-num.h-green b{color:#2ecc71;}
.health-list{list-style:none;margin-top:16px;border-top:1px dashed var(--line);padding-top:12px;}
.health-item{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:7px 4px;border-bottom:1px dashed var(--line-soft);
  font-size:13px;
}
.health-item:last-child{border-bottom:none;}
.health-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px;}
.dot-red{background:#e74c3c;}
.dot-yellow{background:#f39c12;}
.dot-green{background:#2ecc71;}
.health-code{font-weight:600;color:var(--ink);min-width:48px;}
.health-name{flex:1;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.health-status{color:var(--ink-3);min-width:52px;}
.health-phase{color:var(--ink-3);min-width:70px;}
.health-score{font-weight:600;color:var(--brand);min-width:44px;}
.health-warn{color:#e74c3c;background:rgba(231,76,60,.08);border-radius:999px;padding:1px 8px;font-size:12px;}
@media (max-width:768px){.health-chart{flex:0 0 100%;width:100%;}}

/* ==========================
   产品蓝图（前台入口卡，仅登录可见）
   ========================== */
.blueprint-section{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-sm);
  padding:20px 22px;margin-bottom:22px;
}
.blueprint-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.blueprint-head h2{font-size:18px;color:var(--ink);}
.blueprint-head .more{font-size:13px;color:var(--brand);text-decoration:none;}
.blueprint-head .more:hover{text-decoration:underline;}
.blueprint-overview{display:flex;gap:20px;align-items:stretch;flex-wrap:wrap;}
.blueprint-totals{display:flex;gap:12px;flex-wrap:wrap;flex:0 0 auto;min-width:280px;}
.bp-total-num{
  flex:1;min-width:78px;text-align:center;
  padding:12px 8px;border-radius:var(--radius-sm);
  background:var(--bg);border:1px solid var(--line-soft);
}
.bp-total-num b{display:block;font-size:24px;font-weight:700;color:var(--ink);line-height:1.2;}
.bp-total-num span{font-size:12px;color:var(--ink-3);}
.bp-total-num.bp-red b{color:#e74c3c;}
.bp-total-num.bp-yellow b{color:#b76e00;}
.bp-total-num.bp-green b{color:#2ecc71;}
.blueprint-families{
  flex:1;list-style:none;display:flex;flex-direction:column;gap:6px;
  min-width:260px;
}
.blueprint-family{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:6px 4px;border-bottom:1px dashed var(--line-soft);
  font-size:13px;
}
.blueprint-family:last-child{border-bottom:none;}
.bf-name{font-weight:600;color:var(--ink);min-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bf-count{color:var(--ink-3);min-width:64px;font-size:12px;}
.bf-badges{margin-left:auto;display:flex;gap:6px;}
.bf-badge{
  display:inline-block;min-width:22px;text-align:center;
  border-radius:999px;font-size:12px;line-height:18px;padding:0 6px;color:#fff;
}
.bf-badge.bf-red{background:#e74c3c;}
.bf-badge.bf-yellow{background:#f39c12;}
.bf-badge.bf-green{background:#2ecc71;}
@media (max-width:768px){.blueprint-totals{min-width:100%;} .blueprint-families{min-width:100%;}}

/* 图表加载失败占位 */
.chart-fallback{
  height:100%;min-height:150px;display:flex;align-items:center;justify-content:center;
  color:var(--ink-3);font-size:13px;background:var(--bg);
  border:1px dashed var(--line);border-radius:var(--radius-sm);
}

/* ==========================
   H5 移动端增强（仅前台）
   ========================== */
@media (max-width:640px){
  .header-inner{ height:56px; gap:8px; }
  .logo{ font-size:16px; }
  .logo::before{ width:8px; height:8px; box-shadow:0 0 0 3px rgba(46,92,213,.12); }
  .site-nav{ gap:2px; }
  .nav-link{ padding:6px 10px; font-size:13px; }
  .btn{ padding:8px 14px; font-size:13px; }
  .user-area{ gap:6px; }
  .user-hi{ max-width:100px; font-size:12px; }
  .main{ padding:16px 0 36px; }
  .panel{ padding:16px 14px; }
  .panel-head h2{ font-size:16px; }
  .panel-head{ margin-bottom:12px; padding-bottom:10px; }
  .news-title{ font-size:15px; }
  .news-meta{ gap:10px; font-size:12px; }
  .banner-cap{ font-size:18px; padding:56px 22px 22px; }
  .banner-btn{ width:34px; height:34px; font-size:20px; }
  .prevnext{ flex-direction:column; }
  .prevnext .next{ justify-content:flex-start; text-align:left; }
  .article .news-head h1{ font-size:20px; }
  .article-content{ font-size:14px; }
  .health-num{ min-width:30%; }
  .health-summary{ gap:8px; }
  .health-chart{ flex:0 0 100%; width:100%; }
  .bp-total-num{ min-width:30%; }
  .blueprint-totals{ gap:8px; }
  .health-item{ font-size:12px; }
  .health-status{ min-width:auto; }
  .health-phase{ min-width:auto; }
}
@media (max-width:420px){
  .nav-link{ padding:6px 8px; font-size:12px; }
  .logo{ font-size:15px; }
  .user-hi{ max-width:80px; }
  .btn-outline{ padding:7px 10px; font-size:12px; }
  .banner-viewport{ height:180px; }
}
