/* =====================================================================
   办公论坛 前台样式（GBK / gb2312）
   主流论坛风格：分类标签 + 帖子列表 + 侧边栏 + 抖音式视频流 + 驱动下载
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px; color: #222; background: #f5f6f8; line-height: 1.6;
}
a { color: #333; text-decoration: none; }
a:hover { color: #e60012; }
ul, li, ol { list-style: none; }
img { border: 0; vertical-align: middle; }
.fm-clear { clear: both; }
.fm-box { width: 1200px; margin: 0 auto; }

/* ---------- 顶部通栏 ---------- */
.fm-topbar { background: #f5f5f5; border-bottom: 1px solid #e8e8e8; font-size: 12px; color: #888; }
.fm-topbar .fm-box { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.fm-topbar a { color: #666; margin: 0 6px; }
.fm-topbar a:hover { color: #e60012; }
.fm-topbar .fm-tb-sep { color: #ccc; }
.fm-topbar .fm-tb-right { display: flex; align-items: center; }

/* ---------- 报头 ---------- */
.fm-masthead { background: #fff; border-bottom: 2px solid #e60012; }
.fm-masthead .fm-box { display: flex; align-items: center; height: 96px; }
.fm-logo { display: flex; align-items: center; }
.fm-logo img { height: 64px; padding-right: 22px; margin-right: 22px; border-right: 1px solid #eee; }
.fm-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.fm-logo-mark { display: inline-flex; align-items: center; font-size: 26px; font-weight: 700; color: #1a1a1a; letter-spacing: 1px; }
.fm-logo-mark i { color: #e60012; font-style: normal; }
.fm-logo-mark i.fm-logo-bar { width: 6px; height: 24px; background: #e1251b; border-radius: 3px; margin-right: 10px; font-style: normal; color: #e1251b; }
.fm-logo-sub { font-size: 12px; color: #999; margin-top: 4px; }
.fm-search { flex: 1; margin: 0 28px; }
.fm-search-form { display: flex; width: 520px; max-width: 100%; border: 2px solid #e60012; border-radius: 2px; height: 40px; }
.fm-search-input { flex: 1; border: 0; padding: 0 12px; font-size: 14px; outline: none; }
.fm-search-btn { width: 96px; border: 0; background: #e60012; color: #fff; font-size: 16px; cursor: pointer; }
.fm-search-btn:hover { background: #d80011; }
.fm-mast-actions { display: flex; align-items: center; }
.fm-btn {
    display: inline-block; padding: 0 20px; height: 40px; line-height: 40px; border-radius: 2px;
    background: #e60012; color: #fff !important; font-size: 15px; text-align: center; cursor: pointer;
}
.fm-btn:hover { background: #d80011; color: #fff; }
.fm-btn.ghost { background: #fff; color: #e60012 !important; border: 1px solid #e60012; margin-left: 10px; }
.fm-btn.ghost:hover { background: #fff5f5; }
.fm-btn.big { height: 46px; line-height: 46px; padding: 0 32px; font-size: 16px; }
.fm-btn.gray { background: #f0f0f0; color: #555 !important; border: 1px solid #ddd; }
.fm-btn.gray:hover { background: #e9e9e9; color: #333; }

/* ---------- 分类导航标签 ---------- */
.fm-tabs { background: #fff; border-bottom: 1px solid #eee; }
.fm-tabs .fm-box { display: flex; align-items: center; }
.fm-tab {
    position: relative; padding: 0 24px; height: 50px; line-height: 50px; font-size: 16px;
    color: #333; cursor: pointer; white-space: nowrap;
}
.fm-tab .fm-tab-ico { margin-right: 5px; }
.fm-tab:hover { color: #e60012; }
.fm-tab.cur { color: #e60012; font-weight: 700; }
.fm-tab.cur::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: #e60012; }
.fm-tab-video { color: #1a1a1a; }
.fm-tab-video.cur { color: #e60012; }

/* ---------- 主体布局 ---------- */
.fm-wrap { display: flex; margin: 16px auto; align-items: flex-start; }
.fm-main { flex: 1; min-width: 0; margin-right: 16px; }
.fm-side { width: 300px; flex: 0 0 300px; }

/* 卡片 */
.fm-card { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 16px; }
.fm-card-hd { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.fm-card-hd h3 { font-size: 16px; font-weight: 700; }
.fm-card-hd h3::before { content: ""; display: inline-block; width: 4px; height: 15px; background: #e60012; margin-right: 8px; vertical-align: -2px; }
.fm-card-hd .fm-more { font-size: 13px; color: #999; }

/* 视频大入口 */
.fm-video-banner {
    position: relative; height: 132px; border-radius: 4px; overflow: hidden; margin-bottom: 16px;
    background: linear-gradient(120deg, #14161d 0%, #2a2f3f 55%, #3a2030 100%);
    color: #fff; display: flex; align-items: center; padding: 0 28px; justify-content: space-between;
}
.fm-video-banner .fm-vb-t { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.fm-video-banner .fm-vb-d { font-size: 13px; color: #cfd4dd; margin-top: 8px; }
.fm-video-banner .fm-vb-btn {
    background: #e60012; color: #fff; padding: 12px 30px; border-radius: 999px; font-size: 16px;
    display: inline-flex; align-items: center;
}
.fm-video-banner .fm-vb-btn:hover { background: #ff1b2e; color: #fff; }
.fm-video-banner .fm-vb-play { font-size: 22px; margin-right: 8px; }

/* ---------- 帖子列表（论坛风） ---------- */
.fm-thread {
    display: flex; padding: 16px 18px; border-bottom: 1px solid #f3f4f6; align-items: flex-start;
}
.fm-thread:hover { background: #fafbfc; }
.fm-th-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; margin-right: 14px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700;
    background: #5b8def;
}
.fm-th-main { flex: 1; min-width: 0; }
.fm-th-title { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.fm-th-title a { color: #1a1a1a; }
.fm-th-title a:hover { color: #e60012; }
.fm-th-ico { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; font-weight: 400; }
.fm-ico-top { background: #e60012; color: #fff; }
.fm-ico-ess { background: #f5a623; color: #fff; }
.fm-ico-new { background: #10a54d; color: #fff; }
.fm-ico-video { background: #1c1c1c; color: #fff; }
.fm-th-meta { display: flex; align-items: center; font-size: 12px; color: #999; flex-wrap: wrap; gap: 4px 14px; }
.fm-chip { display: inline-block; background: #f2f5fa; color: #5b6b86; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 2px; font-size: 12px; }
.fm-chip:hover { background: #e8eef9; color: #2f6fca; }
.fm-th-stats { flex: 0 0 150px; text-align: right; color: #999; font-size: 12px; }
.fm-th-stats .fm-num { font-size: 16px; color: #333; font-weight: 600; }
.fm-th-stats .fm-num.zero { color: #c0c4cc; }
.fm-th-stats .fm-stats-item { display: inline-block; margin-left: 18px; }
.fm-th-stats .fm-stats-item small { display: block; color: #aaa; font-size: 11px; font-weight: 400; }

/* 视频卡片网格（视频分类） */
.fm-vgrid { display: flex; flex-wrap: wrap; padding: 12px; }
.fm-vcard { width: 25%; padding: 6px; }
.fm-vcard-inner { border-radius: 6px; overflow: hidden; background: #000; position: relative; display: block; }
.fm-vcard-thumb { position: relative; width: 100%; padding-top: 132%; background: #000 center/cover; }
.fm-vcard-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px;
    border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.fm-vcard-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.fm-vcard-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-vcard-author { font-size: 11px; color: #ddd; margin-top: 6px; }

/* ---------- 分页 ---------- */
.fm-pager { display: flex; justify-content: center; padding: 18px 0; flex-wrap: wrap; }
.fm-pager a, .fm-pager span {
    display: inline-block; min-width: 34px; height: 34px; line-height: 32px; padding: 0 8px; text-align: center;
    margin: 0 4px; border: 1px solid #ddd; background: #fff; color: #555; border-radius: 2px;
}
.fm-pager a:hover { border-color: #e60012; color: #e60012; }
.fm-pager .cur { background: #e60012; border-color: #e60012; color: #fff; }
.fm-pager .disabled { color: #ccc; background: #fafafa; }

/* ---------- 侧边栏 ---------- */
.fm-side .fm-join { background: linear-gradient(135deg,#e60012,#ff5f5f); color: #fff; text-align: center; padding: 22px 18px; }
.fm-side .fm-join .fm-join-t { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.fm-side .fm-join .fm-join-d { font-size: 12px; opacity: .9; margin-bottom: 16px; }
.fm-side .fm-join .fm-btn { background: #fff; color: #e60012 !important; width: 100%; }
.fm-side .fm-join .fm-btn:hover { background: #fff5f5; }
.fm-side .fm-userbox { display: flex; align-items: center; }
.fm-side .fm-userbox .fm-th-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
.fm-side .fm-userbox .fm-uname { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fm-side .fm-userbox .fm-uinfo { font-size: 12px; color: #999; }
.fm-hotlist li { padding: 10px 18px; border-bottom: 1px solid #f7f7f7; display: flex; }
.fm-hotlist li:last-child { border-bottom: 0; }
.fm-hotlist .fm-rank { flex: 0 0 22px; font-weight: 700; color: #b3b3b3; }
.fm-hotlist li:nth-child(1) .fm-rank, .fm-hotlist li:nth-child(2) .fm-rank, .fm-hotlist li:nth-child(3) .fm-rank { color: #e60012; }
.fm-hotlist .fm-hot-t { flex: 1; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-stat-row { display: flex; text-align: center; padding: 16px 0; }
.fm-stat-row .fm-stat { flex: 1; border-right: 1px solid #f0f0f0; }
.fm-stat-row .fm-stat:last-child { border-right: 0; }
.fm-stat .fm-stat-n { font-size: 20px; font-weight: 700; color: #e60012; }
.fm-stat .fm-stat-l { font-size: 12px; color: #999; margin-top: 2px; }
.fm-note { padding: 14px 18px; font-size: 12px; color: #999; line-height: 1.9; }

/* ---------- 空状态 ---------- */
.fm-empty { text-align: center; padding: 70px 0; color: #aaa; }
.fm-empty .fm-empty-i { font-size: 52px; margin-bottom: 12px; }
.fm-empty p { font-size: 15px; }

/* ---------- 面包屑 ---------- */
.fm-crumb { font-size: 13px; color: #999; padding: 14px 0; }
.fm-crumb a { color: #666; }
.fm-crumb a:hover { color: #e60012; }
.fm-crumb .sep { margin: 0 8px; color: #ccc; }

/* ---------- 详情页 ---------- */
.fm-detail-hd { padding: 22px 26px 16px; border-bottom: 1px solid #f0f0f0; }
.fm-detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; color: #1a1a1a; }
.fm-detail-meta { display: flex; align-items: center; margin-top: 16px; font-size: 13px; color: #999; flex-wrap: wrap; gap: 4px 18px; }
.fm-detail-meta .fm-dauthor { display: flex; align-items: center; }
.fm-detail-meta .fm-mini-avatar { width: 30px; height: 30px; border-radius: 50%; background: #5b8def; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-right: 8px; }
.fm-detail-body { padding: 24px 26px; font-size: 15px; color: #333; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.fm-detail-body img { max-width: 100%; border-radius: 4px; margin: 8px 0; }
.fm-detail-imgs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 24px; }
.fm-detail-imgs img { width: 150px; height: 112px; object-fit: cover; border-radius: 4px; cursor: pointer; }
.fm-detail-video { padding: 10px 26px 26px; }
.fm-detail-video video { width: 100%; max-height: 520px; background: #000; border-radius: 6px; }
.fm-detail-actions { padding: 0 26px 24px; }
.fm-like-btn {
    display: inline-flex; align-items: center; padding: 10px 28px; border: 1px solid #e60012; color: #e60012;
    border-radius: 999px; cursor: pointer; font-size: 15px; background: #fff;
}
.fm-like-btn:hover { background: #fff5f5; }
.fm-like-btn.liked { background: #e60012; color: #fff; }
.fm-like-btn .fm-like-i { font-size: 18px; margin-right: 6px; }

/* 评论 */
.fm-reply-hd { padding: 14px 26px; font-size: 16px; font-weight: 700; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f5f5f5; }
.fm-reply-box { padding: 18px 26px; border-bottom: 1px solid #f0f0f0; }
.fm-reply-box textarea { width: 100%; height: 96px; border: 1px solid #ddd; border-radius: 4px; padding: 10px; resize: vertical; font-family: inherit; font-size: 14px; outline: none; }
.fm-reply-box textarea:focus { border-color: #e60012; }
.fm-reply-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.fm-reply-bar .fm-login-tip { font-size: 13px; color: #999; }
.fm-reply-list { padding: 0 26px; }
.fm-reply-item { display: flex; padding: 18px 0; border-bottom: 1px solid #f5f5f5; }
.fm-reply-item .fm-th-avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 15px; }
.fm-reply-main { flex: 1; min-width: 0; }
.fm-reply-head { font-size: 13px; margin-bottom: 6px; }
.fm-reply-head .fm-rname { color: #2f6fca; font-weight: 600; }
.fm-reply-head .fm-rtime { color: #bbb; margin-left: 10px; }
.fm-reply-content { font-size: 14px; color: #444; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fm-reply-floor { color: #bbb; font-size: 12px; margin-left: 8px; }

/* ---------- 发帖页 ---------- */
.fm-post-card { padding: 24px 28px; }
.fm-form-row { display: flex; margin-bottom: 20px; align-items: flex-start; }
.fm-form-label { width: 110px; flex: 0 0 110px; padding-top: 9px; text-align: right; padding-right: 16px; font-size: 14px; color: #555; }
.fm-form-label .req { color: #e60012; margin-right: 3px; }
.fm-form-ctl { flex: 1; min-width: 0; }
.fm-input, .fm-select {
    width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 3px; padding: 0 12px; font-size: 14px; outline: none; background: #fff;
}
.fm-input:focus, .fm-select:focus, .fm-textarea:focus { border-color: #e60012; }
.fm-textarea { width: 100%; min-height: 200px; border: 1px solid #ddd; border-radius: 3px; padding: 12px; font-size: 14px; font-family: inherit; outline: none; resize: vertical; }
.fm-up-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fm-up-thumb { position: relative; width: 92px; height: 92px; }
.fm-up-thumb img { width: 92px; height: 92px; object-fit: cover; border: 1px solid #eee; border-radius: 4px; }
.fm-up-thumb .fm-up-del { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; text-align: center; line-height: 18px; cursor: pointer; }
.fm-up-btn {
    width: 92px; height: 92px; border: 1px dashed #ccc; border-radius: 4px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #999; cursor: pointer; font-size: 12px; background: #fafafa;
}
.fm-up-btn .fm-up-plus { font-size: 26px; line-height: 1; }
.fm-up-btn:hover { border-color: #e60012; color: #e60012; }
.fm-form-tip { font-size: 12px; color: #aaa; margin-top: 6px; }
.fm-post-audit-tip { background: #fff8e6; border: 1px solid #ffe6a0; color: #b8860b; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 18px; }

/* ---------- 抖音式视频流 ---------- */
.fm-video-page { position: fixed; inset: 0; background: #000; overflow: hidden; z-index: 999; }
.fm-video-feed { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.fm-video-feed::-webkit-scrollbar { display: none; }
.fm-vslide { height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; }
.fm-vslide video { width: 100%; height: 100%; object-fit: cover; }
.fm-v-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 90px 40px 22px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.fm-v-author { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.fm-v-author .fm-v-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e60012; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-right: 10px; vertical-align: middle; }
.fm-v-title { font-size: 15px; line-height: 1.5; }
.fm-v-side { position: absolute; right: 14px; bottom: 90px; display: flex; flex-direction: column; align-items: center; z-index: 5; }
.fm-v-action { color: #fff; text-align: center; margin-bottom: 22px; cursor: pointer; }
.fm-v-action .fm-va-i { font-size: 34px; line-height: 1; }
.fm-v-action .fm-va-n { font-size: 12px; margin-top: 4px; }
.fm-v-action.liked .fm-va-i { color: #ff2d55; }
.fm-v-play-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fm-v-play-mask .fm-va-play { font-size: 70px; color: rgba(255,255,255,.85); }
.fm-v-top { position: fixed; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; padding: 0 16px; z-index: 20; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.fm-v-top .fm-v-back { color: #fff; font-size: 22px; cursor: pointer; margin-right: 16px; }
.fm-v-top .fm-v-name { display: none !important; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.fm-v-up-hint { position: fixed; right: 16px; top: 60%; color: rgba(255,255,255,.55); font-size: 26px; z-index: 6; animation: fmvBounce 1.6s infinite; }
.fm-v-sound { position: fixed; right: 16px; top: 62px; z-index: 21; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; font-size: 22px; border: 1px solid rgba(255,255,255,.22); }
.fm-v-sound:active { background: rgba(230,0,18,.8); }
.fm-share-mask { position: fixed; inset: 0; z-index: 40; display: none; }
.fm-share-mask.show { display: block; }
.fm-share-maskbg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.fm-share-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 20px 16px 18px; color: #222; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.fm-share-title { text-align: center; font-size: 15px; color: #333; padding-bottom: 16px; }
.fm-share-grid { display: flex; justify-content: space-around; }
.fm-share-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.fm-share-ic { width: 52px; height: 52px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.fm-share-ic.wx { background: #07c160; }
.fm-share-ic.dy { background: #161823; }
.fm-share-ic.cp { background: #8a93a6; }
.fm-share-item:active .fm-share-ic { opacity: .8; }
.fm-share-t { font-size: 12px; color: #555; margin-top: 8px; }
.fm-share-qrbox { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.fm-share-qrtip { font-size: 13px; color: #555; margin-bottom: 10px; }
.fm-share-qr { display: block; }
.fm-share-qr img, .fm-share-qr canvas { display: block; width: 168px; height: 168px; }
.fm-share-wxguide { display: none; font-size: 13px; color: #e60012; margin: 6px 0 10px; }
.fm-share-link { width: 86%; box-sizing: border-box; text-align: center; border: 1px solid #eee; border-radius: 6px; padding: 9px 10px; margin-top: 10px; font-size: 12px; color: #666; background: #fafafa; word-break: break-all; -webkit-user-select: text; user-select: text; outline: none; }
.fm-share-cancel { margin-top: 14px; text-align: center; font-size: 15px; color: #666; padding-top: 14px; border-top: 1px solid #eee; cursor: pointer; }
.fm-share-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.82); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 82%; text-align: center; }
.fm-share-toast.show { opacity: 1; }
@keyframes fmvBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fm-v-loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: #aaa; }

/* ---------- 驱动下载页 ---------- */
.fm-driver-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; }
.fm-driver-filter .fm-fg { display: flex; align-items: center; }
.fm-driver-filter .fm-flabel { color: #999; font-size: 13px; margin-right: 8px; }
.fm-driver-filter .fm-select { width: auto; height: 36px; min-width: 130px; }
.fm-driver-search { display: flex; margin-left: auto; }
.fm-driver-search .fm-input { width: 220px; height: 36px; }
.fm-driver-search .fm-btn { height: 36px; line-height: 36px; padding: 0 18px; }
.fm-driver-row { display: flex; align-items: center; padding: 18px; border-bottom: 1px solid #f3f4f6; }
.fm-driver-row:hover { background: #fafbfc; }
.fm-driver-ico { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 6px; background: #eef4ff; color: #2f6fca; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-right: 16px; }
.fm-driver-main { flex: 1; min-width: 0; }
.fm-driver-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.fm-driver-meta { font-size: 12px; color: #999; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fm-driver-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.fm-tag { background: #f2f5fa; color: #5b6b86; padding: 1px 8px; border-radius: 2px; font-size: 12px; }
.fm-driver-side { flex: 0 0 150px; text-align: right; }
.fm-driver-size { font-size: 12px; color: #999; margin-bottom: 8px; }
.fm-dl-btn { display: inline-block; padding: 8px 24px; background: #e60012; color: #fff !important; border-radius: 3px; font-size: 14px; }
.fm-dl-btn:hover { background: #d80011; }
.fm-dl-btn.disabled { background: #ccc; cursor: not-allowed; }

/* ---------- 通用页脚 ---------- */
.fm-footer { background: #fff; border-top: 1px solid #eee; margin-top: 24px; padding: 28px 0; text-align: center; color: #999; font-size: 12px; line-height: 2; }
.fm-footer a { color: #999; margin: 0 8px; }
.fm-footer a:hover { color: #e60012; }

/* 提示 toast */
.fm-toast { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 12px 24px; border-radius: 6px; z-index: 9999; font-size: 14px; display: none; }

/* ---------- 视频右侧：关注/评论/收藏/唱片（抖音式） ---------- */
.fm-v-cover { position: absolute; inset: 0; background-position: center; background-size: cover; }
.fm-v-content { font-size: 13px; opacity: .92; margin-top: 6px; line-height: 1.5; max-height: 72px; overflow: hidden; }
.fm-v-side { bottom: 84px; }
.fm-v-action .fm-va-i { display: flex; align-items: center; justify-content: center; }
.fm-v-action svg { width: 36px; height: 36px; fill: #fff; display: block; }

/* 头像 + 关注加号 */
.fm-v-avatarbox { position: relative; width: 48px; height: 48px; margin-bottom: 16px; cursor: pointer; }
.fm-v-avatarbox .fm-v-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; overflow: hidden; }
.fm-v-add { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fe2c55; color: #fff; font-size: 17px; line-height: 19px; text-align: center; font-weight: 700; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.fm-v-add.followed { background: #b8b8b8; font-size: 13px; line-height: 20px; }

/* 收藏星标高亮 */
.fm-v-action.favored .fm-va-i { color: #ffd400; }

/* 底部旋转黑胶碟片 + 加号 */
.fm-v-disc { position: absolute; right: 15px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; z-index: 6; display: block; text-decoration: none;
  background: radial-gradient(circle at 50% 50%, #0d0d0d 0 24%, #343434 25% 31%, #0d0d0d 32% 52%, #1e1e1e 53% 58%, #0d0d0d 59% 100%);
  box-shadow: 0 0 0 8px rgba(0,0,0,.22); animation: fmvSpin 7s linear infinite; }
.fm-v-disc-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fm-v-disc-add { position: absolute; left: -7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fe2c55; color: #fff; font-size: 18px; line-height: 22px; text-align: center; }
@keyframes fmvSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 评论底部弹层 ---------- */
.fm-cmt-mask { position: fixed; inset: 0; z-index: 45; display: none; }
.fm-cmt-mask.show { display: block; }
.fm-cmt-maskbg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.fm-cmt-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; color: #222; max-height: 72vh; display: flex; flex-direction: column; }
.fm-cmt-hd { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.fm-cmt-title { font-size: 15px; color: #333; }
.fm-cmt-title b { font-weight: 700; color: #fe2c55; }
.fm-cmt-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; color: #999; cursor: pointer; line-height: 1; }
.fm-cmt-list { overflow-y: auto; padding: 4px 16px; flex: 1; min-height: 200px; max-height: 52vh; }
.fm-cmt-empty { color: #aaa; font-size: 13px; text-align: center; padding: 44px 0; }
.fm-cmt-item { display: flex; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.fm-cmt-avatar { width: 38px; height: 38px; border-radius: 50%; color: #fff; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-right: 10px; }
.fm-cmt-body { flex: 1; min-width: 0; }
.fm-cmt-name { font-size: 13px; color: #777; }
.fm-cmt-time { color: #bbb; font-size: 12px; margin-left: 8px; }
.fm-cmt-text { font-size: 15px; color: #222; margin-top: 4px; line-height: 1.5; word-break: break-all; }
.fm-cmt-bar { display: flex; align-items: center; padding: 10px 12px; border-top: 1px solid #f0f0f0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.fm-cmt-bar input { flex: 1; height: 38px; border: 1px solid #eee; border-radius: 19px; padding: 0 16px; font-size: 14px; outline: none; }
.fm-cmt-bar button { margin-left: 10px; height: 38px; padding: 0 22px; border: none; border-radius: 19px; background: #fe2c55; color: #fff; font-size: 14px; }
.fm-cmt-bar button:active { opacity: .85; }

/* ---------- 视频页顶部频道栏 + 底部标签栏（抖音式，后台可配置） ---------- */
.fm-v-nav { flex: 1; display: flex; align-items: center; min-width: 0; }
.fm-v-oldname, .fm-v-oldhint { display: none !important; }

/* 顶部 */
.fm-vn-ico { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex: 0 0 auto; }
.fm-vn-hamburger { margin-right: 12px; }
.fm-vn-more { margin: 0 10px 0 4px; }
.fm-vn-tabs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 20px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fm-vn-tabs::-webkit-scrollbar { display: none; }
.fm-vn-tab, .fm-vn-tab a { display: inline-block; }
.fm-vn-tab { position: relative; color: rgba(255,255,255,.72); font-size: 15px; padding: 4px 0; line-height: 1.2; }
.fm-vn-tab.on { color: #fff; font-weight: 700; font-size: 17px; }
.fm-vn-tab.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -4px; width: 18px; height: 3px; border-radius: 2px; background: #fff; }
.fm-v-nav a, .fm-v-tabbar a { text-decoration: none; color: inherit; }
.fm-vn-tab.fm-v-ph, .fm-vn-search.fm-v-ph { cursor: pointer; }

/* 红色角标 */
.fm-v-badge { position: absolute; top: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fe2c55; color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-style: normal; box-sizing: border-box; }
.fm-vn-hamburger .fm-v-badge { left: 14px; }

/* 底部标签栏 */
.fm-v-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 54px; padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: center; justify-content: space-around; background: rgba(0,0,0,.94); border-top: 1px solid rgba(255,255,255,.08); }
.fm-v-go, .fm-v-ph { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff; cursor: pointer; }
.fm-vt-n { color: #ffffff; }
.fm-vt-ic, .fm-v-tabbar svg { color: #ffffff; }
.fm-vt-item { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fm-vt-ic { display: flex; align-items: center; justify-content: center; }
.fm-vt-n { font-size: 11px; line-height: 1; margin-top: 3px; }
.fm-v-go.on { color: #fff; }
.fm-v-go.on .fm-vt-n { font-weight: 700; }
.fm-v-go.on .fm-vt-item { color: #fff; }
.fm-vt-item .fm-v-badge { top: -4px; right: -8px; }
.fm-vt-plus { position: relative; top: -7px; width: 46px; height: 30px; border-radius: 9px; background: linear-gradient(90deg,#20e5ff 0 46%,#fe2c55 54% 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fm-vt-plus i { width: 40px; height: 26px; border-radius: 7px; background: #fff; color: #111; font-style: normal; font-weight: 700; font-size: 22px; line-height: 24px; text-align: center; }

/* 左侧分类抽屉 */
.fm-v-drawer-mask { position: fixed; inset: 0; z-index: 50; display: none; }
.fm-v-drawer-mask.show { display: block; }
.fm-v-drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.fm-v-drawer { position: absolute; left: 0; top: 0; bottom: 0; width: 72%; max-width: 300px; background: #161823; color: #fff; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
.fm-v-drawer-mask.show .fm-v-drawer { transform: translateX(0); }
.fm-v-drawer-hd { padding: 20px 20px 16px; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.fm-v-drawer-list a { display: flex; align-items: center; gap: 12px; padding: 15px 20px; color: #e6e6e6; font-size: 15px; }
.fm-v-drawer-list a:active { background: rgba(255,255,255,.06); }
.fm-v-drawer-list .fm-vd-dot { width: 7px; height: 7px; border-radius: 50%; background: #fe2c55; flex: 0 0 7px; }

/* 底部标签栏避让：右侧操作栏与唱片、视频信息上移 */
.fm-v-side { bottom: 110px !important; }
.fm-v-disc { bottom: 68px; }
.fm-v-overlay { padding-bottom: 86px; }
/* ================= Douyin jingxuan standalone video stage ================= */
.fm-video-page {
  background: #161823;
  --sw: min(100vw, calc(100vh * 9 / 16));
}
.fm-video-feed {
  width: var(--sw);
  margin-left: auto;
  margin-right: auto;
  background: #000;
}
.fm-v-top { height: 56px; }
.fm-vn-tab { font-size: 16px; letter-spacing: .5px; }
.fm-vn-tab.on { font-size: 19px; }
.fm-v-action { user-select: none; -webkit-user-select: none; }
.fm-v-action .fm-va-i { filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.fm-v-action .fm-va-n { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.fm-v-title, .fm-v-author, .fm-v-content { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.fm-v-prog { position: absolute; left: 14px; right: 72px; bottom: 62px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); z-index: 7; overflow: hidden; pointer-events: none; }
.fm-v-prog i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.92); border-radius: 3px; }
@media (min-aspect-ratio: 9/16) and (min-width: 480px) {
  .fm-video-feed {
    height: calc(100% - 24px);
    top: 12px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 14px 60px rgba(0,0,0,.62);
  }
  .fm-vslide video { object-fit: contain; }
  .fm-v-cover { background-size: contain; }
  .fm-v-top { left: 0; right: 0; top: 12px; width: var(--sw); margin-left: auto; margin-right: auto; border-radius: 14px 14px 0 0; }
  .fm-v-tabbar { left: 0; right: 0; bottom: 12px; width: var(--sw); margin-left: auto; margin-right: auto; border-radius: 0 0 14px 14px; }
  .fm-v-sound { right: calc((100vw - var(--sw))/2 + 12px); }
  .fm-v-up-hint { right: calc((100vw - var(--sw))/2 + 14px); }
  .fm-cmt-sheet, .fm-share-sheet { width: var(--sw); bottom: 12px; margin-left: auto; margin-right: auto; border-radius: 16px 16px 16px 16px; }
}

/* ============================================================
   Wide-screen & responsive adaptation (forum content pages).
   Tiers align with mall site: >=1600 -> 1600; 1280-1599 -> 1225;
   <1280 -> 985; <1024 -> fluid single column. Standalone video
   page (.fm-video-page) has no .fm-box and is NOT affected.
   ============================================================ */
.fm-box { width: 100%; max-width: 1600px; padding: 0 16px; }
@media (max-width: 1599px) { .fm-box { max-width: 1225px; padding: 0 10px; } }
@media (max-width: 1279px) { .fm-box { max-width: 985px; padding: 0 12px; } }
@media (max-width: 1023px) { .fm-box { max-width: 100%; padding: 0 12px; } }
@media (min-width: 1600px) { .fm-search-form { width: 660px; } .fm-detail-video video { max-height: 660px; } }

/* video category grid columns by viewport (default 4 = 25%) */
@media (min-width: 1600px) { .fm-vgrid .fm-vcard { width: 20%; } }
@media (max-width: 1023px) { .fm-vgrid .fm-vcard { width: 33.3333%; } }
@media (max-width: 767px) { .fm-vgrid .fm-vcard { width: 50%; } }
@media (max-width: 479px) { .fm-vgrid .fm-vcard { width: 100%; } }

/* medium-narrow: keep masthead comfortable */
@media (max-width: 1279px) { .fm-logo img { height: 56px; padding-right: 16px; margin-right: 16px; } .fm-search { margin: 0 16px; } }

/* ---- tablet / phone: single column, stacked masthead ---- */
@media (max-width: 1023px) {
  .fm-tabs .fm-box { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .fm-tabs .fm-box::-webkit-scrollbar { display: none; }
  .fm-tab { padding: 0 16px; }
  .fm-masthead .fm-box { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .fm-logo { width: 100%; }
  .fm-logo img { height: 52px; }
  .fm-mast-actions { margin-left: auto; }
  .fm-search { flex: 1 1 100%; order: 3; margin: 12px 0 0; }
  .fm-search-form { width: 100%; }
  .fm-wrap { flex-direction: column; }
  .fm-main { margin-right: 0; width: 100%; }
  .fm-side { width: 100%; flex: 0 0 auto; }
  .fm-tb-left { display: none; }
  .fm-topbar .fm-box { justify-content: center; }
  .fm-th-stats { flex: 0 0 92px; }
  .fm-th-stats .fm-stats-item { margin-left: 10px; }
  .fm-detail-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fm-detail-imgs img { width: 100%; height: auto; }
  .fm-driver-row { flex-wrap: wrap; }
  .fm-driver-side { flex: 1 1 100%; text-align: left; margin-top: 10px; }
  .fm-driver-search { margin-left: 0; }
  .fm-form-row { flex-direction: column; }
  .fm-form-label { width: auto; flex: none; text-align: left; padding: 0 0 6px; }
  .fm-detail-title { font-size: 19px; }
}
@media (max-width: 479px) {
  .fm-detail-imgs { grid-template-columns: 1fr; }
  .fm-th-stats { display: none; }
  .fm-detail-video video { max-height: 320px; }
}
