:root{
  --bg0:#0B1220;
  --bg1:#0F172A;
  --canvas:#F6F8FC;
  --text:#0F172A;
  --muted:rgba(15,23,42,.62);
  --line:rgba(15,23,42,.10);
  --blue:#2563EB;
  --cyan:#06B6D4;
  --good:#16A34A;
  --bad:#EF4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:var(--sans);
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.18), transparent 60%),
              radial-gradient(1000px 500px at 90% 15%, rgba(6,182,212,.18), transparent 62%),
              linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 40%, #0B1220 100%);
}


.mono{font-family:var(--mono); letter-spacing:.2px}
.subtle{color:var(--muted)}

.topbar{
  position:sticky; top:0; z-index:10;
  background: linear-gradient(180deg, rgba(11,18,32,.86), rgba(11,18,32,.58));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  max-width:1100px; margin:0 auto; padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; gap:10px; align-items:center; text-decoration:none; color:#EAF0FF}
.brand__mark{
  width:14px; height:14px;
  background: conic-gradient(from 210deg, var(--cyan), var(--blue));
  clip-path: polygon(0 20%, 75% 0, 100% 80%, 25% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
}
.brand__text{font-weight:650; letter-spacing:.3px}
.topbar__right{display:flex; gap:12px; align-items:center}
.link{
  color:rgba(234,240,255,.88);
  text-decoration:none;
  font-size:14px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.link:hover{color:#fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12)}
.link:active{transform: translateY(1px)}
.link:focus-visible{outline:none; box-shadow: 0 0 0 3px rgba(6,182,212,.28)}
.link--active{color:#fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16)}



.shell{max-width:1100px; width:100%; flex:1; margin:0 auto; padding:28px 18px 64px}

.site-footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(11,18,32,0), rgba(11,18,32,.42));
}
.site-footer__inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px 18px 18px;
  text-align:center;
  font-size:12px;
  line-height:1.6;
  color: rgba(234,240,255,.62);
}



.h1{font-size:34px; line-height:1.15; margin:0 0 10px}
.h2{font-size:18px; font-weight:650}
.kicker{font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:rgba(234,240,255,.66)}

.hero{display:grid; grid-template-columns: 1.15fr .85fr; gap:18px; align-items:stretch}
.hero__left, .hero__right{min-height:340px}
.hero__left{color: rgba(234,240,255,.92)}
.hero__left .h1{color:#EAF0FF}
.hero__left .subtle{color: rgba(234,240,255,.74)}


.search{
  margin-top:18px;
  padding:18px;
  background: rgba(246,248,252,.92);
  border:1px solid rgba(255,255,255,.5);
  border-radius:16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  position:relative;
}
.search:before{
  content:"";
  position:absolute; top:-1px; left:-1px; right:-1px; height:10px;
  background: linear-gradient(90deg, rgba(6,182,212,.75), rgba(37,99,235,.75));
  border-radius:16px 16px 10px 10px;
  opacity:.55;
}
.search__label{display:block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:rgba(15,23,42,.72)}
.search__row{display:flex; gap:10px; margin-top:10px}
.search__input{
  flex:1;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.92);
  outline:none;
  font-size:15px;
}
.search__input:focus{border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.12)}
.search__meta{display:flex; gap:10px; align-items:center; margin-top:12px}

.stage{
  height:100%;
  border-radius:18px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.stage__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity:.55;
}
.stage__card{
  position:absolute; left:18px; bottom:18px; right:18px;
  padding:18px;
  background: rgba(246,248,252,.92);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.5);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.stage__kicker{font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:rgba(15,23,42,.65)}
.stage__title{font-size:20px; font-weight:650; margin:6px 0 0}
.stage__actions{display:flex; gap:10px; margin-top:14px}

.results{margin-top:20px}
.results__head{display:flex; justify-content:space-between; align-items:baseline; margin:0 0 12px}

.table{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(246,248,252,.92);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
.table__row{
  display:grid;
  grid-template-columns: 140px 1.2fr 100px 1.2fr 120px;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  align-items:center;
}
.table__row:last-child{border-bottom:0}
.table__row--head{font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:rgba(15,23,42,.62); background: rgba(15,23,42,.03)}
.table__actions{display:flex; justify-content:flex-end}

.panel{
  margin-top:16px;
  padding:16px;
  background: rgba(246,248,252,.92);
  border:1px solid rgba(255,255,255,.5);
  border-radius:16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.panel__title{font-weight:650}
.panel__body{margin-top:8px}
.panel--empty{border-style:dashed; border-color: rgba(37,99,235,.28)}
.panel--hint{border-color: rgba(6,182,212,.22)}
.panel--progress{border-color: rgba(37,99,235,.18)}
.panel--mini{padding:12px; border-radius:14px; box-shadow:none; background: rgba(255,255,255,.78)}

.progress{display:flex; flex-direction:column; gap:10px}
.progress--mini{gap:8px}
.progress__bar{height:10px; border-radius:999px; overflow:hidden; border:1px solid rgba(15,23,42,.12); background: rgba(15,23,42,.04)}
.progress--mini .progress__bar{height:8px}
.progress__fill{height:100%; width:0%; background: linear-gradient(90deg, rgba(37,99,235,1), rgba(6,182,212,1)); transition: width .18s ease}
.progress__meta{display:flex; justify-content:space-between; align-items:center}
.progress__error{padding:10px 12px; border-radius:12px; border:1px solid rgba(239,68,68,.22); background: rgba(239,68,68,.06); color: rgba(127,29,29,.86)}
.progress--mini .progress__error{padding:8px 10px; border-radius:10px}



.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.86);
  text-decoration:none;
  color:rgba(15,23,42,.92);
  font-size:14px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 10px 18px rgba(0,0,0,.12)}
.btn:active{transform: translateY(0)}
.btn[disabled]{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none}
.btn--sm{padding:7px 10px; border-radius:10px; font-size:12px}
.btn--primary{background: linear-gradient(135deg, rgba(37,99,235,1), rgba(6,182,212,1)); border-color: rgba(255,255,255,.18); color:#fff}
.btn--secondary{background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.26)}
.btn--ghost{background: rgba(15,23,42,.03); border-color: rgba(15,23,42,.10)}


.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
}
.pill--warn{border-color: rgba(239,68,68,.26); background: rgba(239,68,68,.06); color: rgba(127,29,29,.86)}

.company__head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:14px;
  padding:18px;
  background: rgba(246,248,252,.92);
  border:1px solid rgba(255,255,255,.5);
  border-radius:16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
.company__actions{display:flex; gap:10px; flex-wrap:wrap}

.board{display:grid; grid-template-columns: 1.15fr .85fr; gap:16px; margin-top:16px}
.card{
  padding:16px;
  background: rgba(246,248,252,.92);
  border:1px solid rgba(255,255,255,.5);
  border-radius:16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}
.card__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.card__kicker{font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:rgba(15,23,42,.65)}
.card__title{font-size:16px; font-weight:650; margin:6px 0 12px}
.card__meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.card--compact .card__body{margin-top:10px}


.chart{height:320px; width:100%; display:flex; align-items:center; justify-content:center; padding:10px}


.stack{display:flex; flex-direction:column; gap:12px}

.kv{display:flex; flex-direction:column; gap:8px}
.kv__row{display:flex; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid rgba(15,23,42,.10); border-radius:12px; background: rgba(255,255,255,.72)}
.kv__k{color:rgba(15,23,42,.66); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.kv__v{font-weight:650; font-size:12px}

/* Markdown rendering (admin preview + blog detail) */
.md{font-size:15px; line-height:1.85; color:rgba(15,23,42,.92)}
.md h1,.md h2,.md h3,.md h4{line-height:1.25; margin:18px 0 10px}
.md h1{font-size:26px}
.md h2{font-size:20px}
.md h3{font-size:17px}
.md p{margin:10px 0}
.md a{color:var(--blue); text-decoration:none}
.md a:hover{text-decoration:underline}
.md blockquote{margin:12px 0; padding:10px 12px; border-left:3px solid rgba(37,99,235,.35); background:rgba(37,99,235,.06); border-radius:12px}
.md code{font-family:var(--mono); font-size:13px; padding:2px 6px; border-radius:8px; background:rgba(15,23,42,.06); border:1px solid rgba(15,23,42,.10)}
.md pre{margin:12px 0; padding:12px; border-radius:14px; overflow:auto; background:rgba(15,23,42,.06); border:1px solid rgba(15,23,42,.10)}
.md pre code{padding:0; border:0; background:transparent}
.md table{width:100%; border-collapse:collapse; margin:12px 0; font-size:14px}
.md th,.md td{border:1px solid var(--line); padding:8px 10px}
.md img{max-width:100%; height:auto; border-radius:14px; border:1px solid var(--line)}

@media (max-width: 920px){

  .hero{grid-template-columns: 1fr;}
  .hero__right{min-height:240px}
  .table__row{grid-template-columns: 110px 1fr 86px 1fr 96px}
  .board{grid-template-columns: 1fr;}
}
@media (max-width: 640px){
  .table__row{grid-template-columns: 110px 1fr 1fr;}
  .table__row > div:nth-child(3),
  .table__row > div:nth-child(4),
  .table__row > div:nth-child(5){display:none}
  .chart{height:280px}
}

