/* ============================================================
   前沿在线 · 短视频沉浸式页
   深色顶栏 + 竖屏沉浸播放 + 官网统一浅色页脚
   ============================================================ */
.shorts-body{background:var(--color-dark);color:var(--color-surface);min-height:100vh;overflow-x:hidden;font-family:var(--font-sans)}
.shorts-header{height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;background:rgba(11,14,23,.92);border-bottom:1px solid rgba(255,255,255,.08);position:relative;z-index:20}
.shorts-back{font-size:13px;color:rgba(255,255,255,.72);font-weight:600;padding:8px 0;white-space:nowrap;text-decoration:none}
.shorts-back:hover{color:var(--color-surface)}
.shorts-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;letter-spacing:.01em}
.shorts-brand-logo{height:24px;width:auto;display:block}
.shorts-user{font-size:12.5px;font-weight:600;color:var(--color-surface);background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-lg);padding:7px 15px;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis;font-family:inherit;cursor:pointer}
.shorts-user:hover{background:var(--color-brand);border-color:var(--color-brand)}

.shorts-loading{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:rgba(255,255,255,.55);font-size:13px}
.shorts-spinner{width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.16);border-top-color:var(--color-brand-light);animation:sh-spin .8s linear infinite}
@keyframes sh-spin{to{transform:rotate(360deg)}}
.shorts-empty{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:rgba(255,255,255,.6);text-align:center;padding:24px}
.shorts-empty-ico{width:72px;height:72px;border-radius:50%;background:rgba(73,90,255,.16);color:var(--color-brand-light);display:flex;align-items:center;justify-content:center;font-size:32px;margin-bottom:6px}
.shorts-empty h2{font-size:19px;color:var(--color-surface);font-weight:700;margin:0}
.shorts-empty p{font-size:13px;margin:0}
.shorts-empty a{margin-top:12px;font-size:13px;color:var(--color-brand-light);font-weight:600;border:1px solid rgba(139,151,255,.4);border-radius:var(--radius-lg);padding:9px 20px;text-decoration:none}
.shorts-empty a:hover{background:rgba(73,90,255,.16)}

/* ---------- 竖屏卡片流 ---------- */
.shorts-feed{height:calc(100vh - 64px);height:calc(100dvh - 64px);min-height:480px;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior-y:contain;padding:12px 0}
.shorts-feed::-webkit-scrollbar{display:none}
.short-card{height:calc(100% - 24px);width:min(440px,100%);margin:0 auto;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden;background:var(--color-text);border:1px solid rgba(255,255,255,.06);border-radius:var(--radius-md);box-shadow:0 20px 60px rgba(0,0,0,.45)}
.short-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--color-text)}
.short-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--color-text)}
.short-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(160deg,#1B2140,var(--color-dark) 70%);color:rgba(255,255,255,.7);font-size:13px;padding:30px;text-align:center}
.short-fallback .fb-ico{width:64px;height:64px;border-radius:50%;background:rgba(73,90,255,.25);display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--color-brand-light)}
.short-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,transparent 26%,transparent 46%,rgba(0,0,0,.76) 100%)}
.short-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;color:var(--color-surface);font-size:24px;opacity:0;transition:.2s;pointer-events:none}
.short-card.paused .short-play{opacity:1}
.short-tapzone{position:absolute;inset:0;cursor:pointer;z-index:2}

/* 右侧互动栏 */
.short-actions{position:absolute;right:14px;bottom:96px;z-index:5;display:flex;flex-direction:column;gap:18px;align-items:center}
.short-action{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--color-surface);font-size:11.5px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.5);min-width:46px;background:none;border:none;font-family:inherit;cursor:pointer}
.short-action .bubble{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.16);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:22px;transition:.18s}
.short-action:hover .bubble{background:rgba(255,255,255,.26);transform:scale(1.06)}
.short-action.active .bubble{background:rgba(225,29,72,.9);border-color:rgba(225,29,72,.9)}
.short-action.active.fav .bubble{background:rgba(245,158,11,.92);border-color:rgba(245,158,11,.92)}
.short-action .n{font-variant-numeric:tabular-nums}

/* 底部信息 */
.short-info{position:absolute;left:0;right:76px;bottom:0;z-index:4;padding:0 18px 26px}
.short-topics{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.short-topic{font-size:11px;color:var(--color-brand-border-hover);background:rgba(73,90,255,.32);border:1px solid rgba(139,151,255,.34);border-radius:var(--radius-lg);padding:3px 10px}
.short-title{font-size:17px;font-weight:700;line-height:1.45;margin-bottom:6px;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.short-summary{font-size:12.5px;color:rgba(255,255,255,.82);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.short-index{position:absolute;top:14px;left:16px;z-index:4;font-size:11.5px;color:rgba(255,255,255,.75);background:rgba(0,0,0,.3);border-radius:var(--radius-lg);padding:4px 11px;backdrop-filter:blur(4px)}
.short-progress{position:absolute;bottom:0;left:0;height:2px;background:var(--color-brand);z-index:6;width:0;transition:width .2s linear}

.shorts-hint{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:8;font-size:11px;color:rgba(255,255,255,.45);pointer-events:none;white-space:nowrap}

/* ---------- 官网统一页脚（深色页面下保持浅色品牌样式） ---------- */
.shorts-body .site-footer{color:var(--color-text);background:var(--color-surface-2);border-top:1px solid var(--color-border)}
.shorts-body .footer-brand-info p{color:var(--color-text-2)}
.shorts-body .footer-brand-info a,.shorts-body .footer-meta{color:var(--color-text-3)}
.shorts-body .footer-meta a{color:var(--color-text-2)}

@media(max-width:599px){
  .shorts-header{padding:0 14px;height:58px}
  .shorts-feed{height:calc(100vh - 58px);height:calc(100dvh - 58px);min-height:420px}
  .shorts-loading,.shorts-empty{min-height:60vh}
  .short-actions{right:10px;bottom:88px;gap:14px}
  .short-action .bubble{width:42px;height:42px;font-size:20px}
  .short-info{right:66px;padding:0 14px 20px}
  .short-title{font-size:15.5px}
}
@media(prefers-reduced-motion:reduce){
  .short-action .bubble,.short-play{transition:none}
  .shorts-spinner{animation:none}
}
