/* ============================================================
   秋云终端 · qiyun-terminal — 霓虹 CRT 终端风
============================================================ */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'IBM Plex Mono','SFMono-Regular',Consolas,'PingFang SC','Microsoft YaHei',monospace;
  background:#03070a;color:#c9d8d0;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh;
}
::selection{background:rgba(0,255,157,.3);color:#fff}
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:#04090c}
::-webkit-scrollbar-thumb{background:linear-gradient(#00ff9d,#0a7d52);border-radius:6px;border:2px solid #04090c}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.mono{font-family:inherit}
.tpre{color:#ff2d78}

/* CRT 扫描线 + 暗角 */
.crt-scan{
  position:fixed;inset:0;z-index:90;pointer-events:none;
  background:repeating-linear-gradient(to bottom,rgba(0,0,0,.22) 0 1px,transparent 1px 3px);
  mix-blend-mode:multiply;animation:crt 6s linear infinite;
}
@keyframes crt{0%,94%,100%{opacity:1}96%{opacity:.75}98%{opacity:.9}}
.crt-vignette{position:fixed;inset:0;z-index:89;pointer-events:none;background:radial-gradient(120% 100% at 50% 50%,transparent 60%,rgba(0,0,0,.5) 100%)}

/* 顶栏 */
.tbar{
  position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:16px;
  padding:13px 22px;border-bottom:1px solid rgba(0,255,157,.16);
  background:rgba(2,10,10,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.tbar-brand{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#00ff9d;letter-spacing:.08em}
.tbar-brand i{width:10px;height:10px;border-radius:50%}
.tbar-brand i:nth-child(1){background:#ff5f57}
.tbar-brand i:nth-child(2){background:#febc2e}
.tbar-brand i:nth-child(3){background:#28c840}
.tbar-brand span{margin-left:8px;color:#7fa196}
.tbar-nav{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.tbar-link{
  font-size:12px;color:#7fa196;padding:6px 12px;border-radius:7px;
  border:1px solid transparent;border-left:2px solid transparent;transition:.25s;
}
.tbar-link:hover{color:#d7ffee;background:rgba(0,255,157,.06)}
.tbar-link.on{color:#00ff9d;background:rgba(0,255,157,.08);border-left-color:#00ff9d;text-shadow:0 0 12px rgba(0,255,157,.7)}
.tbar-cta{border:1px solid rgba(0,255,157,.35);color:#e7fff2}
.tbar-cta:hover{background:rgba(0,255,157,.12)}

.t-main{position:relative;z-index:2;min-height:70vh}

/* Hero 终端启动 */
.thero{max-width:860px;margin:0 auto;padding:88px 26px 40px}
.tboot-line{font-size:13.5px;color:#4d6a62;min-height:1.8em}
.tboot-line b{color:#00ff9d;font-weight:500}
.ttype{color:#00ff9d}
.ttype::after{
  content:'';display:inline-block;width:8px;height:15px;margin-left:3px;vertical-align:-2px;
  background:#00ff9d;box-shadow:0 0 10px #00ff9d;animation:blink 1s steps(1) infinite;
}
@keyframes blink{50%{opacity:0}}
.tboot-hint{opacity:0;transition:opacity .5s;color:#3f5a52}
.tboot-hint.show{opacity:1}
.thero-main{margin-top:44px;opacity:0;transform:translateY(14px);transition:opacity .8s,transform .8s}
.thero-main.show{opacity:1;transform:none}
.thero-sys{font-size:11px;letter-spacing:.3em;color:#2f6a55}
.thero-sys span{color:#00ff9d}
.thero-title{
  margin-top:18px;font-size:clamp(38px,7vw,76px);line-height:1.1;font-weight:600;
  color:#eafff5;text-shadow:0 0 30px rgba(0,255,157,.35);
}
.thero-sub{margin-top:18px;color:#7fa196;font-size:14px;letter-spacing:.1em}
.thero-stats{display:flex;gap:10px;margin-top:30px;flex-wrap:wrap}
.tchip{
  font-size:11px;letter-spacing:.14em;color:#e7c88f;color:#9fe8c6;
  border:1px solid rgba(0,255,157,.28);border-radius:8px;padding:7px 13px;
  background:rgba(0,255,157,.05);
}
.tchip b{color:#00ff9d;font-weight:500}

/* 文章列表 */
.tposts{max-width:860px;margin:0 auto;padding:30px 26px 90px}
.tposts-head{font-size:13px;color:#4d6a62;margin-bottom:16px}
.tposts-head .tpre{color:#ff2d78}
.tposts-list{border:1px solid rgba(0,255,157,.14);border-radius:12px;overflow:hidden;
  background:rgba(2,10,10,.6);box-shadow:0 0 44px rgba(0,255,157,.05),0 30px 60px rgba(0,0,0,.5)}
.trow{
  display:flex;align-items:center;gap:16px;
  padding:15px 18px;border-left:2px solid transparent;transition:.25s;
  border-bottom:1px solid rgba(0,255,157,.08);
}
.trow:last-child{border-bottom:none}
.trow:hover{background:rgba(0,255,157,.05);color:#d7ffee}
.trow-date{color:#3f6a58;font-size:12px;flex:none}
.trow-title{font-size:14px;color:#bfe8d4;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trow:hover .trow-title{color:#00ff9d;text-shadow:0 0 12px rgba(0,255,157,.6)}
.trow-read{color:#3f5a52;font-size:11px;flex:none}
.trow-arrow{color:#ff2d78;opacity:0;transform:translateX(-6px);transition:.25s;flex:none}
.trow:hover .trow-arrow{opacity:1;transform:none}
.tpager{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:26px;font-size:12px;color:#3f5a52;letter-spacing:.1em}
.tpager a{color:#00ff9d;border:1px solid rgba(0,255,157,.3);border-radius:8px;padding:7px 14px;transition:.3s}
.tpager a:hover{background:rgba(0,255,157,.12);box-shadow:0 0 18px rgba(0,255,157,.2)}

/* 文章页 */
.tpost{max-width:760px;margin:0 auto;padding:70px 26px 100px}
.tpost-head{margin-bottom:40px}
.tpost-cmd{font-size:12.5px;color:#3f5a52}
.tpost-title{margin-top:16px;font-size:clamp(26px,4.5vw,42px);line-height:1.3;font-weight:600;color:#eafff5;text-shadow:0 0 24px rgba(0,255,157,.25)}
.tpost-meta{display:flex;gap:10px;margin-top:16px;font-size:12px;color:#3f6a58;letter-spacing:.08em}
.tpost-figure{margin:0 0 40px;border:1px solid rgba(0,255,157,.18);border-radius:12px;overflow:hidden;box-shadow:0 0 30px rgba(0,255,157,.07)}
.tpost-figure img{display:block;width:100%}
.tpost-content{font-size:15px;line-height:2.05;color:#b9cec2}
.tpost-content h2,.tpost-content h3{color:#eafff5;font-weight:600;margin:2em 0 .8em;line-height:1.4}
.tpost-content h2{font-size:23px;padding-left:14px;border-left:3px solid #00ff9d}
.tpost-content h3{font-size:19px}
.tpost-content p{margin:1.1em 0}
.tpost-content a{color:#00ff9d;border-bottom:1px dashed rgba(0,255,157,.45);transition:.3s}
.tpost-content a:hover{text-shadow:0 0 12px rgba(0,255,157,.8);border-bottom-style:solid}
.tpost-content strong{color:#eafff5;font-weight:600}
.tpost-content blockquote{
  margin:1.6em 0;padding:14px 22px;border-left:2px solid #ff2d78;border-radius:0 10px 10px 0;
  background:rgba(255,45,120,.05);color:#d0a9b8;
}
.tpost-content ul,.tpost-content ol{margin:1.1em 0 1.1em 1.6em}
.tpost-content li{margin:.4em 0}
.tpost-content img{border-radius:10px;border:1px solid rgba(0,255,157,.14)}
.tpost-content hr{border:none;height:1px;background:rgba(0,255,157,.15);margin:2.4em 0}
.tpost-content code{
  font-size:.88em;color:#7dffc9;background:rgba(0,255,157,.09);
  padding:2px 8px;border-radius:6px;border:1px solid rgba(0,255,157,.14);
}
/* Koenig 编辑器卡片: 宽图/全宽/图库 */
.kg-width-wide{width:min(94vw,980px);max-width:none;margin-left:50%;transform:translateX(-50%)}
.kg-width-full{width:calc(100vw - 48px);max-width:none;margin-left:50%;transform:translateX(-50%)}
.kg-gallery-container{display:flex;flex-direction:column;width:100%;margin:1.8em 0}
.kg-gallery-row{display:flex;flex-direction:row;justify-content:center;gap:8px;margin:8px 0}
.kg-gallery-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;border:1px solid rgba(0,255,157,.14)}
@media (max-width:720px){
  .kg-width-wide,.kg-width-full{width:100%;margin-left:0;transform:none}
}

.tpost-content pre{
  margin:1.6em 0;padding:18px 20px;border-radius:12px;overflow-x:auto;
  background:rgba(2,10,10,.85);border:1px solid rgba(0,255,157,.2);
  box-shadow:0 0 30px rgba(0,255,157,.06),0 20px 44px rgba(0,0,0,.45);
}
.tpost-content pre code{background:none;border:none;padding:0;color:#a8f0cc;font-size:13px;line-height:1.75}
.tpost-foot{margin-top:64px;padding-top:22px;border-top:1px solid rgba(0,255,157,.12)}
.tpost-back{color:#00ff9d;font-size:13px}
.tpost-back:hover{text-shadow:0 0 12px rgba(0,255,157,.8)}

/* 页脚 */
.tfooter{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  max-width:860px;margin:0 auto;padding:26px;font-size:10.5px;color:#2f4a42;letter-spacing:.2em;
  border-top:1px solid rgba(0,255,157,.1);
}
.tfooter b{color:#00ff9d;font-weight:400}

/* 移动端 */
@media (max-width:720px){
  .tbar{flex-wrap:wrap;padding:10px 14px;gap:8px}
  .tbar-nav{margin-left:0;width:100%}
  .thero{padding:56px 18px 24px}
  .tposts{padding:20px 14px 60px}
  .tpost{padding:46px 18px 80px}
  .trow{flex-wrap:wrap;gap:8px}
  .trow-title{white-space:normal}
  .trow-arrow{display:none}
  .crt-scan{opacity:.6}
}
/* === 移动端补强(追加) === */
@media (max-width:720px){
  .tbar{padding:9px 12px}
  .tbar-brand span{display:inline-block;max-width:44vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
  .tbar-nav{margin-left:0;width:100%;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;scrollbar-width:none}
  .tbar-nav::-webkit-scrollbar{display:none}
  .tbar-link{padding:9px 13px;font-size:12.5px;flex:none}
  .thero{padding:48px 18px 20px}
  .thero-title{font-size:clamp(30px,9.5vw,48px)}
  .thero-stats{gap:8px}
  .tchip{padding:6px 10px;font-size:10.5px;letter-spacing:.08em}
  .trow{padding:13px 14px;gap:10px}
  .trow-date{font-size:11px}
  .trow-read{display:none}
  .tpost{padding:44px 18px 72px}
  .tpost-content{font-size:15px;line-height:1.95}
  .tpost-content pre{padding:14px;font-size:12px}
  .tpost-content pre code{font-size:12px}
  .tpost-foot{margin-top:44px}
  .tfooter{flex-direction:column;gap:6px;text-align:center}
}
