/* 原模板细节打磨：保留原风格，只优化交互与留白 */
/* 首页通用头部：common.css 的 .header .row 会把登录栏顶行撑到 120px，
   透明覆盖住下方搜索框导致无法输入/点击，这里只收窄登录栏自身。 */
.header .top .row{height:auto!important;max-height:35px!important}
/* 首页 logo：模板内联 height:100px 会拉伸原图，改为按原比例自适应 */
.header .cont .logo-wrap img{height:auto!important;object-fit:contain}
/* 老页面被嵌在后台/站内 iframe 时，自动隐藏自身顶栏和左栏，避免左右重复 */
html.legacy-in-frame .bfbtop,
html.legacy-in-frame .d3,
html.legacy-in-frame .treebox,
html.legacy-in-frame .left,
html.legacy-in-frame .footer,
html.legacy-in-frame .menu{display:none!important}
html.legacy-in-frame .yjcode{margin:0!important;width:auto!important;min-width:0!important}
html.legacy-in-frame .right{width:auto!important;min-width:0!important;float:none!important;margin:0!important;max-width:none!important}
body{font-smoothing:antialiased}
a,button,input,select,.btn,.u1,.list{transition:all .18s ease}
a:hover{opacity:.88}
input,select,textarea{border-radius:4px!important;outline:none!important}
input:focus,select:focus,textarea:focus{border-color:#ff5b01!important;box-shadow:0 0 0 2px rgba(255,91,1,.12)}
button,.btn,input[type=submit]{border-radius:5px!important;box-shadow:0 2px 6px rgba(0,0,0,.08)!important}
button:hover,input[type=submit]:hover{filter:brightness(1.05);transform:translateY(-1px)}
ul,ol,li{list-style:none}
table{background:#fff}
td,th{vertical-align:middle}
.nav a,.header a,.top a{letter-spacing:.2px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#d9dde3;border-radius:8px}
/* 移动端适配：保留原结构，仅避免溢出与文字过挤 */
@media (max-width: 768px){
  body{width:auto!important;min-width:0!important;overflow-x:hidden}
  .yjcode,.main,.wrap,.box,.in{max-width:100%!important;width:100%!important;margin:0!important;padding:0 10px!important;box-sizing:border-box!important}
  table{display:block;overflow-x:auto;white-space:nowrap;max-width:100%}
  img{max-width:100%!important;height:auto!important}
  ul,ol,li{box-sizing:border-box!important}
  input,select,textarea{max-width:100%!important}
  iframe{max-width:100%!important}
}

/* 顶部吸顶与阴影 */
.top,.top-nav,.nav,.header,.bar{position:sticky;top:0;z-index:999;box-shadow:0 3px 12px rgba(0,0,0,.06)}
/* 商品/卡片悬浮提示 */
a.card,.item,.prod,.u1,.list:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.07)}
/* 后台侧栏选中态 */
.side a.on{background:#fff3ec!important;border-left:3px solid #ff5b01!important}

/* 可访问性与细节 */
::selection{background:#ff5b01;color:#fff}
:focus-visible{outline:2px solid #ff5b01;outline-offset:2px}
button:disabled,input:disabled{opacity:.55;cursor:not-allowed}
a,button{ -webkit-tap-highlight-color:transparent }
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* ---- 首页模板字体美化（2026-09-06）：只改字体观感，不改尺寸与布局 ---- */

/* 中文/数字统一使用更现代的字体栈，兼顾 Windows/macOS/移动端 */
body,
button,
input,
select,
textarea,
.header,
.header a,
.header li,
.header span,
.header p,
.index-main,
.index-main a,
.index-main div,
.index-main li,
.index-main p,
.index-main span,
.footer-box,
.footer,
.footer a,
.footer p,
.footer span,
.footer li{
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑","Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* 字体渲染更平滑清晰 */
body,
.header,
.index-main,
.footer-box{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* 中文正文与导航轻微拉开字距，不改变字号 */
.header .top .menu-wrap a,
.header .nav a,
.header .cont .hot-search a,
.index-main .game-list .game-name p,
.index-main .select-group-box > p,
.index-main .small-adv-box .small-title p,
.index-main .blogroll-box .title,
.index-main .goods-box .goods-name{
  letter-spacing:.35px;
}

/* 数字、价格使用等宽数字，金额跳动/长列表更整齐 */
.goods-price b,
.goods-price span,
.order-info ul li p:first-child,
.index-main .user-money b,
.index-main .djl,
.footer-box .footer-phone{
  font-variant-numeric:tabular-nums;
}

/* 重要标题保持原色原大小，只让字重更干脆 */
.index-main .select-group-box > p,
.index-main .small-adv-box .small-title div:first-child p:first-child,
.index-main .game-cont .game-name p,
.index-main .blogroll-box .title{
  font-weight:600;
}

/* ---- 首页字号整体放大一档（保持原布局，同步微调行高） ---- */

/* 首页主要分类/热游列表 14px -> 15px */
.index-main .game-class .game-hover .game-title p span,
.index-main .game-class .game-hover .game-content .game-item p,
.index-main .game-list .game-name p:first-child{
  font-size:15px;
}
.index-main .game-list .game-name p:first-child{
  line-height:23px;
  height:23px;
}

/* 商品标题 14px -> 15px，两行高度同步放宽 */
.index-main .game-cont .goods-box .goods-list > div .goods-name{
  font-size:15px;
  line-height:23px;
  max-height:46px;
}

/* 右侧悬浮文字也放大一档 */
.right-hover > ul > li > a > span{
  font-size:13px;
}

/* ---- 全站页脚右区排版：二维码与客服信息左右并排，五列导航同行 ---- */
.footer2{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}
.footer2-left{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  flex:0 0 762px;
  width:762px;
}
.footer2-item2-right{
  display:flex;
  align-items:flex-start;
  flex:0 0 438px;
  float:none;
  box-sizing:border-box;
}
.footer2-item2-right .share-img{
  flex-shrink:0;
}
.footer2-item2-right > .f-left:last-child{
  flex:1;
  min-width:0;
}

/* ---- 底部帮助导航（买家指南/卖家指南等）美化 ---- */
.bfbbottom .d1 .u1 li span{
  position:relative;
  padding-left:10px;
  box-sizing:border-box;
  font-size:15px;
  letter-spacing:.3px;
}
.bfbbottom .d1 .u1 li span::before{
  content:"";
  position:absolute;
  left:0;
  top:7px;
  width:3px;
  height:13px;
  border-radius:2px;
  background:#ff5b01;
}
.bfbbottom .d1 .u1 li a{
  color:#7b8a99;
  font-size:13px;
  line-height:25px;
  text-decoration:none;
  transition:color .12s ease,padding-left .12s ease;
}
.bfbbottom .d1 .u1 li span a{
  color:#2b3f55;
  font-weight:700;
  font-size:15px;
}
.bfbbottom .d1 .u1 li a:hover{
  padding-left:3px;
  color:#ff5b01;
  text-decoration:none;
}
