/* ============================================
   首页 · 高级版（完整重写）
   黑曜石底 + 香槟金细线 + 衬线标题，统一尺寸体系
   只作用于首页 index.php
============================================ */

/* 1. 设计令牌（用 :root[data-theme] 压过主题文件的同级规则） */
:root,
:root[data-theme]{
  --hm-bg:#07060a;
  --hm-panel:rgba(255,255,255,.025);
  --hm-line:rgba(214,190,140,.13);
  --hm-line-strong:rgba(214,190,140,.4);
  --hm-gold:#d6be8c;
  --hm-gold-hi:#f1e3c0;
  --hm-text:#efe9dd;
  --hm-dim:rgba(239,233,221,.5);
  --hm-serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --hm-ease:cubic-bezier(.2,.7,.2,1);
  --hm-gutter:20px;
}

/* 1b. 首页专用：压过 style.css 与 theme.css 里写死的紫色（只影响 index.php） */
html[data-theme],
html[data-theme] body{--bg:#07060a;--bg2:#0b0a0f;--bg3:#121017;--panel:rgba(255,255,255,.025);--card:rgba(214,190,140,.035);--card2:rgba(214,190,140,.05);--text:#efe9dd;--text-dim:rgba(239,233,221,.5);--purple:#d6be8c;--gold:#d6be8c}
html[data-theme] .entry .e2,
html[data-theme] .sv-item .wsl{background:none !important;border:1px solid var(--hm-line-strong) !important;color:var(--hm-gold) !important}
html[data-theme] .card,
html[data-theme] .entry,
html[data-theme] .notice,
html[data-theme] .stats,
html[data-theme] .cat,
html[data-theme] .card .badge{border-color:var(--hm-line) !important}
html[data-theme] .card .meta{color:var(--hm-dim) !important}
html[data-theme] .card .meta .pv-num{color:var(--hm-gold-hi) !important}
html[data-theme] .foot .fd{background:linear-gradient(90deg,transparent,var(--hm-line-strong),transparent) !important}
html[data-theme] .card .body,
html[data-theme] .card{background:rgba(255,255,255,.02) !important;backdrop-filter:none !important}
html[data-theme] .entry{background:rgba(255,255,255,.02) !important;backdrop-filter:none !important}
/* 2. 页面底色与背景 */
/* 彻底隐藏紫色背景层（.bg-fx / .bg-beam / #particles 画布）及伪元素 */
html[data-theme] body .bg-fx,
html[data-theme] body .bg-beam,
html[data-theme] body .bg-static,
html[data-theme] body #particles,
html[data-theme] body::before,
html[data-theme] body::after{display:none !important;content:none !important;background:none !important}
html,body{background-color:#07060a !important;background-image:none !important}
html[data-theme] body{background:#07060a !important;background-image:radial-gradient(ellipse 90% 40% at 50% -6%,rgba(214,190,140,.08),transparent 70%) !important;background-attachment:fixed !important}
body{color:var(--hm-text);background-image:radial-gradient(ellipse 90% 40% at 50% -6%,rgba(214,190,140,.08),transparent 70%) !important;background-attachment:fixed}
.bg-fx,.bg-beam,.bg-static,#particles,body::before,body::after{display:none !important}

/* 3. 容器：手机宽度 ~ 390px，左右 20px 边距 */
.wrap{max-width:480px;padding:0 var(--hm-gutter) 96px}

/* 4. 顶栏：印章式 Logo + 竖向题签标题，居中排版 */
/* 横向左对齐：左侧小方印 + 右侧题名，底部双线分隔 */
.topbar{display:flex;align-items:center;gap:14px;padding:22px 0 16px;margin-bottom:0;border-bottom:none;position:relative}
.topbar::after{display:none}
.wrap > .topbar{border-bottom:none !important}
.seal{position:relative;flex-shrink:0;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 35%,rgba(214,190,140,.2),rgba(214,190,140,.04) 70%);border:1px solid var(--hm-line-strong);overflow:hidden;
  box-shadow:0 0 0 3px var(--hm-bg),0 0 0 4px var(--hm-line)}
.seal img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.seal svg{width:24px;height:24px}
.brand{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.logo-name{font-family:"Ma Shan Zheng",var(--hm-serif);font-size:26px;font-weight:400;letter-spacing:4px;line-height:1.1;
  color:var(--hm-gold-hi);background:none;-webkit-text-fill-color:currentColor;text-shadow:0 1px 0 rgba(0,0,0,.5);animation:none}
.logo-sub{margin-top:6px;font-family:var(--hm-serif);font-size:11px;letter-spacing:2px;color:var(--hm-dim);padding:0}
/* 旧版 style.css 的 .topbar 带 justify-content:space-between，这里强制覆盖 */
.wrap > .topbar{justify-content:flex-start !important;align-items:center !important;padding:12px 0 6px !important;gap:14px !important}
.wrap > .topbar .brand{align-items:flex-start !important;text-align:left}
.wrap > .topbar .logo-name{padding-left:0;font-size:26px}
.wrap > .topbar .logo-name::before{display:none}
.wrap > .topbar .logo-sub{padding-left:0;margin-top:6px;font-size:11px;letter-spacing:2px}

/* 轮播图恢复为填充裁剪（cover），与之前的大小一致 */
.banner .slide img{width:100%;height:100%;object-fit:contain;display:block}
.icon-btn{width:32px;height:32px;border-radius:50%;background:transparent;border:1px solid var(--hm-line)}
.icon-btn svg{width:15px;height:15px;color:var(--hm-gold)}
.icon-btn .dot{background:var(--hm-gold);box-shadow:none}

/* 5a. 公告（重设计）：左侧金色竖线 + 小喇叭 + 衬线标签 + 走马文字 */
.wrap > .notice{display:flex !important;align-items:center;gap:12px;min-height:34px;margin:14px 0 !important;padding:0 0 0 14px;
  border:none !important;border-left:2px solid var(--hm-gold) !important;border-radius:0 !important;background:linear-gradient(90deg,rgba(214,190,140,.07),transparent 70%) !important;box-shadow:none !important;overflow:hidden}
.wrap > .notice::before{display:none !important}
.wrap > .notice .notice-icon{display:none !important}
.wrap > .notice .tag{display:inline-flex;align-items:baseline;gap:6px;flex-shrink:0}
.wrap > .notice .tag b{font-family:var(--hm-serif);font-size:12px;font-weight:400;letter-spacing:3px;color:var(--hm-gold-hi)}
.wrap > .notice .tag em{display:none}
.wrap > .notice .notice-divider{flex:0 0 1px;width:1px;height:12px;background:var(--hm-line-strong)}
.wrap > .notice .track{flex:1;min-width:0;overflow:hidden}
.wrap > .notice .text{font-size:12px;letter-spacing:.5px;color:var(--hm-dim);white-space:nowrap}
.wrap > .notice .notice-live{display:none}

/* 5. 公告：单行细线条（旧版备份，已被 5a 覆盖） */
.notice{margin-top:4px;min-height:32px;padding:0;border:none;border-top:1px solid var(--hm-line);border-bottom:1px solid var(--hm-line);border-radius:0;background:none;box-shadow:none;gap:10px}
.notice::before{display:none}
.notice-icon{width:20px;height:20px;flex-basis:20px;border:none;background:none;box-shadow:none;color:var(--hm-gold)}
.notice-icon svg{width:14px;height:14px}
.notice .tag b{font-family:var(--hm-serif);font-size:11px;font-weight:400;letter-spacing:2px;color:var(--hm-gold)}
.notice-divider{height:14px;background:var(--hm-line-strong)}
.notice .text{font-size:12px;letter-spacing:.4px;color:var(--hm-text)}
.notice-live{width:5px;height:5px;background:var(--hm-gold);box-shadow:none;animation:none;opacity:.7}

/* 6. 轮播：收窄到 176px，无装饰边框，无空文字区 */
.wrap > .banner{margin-top:4px !important;border-radius:2px;border:1px solid var(--hm-line);box-shadow:0 18px 40px rgba(0,0,0,.45);height:auto !important;aspect-ratio:1480/826;overflow:hidden}
.banner .slides{height:100%}
.banner .slide{height:100%;min-height:0}
.banner .slide .ph{background:linear-gradient(160deg,#1c1628,#09070e 72%)}
.banner .slide .cap{padding:0 22px 22px;align-items:flex-end;background:none}
.banner .slide .cap .t{font-family:var(--hm-serif);font-size:20px;font-weight:400;letter-spacing:3px;color:var(--hm-gold-hi);background:none;-webkit-text-fill-color:currentColor;animation:none;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.banner .slide .cap .s{margin-top:6px;font-size:11px;letter-spacing:2px;color:var(--hm-dim)}
.banner .slide .cap:not(:has(.t)):not(:has(.s)){display:none !important}
.banner .dots{bottom:10px;right:16px}
.banner .dots i{width:14px;height:2px;border-radius:0;background:rgba(255,255,255,.22)}
.banner .dots i.on{width:24px;background:var(--hm-gold);box-shadow:none}

/* 7. 数据：三列等分，衬线数字，上下细线 */
.stats{margin-top:18px;padding:16px 0;display:grid;grid-template-columns:repeat(3,1fr);border:none;border-top:1px solid var(--hm-line);border-bottom:1px solid var(--hm-line);border-radius:0;background:none;box-shadow:none}
.stat{text-align:center}
.stat+.stat::before{background:var(--hm-line);top:18%;height:64%}
.stat .num{font-family:var(--hm-serif);font-size:17px;font-weight:400;letter-spacing:1px;color:var(--hm-gold-hi)}
.stat .num.bump{color:var(--hm-gold)}
.stat .lbl{margin-top:5px;font-size:10px;letter-spacing:2px;color:var(--hm-dim)}
.stat .live{width:5px;height:5px;background:var(--hm-gold);box-shadow:none}

/* 8. 区块标题 */
.section-head{margin:32px 0 14px;display:flex;align-items:center;gap:12px}
.section-head .sh-title{font-family:var(--hm-serif);font-size:14px;font-weight:400;letter-spacing:5px;color:var(--hm-gold-hi)}
.section-head .sh-line{flex:1;height:1px;background:linear-gradient(90deg,var(--hm-line-strong),transparent)}

/* 9. 服务入口：两张等高细框卡 */
.entries{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.entry{display:flex;align-items:center;gap:10px;padding:14px 12px;border-radius:2px;background:var(--hm-panel);border:1px solid var(--hm-line);backdrop-filter:none;transition:border-color .6s var(--hm-ease),transform .6s var(--hm-ease)}
.entry::after{display:none}
.entry:hover{border-color:var(--hm-line-strong);transform:translateY(-2px)}
.entry:active{transform:scale(.98)}
.entry .ic{width:30px;height:30px;flex-shrink:0;border-radius:50%;background:none;border:1px solid var(--hm-line-strong);color:var(--hm-gold)}
.entry .ic svg{width:14px;height:14px}
.entry .e1,.entry .e2{background:none;border:1px solid var(--hm-line-strong);color:var(--hm-gold)}
.entry .tt{display:block;font-family:var(--hm-serif);font-size:13px;font-weight:400;letter-spacing:2px;color:var(--hm-text)}
.entry .ss{display:block;margin-top:3px;font-size:10px;letter-spacing:.5px;color:var(--hm-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.entry .arrow{margin-left:auto;color:var(--hm-gold);flex-shrink:0}
.entry .arrow svg{width:12px;height:12px}
.entry .pulse{position:absolute;top:10px;right:10px;width:5px;height:5px;background:var(--hm-gold);box-shadow:none;animation:none;opacity:.7}

/* 10. 分类：文字标签 + 细金下划线 */
.cats{margin:16px calc(var(--hm-gutter) * -1) 0;padding:0 var(--hm-gutter) 2px;gap:8px;overflow-x:auto;scrollbar-width:none}
.cat{position:relative;flex-shrink:0;padding:7px 14px;border:1px solid transparent;border-radius:2px;background:none;box-shadow:none;font-size:13px;letter-spacing:1.5px;color:var(--hm-dim);transition:color .5s var(--hm-ease),border-color .5s var(--hm-ease)}
.cat:hover{color:var(--hm-text)}
.cat::after{display:none}
.cat.active{color:var(--hm-gold-hi);font-weight:500;background:none;border-color:var(--hm-gold);box-shadow:none}

/* 压过主题文件里 [data-theme="gold"] 的渐变按钮样式 */
/* 分类选中态：金色柔光底 + 渐隐金边 + 顶部细金线，取代原来的硬边框 */
html[data-theme] .cats .cat.active,
html[data-theme] .cats .cat.active:hover{
  position:relative !important;
  color:#f3e6c4 !important;font-weight:500 !important;letter-spacing:2px !important;
  background:linear-gradient(180deg,rgba(214,190,140,.18) 0%,rgba(214,190,140,.04) 100%) !important;
  border:1px solid transparent !important;
  background-clip:padding-box !important;
  box-shadow:inset 0 0 0 1px rgba(214,190,140,.38),0 0 14px rgba(214,190,140,.12) !important}
html[data-theme] .cats .cat.active::before{
  content:'' !important;display:block !important;position:absolute !important;left:18% !important;right:18% !important;top:-1px !important;
  height:1px !important;background:linear-gradient(90deg,transparent,#d6be8c,transparent) !important}
html[data-theme] .cats .cat:not(.active){letter-spacing:2px}

/* 11. 平台卡片：两列，图片 4:3，细框 */
.grid{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.card{border-radius:2px;background:var(--hm-panel);border:1px solid var(--hm-line);box-shadow:none;backdrop-filter:none;transition:transform .7s var(--hm-ease),border-color .7s,box-shadow .7s;opacity:0;transform:translateY(12px)}
.card.in{opacity:1;transform:none}
.card:hover{border-color:var(--hm-line-strong);box-shadow:0 14px 30px rgba(0,0,0,.4)}
.card:active{transform:scale(.985)}
.card::before{display:none}
.card .art{height:auto;aspect-ratio:4/3;background:#0d0b10}
.card .art img{transition:transform 1s var(--hm-ease)}
.card:hover .art img{transform:scale(1.04)}
.card .art::after{background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.55))}
.card .art .noimg{color:var(--hm-gold)}
.card .badge{top:8px;left:8px;padding:2px 6px;border-radius:0;font-size:9px;letter-spacing:1px;background:rgba(0,0,0,.6) !important;color:var(--hm-gold) !important;box-shadow:none !important;border:1px solid var(--hm-line-strong)}
.card .body{padding:11px 11px 13px}
.card .nm{font-size:14px;font-weight:500;letter-spacing:1px;color:var(--hm-text)}
.card .nm .go{width:20px;height:20px;background:none;border:1px solid var(--hm-line-strong)}
.card .nm .go svg{width:9px;height:9px;color:var(--hm-gold)}
.card .ds{margin-top:5px;font-size:11px;letter-spacing:.3px;color:var(--hm-dim)}
.card .meta{margin-top:10px;font-size:10px;letter-spacing:.5px;color:var(--hm-dim)}
.card .meta .pv-num{color:var(--hm-gold-hi)}
.card .meta .dotg{width:4px;height:4px;background:var(--hm-gold);box-shadow:none}

/* 12. 底部 */
.foot{margin-top:52px;text-align:center}
.foot .fd{width:80px;height:1px;margin:0 auto 16px;background:linear-gradient(90deg,transparent,var(--hm-line-strong),transparent)}
.foot p{font-size:10px;letter-spacing:2px;line-height:2;color:var(--hm-dim)}
.foot .foot-slogan{font-family:var(--hm-serif);font-size:13px;letter-spacing:4px;line-height:1.8;color:var(--hm-gold)}

/* 隐藏整块数据条（累计访问 / 累计玩家 / 每日访问） */
.wrap > .stats{display:none !important}


/* 去掉所有圆形状态点（数据条 live、服务入口 pulse、公告 notice-live） */
.stat .live,
.entry .pulse,
.notice-live,
.wrap .pulse,
.wrap .live{display:none !important}

/* 13. 入场：整体柔和淡入，逐段错开 */
@media (prefers-reduced-motion:no-preference){
  .wrap > *{animation:hmFade 1.1s var(--hm-ease) both}
  .wrap > :nth-child(2){animation-delay:.05s}
  .wrap > :nth-child(3){animation-delay:.1s}
  .wrap > :nth-child(4){animation-delay:.15s}
  .wrap > :nth-child(5){animation-delay:.2s}
  .wrap > :nth-child(6){animation-delay:.25s}
  .wrap > :nth-child(7){animation-delay:.3s}
}
@keyframes hmFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* 14. 小屏适配 */
@media (max-width:360px){
  .entries{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
}
