﻿/* ============================================================
   弘承精密工具 - 公共样式
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; color: #333; background: #f5f6fa; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; font-size: 14px; width: 100%; }
input:focus { border-color: #1a6fd4; }

/* ---- 整体布局 ---- */
body { max-width: 768px; margin: 0 auto; min-height: 100vh; position: relative; background: #f5f6fa; }
@media (min-width: 769px) { body { box-shadow: 0 0 40px rgba(0,0,0,0.1); } html { background: #e0e0e0; } }

/* ---- 顶部导航 ---- */
.navbar { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.navbar .nav-back { font-size: 20px; cursor: pointer; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.navbar .nav-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; margin-right: 32px; }
.navbar .nav-action { font-size: 14px; cursor: pointer; white-space: nowrap; }

/* ---- 底部导航 ---- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 768px; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 100; padding: 4px 0 env(safe-area-inset-bottom,0); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0; color: #999; font-size: 11px; }
.tabbar a .tb-icon { font-size: 22px; margin-bottom: 2px; }
.tabbar a.active { color: #1a6fd4; }
.page-content { padding-bottom: 70px; }

/* ---- 卡片 ---- */
.card { background: #fff; border-radius: 14px; padding: 16px; margin: 12px 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }

/* ---- 按钮 ---- */
.btn { display: inline-block; border-radius: 22px; padding: 10px 28px; font-size: 14px; text-align: center; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: linear-gradient(135deg, #1a6fd4, #0f3460); color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-outline { background: #fff; color: #1a6fd4; border: 1.5px solid #1a6fd4; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; }

/* ---- 文字颜色 ---- */
.text-primary { color: #1a6fd4; } .text-danger { color: #e74c3c; } .text-success { color: #27ae60; } .text-gray { color: #999; } .text-orange { color: #f39c12; }

/* ---- 价格 ---- */
.price { color: #e74c3c; font-weight: bold; }
.price-lg { font-size: 20px; }
.price-unit { font-size: 12px; }
.price-old { font-size: 13px; color: #bbb; text-decoration: line-through; margin-left: 8px; }

/* ---- VIP 徽章 ---- */
.vip-tag { background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: bold; }

/* ---- 空状态 ---- */
.empty { text-align: center; padding: 60px 20px; color: #bbb; }
.empty .empty-icon { font-size: 56px; margin-bottom: 10px; }
.empty .empty-text { font-size: 14px; }

/* ---- 加载 ---- */
.loading { text-align: center; padding: 40px; }
.spinner { width: 36px; height: 36px; border: 3px solid #eee; border-top-color: #1a6fd4; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---- Toast ---- */
#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8); background: rgba(0,0,0,0.78); color: #fff; padding: 10px 24px; border-radius: 20px; font-size: 14px; z-index: 9999; opacity: 0; transition: all .25s; pointer-events: none; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

#pull-indicator { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; padding: 12px; text-align: center; font-size: 13px; color: #1a73e8; background: #e8f0fe; display: none; align-items: center; justify-content: center; gap: 8px; }
#pull-indicator.show { display: flex; }

/* 轮播Banner */
.carousel { margin: 12px 16px; border-radius: 12px; overflow: hidden; position: relative; height: 180px; background: #1a1a2e; }
.carousel-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; height: 100%; position: relative; display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.carousel-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 16px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 14px; font-weight: bold; }
.carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; z-index: 5; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.carousel-dots span.active { background: #fff; }

/* ---- Modal ---- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 40px; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 320px; overflow: hidden; animation: modalIn .2s; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } }
.modal-hd { font-size: 17px; font-weight: 600; padding: 20px 20px 0; text-align: center; }
.modal-bd { font-size: 14px; color: #555; padding: 16px 20px; text-align: center; line-height: 1.6; }
.modal-ft { display: flex; border-top: 1px solid #f0f0f0; }
.modal-ft button { flex: 1; padding: 14px; font-size: 15px; background: none; border: none; cursor: pointer; }
.modal-ft .btn-cancel { color: #999; border-right: 1px solid #f0f0f0; }
.modal-ft .btn-ok { color: #1a6fd4; font-weight: 600; }
.modal-input { margin: 0 20px 16px; border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; font-size: 14px; width: calc(100% - 40px); }

/* ---- 公司 Banner ---- */
.banner { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); padding: 24px 20px; color: #fff; }
.banner-top { display: flex; align-items: center; margin-bottom: 14px; }
.banner-logo { width: 56px; height: 56px; border-radius: 14px; margin-right: 14px; flex-shrink: 0; object-fit: cover; }
.banner-name { font-size: 20px; font-weight: bold; display: block; margin-bottom: 4px; }
.banner-sub { font-size: 13px; color: rgba(255,255,255,.7); display: block; margin-bottom: 6px; }
.banner-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-tags span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); font-size: 11px; padding: 2px 10px; border-radius: 12px; }
.banner-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 14px; }
.banner-stats { display: flex; justify-content: space-around; background: rgba(255,255,255,.08); border-radius: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.1); }
.banner-stat { text-align: center; }
.banner-stat .num { font-size: 20px; font-weight: bold; color: #64b5f6; display: block; }
.banner-stat .lbl { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---- 搜索 ---- */
.search-bar { margin: 12px 14px 0; display: flex; gap: 8px; }
.search-box { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 22px; padding: 8px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.search-box .s-icon { font-size: 16px; margin-right: 8px; }
.search-box input { flex: 1; font-size: 13px; border: none; padding: 0; background: none; }
.search-box input:focus { border: none; }
.search-btn { background: linear-gradient(135deg, #1a6fd4, #0f3460); color: #fff; font-size: 13px; border-radius: 22px; padding: 8px 20px; border: none; }

/* ---- 区块 ---- */
.section { margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-hd .title { font-size: 17px; font-weight: bold; color: #1a1a2e; }
.section-hd .more { font-size: 13px; color: #1a6fd4; }

/* ---- 视频卡片 ---- */
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-card { display: flex; border-radius: 12px; overflow: hidden; background: #fafafa; border: 1px solid #f0f0f0; cursor: pointer; transition: box-shadow .2s; }
.video-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.video-cover { position: relative; width: 130px; min-height: 90px; flex-shrink: 0; background: #1a1a2e; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 32px; height: 32px; background: rgba(255,255,255,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #1a1a2e; }
.video-body { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.video-body .v-title { font-size: 14px; font-weight: 500; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-body .v-footer { display: flex; justify-content: space-between; align-items: center; }
.video-body .v-sales { font-size: 12px; color: #bbb; }

/* ---- 商品网格 ---- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); border: 1px solid #f0f0f0; cursor: pointer; display: block; }
.prod-card img { width: 100%; height: 140px; object-fit: cover; display: block; background: #f5f5f5; }
.prod-info { padding: 10px 12px; }
.prod-info .p-name { font-size: 13px; font-weight: 500; color: #222; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.prod-info .p-spec { font-size: 12px; color: #999; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.prod-info .p-footer { display: flex; justify-content: space-between; align-items: center; }
.prod-info .p-sales { font-size: 11px; color: #bbb; }

/* ---- 分类页 ---- */
.cat-wrap { display: flex; height: calc(100vh - 110px); }
.cat-left { width: 100px; background: #f5f5f5; overflow-y: auto; flex-shrink: 0; }
.cat-left a { display: block; padding: 14px 10px; text-align: center; font-size: 14px; color: #666; border-left: 3px solid transparent; }
.cat-left a.active { background: #fff; color: #1a6fd4; border-left-color: #1a6fd4; font-weight: 600; }
.cat-right { flex: 1; overflow-y: auto; position: relative; }
.cat-letter-hd { font-size: 13px; font-weight: 600; color: #999; padding: 8px 14px; background: #f9f9f9; position: sticky; top: 0; }
.cat-video { display: flex; padding: 10px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; align-items: center; gap: 10px; }
.cat-video img { width: 100px; height: 64px; border-radius: 6px; object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
.cat-video .cv-meta { font-size: 12px; color: #999; margin-top: 4px; }
.cat-index { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; justify-content: space-around; font-size: 11px; padding: 4px 2px; z-index: 5; min-width: 20px; background: rgba(255,255,255,0.92); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.cat-index a { color: #1a6fd4; padding: 1px 3px; border-radius: 3px; text-align: center; }

/* ---- 登录 ---- */
.login-wrap { display: flex; flex-direction: column; align-items: center; padding: 50px 20px; min-height: 100vh; }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo .ll-circle { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 14px; display: block; object-fit: cover; }
.login-logo .ll-name { font-size: 22px; font-weight: bold; color: #1a1a2e; display: block; margin-bottom: 4px; }
.login-logo .ll-sub { font-size: 13px; color: #999; display: block; }
.login-card { width: 100%; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.login-card h3 { text-align: center; margin-bottom: 18px; font-size: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-group input { width: 100%; }

/* ---- 个人中心 ---- */
.user-card { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); color: #fff; padding: 24px 20px; display: flex; align-items: center; }
.user-card img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); object-fit: cover; margin-right: 14px; flex-shrink: 0; }
.user-card .uc-info { flex: 1; }
.user-card .uc-name { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.user-card .uc-phone { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 2px; }
.user-card .uc-vip-since { font-size: 11px; color: rgba(255,255,255,.4); }
.become-vip { margin: 12px 14px; background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; padding: 12px; border-radius: 20px; text-align: center; font-size: 13px; cursor: pointer; display: block; }
.login-prompt { text-align: center; padding: 80px 20px; }
.login-prompt .lp-icon { font-size: 64px; margin-bottom: 12px; }
.login-prompt .lp-text { font-size: 14px; color: #999; margin-bottom: 18px; }
.order-tabs { display: flex; justify-content: space-around; padding: 4px 0; }
.order-tabs a { text-align: center; position: relative; padding: 4px; }
.order-tabs .ot-icon { font-size: 26px; display: block; margin-bottom: 2px; }
.order-tabs .ot-label { font-size: 12px; color: #666; }
.order-tabs .ot-badge { position: absolute; top: -2px; right: -6px; background: #e74c3c; color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; line-height: 18px; text-align: center; padding: 0 4px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.menu-item + .menu-item { border-top: 1px solid #f5f5f5; }
.menu-item .mi-left { display: flex; align-items: center; gap: 12px; }
.menu-item .mi-icon { font-size: 20px; }
.menu-item .mi-text { font-size: 14px; }
.menu-item .mi-arrow { font-size: 18px; color: #ccc; }
.logout-link { display: block; text-align: center; color: #999; font-size: 14px; padding: 20px; margin: 10px 14px; cursor: pointer; }

/* ---- 订单 ---- */
.status-bar { display: flex; background: #fff; padding: 6px 10px; position: sticky; top: 44px; z-index: 80; overflow-x: auto; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.status-bar::-webkit-scrollbar { display: none; }
.status-bar a { padding: 8px 16px; font-size: 13px; color: #666; border-radius: 16px; margin: 0 3px; flex-shrink: 0; }
.status-bar a.active { background: #1a6fd4; color: #fff; }
.order-card { background: #fff; margin: 8px 14px; border-radius: 12px; padding: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.order-hd { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-no { font-size: 12px; color: #999; }
.order-status { font-size: 12px; font-weight: 600; }
.os-pending { color: #f39c12; } .os-shipped { color: #1a6fd4; } .os-delivering { color: #27ae60; }
.os-review { color: #8e44ad; } .os-done { color: #999; } .os-cancelled { color: #bbb; }
.os-refunding { color: #e67e22; } .os-refunded { color: #27ae60; }
.order-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.order-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
.order-item .oi-info { flex: 1; min-width: 0; }
.order-item .oi-name { font-size: 13px; color: #222; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.order-item .oi-spec { font-size: 12px; color: #999; margin-bottom: 4px; }
.order-item .oi-price-row { display: flex; justify-content: space-between; }
.order-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-total { font-size: 13px; color: #555; }
.order-actions { display: flex; gap: 6px; }
.pay-btn { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* ---- 订单详情 ---- */
.detail-status { padding: 16px 14px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.detail-card { background: #fff; margin: 8px 14px; border-radius: 12px; padding: 16px; }
.detail-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.addr-line { font-size: 14px; line-height: 1.6; color: #555; }
.addr-name { font-weight: 600; color: #333; margin-right: 12px; }
.info-row { font-size: 13px; color: #666; line-height: 2; }

/* ---- 地址 ---- */
.addr-card { background: #fff; margin: 8px 14px; border-radius: 12px; padding: 16px; position: relative; }
.addr-card .a-name { font-size: 15px; font-weight: 600; }
.addr-card .a-phone { color: #666; margin-left: 12px; }
.addr-card .a-detail { font-size: 13px; color: #666; line-height: 1.5; margin-top: 6px; }
.addr-card .a-actions { display: flex; gap: 12px; margin-top: 10px; }
.addr-card .a-actions a { font-size: 12px; color: #1a6fd4; }
.default-tag { background: #e8f5e9; color: #27ae60; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.form-inline { display: flex; gap: 10px; }
.form-inline > * { flex: 1; }

/* ---- 收藏/学习记录 ---- */
.list-card { background: #fff; margin: 8px 14px; border-radius: 12px; padding: 12px; display: flex; gap: 12px; cursor: pointer; }
.list-card img { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
.list-card .lc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.list-card .lc-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card .lc-meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; }

/* ---- 视频播放器（防下载模式） ---- */
.video-wrap { background: #000; position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-callout: none; }
.video-wrap video { width: 100%; height: auto; max-height: 80vh; display: block; background: #000; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ===== 强制隐藏视频原生下载按钮（Chrome/Safari/Edge/iOS/Android） ===== */
video::-internal-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-overflow-button { display: none !important; }
/* 将控制面板右移 30px，把下载按钮挤出可视区域 */
video::-webkit-media-controls-enclosure { overflow: hidden !important; }
video::-webkit-media-controls-panel { width: calc(100% + 30px) !important; }

/* 全屏时视频撑满 */
.video-wrap:fullscreen,
.video-wrap:-webkit-full-screen { display: flex; align-items: center; justify-content: center; }
.video-wrap:fullscreen video,
.video-wrap:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; }
.video-wrap.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-wrap.fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 全屏横屏策略：桌面用浏览器原生全屏；安卓用系统锁横屏；iOS/微信引导用户旋转（不旋转页面元素，规避 webview 兼容问题） */
/* 隐藏原生控件的全屏按钮：全屏必须走页面按钮，否则原生全屏层会盖住水印 */
video::-webkit-media-controls-fullscreen-button { display: none !important; }

.custom-controls { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); padding: 4px 8px; display: flex; align-items: center; z-index: 20; }
.custom-controls button { background: none; border: none; color: #fff; font-size: 12px; cursor: pointer; padding: 4px 6px; white-space: nowrap; }
.custom-controls input[type=range] { accent-color: #1a73e8; height: 4px; }
.video-toolbar { display: flex; background: rgba(0,0,0,.75); padding: 6px 16px; gap: 20px; justify-content: center; }
.video-toolbar button { background: none; border: none; color: #fff; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.video-toolbar .vt-icon { font-size: 20px; }
.preview-timer { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); padding: 3px 10px; border-radius: 14px; font-size: 12px; color: #fff; z-index: 20; }
.preview-ending { background: rgba(231,76,60,.8); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.bought-tip { background: #e8f5e9; color: #27ae60; padding: 12px 14px; margin: 10px 14px; border-radius: 10px; font-size: 14px; }
.bottom-bar { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 768px; background: #fff; padding: 12px 16px; display: flex; align-items: center; box-shadow: 0 -2px 12px rgba(0,0,0,.06); z-index: 101; gap: 12px; }
.bottom-bar .bb-fav { font-size: 24px; cursor: pointer; }
.buy-btn { flex: 1; background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; border-radius: 24px; font-size: 15px; padding: 14px; font-weight: 500; border: none; }
.buy-btn.green { background: linear-gradient(135deg, #27ae60, #1e8449); }

/* ---- 水印 & 马赛克 ---- */
.wm-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 10; display: flex; flex-direction: column; justify-content: space-around; overflow: hidden; }
.wm-row { display: flex; justify-content: space-around; }
.wm-row span { font-size: 10px; color: rgba(255,255,255,.18); transform: rotate(-25deg); padding: 8px 16px; white-space: nowrap; }
.watermark-layer { position: absolute; inset: 0; pointer-events: none; z-index: 11; overflow: hidden; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 40px 60px; transform: rotate(-20deg); opacity: 0.07; }
.watermark-layer span { font-size: 18px; color: #fff; white-space: nowrap; user-select: none; }
/* 视频分类标签 */
.tag-category {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  margin: 2px 0;
  vertical-align: middle;
}
/* 分类切换标签 */
.cat-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.cat-tab.active { background: #1a73e8; color: #fff; }

/* ---- 响应式 ---- */
@media (min-width: 769px) { .video-wrap video { height: 400px; } }
