/* =========================================================
   Reignwood 金色主题 (theme-rw)
   作用域：仅对 <body class="theme-rw"> 的 4 类页面生效
   参照：111(首页) 222(分类) 333(最新) 444(排行)
   所有视频数据均由后台标签动态输出，无硬编码
   ========================================================= */

.theme-rw{
  --gold:#C9A063; --gold-2:#E8C892; --gold-deep:#9C7A3C; --gold-soft:rgba(201,160,99,.14);
  --red:#E0322F; --red-2:#FF6F61;
  --green:#1E9E6A; --green-2:#41D98C;
  --blue:#1E6FE0; --blue-2:#54A9FF;
  --culture:#9B6B43; --culture-2:#D2A679;
  --oversea:#0FA3A3; --oversea-2:#2FD6D6;
  --purple:#B07CC6; --purple-2:#D9AEE8;
  --bg:#0E0C0A; --bg-2:#13110E; --bg-3:#1A1610; --bg-glass:rgba(14,12,10,.72);
  --line:rgba(255,240,220,.09); --line-2:rgba(255,240,220,.14);
  --txt:#F1EEE8; --txt-2:#A39A8C; --txt-3:#6E665A;
  --r:18px; --r-sm:12px;
  --shadow:0 22px 60px -14px rgba(0,0,0,.7);
  --ease:cubic-bezier(.22,1,.36,1);
  background:#0E0C0A !important;
  background-image:none !important;
  background-attachment:scroll !important;
  color:var(--txt) !important;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
}
.theme-rw *{box-sizing:border-box}
.theme-rw h3,.theme-rw h4,.theme-rw h5,.theme-rw h6{color:var(--txt)}
.theme-rw .list-head h2{color:var(--txt)}
.theme-rw a{color:inherit;text-decoration:none}
.theme-rw img{display:block;max-width:100%}
.theme-rw ::selection{background:var(--gold);color:#1a1206}

/* ambient aurora */
.theme-rw .aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.theme-rw .aurora span{position:absolute;border-radius:50%;filter:blur(100px);opacity:.45;animation:rw-float 20s var(--ease) infinite alternate}
.theme-rw .aurora .a1{width:560px;height:560px;background:radial-gradient(circle,#C9A063,transparent 70%);top:-140px;left:-90px}
.theme-rw .aurora .a2{width:480px;height:480px;background:radial-gradient(circle,#1E6FE0,transparent 70%);bottom:-120px;right:-70px;animation-delay:-7s}
.theme-rw .aurora .a3{width:420px;height:420px;background:radial-gradient(circle,#1E9E6A,transparent 70%);top:42%;left:56%;animation-delay:-13s}
@keyframes rw-float{to{transform:translate3d(46px,34px,0) scale(1.16)}}

.theme-rw .wrap{position:relative;z-index:1;max-width:1300px;margin:0 auto;padding:0 28px}

/* ===== Header ===== */
.theme-rw header{position:fixed;top:0;left:0;right:0;z-index:100;transition:.4s var(--ease);
  background:linear-gradient(180deg,rgba(14,12,10,.92) 0%,rgba(14,12,10,.78) 55%,rgba(14,12,10,.25) 92%,rgba(14,12,10,0) 100%);
  backdrop-filter:blur(8px) saturate(130%)}
.theme-rw header.scrolled{background:var(--bg-glass);backdrop-filter:blur(20px) saturate(130%);border-bottom:1px solid var(--line);box-shadow:0 8px 30px -12px rgba(0,0,0,.6)}
.theme-rw .topbar{height:3px;background:linear-gradient(90deg,var(--red),var(--green),var(--blue),var(--oversea),var(--culture),var(--gold));opacity:.9}
.theme-rw .hd-top{display:flex;align-items:center;gap:22px;height:70px}
.theme-rw .logo img{height:68px;width:auto;max-width:none;object-fit:contain;object-position:left center;filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}
.theme-rw .search{flex:1;min-width:0;max-width:820px}
.theme-rw .search form{display:flex;align-items:center;gap:10px;height:44px;padding:0 6px 0 18px;border:1px solid var(--line-2);
  border-radius:50px;background:rgba(255,255,255,.04);transition:.3s var(--ease)}
.theme-rw .search form:focus-within{border-color:var(--gold);box-shadow:0 0 0 4px var(--gold-soft)}
.theme-rw .search svg{width:18px;height:18px;color:var(--txt-3);flex:0 0 auto}
.theme-rw .search input{flex:1;background:none;border:none;outline:none;color:var(--txt);font-size:14px}
.theme-rw .search input::placeholder{color:var(--txt-3)}
.theme-rw .search button{flex:0 0 auto;height:32px;padding:0 18px;border:none;border-radius:50px;cursor:pointer;font-size:13px;font-weight:600;
  color:#1a1206;background:linear-gradient(120deg,var(--gold),var(--gold-2));transition:.3s}
.theme-rw .search button:hover{filter:brightness(1.08)}
.theme-rw .tools{display:flex;align-items:center;gap:6px;margin-left:auto}
.theme-rw .tool{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 12px;border-radius:12px;
  color:var(--txt-2);font-size:11.5px;cursor:pointer;transition:.3s var(--ease)}
.theme-rw .tool:hover{color:var(--gold-2);background:rgba(255,255,255,.05)}
.theme-rw .tool .ti{font-size:17px;line-height:1}
.theme-rw .tool.login{margin-left:6px;flex-direction:row;gap:7px;padding:9px 20px;border-radius:50px;font-size:13.5px;font-weight:600;
  color:#1a1206;background:linear-gradient(120deg,var(--gold),var(--gold-2));box-shadow:0 8px 22px -8px rgba(201,160,99,.6)}
.theme-rw .tool.login:hover{transform:translateY(-2px);color:#1a1206}
.theme-rw .tool.login .ti{font-size:15px}
.theme-rw .qr{position:absolute;top:calc(100% + 12px);right:0;width:190px;padding:16px;border-radius:16px;background:var(--bg-2);
  border:1px solid var(--line-2);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(8px);transition:.3s var(--ease);z-index:20}
.theme-rw .tool.qrcode:hover .qr{opacity:1;visibility:visible;transform:none}
.theme-rw .qr img{width:100%;border-radius:10px;background:#fff}
.theme-rw .qr p{margin-top:10px;text-align:center;color:var(--txt-3);font-size:12px}
.theme-rw .hd-nav{border-top:1px solid var(--line)}
.theme-rw .nav-links{display:flex;gap:4px;height:52px;align-items:center;overflow-x:auto;scrollbar-width:none}
.theme-rw .nav-links::-webkit-scrollbar{display:none}
.theme-rw .nav-links a{position:relative;padding:8px 16px;font-size:14.5px;color:#D8DDE6;font-weight:600;
  border-radius:10px;transition:.3s var(--ease);white-space:nowrap;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.theme-rw .nav-links a:hover{color:var(--gold-2);background:rgba(201,160,99,.14);box-shadow:inset 0 0 0 1px rgba(201,160,99,.4)}
.theme-rw .nav-links a.active{color:var(--gold-2)}
.theme-rw .nav-links a.active::after{content:"";position:absolute;left:16px;right:16px;bottom:2px;height:2px;background:linear-gradient(90deg,var(--gold),var(--gold-2));border-radius:2px}
.theme-rw .menu-btn{display:none}

/* ===== Hero ===== */
.theme-rw .hero{position:relative;height:88vh;min-height:560px;overflow:hidden}
.theme-rw .slides{position:absolute;inset:0}
.theme-rw .slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s var(--ease);transform:scale(1.08)}
.theme-rw .slide.active{opacity:1;animation:rw-kb 7s ease-out forwards}
@keyframes rw-kb{to{transform:scale(1)}}
.theme-rw .slide img{width:100%;height:100%;object-fit:cover}
.theme-rw .slide::after{content:"";position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(14,12,10,.55) 0%,rgba(14,12,10,.12) 38%,rgba(14,12,10,.9) 100%),
  radial-gradient(120% 80% at 20% 100%,rgba(201,160,99,.25),transparent 60%)}
.theme-rw .hero-inner{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 0 10vh;max-width:1300px;margin:0 auto;left:0;right:0;padding-left:28px;padding-right:28px}
.theme-rw .hero-tag{display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:7px 16px;border:1px solid rgba(201,160,99,.5);
  border-radius:50px;color:var(--gold-2);font-size:13px;letter-spacing:2px;background:rgba(201,160,99,.08);
  backdrop-filter:blur(6px);margin-bottom:22px;opacity:0;transform:translateY(20px);animation:rw-rise .9s var(--ease) .2s forwards}
.theme-rw .hero h1{font-size:clamp(38px,6vw,78px);font-weight:800;line-height:1.05;letter-spacing:2px;
  color:var(--gold);
  opacity:0;transform:translateY(24px);animation:rw-rise .9s var(--ease) .35s forwards}
.theme-rw .hero p{margin-top:16px;font-size:clamp(15px,2vw,19px);color:var(--txt-2);max-width:560px;
  opacity:0;transform:translateY(24px);animation:rw-rise .9s var(--ease) .5s forwards}
.theme-rw .hero-btns{margin-top:30px;display:flex;gap:16px;flex-wrap:wrap;opacity:0;transform:translateY(24px);animation:rw-rise .9s var(--ease) .65s forwards}
.theme-rw .btn{display:inline-flex;align-items:center;gap:9px;padding:14px 30px;border-radius:50px;font-size:15px;font-weight:600;transition:.35s var(--ease);cursor:pointer}
.theme-rw .btn-gold{background:linear-gradient(120deg,var(--gold),var(--gold-2));color:#1a1206;box-shadow:0 10px 30px -8px rgba(201,160,99,.6)}
.theme-rw .btn-gold:hover{transform:translateY(-3px);box-shadow:0 16px 40px -8px rgba(201,160,99,.8)}
.theme-rw .btn-ghost{border:1px solid var(--line-2);color:#fff;background:rgba(255,255,255,.04)}
.theme-rw .btn-ghost:hover{border-color:var(--gold);color:var(--gold-2);transform:translateY(-3px)}
@keyframes rw-rise{to{opacity:1;transform:translateY(0)}}
.theme-rw .hero-dots{position:absolute;bottom:34px;right:28px;z-index:4;display:flex;gap:10px}
.theme-rw .hero-dots b{width:34px;height:4px;border-radius:4px;background:rgba(255,255,255,.25);cursor:pointer;transition:.3s}
.theme-rw .hero-dots b.on{background:linear-gradient(90deg,var(--gold),var(--gold-2));width:52px}
.theme-rw .scroll-hint{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:4;display:inline-flex;flex-direction:column;align-items:center;gap:6px;color:var(--txt-3);font-size:12px;letter-spacing:2px;animation:rw-bob 2s ease-in-out infinite}
.theme-rw .scroll-hint::after{content:"👇";font-size:14px;filter:drop-shadow(0 0 8px rgba(232,200,146,.4));animation:rw-bob-arrow 1.4s ease-in-out infinite}
@keyframes rw-bob-arrow{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(4px);opacity:1}}
@keyframes rw-bob{50%{transform:translate(-50%,8px)}}

/* ===== 板块浏览 (首页) ===== */
.theme-rw .explore{position:relative;z-index:2;padding:70px 0 40px}
.theme-rw .ex-head{text-align:center;margin-bottom:36px}
.theme-rw .ex-head .kicker{display:inline-block;color:var(--gold-2);font-size:13px;letter-spacing:5px;margin-bottom:12px}
.theme-rw .ex-head h2{font-size:clamp(26px,3.4vw,40px);font-weight:800;letter-spacing:1px;
  color:var(--gold)}
.theme-rw .ex-head p{margin-top:10px;color:var(--txt-3);font-size:14px}

.theme-rw .tabbar{position:relative;z-index:50;display:flex;align-items:center;gap:6px;padding:8px;margin-bottom:30px;
  background:var(--bg-glass);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:50px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.theme-rw .tabbar::-webkit-scrollbar{display:none}
.theme-rw .tabbar-wrap{position:relative;z-index:49}
.theme-rw .tabbar-hint{position:absolute;right:14px;top:50%;transform:translateY(-50%);z-index:2;display:none;align-items:center;gap:5px;
  color:var(--gold-2);font-size:11px;letter-spacing:1px;pointer-events:none;padding:4px 12px 4px 14px;border-radius:20px;
  background:linear-gradient(90deg,transparent,rgba(26,18,6,.85) 30%,rgba(26,18,6,.95));
  animation:rw-hint-fade 3s ease-in-out infinite}
.theme-rw .tabbar-hint::after{content:"›";font-size:18px;font-weight:700;line-height:1;animation:rw-hint-slide 1.4s ease-in-out infinite}
@keyframes rw-hint-fade{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes rw-hint-slide{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}
.theme-rw .tab{position:relative;flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border-radius:50px;
  font-size:14.5px;font-weight:600;color:var(--txt-2);cursor:pointer;transition:.3s var(--ease);white-space:nowrap}
.theme-rw .tab .ic{font-size:16px;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.theme-rw .tab:hover{color:#fff}
.theme-rw .tab.on{color:#1a1206;background:linear-gradient(120deg,var(--c,var(--gold)),var(--c2,var(--gold-2)));box-shadow:0 8px 22px -8px rgba(201,160,99,.6)}
.theme-rw .tab .ct{font-size:11px;opacity:.75;padding:1px 7px;border-radius:20px;background:rgba(255,255,255,.08);margin-left:2px}
.theme-rw .tab.on .ct{background:rgba(26,18,6,.15);opacity:.9}

.theme-rw .panel{display:none;animation:rw-fade .5s var(--ease)}
.theme-rw .panel.on{display:block}
@keyframes rw-fade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.theme-rw .panel-top{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px;gap:16px;flex-wrap:wrap}
.theme-rw .panel-top h3{font-size:clamp(20px,2.4vw,28px);font-weight:800;display:flex;align-items:center;gap:12px}
.theme-rw .panel-top h3 .em{width:8px;height:26px;border-radius:4px;background:linear-gradient(var(--c,var(--gold)),var(--c2,var(--gold-2)))}
.theme-rw .panel-top .sub{color:var(--txt-3);font-size:12.5px;letter-spacing:2px;margin-top:4px;padding-left:20px}
.theme-rw .panel-top .more{display:inline-flex;align-items:center;gap:6px;color:var(--txt-2);font-size:13.5px;padding:8px 18px;border:1px solid var(--line-2);border-radius:50px;transition:.3s}
.theme-rw .panel-top .more:hover{color:var(--gold-2);border-color:var(--gold);transform:translateX(3px)}

.theme-rw .rail-wrap{position:relative}
.theme-rw .rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 22px;scrollbar-width:none}
.theme-rw .rail::-webkit-scrollbar{display:none}
.theme-rw .rail.drag{cursor:grabbing}
.theme-rw .arrow{position:absolute;top:38%;transform:translateY(-50%);z-index:5;width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;background:var(--bg-glass);border:1px solid var(--line-2);color:#fff;cursor:pointer;
  font-size:18px;transition:.3s;backdrop-filter:blur(6px)}
.theme-rw .arrow:hover{border-color:var(--gold);color:var(--gold-2);transform:translateY(-50%) scale(1.08)}
.theme-rw .arrow.l{left:-14px}.theme-rw .arrow.r{right:-14px}

/* ===== 卡片 (rail & grid 共用) ===== */
.theme-rw .card{flex:0 0 306px;scroll-snap-align:start;position:relative;border-radius:var(--r);overflow:hidden;background:var(--bg-2);
  border:1px solid var(--line);transition:.45s var(--ease);cursor:pointer;display:block}
.theme-rw .card:hover{transform:translateY(-8px);border-color:rgba(201,160,99,.5);box-shadow:var(--shadow)}
.theme-rw .thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,var(--gold-deep),var(--gold))}
.theme-rw .thumb img{width:100%;height:100%;object-fit:cover;transition:.6s var(--ease)}
.theme-rw .card:hover .thumb img{transform:scale(1.08)}
.theme-rw .thumb .play{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transition:.4s var(--ease);background:radial-gradient(circle,rgba(0,0,0,.25),transparent 60%)}
.theme-rw .card:hover .thumb .play{opacity:1}
.theme-rw .thumb .play i{width:58px;height:58px;border-radius:50%;background:linear-gradient(120deg,var(--gold),var(--gold-2));display:grid;place-items:center;color:#1a1206;font-size:22px;box-shadow:0 10px 30px -6px rgba(201,160,99,.7);transform:scale(.8);transition:.4s var(--ease)}
.theme-rw .card:hover .thumb .play i{transform:scale(1)}
.theme-rw .thumb .dur{position:absolute;right:10px;bottom:10px;padding:3px 9px;border-radius:7px;font-size:12px;background:rgba(0,0,0,.6);color:#fff;backdrop-filter:blur(4px)}
.theme-rw .thumb .badge{position:absolute;left:10px;top:10px;padding:4px 11px;border-radius:8px;font-size:11.5px;font-weight:600;color:#fff;background:var(--gold);box-shadow:0 4px 12px -3px rgba(201,160,99,.6)}
.theme-rw .meta{padding:16px 18px 19px}
.theme-rw .meta .name{font-size:15.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.theme-rw .meta .sub{margin-top:6px;display:flex;align-items:center;gap:10px;color:var(--txt-3);font-size:12.5px}
.theme-rw .meta .dot{width:5px;height:5px;border-radius:50%;background:var(--gold)}

/* 空板块 */
.theme-rw .empty{position:relative;border-radius:var(--r);padding:56px 40px;text-align:center;overflow:hidden;
  border:1px dashed var(--line-2);background:linear-gradient(120deg,var(--bg-2),var(--bg-3))}
.theme-rw .empty .ic{width:74px;height:74px;margin:0 auto 18px;border-radius:20px;display:grid;place-items:center;
  font-size:34px;color:#fff;background:linear-gradient(135deg,var(--c,var(--gold-deep)),var(--c2,var(--gold)));box-shadow:0 14px 34px -10px var(--c,var(--gold))}
.theme-rw .empty h4{font-size:20px;font-weight:700}
.theme-rw .empty p{color:var(--txt-3);font-size:13.5px;margin:8px 0 22px;letter-spacing:1px}
.theme-rw .empty .more{display:inline-flex;align-items:center;gap:8px;padding:11px 26px;border-radius:50px;font-size:14px;font-weight:600;
  color:#1a1206;background:linear-gradient(120deg,var(--gold),var(--gold-2));transition:.3s}
.theme-rw .empty .more:hover{transform:translateY(-3px);box-shadow:0 12px 30px -8px rgba(201,160,99,.6)}

/* ===== 紧凑页面标题区 (分类/最新/排行) ===== */
.theme-rw .page-hero{position:relative;z-index:2;padding:150px 0 30px}
.theme-rw .page-hero .crumb{font-size:13px;color:var(--txt-3);margin-bottom:14px}
.theme-rw .page-hero .crumb a:hover{color:var(--gold-2)}
.theme-rw .page-hero h1{font-size:clamp(28px,4vw,46px);font-weight:800;letter-spacing:1px;
  background:linear-gradient(120deg,#fff,var(--gold-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.theme-rw .page-hero p{margin-top:12px;color:var(--txt-2);font-size:15px;max-width:660px}
.theme-rw .page-hero .line{margin-top:22px;height:3px;width:64px;background:linear-gradient(90deg,var(--gold),var(--gold-2));border-radius:3px}
.theme-rw .section{position:relative;z-index:2;padding:14px 0 56px}

/* 子分类块 (分类页) */
.theme-rw .cat{margin:34px 0}
.theme-rw .cat-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.theme-rw .cat-head .em{font-size:22px;line-height:1}
.theme-rw .cat-head h3{font-size:22px;font-weight:800;letter-spacing:.5px}
.theme-rw .cat-head .more{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--txt-2);font-size:13.5px;padding:8px 18px;border:1px solid var(--line-2);border-radius:50px;transition:.3s}
.theme-rw .cat-head .more:hover{color:var(--gold-2);border-color:var(--gold);transform:translateX(3px)}

/* 网格卡片 */
.theme-rw .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(214px,1fr));gap:22px}
.theme-rw .grid .card{flex:initial;scroll-snap-align:auto}

/* 列表信息头 */
.theme-rw .list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.theme-rw .list-head h2{display:flex;align-items:center;gap:12px;font-size:clamp(20px,2.4vw,26px);font-weight:800;letter-spacing:.5px}
.theme-rw .list-head h2 .em{width:8px;height:24px;border-radius:4px;background:linear-gradient(180deg,var(--gold),var(--gold-2))}
.theme-rw .list-head .count{color:var(--txt-3);font-size:13px;letter-spacing:1px}
.theme-rw .list-head .count b{color:var(--gold-2);font-weight:700}

/* 分页 (复用 conch .hl-page-wrap) */
.theme-rw .pager{margin-top:44px;padding-top:30px;border-top:1px solid var(--line);display:flex;justify-content:center}
.theme-rw .hl-page-wrap{display:flex;gap:8px;list-style:none;flex-wrap:wrap;justify-content:center}
.theme-rw .hl-page-wrap li a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border-radius:10px;
  background:var(--bg-2);border:1px solid var(--line);color:var(--txt-2);font-size:14px;transition:.3s}
.theme-rw .hl-page-wrap li a:hover{border-color:var(--gold);color:var(--gold-2);box-shadow:0 8px 20px -8px rgba(201,160,99,.5)}
.theme-rw .hl-page-wrap li a.active{background:linear-gradient(120deg,var(--gold),var(--gold-2));color:#1a1206;border-color:transparent;font-weight:700}
.theme-rw .hl-page-wrap li.hl-disad a{opacity:.4;pointer-events:none}

/* ===== 排行榜 ===== */
.theme-rw .rank-tabs{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.theme-rw .rank-tab{padding:9px 22px;border-radius:50px;font-size:14.5px;font-weight:600;color:var(--txt-2);
  border:1px solid var(--line-2);background:var(--bg-2);transition:.3s}
.theme-rw .rank-tab:hover{color:var(--gold-2);border-color:var(--gold)}
.theme-rw .rank-tab.active{background:linear-gradient(120deg,var(--gold),var(--gold-2));color:#1a1206;border-color:transparent}
.theme-rw .rank-cats{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap;overflow-x:auto;scrollbar-width:none}
.theme-rw .rank-cats::-webkit-scrollbar{display:none}
.theme-rw .rank-cat{padding:7px 18px;border-radius:50px;font-size:13.5px;font-weight:600;color:var(--txt-2);
  border:1px solid var(--line-2);background:var(--bg-2);transition:.3s;white-space:nowrap}
.theme-rw .rank-cat:hover{color:var(--gold-2);border-color:var(--gold)}
.theme-rw .rank-cat.active{background:linear-gradient(120deg,var(--gold),var(--gold-2));color:#1a1206;border-color:transparent}

.theme-rw .rank-list{display:flex;flex-direction:column;gap:14px}
.theme-rw .hl-rank-list{display:flex;flex-direction:column;gap:14px}
.theme-rw .rank-item{display:flex;align-items:center;gap:18px;padding:14px 18px;border-radius:var(--r-sm);background:var(--bg-2);
  border:1px solid var(--line);transition:.35s var(--ease)}
.theme-rw .rank-item:hover{border-color:rgba(201,160,99,.5);transform:translateX(4px);box-shadow:var(--shadow)}
.theme-rw .rank-no{font-size:22px;font-weight:800;width:46px;height:46px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;
  color:var(--txt-2);background:var(--bg-3);border:1px solid var(--line)}
.theme-rw .rank-no.top{width:50px;height:50px;font-size:22px;color:#1a1206;background:linear-gradient(135deg,var(--gold),var(--gold-2));border-color:transparent;box-shadow:0 10px 24px -8px rgba(201,160,99,.6)}
.theme-rw .rank-thumb{width:120px;height:68px;border-radius:10px;overflow:hidden;flex:0 0 auto;background:var(--bg-3);display:block}
.theme-rw .rank-thumb img{width:100%;height:100%;object-fit:cover;transition:.5s var(--ease)}
.theme-rw .rank-item:hover .rank-thumb img{transform:scale(1.08)}
.theme-rw .rank-main{flex:1;min-width:0}
.theme-rw .rank-main .t{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.theme-rw .rank-main .t:hover{color:var(--gold-2)}
.theme-rw .rank-main .meta{margin-top:6px;color:var(--txt-3);font-size:12.5px;display:flex;gap:14px;flex-wrap:wrap;align-items:center}

.theme-rw .rank-hits{flex:0 0 auto;text-align:right}
.theme-rw .rank-hits .n{font-size:20px;font-weight:800;color:var(--gold-2)}
.theme-rw .rank-hits .l{font-size:11px;color:var(--txt-3)}

/* ===== Footer ===== */
.theme-rw footer{position:relative;z-index:1;margin-top:50px;background:linear-gradient(180deg,var(--bg-2),#0B0907);border-top:1px solid var(--line);padding:64px 0 30px}
.theme-rw .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
.theme-rw .foot-col h4{font-size:15px;font-weight:700;margin-bottom:18px;color:#fff;position:relative;padding-left:14px}
.theme-rw .foot-col h4::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:3px;border-radius:3px;background:linear-gradient(var(--gold),var(--gold-2))}
.theme-rw .foot-col p{color:var(--txt-2);font-size:13.5px;margin-bottom:7px}
.theme-rw .foot-col ul{list-style:none}
.theme-rw .foot-col ul li{margin-bottom:10px}
.theme-rw .foot-col ul a{color:var(--txt-2);font-size:13.5px;transition:.3s;display:inline-block}
.theme-rw .foot-col ul a:hover{color:var(--gold-2);transform:translateX(4px)}
.theme-rw .foot-social{display:flex;gap:12px;margin-top:18px}
.theme-rw .foot-social a{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--txt-2);transition:.3s;font-size:15px}
.theme-rw .foot-social a:hover{color:var(--gold-2);border-color:var(--gold);transform:translateY(-3px)}
.theme-rw .foot-bottom{margin-top:46px;padding-top:24px;border-top:1px solid var(--line);text-align:center;color:var(--txt-3);font-size:13px;line-height:2}
.theme-rw .foot-bottom a{color:var(--txt-2)}.theme-rw .foot-bottom a:hover{color:var(--gold-2)}

/* ===== 移动端适配（覆盖全页面：首页 / 分类 / 排行 / 地图 / 详情 / 播放） ===== */
@media(max-width:1024px){
  .theme-rw .wrap{padding:0 20px}
  .theme-rw .hero{height:76vh;min-height:460px}
  .theme-rw .card{flex-basis:280px}
  .theme-rw .foot-grid{grid-template-columns:1.4fr 1fr 1fr}
}
@media(max-width:900px){
  .theme-rw .hd-top{gap:14px}.theme-rw .search{max-width:none}
  .theme-rw .tool span{display:none}.theme-rw .tool{padding:8px}.theme-rw .tool.login span{display:inline}
  .theme-rw .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:1024px){
  /* 平板/手机横屏：标签栏切换为横向滚动模式，避免挤压重叠 */
  .theme-rw .tabbar-wrap{position:sticky;top:108px;z-index:50;background:linear-gradient(180deg,rgba(0,0,0,.5),transparent);padding:6px 20px 0;margin:0 -20px 24px}
  .theme-rw .tabbar{border-radius:24px;padding:6px;gap:4px;margin-bottom:22px}
  .theme-rw .tab{flex:0 0 auto;padding:10px 18px;font-size:14px}
  /* 滑动提示移到tabbar下方，避免与标签文字重叠 */
  .theme-rw .tabbar-hint{display:inline-flex;position:absolute;top:auto;bottom:-20px;left:0;right:0;transform:none;justify-content:center;
    background:none;color:var(--gold-2);font-size:11px;letter-spacing:1px;padding:0}
  .theme-rw .tabbar.scrolled-end .tabbar-hint{display:none}
  /* 移动端显示向下滑动提示 */
  body.theme-rw .scroll-hint{display:inline-flex !important;bottom:14px !important;font-size:10px !important;letter-spacing:1.5px !important}
  body.theme-rw .scroll-hint::after{font-size:12px !important}
}
@media(max-width:860px){
  .theme-rw .tabbar-wrap{top:108px}
  .theme-rw .tab{padding:10px 16px}
  .theme-rw .card{flex-basis:250px}.theme-rw .arrow{display:none}
  .theme-rw .grid{grid-template-columns:repeat(3,1fr);gap:16px}
}
@media(max-width:768px){
  .theme-rw .hd-nav{padding:0 2px}
  .theme-rw .nav-links{height:48px}
  .theme-rw .hero{height:64vh;min-height:420px}
  .theme-rw .card{flex-basis:240px}
  .theme-rw .page-hero{padding-top:112px}
  .theme-rw .foot-grid{grid-template-columns:1fr 1fr;gap:28px}
}
@media(max-width:560px){
  .theme-rw .hd-top{flex-wrap:wrap;height:auto;padding:12px 0;gap:12px}
  .theme-rw .search{order:3;flex-basis:100%}
  .theme-rw .foot-grid{grid-template-columns:1fr}.theme-rw .hero{height:58vh;min-height:380px}
  .theme-rw .card{flex-basis:82%}
  .theme-rw .page-hero{padding-top:108px}
  .theme-rw .grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .theme-rw .rank-thumb{width:92px;height:54px}
  .theme-rw .rank-no{width:34px;height:34px;font-size:18px}
  .theme-rw .rank-no.top{width:38px;height:38px}
  .theme-rw .rank-item{gap:12px;padding:12px}
  .theme-rw .rank-main .t{font-size:14px}
  .theme-rw .rank-hits .n{font-size:16px}
}
@media(max-width:414px){
  .theme-rw .wrap{padding:0 14px}
  .theme-rw .hero h1{letter-spacing:1px}
  .theme-rw .grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .theme-rw .card{flex-basis:78%}
  .theme-rw .ex-head h2{font-size:24px}
}

/* ========== 猜你喜欢（hl-guess-like-section）重设计：保持横图格局，压缩文字区，对齐全站 16:10 ========== */
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-wrap{
  background:#1A1610!important;
  border:1px solid rgba(255,255,255,.06)!important;
  border-radius:10px!important;
  overflow:hidden!important;
  box-shadow:0 4px 16px rgba(0,0,0,.45)!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important;
}
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-wrap:hover{
  transform:translateY(-5px)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.55)!important;
  border-color:rgba(255,200,100,.35)!important;
}
/* 缩略图：对齐全站卡片 16:10，比原 16:9 略高，圆角由外层统一裁剪 */
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-thumb{
  padding-top:62.5%!important;
  border-radius:0!important;
  background-color:transparent!important;
}
/* 文字区：压缩高度，单行标题+单行副标，消除原 72px 过高导致的失衡 */
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-text{
  position:relative!important;
  background:#1A1610!important;
  padding:8px 12px 10px!important;
  min-height:auto!important;
  height:auto!important;
}
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-text .hl-name{
  display:block!important;
  color:#F1EEE8!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:500!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-text .hl-episode{
  display:block!important;
  color:rgba(255,200,100,.85)!important;
  margin-top:3px!important;
  font-size:12px!important;
  line-height:16px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.theme-rw .hl-guess-like-section.hl-row-box .hl-vod-list .hl-item-text .hl-episode:empty{
  display:none!important;
  margin-top:0!important;
}
.theme-rw .hl-guess-like-section .hl-item-pic .hl-pic-tag span{color:#fff!important}
.theme-rw .rw-sec .hl-guess-like-section .hl-rb-head{display:none!important}

/* ===== 20260730 页脚：三栏布局（华彬集团 / 快速链接 / 联系我们） ===== */
.theme-rw .foot-grid.foot-grid-main{grid-template-columns:1.6fr 1fr 1fr;gap:48px;align-items:start}
/* 页脚所有文字统一为站点金色 --gold-2（!important 压过主题内联 h4 的 !important） */
.theme-rw .foot-grid-main .foot-col h4{color:var(--gold-2)!important}
.theme-rw .foot-col p,.theme-rw .foot-col ul a{color:var(--gold-2)}
.theme-rw .foot-col ul a:hover{color:#fff}
.theme-rw .foot-bottom{color:var(--gold-2);opacity:.8}
.theme-rw .foot-bottom a{color:var(--gold-2)}
.theme-rw .foot-bottom a:hover{color:#fff}
/* 问题9：LOGO "REIGNWOOD" 对比度增强（仅CSS，不动图片）。提亮+描边阴影，深色header上更清晰 */
.theme-rw .logo img{filter:brightness(1.3) contrast(1.18) drop-shadow(0 1px 3px rgba(0,0,0,.55))}
/* 品牌列：中文整块 + 细横线 + 英文整块 */
.theme-rw .foot-col-brand h4{font-size:20px;font-weight:700;letter-spacing:1.5px}
.theme-rw .foot-col-brand .fb-slogans{display:flex;flex-direction:column;margin-top:6px}
.theme-rw .fb-slogans .zh-group,.theme-rw .fb-slogans .en-group{display:flex;flex-direction:column}
.theme-rw .fb-slogans .zh{color:var(--gold-2);font-size:13.5px;font-weight:600;letter-spacing:1px;line-height:1.7;margin:0}
.theme-rw .fb-slogans .slogan-divider{height:1px;width:46px;background:linear-gradient(90deg,var(--gold-2),rgba(232,200,146,0));opacity:.5;margin:12px 0}
.theme-rw .fb-slogans .en{color:var(--gold-2);opacity:.78;font-size:14.5px;line-height:1.7;letter-spacing:.2px;margin:0}
@media (max-width:960px){
  .theme-rw .foot-grid.foot-grid-main{grid-template-columns:1fr 1fr;gap:32px}
  .theme-rw .foot-col-brand{grid-column:1 / -1}
}
@media (max-width:600px){
  /* 移动端页脚保持两列（左快速链接 / 右联系我们），品牌列通栏置顶，避免单列竖排 */
  .theme-rw .foot-grid.foot-grid-main{grid-template-columns:1fr 1fr;gap:20px 16px}
  .theme-rw .foot-col-brand{grid-column:1 / -1;margin-bottom:4px}
  .theme-rw .foot-col{min-width:0}
  .theme-rw .foot-col ul a,.theme-rw .foot-col p{word-break:break-word}
  .theme-rw .foot-col-brand .fb-slogans{grid-template-columns:1fr}
}
/*
 * Reignwood 移动端全方位美化 - 20260806 (修正版)
 * 解决：Header过大、登录按钮突兀、Banner文字过大、导航拥挤等问题
 * 原则：保持桌面端风格，只在移动端(<= 768px)精细化
 * 所有选择器使用 body.theme-rw 提升优先级，确保覆盖 reignwood-theme
 */

/* ============================================================
   全局基础
   ============================================================ */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
  }

  /* 给fixed header让出空间 */
  body.theme-rw {
    padding-top: 60px !important;
  }
}

/* ============================================================
   Header (logo + search + tools)
   ============================================================ */
@media (max-width: 768px) {
  /* 顶部bar：去掉 */
  body.theme-rw .topbar {
    height: 2px !important;
  }

  /* 头部主区域：紧凑 */
  body.theme-rw .hd-top {
    height: 54px !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }

  /* Logo：缩小 */
  body.theme-rw .logo img {
    height: 36px !important;
    max-width: 130px !important;
  }

  /* 搜索：紧凑+按钮圆形icon-only */
  body.theme-rw .search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.theme-rw .search form {
    height: 36px !important;
    padding: 0 4px 0 14px !important;
    gap: 8px !important;
  }

  body.theme-rw .search svg {
    width: 14px !important;
    height: 14px !important;
  }

  body.theme-rw .search input {
    font-size: 13px !important;
    height: 32px !important;
  }

  body.theme-rw .search input::placeholder {
    font-size: 12.5px !important;
  }

  /* 搜索按钮：收缩成圆形icon */
  body.theme-rw .search button {
    height: 28px !important;
    width: 32px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 0 !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1206 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.theme-rw .search button::before {
    content: "🔍" !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  /* 工具栏：紧凑 */
  body.theme-rw .tools {
    gap: 4px !important;
    margin-left: 0 !important;
  }

  /* 隐藏PC端工具：最新/排行/关注公众号 */
  body.theme-rw .tool.qrcode,
  body.theme-rw .tool[href*="map/index"],
  body.theme-rw .tool[href*="label/rank"] {
    display: none !important;
  }

  /* 保留的tool：缩小 */
  body.theme-rw .tool:not(.login) {
    padding: 4px 8px !important;
  }

  /* 登录按钮：缩小成圆形icon */
  body.theme-rw .tool.login {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin-left: 4px !important;
    border-radius: 50% !important;
    gap: 0 !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1206 !important;
    box-shadow: 0 2px 8px rgba(201, 160, 99, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.theme-rw .tool.login .ti {
    font-size: 16px !important;
    margin: 0 !important;
    color: #1a1206 !important;
  }

  body.theme-rw .tool.login span:not(.ti) {
    display: none !important;
  }
}

/* ============================================================
   顶部导航栏
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .hd-nav {
    height: 40px !important;
  }

  body.theme-rw .nav-links {
    height: 40px !important;
    padding: 0 12px !important;
    gap: 2px !important;
  }

  body.theme-rw .nav-links a {
    height: 32px !important;
    line-height: 32px !important;
    font-size: 13px !important;
    padding: 0 11px !important;
    border-radius: 16px !important;
    color: #D8DDE6 !important;
    font-weight: 500 !important;
  }

  body.theme-rw .nav-links a.active {
    color: var(--gold-2) !important;
  }

  body.theme-rw .nav-links a.active::after {
    left: 8px !important;
    right: 8px !important;
    bottom: 0 !important;
  }

  /* 隐藏菜单按钮（如有） */
  body.theme-rw .menu-btn {
    display: none !important;
  }
}

/* ============================================================
   Hero Banner 区域
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .hero {
    height: 70vh !important;
    min-height: 380px !important;
    max-height: 480px !important;
  }

  body.theme-rw .hero-inner {
    left: 5% !important;
    right: 5% !important;
    bottom: 18% !important;
    width: auto !important;
    padding: 0 8px !important;
  }

  body.theme-rw .hero-tag {
    font-size: 10.5px !important;
    padding: 4px 10px !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
  }

  body.theme-rw .hero h1 {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    margin-bottom: 12px !important;
    word-break: keep-all !important;
    white-space: normal !important;
  }

  body.theme-rw .hero h1 .accent {
    -webkit-background-clip: text !important;
    background-clip: text !important;
  }

  body.theme-rw .hero p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    max-width: 92% !important;
    margin-top: 4px !important;
    opacity: 0.88 !important;
  }

  /* 隐藏"向下滚动" */
  body.theme-rw .scroll-hint {
    display: none !important;
  }

  /* 指示器（dots）缩小 */
  body.theme-rw .hero-dots {
    bottom: 14px !important;
  }

  body.theme-rw .hero-dots span {
    width: 16px !important;
    height: 2px !important;
    margin: 0 3px !important;
  }
}

/* ============================================================
   Explore 板块标题（华彩内容・万象光影）
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .ex-head {
    padding: 22px 16px 12px !important;
  }

  body.theme-rw .ex-head .kicker {
    font-size: 9.5px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
  }

  body.theme-rw .ex-head h2 {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.25 !important;
    margin: 4px 0 !important;
    letter-spacing: 0 !important;
  }

  body.theme-rw .ex-head p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
    opacity: 0.7 !important;
  }
}

/* ============================================================
   Tabbar 分类按钮组
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .tabbar {
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  body.theme-rw .tabbar .tab,
  body.theme-rw .tab {
    font-size: 12px !important;
    padding: 5px 11px !important;
    border-radius: 16px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  body.theme-rw .tab .ic {
    font-size: 12px !important;
  }

  body.theme-rw .tab .ct {
    font-size: 10.5px !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    padding: 0 5px !important;
    border-radius: 8px !important;
  }
}

/* ============================================================
   Panel 视频面板
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .panel {
    margin: 12px 12px !important;
    border-radius: 12px !important;
    padding: 14px 14px 18px !important;
  }

  body.theme-rw .panel-top {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.theme-rw .panel-top > div,
  body.theme-rw .panel-top .title-wrap {
    flex: 1 1 auto !important;
  }

  body.theme-rw .panel-top h3 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  body.theme-rw .panel-top h3 .em {
    font-size: 16px !important;
    margin-right: 6px !important;
  }

  /* 隐藏英文sub-title */
  body.theme-rw .panel-top .sub {
    display: none !important;
  }

  body.theme-rw .panel-top .more {
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 12px !important;
  }

  /* 卡片网格：2列 */
  body.theme-rw .rail-wrap,
  body.theme-rw .panel .rail-wrap {
    margin: 0 -4px !important;
  }

  body.theme-rw .rail,
  body.theme-rw .panel .rail {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* 箭头 */
  body.theme-rw .arrow {
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
    font-size: 16px !important;
    border-radius: 50% !important;
  }

  /* 视频卡片 */
  body.theme-rw .card,
  body.theme-rw .vod-card {
    border-radius: 8px !important;
  }

  body.theme-rw .card .title,
  body.theme-rw .vod-card .title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-top: 6px !important;
  }
}

/* ============================================================
   Footer
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .foot {
    padding: 22px 0 12px !important;
  }

  body.theme-rw .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.theme-rw .foot-col-brand .fb-slogans {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.theme-rw .foot-grid h4 {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  body.theme-rw .foot-grid a {
    font-size: 11.5px !important;
    line-height: 1.8 !important;
  }

  body.theme-rw .foot-bot {
    margin-top: 14px !important;
    padding-top: 14px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }
}

/* ============================================================
   详情页 (vod/detail.html)
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .detail-wrap,
  body.theme-rw .vod-detail {
    padding: 12px !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
  }

  body.theme-rw .detail-poster,
  body.theme-rw .vod-poster {
    width: 50% !important;
    max-width: 200px !important;
    margin: 0 auto !important;
  }

  body.theme-rw .detail-info h1,
  body.theme-rw .vod-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  body.theme-rw .detail-meta,
  body.theme-rw .vod-meta {
    font-size: 12px !important;
    line-height: 1.6 !important;
    gap: 6px 8px !important;
    margin-bottom: 12px !important;
    justify-content: center !important;
  }

  body.theme-rw .detail-plot,
  body.theme-rw .vod-blurb {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
  }

  /* 播放按钮 */
  body.theme-rw .play-btn,
  body.theme-rw .btn-play,
  body.theme-rw .detail-play {
    width: 100% !important;
    height: 42px !important;
    border-radius: 21px !important;
    font-size: 14px !important;
    padding: 0 20px !important;
    margin-top: 10px !important;
  }

  /* 选集 */
  body.theme-rw .play-list,
  body.theme-rw .episode-list {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
    gap: 6px !important;
    padding: 10px !important;
  }

  body.theme-rw .play-list a,
  body.theme-rw .episode-list a {
    padding: 6px 4px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }

  /* 类似推荐 */
  body.theme-rw .similar-videos,
  body.theme-rw .recommend {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* ============================================================
   播放页 (vod/play.html)
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .player-section,
  body.theme-rw .play-container {
    padding: 8px !important;
    margin: 0 !important;
  }

  body.theme-rw .player-box,
  body.theme-rw .play-box,
  body.theme-rw .player {
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  body.theme-rw .play-tabs,
  body.theme-rw .player-tabs {
    padding: 6px 8px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body.theme-rw .play-tabs::-webkit-scrollbar {
    display: none !important;
  }

  body.theme-rw .play-tabs a {
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* 视频信息 */
  body.theme-rw .play-info,
  body.theme-rw .video-info {
    padding: 12px !important;
  }

  body.theme-rw .play-info h1,
  body.theme-rw .video-info h1,
  body.theme-rw .play-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  body.theme-rw .play-info .meta,
  body.theme-rw .video-info .meta,
  body.theme-rw .play-meta {
    font-size: 12px !important;
    gap: 8px !important;
    line-height: 1.5 !important;
  }

  /* 选集 */
  body.theme-rw .episode-grid,
  body.theme-rw .vod-list-source {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) !important;
    gap: 5px !important;
    padding: 10px !important;
  }

  body.theme-rw .episode-grid a,
  body.theme-rw .vod-list-source a {
    padding: 5px 4px !important;
    font-size: 11.5px !important;
  }

  /* 评论 */
  body.theme-rw .comments,
  body.theme-rw .comment-area {
    padding: 12px !important;
  }

  body.theme-rw .comment-input input,
  body.theme-rw .comment-form textarea {
    font-size: 13px !important;
    height: 38px !important;
    border-radius: 19px !important;
  }
}

/* ============================================================
   搜索页 (vod/search.html)
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .search-bar,
  body.theme-rw .search-page {
    padding: 10px 12px !important;
  }

  body.theme-rw .search-bar input,
  body.theme-rw .search-page input {
    height: 38px !important;
    font-size: 13px !important;
    border-radius: 19px !important;
    padding: 0 14px !important;
  }

  body.theme-rw .filter-bar,
  body.theme-rw .search-filter {
    padding: 6px 10px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body.theme-rw .filter-bar::-webkit-scrollbar,
  body.theme-rw .search-filter::-webkit-scrollbar {
    display: none !important;
  }

  body.theme-rw .filter-bar a,
  body.theme-rw .filter-bar button,
  body.theme-rw .filter-chip {
    padding: 5px 11px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  body.theme-rw .search-result-item,
  body.theme-rw .vod-item {
    padding: 10px !important;
    gap: 10px !important;
  }

  body.theme-rw .search-result-item .poster,
  body.theme-rw .vod-item .poster {
    width: 100px !important;
    height: 140px !important;
    border-radius: 8px !important;
  }

  body.theme-rw .search-result-item .info h3 {
    font-size: 14px !important;
  }

  body.theme-rw .search-result-item .meta {
    font-size: 11.5px !important;
  }
}

/* ============================================================
   视频卡片通用
   ============================================================ */
@media (max-width: 768px) {
  body.theme-rw .hl-item-thumb,
  body.theme-rw .hl-br-thumb,
  body.theme-rw .card-thumb {
    border-radius: 8px !important;
  }

  body.theme-rw .hl-item-title,
  body.theme-rw .card .title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

/* ============================================================
   极小屏 (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  body.theme-rw {
    padding-top: 56px !important;
  }

  body.theme-rw .hd-top {
    height: 50px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 20px !important;
  }

  body.theme-rw .hero p {
    font-size: 12.5px !important;
  }

  body.theme-rw .panel {
    margin: 10px 8px !important;
    padding: 12px 12px 16px !important;
  }

  body.theme-rw .tab {
    font-size: 11.5px !important;
    padding: 4px 9px !important;
  }

  body.theme-rw .tab .ic {
    font-size: 11px !important;
  }

  body.theme-rw .rail,
  body.theme-rw .panel .rail {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  body.theme-rw .card .title {
    font-size: 12px !important;
  }
}

/* ============================================================
   平板 (481px - 768px)
   ============================================================ */

/* ============================================================
   触摸优化
   ============================================================ */
@media (max-width: 768px) {
  /* 移除hover效果 */
  body.theme-rw a:hover,
  body.theme-rw .card:hover,
  body.theme-rw .btn:hover {
    transform: none !important;
  }

  /* 触摸反馈 */
  body.theme-rw .tab:active,
  body.theme-rw .btn:active,
  body.theme-rw .arrow:active {
    opacity: 0.7;
  }

  /* 启用移动端字体平滑 */
  body.theme-rw {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================================
   移动端全方位优化 v3 (2026.08.06)
   解决：登录居中、搜索被遮挡、各页面留白/字号/布局问题
   适用：<= 768px 屏幕
   ============================================================ */

/* ============= 全局基础修复 ============= */
@media (max-width: 768px) {
  body.theme-rw {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  /* ============= Header 核心修复 ============= */
  /* 强制Header不换行，登录推到右边 */
  body.theme-rw .hd-top {
    flex-wrap: nowrap !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 14px !important;
    gap: 10px !important;
    background: linear-gradient(180deg, #0a0a0a 0%, #14110d 100%) !important;
    border-bottom: 1px solid rgba(201, 160, 99, 0.15) !important;
  }

  /* Logo 紧凑 */
  body.theme-rw .hd-top > a.logo {
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: 110px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  body.theme-rw .hd-top > a.logo img {
    height: 32px !important;
    width: auto !important;
  }

  body.theme-rw .hd-top > a.logo span,
  body.theme-rw .hd-top > a.logo .logo-text {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  /* 隐藏英文logo文字 */
  body.theme-rw .hd-top > a.logo .logo-en,
  body.theme-rw .hd-top > a.logo .en {
    display: none !important;
  }

  /* 搜索框 - 永远显示且不换行 */
  body.theme-rw .search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(201, 160, 99, 0.2) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    margin: 0 !important;
    order: 0 !important;
    position: relative !important;
  }

  body.theme-rw .search .search-input {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 13px !important;
    color: #fff !important;
    padding: 0 !important;
  }

  body.theme-rw .search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
  }

  /* 搜索按钮：圆形图标 */
  body.theme-rw .search .search-btn,
  body.theme-rw .search button {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #C9A063 0%, #E8C892 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #1a1410 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 6px !important;
  }

  body.theme-rw .search .search-btn span,
  body.theme-rw .search button span {
    display: none !important;
  }

  body.theme-rw .search .search-btn::before,
  body.theme-rw .search button::before {
    content: "⌕" !important;
    font-size: 16px !important;
    font-weight: bold !important;
  }

  /* Tools区域 */
  body.theme-rw .tools {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2 !important;
  }

  /* 移动端隐藏二维码、最新、排行 */
  body.theme-rw .tools .qrcode,
  body.theme-rw .tools .tool-qrcode,
  body.theme-rw .tools .tool-latest,
  body.theme-rw .tools .tool-rank,
  body.theme-rw .tools .tool-follow,
  body.theme-rw .tools .tool-wechat,
  body.theme-rw .tools > a:not(.login):not(.tool-login),
  body.theme-rw .tools > div:not(.login):not(.tool-login) {
    display: none !important;
  }

  /* 登录按钮：永远在最右边 */
  body.theme-rw .tools .login,
  body.theme-rw .tools .tool-login,
  body.theme-rw .tools > a.login,
  body.theme-rw .tools > a.tool-login {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #C9A063 0%, #E8C892 100%) !important;
    color: #1a1410 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
  }

  body.theme-rw .tools .login span,
  body.theme-rw .tools .tool-login span,
  body.theme-rw .tools > a.login span {
    display: none !important;
  }

  body.theme-rw .tools .login::before,
  body.theme-rw .tools .tool-login::before,
  body.theme-rw .tools > a.login::before {
    content: "👤" !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  /* ============= Nav 导航修复 ============= */
  body.theme-rw .hd-nav {
    height: 38px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    background: #14110d !important;
    border-bottom: 1px solid rgba(201, 160, 99, 0.1) !important;
    padding: 0 !important;
  }

  body.theme-rw .hd-nav::-webkit-scrollbar {
    display: none;
  }

  body.theme-rw .hd-nav ul,
  body.theme-rw .hd-nav .nav-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0 14px !important;
    height: 100% !important;
    align-items: center !important;
    margin: 0 !important;
  }

  body.theme-rw .hd-nav li,
  body.theme-rw .hd-nav .nav-item {
    flex-shrink: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 13px !important;
    height: 38px !important;
    line-height: 38px !important;
    white-space: nowrap !important;
  }

  body.theme-rw .hd-nav a {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
  }

  body.theme-rw .hd-nav li.active a,
  body.theme-rw .hd-nav a.active {
    color: #E8C892 !important;
  }

  /* 隐藏搜索下拉面板 */
  body.theme-rw .search-dropdown,
  body.theme-rw .search-suggest,
  body.theme-rw .search-history {
    display: none !important;
  }

  /* ============= 首页 Hero/Banner 修复 ============= */
  body.theme-rw .hero {
    min-height: 280px !important;
    max-height: 380px !important;
    height: auto !important;
    padding: 40px 20px 30px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0 !important;
  }

  body.theme-rw .hero .hero-sub,
  body.theme-rw .hero p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 0 12px 0 !important;
  }

  /* 隐藏hero多余元素 */
  body.theme-rw .hero .hero-tag,
  body.theme-rw .hero .hero-chip,
  body.theme-rw .hero .hero-meta,
  body.theme-rw .hero .hero-actions,
  body.theme-rw .hero .hero-btn,
  body.theme-rw .hero .scroll-hint,
  body.theme-rw .hero .hero-kicker {
    display: none !important;
  }

  body.theme-rw .hero .hero-tag {
    display: none !important;
  }

  /* ============= 首页 模块标题修复 ============= */
  body.theme-rw .section-head {
    padding: 18px 14px 10px !important;
  }

  body.theme-rw .section-head h2 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  body.theme-rw .section-head .kicker,
  body.theme-rw .section-head .en {
    font-size: 9px !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: 0 !important;
  }

  body.theme-rw .section-head .more {
    font-size: 11px !important;
  }

  /* 隐藏英文副标题 */
  body.theme-rw .panel-head .en,
  body.theme-rw .section-head .en,
  body.theme-rw .panel-title .en {
    display: none !important;
  }

  /* ============= 首页 Tab 修复 ============= */
  body.theme-rw .tabs,
  body.theme-rw .tab-bar {
    padding: 0 14px 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  body.theme-rw .tabs::-webkit-scrollbar,
  body.theme-rw .tab-bar::-webkit-scrollbar {
    display: none;
  }

  body.theme-rw .tabs button,
  body.theme-rw .tab-bar button,
  body.theme-rw .tab-item {
    flex-shrink: 0 !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(201, 160, 99, 0.25) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
  }

  body.theme-rw .tabs button.active,
  body.theme-rw .tab-bar button.active,
  body.theme-rw .tab-item.active {
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1410 !important;
    border-color: transparent !important;
  }

  /* ============= 首页 Panel/Grid 修复 ============= */
  body.theme-rw .panel {
    padding: 0 14px !important;
    margin: 0 0 18px 0 !important;
  }

  body.theme-rw .grid,
  body.theme-rw .panel-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  body.theme-rw .grid.cols-3,
  body.theme-rw .grid.cols-4,
  body.theme-rw .grid.cols-5,
  body.theme-rw .grid.cols-6 {
    grid-template-columns: 1fr 1fr !important;
  }

  body.theme-rw .card,
  body.theme-rw .video-card,
  body.theme-rw .vod-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.03) !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  body.theme-rw .card .cover,
  body.theme-rw .video-card .cover,
  body.theme-rw .vod-item .cover,
  body.theme-rw .card .thumb,
  body.theme-rw .video-card .thumb {
    position: relative !important;
    width: 100% !important;
    padding-top: 145% !important;
    height: 0 !important;
  }

  body.theme-rw .card img.cover-img,
  body.theme-rw .card img,
  body.theme-rw .video-card img,
  body.theme-rw .vod-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.theme-rw .card .title,
  body.theme-rw .video-card .title,
  body.theme-rw .vod-item .title,
  body.theme-rw .card h3,
  body.theme-rw .video-card h3,
  body.theme-rw .vod-item h3 {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 6px 8px 8px !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 34px !important;
    max-height: 42px !important;
  }

  body.theme-rw .card .meta,
  body.theme-rw .video-card .meta,
  body.theme-rw .vod-item .meta {
    font-size: 10px !important;
    padding: 0 8px 8px !important;
  }

  /* 隐藏英文卡片副标题 */
  body.theme-rw .card .sub-title,
  body.theme-rw .card .en,
  body.theme-rw .card .subtitle-en {
    display: none !important;
  }

  /* ============= Footer 修复 ============= */
  body.theme-rw footer,
  body.theme-rw .footer {
    padding: 20px 14px 16px !important;
    font-size: 11px !important;
  }

  body.theme-rw footer .footer-grid,
  body.theme-rw .footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.theme-rw footer h4,
  body.theme-rw .footer h4 {
    font-size: 12px !important;
    margin: 0 0 6px 0 !important;
  }

  body.theme-rw footer p,
  body.theme-rw footer a,
  body.theme-rw .footer p,
  body.theme-rw .footer a {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  /* ============= 详情页 修复 ============= */
  body.theme-rw .detail-wrap,
  body.theme-rw .detail-container,
  body.theme-rw .vod-detail {
    padding: 12px 14px !important;
    margin-top: 0 !important;
  }

  /* 面包屑 */
  body.theme-rw .breadcrumb,
  body.theme-rw .crumbs {
    padding: 8px 14px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.theme-rw .breadcrumb a,
  body.theme-rw .crumbs a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
  }

  body.theme-rw .breadcrumb .sep,
  body.theme-rw .crumbs .sep {
    margin: 0 4px !important;
    opacity: 0.5;
  }

  /* 详情页主体布局 */
  body.theme-rw .detail-main,
  body.theme-rw .detail-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  /* 海报 */
  body.theme-rw .detail-poster,
  body.theme-rw .vod-poster,
  body.theme-rw .poster {
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  body.theme-rw .detail-poster img,
  body.theme-rw .vod-poster img,
  body.theme-rw .poster img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
    object-fit: cover !important;
  }

  /* 详情页信息卡 */
  body.theme-rw .detail-info,
  body.theme-rw .vod-info {
    padding: 0 !important;
  }

  body.theme-rw .detail-info h1,
  body.theme-rw .vod-info h1,
  body.theme-rw .detail-title,
  body.theme-rw .vod-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    font-weight: 600 !important;
  }

  body.theme-rw .detail-info .sub,
  body.theme-rw .vod-info .sub {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 0 10px 0 !important;
  }

  /* 元数据网格 */
  body.theme-rw .detail-meta,
  body.theme-rw .info-grid,
  body.theme-rw .vod-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 10px 0 !important;
  }

  body.theme-rw .info-grid > div,
  body.theme-rw .detail-meta > div,
  body.theme-rw .vod-meta > div {
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 6px !important;
    font-size: 11px !important;
  }

  body.theme-rw .info-grid .label,
  body.theme-rw .detail-meta .label {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.theme-rw .info-grid .value,
  body.theme-rw .detail-meta .value {
    font-size: 12px !important;
    color: #fff !important;
    margin-top: 2px !important;
  }

  /* 点赞/踩按钮 */
  body.theme-rw .action-bar,
  body.theme-rw .detail-actions {
    display: flex !important;
    gap: 8px !important;
    padding: 10px 0 !important;
    margin: 6px 0 !important;
    justify-content: flex-start !important;
  }

  body.theme-rw .action-bar button,
  body.theme-rw .detail-actions button,
  body.theme-rw .like-btn,
  body.theme-rw .unlike-btn {
    width: auto !important;
    height: 32px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 160, 99, 0.2) !important;
    border-radius: 16px !important;
    color: #fff !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* 播放按钮 */
  body.theme-rw .play-now,
  body.theme-rw .btn-play,
  body.theme-rw .detail-play {
    width: 100% !important;
    height: 42px !important;
    margin: 8px 0 !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1410 !important;
    border: none !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  /* 简介 */
  body.theme-rw .detail-desc,
  body.theme-rw .vod-desc {
    padding: 12px !important;
    margin: 10px 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  body.theme-rw .detail-desc h3,
  body.theme-rw .vod-desc h3 {
    font-size: 13px !important;
    margin: 0 0 6px 0 !important;
  }

  /* ============= 播放页 修复 ============= */
  body.theme-rw .play-page,
  body.theme-rw .play-container,
  body.theme-rw .vod-play {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 播放器 */
  body.theme-rw .play-area,
  body.theme-rw .player-area,
  body.theme-rw .player-wrapper,
  body.theme-rw .MacPlayer {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
  }

  /* 播放器控制条/水印 */
  body.theme-rw .play-area .brand,
  body.theme-rw .player-area .brand,
  body.theme-rw .MacPlayer + div {
    font-size: 11px !important;
    padding: 4px 14px !important;
  }

  /* 播放页操作按钮组 */
  body.theme-rw .play-actions,
  body.theme-rw .play-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  body.theme-rw .play-actions button,
  body.theme-rw .play-btns button,
  body.theme-rw .play-actions a,
  body.theme-rw .play-btns a {
    height: 34px !important;
    padding: 0 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 160, 99, 0.25) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* 选集 */
  body.theme-rw .playlist,
  body.theme-rw .episode-list,
  body.theme-rw .play-list {
    padding: 12px 14px !important;
    margin: 0 !important;
  }

  body.theme-rw .playlist h3,
  body.theme-rw .episode-list h3,
  body.theme-rw .play-list h3 {
    font-size: 14px !important;
    margin: 0 0 8px 0 !important;
  }

  body.theme-rw .playlist .episodes,
  body.theme-rw .episode-list ul,
  body.theme-rw .play-list ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  body.theme-rw .playlist .episode,
  body.theme-rw .episode-list li,
  body.theme-rw .play-list li,
  body.theme-rw .playlist a {
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 !important;
    font-size: 12px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  body.theme-rw .playlist .episode.active,
  body.theme-rw .episode-list li.active {
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1410 !important;
    border-color: transparent !important;
  }

  /* ============= 分类页/搜索页 修复 ============= */
  /* 顶部橙色banner区域 - 让header不挡title */
  body.theme-rw .page-banner,
  body.theme-rw .banner-mini,
  body.theme-rw .type-banner {
    height: 100px !important;
    min-height: 100px !important;
    padding: 24px 14px 16px !important;
    margin-top: 0 !important;
  }

  body.theme-rw .page-banner h1,
  body.theme-rw .type-banner h1,
  body.theme-rw .banner-mini h1 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
  }

  body.theme-rw .page-banner .sub,
  body.theme-rw .type-banner .sub {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  /* 搜索结果区 */
  body.theme-rw .search-result,
  body.theme-rw .vod-list,
  body.theme-rw .result-list {
    padding: 12px 14px !important;
    margin: 0 !important;
  }

  body.theme-rw .search-result .result-item,
  body.theme-rw .vod-list .vod-item,
  body.theme-rw .result-list .item {
    display: flex !important;
    gap: 10px !important;
    padding: 10px !important;
    margin: 0 0 8px 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
  }

  body.theme-rw .search-result .result-thumb,
  body.theme-rw .vod-list .vod-item .thumb {
    flex-shrink: 0 !important;
    width: 110px !important;
    height: 70px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  body.theme-rw .search-result .result-thumb img,
  body.theme-rw .vod-list .vod-item .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.theme-rw .search-result .result-info,
  body.theme-rw .vod-list .vod-item .info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  body.theme-rw .search-result .result-title,
  body.theme-rw .vod-list .vod-item .title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.theme-rw .search-result .result-meta,
  body.theme-rw .vod-list .vod-item .meta {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 4px 0 !important;
  }

  body.theme-rw .search-result .result-desc,
  body.theme-rw .vod-list .vod-item .desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 搜索框 - 分类/搜索页单独样式 */
  body.theme-rw .search-page .search,
  body.theme-rw .type-search .search {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(201, 160, 99, 0.3) !important;
  }

  /* ============= 通用隐藏元素 ============= */
  body.theme-rw .qr-popup,
  body.theme-rw .qrcode-popup,
  body.theme-rw .floating-qr,
  body.theme-rw .float-qrcode,
  body.theme-rw .float-tool,
  body.theme-rw .pc-only,
  body.theme-rw .desktop-only {
    display: none !important;
  }

  /* 隐藏英文按钮文字 */
  body.theme-rw .btn-en,
  body.theme-rw .button-en {
    display: none !important;
  }

  /* 隐藏工具栏hint */
  body.theme-rw .tools-hint,
  body.theme-rw .tool-tip {
    display: none !important;
  }
}

/* ============= 超小屏幕 (<= 480px) 适配 ============= */
@media (max-width: 480px) {
  body.theme-rw .hd-top {
    padding: 0 10px !important;
    gap: 8px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  body.theme-rw .hd-top > a.logo {
    max-width: 90px !important;
    height: 32px !important;
  }

  body.theme-rw .hd-top > a.logo img {
    height: 26px !important;
  }

  body.theme-rw .hd-top > a.logo span {
    font-size: 12px !important;
  }

  body.theme-rw .search {
    height: 32px !important;
    padding: 0 8px !important;
  }

  body.theme-rw .search .search-input {
    font-size: 12px !important;
  }

  body.theme-rw .search .search-input::placeholder {
    font-size: 11px !important;
  }

  body.theme-rw .tools .login,
  body.theme-rw .tools > a.login {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  body.theme-rw .hero {
    min-height: 240px !important;
    max-height: 320px !important;
    padding: 30px 16px 24px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 19px !important;
  }
}
/* ============================================================
   移动端精细优化 v4 (2026.08.06)
   专门优化：英文副标题隐藏、详情/播放/分类/搜索页布局
   适用：<= 768px 屏幕
   ============================================================ */

@media (max-width: 768px) {
  /* ============= 隐藏英文副标题 ============= */
  body.theme-rw .hero-kicker,
  body.theme-rw .hero .kicker,
  body.theme-rw .hero .en,
  body.theme-rw .hero-tag,
  body.theme-rw .hero .hero-tag {
    display: none !important;
  }

  body.theme-rw .footer-desc .en,
  body.theme-rw .footer-desc p.en,
  body.theme-rw .footer-desc p:last-child {
    display: none !important;
  }

  body.theme-rw .footer .en-text {
    display: none !important;
  }

  /* 隐藏Hero的英文标题 */
  body.theme-rw .hero h1 + p.en,
  body.theme-rw .hero .subtitle-en,
  body.theme-rw .hero .hero-sub-en {
    display: none !important;
  }

  /* ============= Hero 紧凑化 ============= */
  body.theme-rw .hero {
    min-height: 240px !important;
    max-height: 360px !important;
    padding: 32px 20px 24px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
  }

  body.theme-rw .hero > p,
  body.theme-rw .hero .hero-sub {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ============= 详情页布局修复 ============= */
  body.theme-rw .detail {
    padding: 0 !important;
  }

  body.theme-rw .detail .breadcrumb,
  body.theme-rw .detail .hl-crumb,
  body.theme-rw .hl-crumb {
    padding: 10px 14px !important;
    font-size: 11px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.55) !important;
  }

  /* 详情页主内容 */
  body.theme-rw .detail-main,
  body.theme-rw .detail-body,
  body.theme-rw .vod-detail-main {
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* 海报居中且更小 */
  body.theme-rw .detail-poster,
  body.theme-rw .hl-detail-side,
  body.theme-rw .poster {
    width: 180px !important;
    max-width: 50% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  }

  body.theme-rw .detail-poster img,
  body.theme-rw .hl-detail-side img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 标题 */
  body.theme-rw .detail-info h1,
  body.theme-rw .detail-info .title,
  body.theme-rw .vod-detail-title {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: center !important;
  }

  body.theme-rw .detail-info .sub,
  body.theme-rw .vod-detail-sub {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
  }

  /* 元数据网格 */
  body.theme-rw .detail-info .info-grid,
  body.theme-rw .detail-meta,
  body.theme-rw .vod-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 10px 0 !important;
  }

  body.theme-rw .info-grid > div,
  body.theme-rw .detail-meta > div {
    padding: 7px 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
  }

  body.theme-rw .info-grid .label,
  body.theme-rw .info-grid > div > span:first-child {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.theme-rw .info-grid .value,
  body.theme-rw .info-grid > div > span:last-child {
    font-size: 12px !important;
    color: #fff !important;
    display: block !important;
    margin-top: 2px !important;
  }

  /* 播放按钮 */
  body.theme-rw .detail .play-btn,
  body.theme-rw .play-now,
  body.theme-rw .btn-play {
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1410 !important;
    border: none !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 8px 0 !important;
    text-decoration: none !important;
  }

  /* 操作按钮组 */
  body.theme-rw .detail-actions,
  body.theme-rw .action-bar {
    display: flex !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 4px 0 !important;
  }

  body.theme-rw .detail-actions button,
  body.theme-rw .action-bar button {
    flex: 1 !important;
    height: 34px !important;
    padding: 0 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 160, 99, 0.25) !important;
    border-radius: 17px !important;
    color: #fff !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  /* 简介 */
  body.theme-rw .detail-desc,
  body.theme-rw .vod-desc {
    padding: 12px !important;
    margin: 8px 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  body.theme-rw .detail-desc h3,
  body.theme-rw .vod-desc h3 {
    font-size: 13px !important;
    margin: 0 0 6px 0 !important;
    color: #E8C892 !important;
  }

  /* ============= 播放页布局 ============= */
  body.theme-rw .play-page,
  body.theme-rw .vod-play {
    padding: 0 !important;
  }

  /* 播放器 */
  body.theme-rw .player-box,
  body.theme-rw .play-area,
  body.theme-rw .MacPlayer {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
  }

  /* 视频下方水印 */
  body.theme-rw .player-box + .brand,
  body.theme-rw .play-area + div {
    font-size: 11px !important;
    padding: 4px 14px !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  /* 播放页信息 */
  body.theme-rw .play-info {
    padding: 12px 14px !important;
  }

  body.theme-rw .play-info h1,
  body.theme-rw .play-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
  }

  /* 播放页操作按钮组 */
  body.theme-rw .play-actions,
  body.theme-rw .play-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
    padding: 10px 14px !important;
  }

  body.theme-rw .play-actions button,
  body.theme-rw .play-actions a {
    height: 34px !important;
    padding: 0 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 160, 99, 0.25) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  /* 选集 */
  body.theme-rw .play-list,
  body.theme-rw .playlist,
  body.theme-rw .episode-list {
    padding: 12px 14px !important;
    margin: 0 !important;
  }

  body.theme-rw .play-list h3,
  body.theme-rw .playlist h3 {
    font-size: 14px !important;
    margin: 0 0 8px 0 !important;
    color: #E8C892 !important;
  }

  body.theme-rw .play-list ul,
  body.theme-rw .playlist .episodes,
  body.theme-rw .episode-list ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body.theme-rw .play-list li,
  body.theme-rw .play-list a,
  body.theme-rw .playlist .episode {
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  body.theme-rw .play-list li.active,
  body.theme-rw .playlist .episode.active,
  body.theme-rw .play-list a.this {
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1410 !important;
    border-color: transparent !important;
    font-weight: 600 !important;
  }

  /* ============= 分类页/搜索页 ============= */
  body.theme-rw .page-banner,
  body.theme-rw .type-banner,
  body.theme-rw .search-banner {
    padding: 60px 14px 16px !important;
    min-height: 100px !important;
  }

  body.theme-rw .page-banner h1,
  body.theme-rw .type-banner h1 {
    font-size: 18px !important;
    margin: 0 0 4px 0 !important;
  }

  body.theme-rw .page-banner .sub,
  body.theme-rw .type-banner .sub {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* 列表项（搜索结果等） */
  body.theme-rw .vod-list,
  body.theme-rw .search-result,
  body.theme-rw .result-list {
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.theme-rw .vod-item,
  body.theme-rw .search-result .result-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
    margin: 0 !important;
  }

  body.theme-rw .vod-item .thumb,
  body.theme-rw .search-result .result-thumb {
    flex-shrink: 0 !important;
    width: 110px !important;
    height: 70px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  body.theme-rw .vod-item .thumb img,
  body.theme-rw .search-result .result-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.theme-rw .vod-item .info,
  body.theme-rw .search-result .result-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  body.theme-rw .vod-item .title,
  body.theme-rw .search-result .result-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.theme-rw .vod-item .meta,
  body.theme-rw .search-result .result-meta {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 4px 0 !important;
  }

  body.theme-rw .vod-item .desc,
  body.theme-rw .search-result .result-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  /* ============= 通用 ============= */
  body.theme-rw .pc-only,
  body.theme-rw .desktop-only {
    display: none !important;
  }

  body.theme-rw .mobile-only {
    display: block !important;
  }

  /* 减少留白 */
  body.theme-rw section,
  body.theme-rw .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 调整section标题 */
  body.theme-rw .section .title,
  body.theme-rw .panel-title,
  body.theme-rw .panel-head h2 {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }

  body.theme-rw .section .kicker,
  body.theme-rw .panel-head .kicker,
  body.theme-rw .panel-head .en,
  body.theme-rw .section .en {
    font-size: 9px !important;
    color: rgba(201, 160, 99, 0.7) !important;
    letter-spacing: 0 !important;
    margin: 0 0 3px 0 !important;
  }

  /* 卡片副标题隐藏 */
  body.theme-rw .card .en,
  body.theme-rw .card .sub-title,
  body.theme-rw .video-card .en {
    display: none !important;
  }

  /* 隐藏分页等的英文 */
  body.theme-rw .pagination .en,
  body.theme-rw .hl-page-small .en {
    display: none !important;
  }
}

/* ============= 超小屏幕 (<= 480px) 进一步精简 ============= */
@media (max-width: 480px) {
  body.theme-rw .hero {
    min-height: 200px !important;
    max-height: 280px !important;
    padding: 24px 16px 20px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 20px !important;
  }

  body.theme-rw .hero > p {
    font-size: 11px !important;
  }

  /* 详情页更紧凑 */
  body.theme-rw .detail-main,
  body.theme-rw .detail-body {
    padding: 10px !important;
  }

  body.theme-rw .detail-poster,
  body.theme-rw .hl-detail-side {
    width: 160px !important;
  }
}
/* ============================================================
   移动端精细优化 v5 (2026.08.06) - 隐藏英文副标题+卡片优化
   ============================================================ */

@media (max-width: 768px) {
  /* 隐藏所有.kicker英文副标题 */
  body.theme-rw .ex-head .kicker,
  body.theme-rw .section-head .kicker,
  body.theme-rw .panel-head .kicker,
  body.theme-rw .ex-head > span.kicker,
  body.theme-rw .kicker {
    display: none !important;
  }

  /* 隐藏所有.sub英文副标题 (ALL VIDEOS等) */
  body.theme-rw .panel-top .sub,
  body.theme-rw .panel-head .sub,
  body.theme-rw .section-head .sub,
  body.theme-rw .sub {
    display: none !important;
  }

  /* 隐藏footer的英文 */
  body.theme-rw .footer-desc .en,
  body.theme-rw .footer .en,
  body.theme-rw .footer-desc > p.en,
  body.theme-rw .footer-desc > p:not(:first-child) {
    display: none !important;
  }

  /* 隐藏卡片的en副标题 */
  body.theme-rw .video-card .en,
  body.theme-rw .card .en,
  body.theme-rw .grid-item .en {
    display: none !important;
  }

  /* 隐藏hero英文 */
  body.theme-rw .hero .kicker,
  body.theme-rw .hero-kicker,
  body.theme-rw .hero .hero-kicker,
  body.theme-rw .hero .en,
  body.theme-rw .hero-tag {
    display: none !important;
  }

  /* 卡片优化 - 减少视觉突兀 */
  body.theme-rw .grid,
  body.theme-rw .panel-grid,
  body.theme-rw .rail {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  body.theme-rw .grid .item,
  body.theme-rw .grid-item,
  body.theme-rw .video-card,
  body.theme-rw .card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  /* 卡片缩略图比例优化 - 不要太大 */
  body.theme-rw .grid-item .thumb,
  body.theme-rw .video-card .thumb,
  body.theme-rw .card .cover,
  body.theme-rw .grid-item .cover {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;  /* 16:9横屏比例，更适合mobile */
    height: 0 !important;
    overflow: hidden !important;
  }

  body.theme-rw .grid-item .thumb img,
  body.theme-rw .video-card .thumb img,
  body.theme-rw .card .cover img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 卡片标题 */
  body.theme-rw .grid-item h3,
  body.theme-rw .grid-item .title,
  body.theme-rw .video-card .title {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 6px 8px 8px !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 34px !important;
  }

  /* 隐藏卡片副标题和元数据 */
  body.theme-rw .grid-item .meta,
  body.theme-rw .video-card .meta,
  body.theme-rw .grid-item .sub,
  body.theme-rw .video-card .sub {
    display: none !important;
  }

  /* 隐藏播放按钮等覆盖 */
  body.theme-rw .grid-item .play-btn,
  body.theme-rw .grid-item .duration {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  /* 调整section-title样式 */
  body.theme-rw .ex-head h2,
  body.theme-rw .section-head h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 4px 0 !important;
  }

  body.theme-rw .ex-head p,
  body.theme-rw .section-head p {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 4px 0 0 !important;
  }

  /* tab按钮紧凑化 */
  body.theme-rw .tabbar {
    padding: 0 14px 8px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
  }

  body.theme-rw .tabbar::-webkit-scrollbar {
    display: none;
  }

  body.theme-rw .tabbar .tab {
    flex-shrink: 0 !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
  }

  body.theme-rw .tabbar .tab .tcnt {
    font-size: 10px !important;
    padding: 1px 4px !important;
    margin-left: 3px !important;
  }

  /* panel标题优化 */
  body.theme-rw .panel-top {
    padding: 10px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  body.theme-rw .panel-top h3 {
    font-size: 15px !important;
    margin: 0 !important;
  }

  body.theme-rw .panel-top .more {
    font-size: 11px !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
  }

  /* rail滚动条隐藏 */
  body.theme-rw .rail-wrap,
  body.theme-rw .rail {
    padding: 0 14px !important;
  }

  body.theme-rw .rail-wrap .arrow {
    display: none !important;  /* 移动端不需要左右箭头 */
  }

  /* footer紧凑化 */
  body.theme-rw .footer {
    padding: 20px 14px 16px !important;
    font-size: 11px !important;
  }

  body.theme-rw .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.theme-rw .footer h4 {
    font-size: 13px !important;
    margin: 0 0 6px 0 !important;
  }

  body.theme-rw .footer a,
  body.theme-rw .footer p {
    font-size: 11px !important;
    line-height: 1.6 !important;
    margin: 2px 0 !important;
  }

  body.theme-rw .footer-bottom {
    margin-top: 12px !important;
    padding-top: 12px !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  /* ============= Hero 再次优化 ============= */
  body.theme-rw .hero {
    min-height: 220px !important;
    max-height: 320px !important;
    padding: 28px 18px 22px !important;
  }

  body.theme-rw .hero h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
  }

  body.theme-rw .hero p,
  body.theme-rw .hero .hero-sub {
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* 滚动指示器 */
  body.theme-rw .hero .dots,
  body.theme-rw .hero .scroll-hint {
    bottom: 12px !important;
  }
}

/* ============================================================
   🔥 移动端全断点适配 v6 (20260806) - 文件末尾，最高优先级
   覆盖: 320px / 375px / 414px / 560px / 768px / 900px
   ============================================================ */

/* ----- 900px以下: 中小平板，2-3列过渡 ----- */
@media (max-width: 900px) {
  body.theme-rw .hero {
    height: 55vh !important;
    min-height: 320px !important;
    max-height: 500px !important;
  }
  body.theme-rw .rail,
  body.theme-rw .panel .rail {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
  body.theme-rw .nav-links {
    padding: 0 12px !important;
    gap: 2px !important;
  }
  body.theme-rw .nav-links a {
    font-size: 13px !important;
    padding: 0 12px !important;
  }
}

/* ----- 768px以下: 平板竖屏，紧凑布局 ----- */
@media (max-width: 768px) {
  /* 全局 */
  body.theme-rw {
    padding-top: 60px !important;
    font-size: 14px !important;
    -webkit-text-size-adjust: 100% !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Header */
  body.theme-rw .hd-top {
    flex-wrap: nowrap !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 14px !important;
    gap: 10px !important;
    background: linear-gradient(180deg, #0a0a0a 0%, #14110d 100%) !important;
    border-bottom: 1px solid rgba(201,160,99,0.15) !important;
  }

  body.theme-rw .logo img {
    height: 34px !important;
    max-width: 110px !important;
  }

  /* 搜索：紧凑 */
  body.theme-rw .search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  body.theme-rw .search form {
    height: 34px !important;
    padding: 0 4px 0 12px !important;
    gap: 6px !important;
  }
  body.theme-rw .search input {
    font-size: 13px !important;
    height: 30px !important;
  }
  body.theme-rw .search button {
    height: 26px !important;
    width: 28px !important;
    padding: 0 !important;
    border-radius: 13px !important;
    font-size: 0 !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1206 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.theme-rw .search button::before {
    content: "🔍" !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  /* 工具栏 */
  body.theme-rw .tools { gap: 4px !important; margin-left: 4px !important; }
  body.theme-rw .tool.login {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    gap: 0 !important;
    background: linear-gradient(135deg, #C9A063, #E8C892) !important;
    color: #1a1206 !important;
    box-shadow: 0 2px 8px rgba(201,160,99,0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.theme-rw .tool.login .ti { font-size: 14px !important; margin: 0 !important; color: #1a1206 !important; }
  body.theme-rw .tool.login span:not(.ti) { display: none !important; }
  body.theme-rw .tool.qrcode,
  body.theme-rw .tool[href*="map/index"],
  body.theme-rw .tool[href*="label/rank"] { display: none !important; }

  /* 导航栏 */
  body.theme-rw .hd-nav { height: 38px !important; }
  body.theme-rw .nav-links {
    height: 38px !important;
    padding: 0 10px !important;
    gap: 2px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body.theme-rw .nav-links::-webkit-scrollbar { display: none !important; }
  body.theme-rw .nav-links a {
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12.5px !important;
    padding: 0 10px !important;
    border-radius: 15px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Hero */
  body.theme-rw .hero {
    height: 60vh !important;
    min-height: 280px !important;
    max-height: 420px !important;
  }
  body.theme-rw .hero-inner {
    left: 5% !important;
    right: 5% !important;
    bottom: 14% !important;
    width: auto !important;
    padding: 0 6px !important;
  }
  body.theme-rw .hero-tag { font-size: 10px !important; padding: 3px 8px !important; margin-bottom: 10px !important; }
  body.theme-rw .hero h1 { font-size: clamp(20px, 6vw, 28px) !important; line-height: 1.15 !important; }
  body.theme-rw .hero p { font-size: 12.5px !important; line-height: 1.5 !important; max-width: 90% !important; }
  body.theme-rw .scroll-hint { display: none !important; }

  /* Explore 板块标题 */
  body.theme-rw .ex-head { padding: 20px 14px 10px !important; }
  body.theme-rw .ex-head .kicker { display: none !important; }
  body.theme-rw .ex-head h2 { font-size: clamp(17px, 5vw, 22px) !important; }
  body.theme-rw .ex-head p { display: none !important; }

  /* Tabbar */
  body.theme-rw .tabbar {
    padding: 8px 10px !important;
    gap: 5px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body.theme-rw .tabbar::-webkit-scrollbar { display: none !important; }
  body.theme-rw .tab { font-size: 12px !important; padding: 5px 10px !important; border-radius: 14px !important; white-space: nowrap !important; flex-shrink: 0 !important; }
  body.theme-rw .tab .ct { font-size: 10px !important; min-width: 15px !important; height: 15px !important; line-height: 15px !important; }

  /* 卡片：2列 */
  body.theme-rw .rail,
  body.theme-rw .panel .rail {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  body.theme-rw .grid,
  body.theme-rw .panel-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  body.theme-rw .card .title { font-size: 12.5px !important; line-height: 1.3 !important; }

  /* Panel */
  body.theme-rw .panel { margin: 10px 10px !important; border-radius: 10px !important; padding: 12px 12px 16px !important; }
  body.theme-rw .panel-top h3 { font-size: 15px !important; }
  body.theme-rw .panel-top .sub { display: none !important; }

  /* Footer */
  body.theme-rw .foot { padding: 20px 0 10px !important; }
  body.theme-rw .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* Arrow */
  body.theme-rw .arrow { width: 24px !important; height: 24px !important; font-size: 14px !important; }

  /* Hover取消 */
  body.theme-rw a:hover,
  body.theme-rw .card:hover,
  body.theme-rw .btn:hover { transform: none !important; }
}

/* ----- 700px以下: 紧凑平板/大手机 ----- */
@media (max-width: 700px) {
  body.theme-rw .hero {
    height: 54vh !important;
    min-height: 260px !important;
    max-height: 380px !important;
  }
  body.theme-rw .nav-links a {
    font-size: 12px !important;
    padding: 0 9px !important;
  }
}

/* ----- 560px以下: 大屏手机 ----- */
@media (max-width: 560px) {
  body.theme-rw .hd-top { height: 48px !important; min-height: 48px !important; padding: 0 10px !important; gap: 8px !important; }
  body.theme-rw .logo img { height: 30px !important; max-width: 90px !important; }
  body.theme-rw .search form { height: 30px !important; padding: 0 2px 0 10px !important; }
  body.theme-rw .search input { font-size: 12px !important; height: 26px !important; }
  body.theme-rw .search button { height: 22px !important; width: 24px !important; }
  body.theme-rw .search button::before { font-size: 11px !important; }
  body.theme-rw .tool.login { width: 30px !important; height: 30px !important; min-width: 30px !important; }
  body.theme-rw .tool.login .ti { font-size: 13px !important; }

  body.theme-rw .hd-nav { height: 34px !important; }
  body.theme-rw .nav-links { height: 34px !important; padding: 0 8px !important; }
  body.theme-rw .nav-links a { height: 26px !important; line-height: 26px !important; font-size: 11.5px !important; padding: 0 8px !important; }

  body.theme-rw .hero {
    height: 50vh !important;
    min-height: 240px !important;
    max-height: 340px !important;
  }
  body.theme-rw .hero h1 { font-size: clamp(18px, 5.5vw, 24px) !important; }
  body.theme-rw .hero p { font-size: 12px !important; }
  body.theme-rw .hero-tag { display: none !important; }

  body.theme-rw .panel { margin: 8px 8px !important; padding: 10px 10px 14px !important; }

  body.theme-rw .card .title { font-size: 12px !important; }
}

/* ----- 414px以下: 标准手机 ----- */
@media (max-width: 414px) {
  body.theme-rw .hd-top { height: 46px !important; padding: 0 8px !important; gap: 6px !important; }
  body.theme-rw .logo img { height: 28px !important; max-width: 80px !important; }
  body.theme-rw .search form { height: 28px !important; padding: 0 2px 0 8px !important; }
  body.theme-rw .search input { font-size: 11.5px !important; height: 24px !important; }
  body.theme-rw .search button { height: 20px !important; width: 22px !important; }
  body.theme-rw .search button::before { font-size: 10px !important; }
  body.theme-rw .tool.login { width: 28px !important; height: 28px !important; min-width: 28px !important; }
  body.theme-rw .tool.login .ti { font-size: 12px !important; }

  body.theme-rw .hd-nav { height: 32px !important; }
  body.theme-rw .nav-links { height: 32px !important; padding: 0 6px !important; }
  body.theme-rw .nav-links a { height: 24px !important; line-height: 24px !important; font-size: 11px !important; padding: 0 7px !important; border-radius: 12px !important; }

  body.theme-rw .hero {
    height: 46vh !important;
    min-height: 220px !important;
    max-height: 300px !important;
  }
  body.theme-rw .hero h1 { font-size: clamp(17px, 5vw, 22px) !important; }
  body.theme-rw .hero p { font-size: 11.5px !important; }

  body.theme-rw .rail,
  body.theme-rw .panel .rail,
  body.theme-rw .grid,
  body.theme-rw .panel-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  body.theme-rw .card .title { font-size: 11.5px !important; }

  body.theme-rw .panel { margin: 6px 6px !important; padding: 8px 8px 12px !important; }
  body.theme-rw .panel-top h3 { font-size: 14px !important; }
  body.theme-rw .ex-head { padding: 16px 10px 8px !important; }
  body.theme-rw .ex-head h2 { font-size: clamp(16px, 4.5vw, 20px) !important; }
  body.theme-rw .tab { font-size: 11px !important; padding: 4px 8px !important; }
}

/* ----- 375px以下: 小屏手机 ----- */
@media (max-width: 375px) {
  body.theme-rw .hd-top { height: 44px !important; padding: 0 6px !important; gap: 4px !important; }
  body.theme-rw .logo img { height: 26px !important; max-width: 72px !important; }
  body.theme-rw .search form { height: 26px !important; padding: 0 1px 0 6px !important; }
  body.theme-rw .search input { font-size: 11px !important; }
  body.theme-rw .search input::placeholder { font-size: 10px !important; }
  body.theme-rw .nav-links a { font-size: 10.5px !important; padding: 0 5px !important; }
  body.theme-rw .hero { height: 42vh !important; min-height: 200px !important; max-height: 260px !important; }
  body.theme-rw .hero h1 { font-size: clamp(15px, 4.5vw, 20px) !important; }
  body.theme-rw .hero p { font-size: 11px !important; max-width: 95% !important; }
  body.theme-rw .rail,
  body.theme-rw .panel .rail,
  body.theme-rw .grid,
  body.theme-rw .panel-grid {
    gap: 6px !important;
  }
  body.theme-rw .card .title { font-size: 11px !important; }
  body.theme-rw .panel-top h3 { font-size: 13px !important; }
  body.theme-rw .tab { font-size: 10.5px !important; padding: 3px 7px !important; }
}

/* ----- 详情页通用 (<= 768px) ----- */
@media (max-width: 768px) {
  body.theme-rw .detail-wrap,
  body.theme-rw .vod-detail {
    padding: 10px !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }
  body.theme-rw .detail-poster,
  body.theme-rw .vod-poster {
    width: 45% !important;
    max-width: 180px !important;
    margin: 0 auto !important;
  }
  body.theme-rw .detail-info h1,
  body.theme-rw .vod-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  body.theme-rw .detail-meta,
  body.theme-rw .vod-meta {
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    gap: 5px 8px !important;
    margin-bottom: 10px !important;
  }
  body.theme-rw .detail-plot,
  body.theme-rw .vod-blurb {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }
  body.theme-rw .play-btn,
  body.theme-rw .btn-play,
  body.theme-rw .detail-play {
    width: 100% !important;
    height: 40px !important;
    border-radius: 20px !important;
    font-size: 13.5px !important;
    margin-top: 8px !important;
  }
  body.theme-rw .play-list,
  body.theme-rw .episode-list {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) !important;
    gap: 5px !important;
    padding: 8px !important;
  }
  body.theme-rw .play-list a,
  body.theme-rw .episode-list a {
    padding: 5px 3px !important;
    font-size: 11.5px !important;
    border-radius: 5px !important;
  }
  body.theme-rw .similar-videos,
  body.theme-rw .recommend {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ----- 播放页通用 (<= 768px) ----- */
@media (max-width: 768px) {
  body.theme-rw .player-section,
  body.theme-rw .play-container {
    padding: 6px !important;
    margin: 0 !important;
  }
  body.theme-rw .player-box,
  body.theme-rw .play-box,
  body.theme-rw .player {
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  body.theme-rw .play-tabs,
  body.theme-rw .player-tabs {
    padding: 5px 6px !important;
    gap: 3px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body.theme-rw .play-tabs a {
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  body.theme-rw .play-info,
  body.theme-rw .video-info {
    padding: 10px !important;
  }
  body.theme-rw .play-info h1,
  body.theme-rw .video-info h1,
  body.theme-rw .play-title {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
}


/* ============================================================
   🔧 移动端进阶优化 v7 (20260806) - 卡片比例、横向、类型页
   ============================================================ */

/* ----- 横屏手机 (landscape) ----- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  body.theme-rw .hero {
    height: 100vh !important;
    min-height: 220px !important;
    max-height: 320px !important;
  }
  body.theme-rw .hero p { display: none !important; }
  body.theme-rw .hero h1 { font-size: 18px !important; margin-bottom: 4px !important; }
  body.theme-rw .hero-tag { display: none !important; }
  body.theme-rw .scroll-hint { display: none !important; }
}

/* ----- 768px以下: 卡片16:9统一 + 类型页优化 ----- */
@media (max-width: 768px) {
  /* 卡片统一16:9 */
  body.theme-rw .card .thumb,
  body.theme-rw .card .cover,
  body.theme-rw .card .poster,
  body.theme-rw .card .pic {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    object-fit: cover !important;
  }
  body.theme-rw .card img {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body.theme-rw .card .title {
    margin-top: 6px !important;
    height: 2.6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  /* Grid 2列 */
  body.theme-rw .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* 类型页卡片 (大块海报) */
  body.theme-rw .grid .card {
    display: flex !important;
    flex-direction: column !important;
  }
  body.theme-rw .grid .card .thumb,
  body.theme-rw .grid .card .cover,
  body.theme-rw .grid .card .pic {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 180px !important;
  }

  /* Hero卡片(特色内容) */
  body.theme-rw .hero-card {
    grid-template-columns: 1fr !important;
  }

  /* 布局错位问题 */
  body.theme-rw .box-hd,
  body.theme-rw .head-bar {
    padding: 14px 12px !important;
  }
  body.theme-rw .box-hd h2,
  body.theme-rw .head-bar h2 {
    font-size: 16px !important;
  }
  body.theme-rw .box-hd h2 small,
  body.theme-rw .head-bar h2 small {
    font-size: 10px !important;
    margin-left: 6px !important;
  }

  /* 滚动优化 */
  body.theme-rw * {
    -webkit-overflow-scrolling: touch !important;
  }
  body.theme-rw .scroll-x,
  body.theme-rw .horizontal {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.theme-rw .scroll-x::-webkit-scrollbar,
  body.theme-rw .horizontal::-webkit-scrollbar { display: none !important; }
}

/* ----- 414px以下: 进一步压缩卡片 ----- */
@media (max-width: 414px) {
  body.theme-rw .grid .card .thumb,
  body.theme-rw .grid .card .cover,
  body.theme-rw .grid .card .pic {
    max-height: 140px !important;
  }
  body.theme-rw .card .title { font-size: 11px !important; margin-top: 5px !important; }
}

/* ----- 移动端滑动提示(放在所有display:none之后确保覆盖) ----- */
@media (max-width: 1024px) {
  body.theme-rw .hero .scroll-hint { display: inline-flex !important; bottom: 14px !important; font-size: 10px !important; letter-spacing: 1.5px !important; padding: 4px 10px !important; }
  body.theme-rw .hero .scroll-hint::after { font-size: 12px !important; }
  body.theme-rw .hero .scroll-hint.hide { display: none !important; }
}

/* ----- 平板横屏 (>= 769px <= 1100px) 适度加强 ----- */
@media (min-width: 769px) and (max-width: 1100px) {
  body.theme-rw .container,
  body.theme-rw .wrap {
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  body.theme-rw .hero {
    height: 50vh !important;
    min-height: 300px !important;
    max-height: 480px !important;
  }
}

/* ----- 隐藏不必要的滚动条 ----- */
@media (max-width: 900px) {
  body.theme-rw ::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }
}



/* ============ 修复P1：移动端主导航最后一个可见tab被滑动提示渐变遮罩覆盖 ============ */
/* 采用 flex 布局，让“滑动”提示作为独立布局单元占据右侧空间，绝不覆盖 nav-links 文字 */
/* 作用域仅限移动端 (max-width:1024px)，避免影响桌面端 */
@media (max-width: 1024px) {
    body.theme-rw .hd-nav {
        display: flex !important;
        align-items: center !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    body.theme-rw .hd-nav .nav-links {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%) !important;
        mask-image: linear-gradient(90deg, #000 92%, transparent 100%) !important;
    }
    body.theme-rw .hd-nav .hd-nav-hint {
        position: static !important;
        flex: 0 0 auto !important;
        margin-left: 8px !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        -webkit-text-fill-color: initial !important;
    }
}
