/* ============================================================
   view_article.css · 动感科技 · 文章/日志内容页
   ============================================================ */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
    background:#05070f;
    color:#e8ecf4;
    font-family:"PingFang SC","Microsoft YaHei",-apple-system,"Segoe UI",sans-serif;
    line-height:1.7;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;}

/* ========== 背景动效层 ========== */
.bg-fx{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;}
.orb{position:absolute;border-radius:50%;filter:blur(90px);will-change:transform;}
.orb-1{width:560px;height:560px;left:-160px;top:-180px;background:radial-gradient(circle,#00e5ff 0%,transparent 65%);opacity:.5;animation:drift1 18s ease-in-out infinite;}
.orb-2{width:520px;height:520px;right:-180px;top:26%;background:radial-gradient(circle,#7c4dff 0%,transparent 65%);opacity:.45;animation:drift2 22s ease-in-out infinite;}
.orb-3{width:480px;height:480px;left:28%;bottom:-220px;background:radial-gradient(circle,#ff3d9a 0%,transparent 65%);opacity:.3;animation:drift3 20s ease-in-out infinite;}
@keyframes drift1{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(90px,70px) scale(1.12);}}
@keyframes drift2{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(-80px,50px) scale(1.08);}}
@keyframes drift3{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(70px,-60px) scale(1.1);}}
.grid-overlay{position:absolute;inset:0;
    background-image:linear-gradient(rgba(120,180,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(120,180,255,.05) 1px,transparent 1px);
    background-size:52px 52px;
    -webkit-mask-image:radial-gradient(ellipse 85% 62% at 50% 0%,#000 25%,transparent 72%);
    mask-image:radial-gradient(ellipse 85% 62% at 50% 0%,#000 25%,transparent 72%);}

/* ========== 通用 ========== */
.container{max-width:1200px;margin:0 auto;padding:0 24px;}
.reveal{opacity:1;}
.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease;}
.js .reveal.in{opacity:1;transform:none;}

/* ========== 顶栏 ========== */
.topbar{position:relative;z-index:5;padding:20px 0;}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.topbar .back{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#8b96ad;transition:.3s;}
.topbar .back:hover{color:#00e5ff;transform:translateX(-3px);}
.topbar .back svg{width:16px;height:16px;}
.topbar .brand{font-size:14px;letter-spacing:3px;color:#56637b;white-space:nowrap;}
.topbar .brand i{color:#00e5ff;font-style:normal;}
.topbar .btn-list{display:inline-flex;align-items:center;gap:8px;padding:8px 20px;border-radius:30px;font-size:13px;font-weight:600;color:#05070f;
    background:linear-gradient(135deg,#00e5ff,#7c4dff);box-shadow:0 6px 20px rgba(0,229,255,.3);transition:.3s;}
.topbar .btn-list:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(124,77,255,.45);}
.topbar .btn-list svg{width:14px;height:14px;}

/* ========== 面包屑 ========== */
.crumbs{position:relative;z-index:1;padding:10px 0 26px;}
.crumbs .crumb-box{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 18px;border:1px solid rgba(255,255,255,.09);border-radius:30px;
    background:rgba(255,255,255,.03);font-size:13px;color:#8b96ad;}
.crumbs a{color:#8b96ad;transition:.25s;}
.crumbs a:hover{color:#00e5ff;}
.crumbs .crumb-arr{opacity:.5;}

/* ========== 布局 ========== */
.layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px;align-items:start;padding:0 0 60px;}

/* ========== 文章主体 ========== */
.post{background:linear-gradient(165deg,rgba(13,18,34,.9),rgba(7,10,20,.95));border:1px solid rgba(255,255,255,.08);border-radius:18px;
    padding:38px 42px 34px;box-shadow:0 20px 60px rgba(0,0,0,.4);overflow:hidden;position:relative;}
.post::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#00e5ff,#7c4dff,#ff3d9a);}
.post h1{font-size:30px;line-height:1.4;letter-spacing:.5px;margin-bottom:18px;color:#fff;}
.meta{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:13px;color:#8b96ad;padding-bottom:18px;border-bottom:1px dashed rgba(255,255,255,.1);}
.meta span{display:inline-flex;align-items:center;gap:6px;}
.meta svg{width:15px;height:15px;color:#00e5ff;}
.meta .read b{color:#00e5ff;font-weight:600;}

/* 正文排版 */
.post-body{padding:24px 0 8px;font-size:16px;line-height:2;color:#c9d2e3;word-break:break-word;}
.post-body p{margin:0 0 20px;}
.post-body h2,.post-body h3,.post-body h4{color:#fff;margin:30px 0 14px;line-height:1.5;}
.post-body h2{font-size:22px;padding-left:14px;border-left:4px solid #00e5ff;}
.post-body h3{font-size:18px;}
.post-body img{border-radius:12px;margin:10px 0;box-shadow:0 10px 30px rgba(0,0,0,.35);}
.post-body a{color:#00e5ff;border-bottom:1px dashed rgba(0,229,255,.4);}
.post-body a:hover{color:#7c4dff;}
.post-body ul,.post-body ol{margin:0 0 20px;padding-left:24px;}
.post-body li{margin-bottom:8px;}
.post-body ul li::marker{color:#00e5ff;}
.post-body blockquote{border-left:3px solid #7c4dff;background:rgba(124,77,255,.07);padding:12px 20px;border-radius:0 10px 10px 0;margin:0 0 20px;color:#b8c2d8;}
.post-body table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14px;}
.post-body th,.post-body td{border:1px solid rgba(255,255,255,.12);padding:10px 14px;text-align:left;}
.post-body th{background:rgba(0,229,255,.07);color:#00e5ff;}
.post-body code{background:rgba(0,229,255,.1);color:#7eeaff;padding:2px 8px;border-radius:5px;font-size:.92em;}
.post-body pre{background:#0a0e1c;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:18px;overflow-x:auto;margin:0 0 20px;}
.post-body pre code{background:none;padding:0;color:#a5e8ff;}
.post-body hr{border:none;border-top:1px dashed rgba(255,255,255,.12);margin:26px 0;}

/* 收藏 */
.collect-wrap{display:flex;justify-content:center;padding:6px 0 2px;}
.btn-collect{display:inline-flex;align-items:center;gap:8px;padding:10px 30px;border-radius:30px;font-size:14px;font-weight:600;cursor:pointer;
    color:#00e5ff;border:1px solid rgba(0,229,255,.4);background:rgba(0,229,255,.06);transition:.3s;}
.btn-collect:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,229,255,.22);background:rgba(0,229,255,.12);}
.btn-collect .collect-ico{font-size:16px;line-height:1;}

/* 标签 */
.tags-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:22px 0 4px;border-top:1px dashed rgba(255,255,255,.1);margin-top:6px;}
.tags-row .tags-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#8b96ad;}
.tags-row .tags-label svg{width:15px;height:15px;color:#ff3d9a;}
.tag{display:inline-block;padding:5px 16px;border-radius:30px;font-size:13px;color:#a5e8ff;border:1px solid rgba(0,229,255,.25);
    background:rgba(0,229,255,.05);transition:.3s;}
.tag:hover{color:#05070f;background:linear-gradient(135deg,#00e5ff,#7c4dff);border-color:transparent;}

/* 上一篇/下一篇 */
.pn-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px;}
.pn-card{display:flex;flex-direction:column;gap:6px;padding:16px 20px;border:1px solid rgba(255,255,255,.09);border-radius:12px;
    background:rgba(255,255,255,.03);transition:.3s;}
.pn-card:hover{border-color:rgba(0,229,255,.45);transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,229,255,.12);}
.pn-card span{font-size:12px;color:#00e5ff;letter-spacing:2px;}
.pn-card b{font-size:14px;color:#e8ecf4;font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.pn-card.disabled{opacity:.45;pointer-events:none;}
.pn-card.next{align-items:flex-end;text-align:right;}

/* 返回列表 */
.back-list{text-align:center;margin-top:26px;}
.btn-list2{display:inline-flex;align-items:center;gap:8px;padding:11px 36px;border-radius:30px;font-size:14px;font-weight:600;color:#05070f;
    background:linear-gradient(135deg,#00e5ff,#7c4dff);box-shadow:0 8px 24px rgba(0,229,255,.28);transition:.3s;}
.btn-list2:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(124,77,255,.45);}
.btn-list2 svg{width:15px;height:15px;}

/* ========== 侧栏 ========== */
.side{display:flex;flex-direction:column;gap:22px;}
.side-box{background:linear-gradient(165deg,rgba(13,18,34,.85),rgba(7,10,20,.92));border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:24px;}
.side-title{display:flex;align-items:center;gap:10px;font-size:17px;color:#fff;letter-spacing:1px;margin-bottom:18px;}
.side-title::before{content:"";width:4px;height:18px;border-radius:2px;background:linear-gradient(180deg,#00e5ff,#7c4dff);}
.side-title svg{width:18px;height:18px;color:#00e5ff;margin-left:auto;}
.rand-list{list-style:none;}
.rand-list li{padding:10px 0;border-bottom:1px dashed rgba(255,255,255,.08);}
.rand-list li:last-child{border-bottom:none;}
.rand-list a{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:#c9d2e3;line-height:1.5;transition:.25s;}
.rand-list a:hover{color:#00e5ff;transform:translateX(4px);}
.rand-list a::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,#00e5ff,#7c4dff);margin-top:8px;}
.rec-list{display:flex;flex-direction:column;gap:16px;}
.rec-item{display:flex;gap:12px;align-items:flex-start;transition:.3s;}
.rec-item:hover{transform:translateY(-2px);}
.rec-item img{flex:none;width:86px;height:64px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,255,255,.1);}
.rec-item .rec-info{min-width:0;}
.rec-item h4{font-size:14px;font-weight:500;color:#e8ecf4;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:.25s;}
.rec-item:hover h4{color:#00e5ff;}
.rec-item .rec-time{font-size:12px;color:#8b96ad;margin-top:6px;display:flex;align-items:center;gap:5px;}
.rec-item .rec-time svg{width:13px;height:13px;}

/* ========== 页脚 ========== */
.footer{position:relative;z-index:1;padding:30px 0 40px;text-align:center;font-size:13px;color:#56637b;border-top:1px solid rgba(255,255,255,.06);}
.footer-log{display:inline-block;margin:12px 8px 0;}
.footer-log a{display:inline-block;color:#7e93ad;font-size:12px;text-decoration:none;border:1px solid rgba(255,255,255,.16);border-radius:99px;padding:5px 18px;letter-spacing:1px;transition:.25s;}
.footer-log a:hover{color:#00e5ff;border-color:rgba(0,229,255,.5);}

/* ========== 返回顶部 ========== */
.backtop{position:fixed;right:28px;bottom:34px;z-index:99;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    color:#00e5ff;background:rgba(10,15,30,.85);border:1px solid rgba(0,229,255,.4);box-shadow:0 8px 24px rgba(0,0,0,.45);
    opacity:0;visibility:hidden;transform:translateY(12px);transition:.3s;cursor:pointer;}
.backtop.show{opacity:1;visibility:visible;transform:none;}
.backtop:hover{background:linear-gradient(135deg,#00e5ff,#7c4dff);color:#05070f;}
.backtop svg{width:20px;height:20px;}

/* ========== 响应式 ========== */
@media (max-width:980px){
.layout{grid-template-columns:1fr;}
.post{padding:28px 22px 26px;}
.post h1{font-size:24px;}
.topbar .brand{font-size:12px;letter-spacing:2px;}
}
@media (max-width:640px){
.topbar{padding:14px 0;}
.topbar .container{flex-wrap:wrap;gap:10px;}
.topbar .brand{order:3;width:100%;text-align:center;font-size:12px;letter-spacing:2px;margin-top:6px;}
.topbar .btn-list{font-size:12px;padding:7px 16px;}
.topbar .back{font-size:13px;}
.post{padding:24px 18px 22px;border-radius:14px;}
.pn-grid{grid-template-columns:1fr;}
.meta{gap:12px;}
.hero{padding:56px 0 40px;}
}
