@charset "utf-8";
/* 新盛游戏 企业官网 - 全站样式（响应式 / 百度移动友好） */
:root{
  --brand:#1a56db;
  --brand-dark:#0f3fae;
  --brand-light:#eaf1ff;
  --accent:#ff7a18;
  --text:#22262e;
  --text-sub:#5b6472;
  --line:#e6e9ef;
  --bg:#f5f7fb;
  --white:#fff;
  --radius:10px;
  --maxw:1200px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
  color:var(--text);background:var(--bg);line-height:1.8;font-size:16px;
}
a{color:inherit;text-decoration:none;transition:color .2s}
a:hover{color:var(--brand)}
img{max-width:100%;height:auto;display:block;border:0}
ul,ol{list-style:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 15px}
.clearfix:after{content:"";display:block;clear:both;height:0}

/* 顶部 */
.topbar{background:var(--brand-dark);color:#cfe0ff;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:34px;flex-wrap:wrap}
.topbar a{color:#cfe0ff}
.topbar a:hover{color:#fff}

.header{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:99}
.header .wrap{display:flex;align-items:center;justify-content:space-between;height:74px}
.logo{display:flex;align-items:center;gap:10px}
.logo .mark{
  width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--brand),#35a0ff);
  color:#fff;font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center;letter-spacing:1px;
}
.logo .txt strong{display:block;font-size:21px;letter-spacing:2px;line-height:1.2}
.logo .txt span{display:block;font-size:12px;color:var(--text-sub);letter-spacing:1px}

.nav{display:flex;gap:4px}
.nav li{position:relative}
.nav a{
  display:block;padding:10px 16px;border-radius:6px;font-size:16px;color:var(--text);
}
.nav a:hover,.nav a.on{color:#fff;background:var(--brand)}
.menu-btn{display:none;background:var(--brand);color:#fff;border:0;border-radius:6px;padding:8px 12px;font-size:15px;cursor:pointer}

/* Banner */
.banner{position:relative;overflow:hidden;background:#0b1a33}
.banner img{width:100%;height:420px;object-fit:cover;opacity:.85}
.banner .cap{
  position:absolute;left:0;right:0;bottom:0;top:0;display:flex;flex-direction:column;
  justify-content:center;align-items:flex-start;padding-left:8%;
  background:linear-gradient(90deg,rgba(6,18,40,.85) 0%,rgba(6,18,40,.45) 55%,rgba(6,18,40,0) 100%);
  color:#fff;
}
.banner .cap h1{font-size:38px;line-height:1.35;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.banner .cap p{margin-top:14px;font-size:17px;max-width:620px;opacity:.95}
.banner .cap .btn{
  margin-top:22px;display:inline-block;background:var(--accent);color:#fff;padding:12px 30px;border-radius:30px;font-size:16px;
}
.banner .cap .btn:hover{background:#ff943f;color:#fff}

/* 首页小banner高度 */
.banner.small img{height:260px}
.banner.small .cap h1{font-size:26px}

/* 面包屑 */
.crumb{background:#fff;border-bottom:1px solid var(--line);font-size:14px;color:var(--text-sub)}
.crumb .wrap{padding:12px 15px}
.crumb a:hover{color:var(--brand)}
.crumb .sep{margin:0 8px;color:#c3c9d4}

/* 区块 */
.section{padding:46px 0}
.section.gray{background:var(--bg)}
.section.white{background:#fff}
.sec-title{text-align:center;margin-bottom:32px}
.sec-title h2{font-size:28px;position:relative;display:inline-block;padding-bottom:12px}
.sec-title h2:after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:56px;height:3px;background:var(--brand);border-radius:2px}
.sec-title p{color:var(--text-sub);margin-top:10px;font-size:15px}

/* 卡片 */
.grid{display:grid;gap:22px}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
.card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 12px rgba(20,40,80,.06);transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(20,40,80,.12)}
.card img{width:100%;height:190px;object-fit:cover}
.card .body{padding:16px 18px 20px}
.card h3{font-size:17px;line-height:1.6;margin-bottom:8px}
.card p{color:var(--text-sub);font-size:14.5px}

/* 关于 */
.about-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}
.about-wrap img{border-radius:var(--radius)}
.about-txt h2{font-size:26px;margin-bottom:14px}
.about-txt p{color:var(--text-sub);margin-bottom:14px;text-indent:2em}
.data-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:8px}
.data-item{background:var(--brand-light);border-radius:var(--radius);padding:20px 10px;text-align:center}
.data-item b{display:block;font-size:28px;color:var(--brand);font-family:Arial}
.data-item span{font-size:14px;color:var(--text-sub)}

/* 列表 */
.news-list .item{
  display:grid;grid-template-columns:180px 1fr;gap:20px;background:#fff;border-radius:var(--radius);
  padding:14px;margin-bottom:16px;box-shadow:0 2px 10px rgba(20,40,80,.05);align-items:center;
}
.news-list .item img{width:180px;height:118px;object-fit:cover;border-radius:8px}
.news-list .item h3{font-size:18px;margin-bottom:6px;line-height:1.5}
.news-list .item .meta{font-size:13px;color:var(--text-sub);margin-bottom:6px}
.news-list .item p{color:var(--text-sub);font-size:14.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 文章 */
.article{background:#fff;border-radius:var(--radius);padding:34px 40px;box-shadow:0 2px 12px rgba(20,40,80,.06)}
.article h1{font-size:27px;line-height:1.5;text-align:center;margin-bottom:14px}
.article .meta{text-align:center;color:var(--text-sub);font-size:14px;border-bottom:1px dashed var(--line);padding-bottom:16px;margin-bottom:22px}
.article .meta span{margin:0 10px}
.article p{margin-bottom:16px;text-indent:2em;font-size:16.5px;line-height:1.95}
.article h2{font-size:20px;margin:26px 0 12px;padding-left:12px;border-left:4px solid var(--brand)}
.article figure{margin:22px 0;text-align:center}
.article figure img{border-radius:8px;width:100%}
.article figcaption{font-size:13px;color:var(--text-sub);margin-top:8px}
.article .tags{margin-top:26px;font-size:14px;color:var(--text-sub)}
.article .tags a{display:inline-block;background:var(--brand-light);color:var(--brand);padding:4px 12px;border-radius:14px;margin-right:8px;font-size:13px}
.rel{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}
.rel h3{font-size:17px;margin-bottom:12px}
.rel ul li{line-height:2.1;font-size:15px;border-bottom:1px dotted var(--line)}
.rel ul li:before{content:"·";color:var(--brand);margin-right:8px;font-weight:bold}
.pn{display:flex;justify-content:space-between;margin-top:24px;font-size:15px;gap:16px;flex-wrap:wrap}

/* 侧栏 */
.layout{display:grid;grid-template-columns:1fr 300px;gap:26px;align-items:start}
.side .box{background:#fff;border-radius:var(--radius);padding:18px 20px;margin-bottom:20px;box-shadow:0 2px 10px rgba(20,40,80,.05)}
.side .box h3{font-size:17px;margin-bottom:14px;padding-left:10px;border-left:4px solid var(--brand)}
.side .box ul li{font-size:14.5px;line-height:2.05;border-bottom:1px dotted var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side .box .hot li{display:flex;gap:8px;white-space:normal}
.side .box .hot i{
  display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;background:#dde5f5;color:#33456a;
  font-size:12px;border-radius:3px;font-style:normal;flex:0 0 20px;margin-top:7px;
}
.side .box .hot li:nth-child(1) i{background:var(--accent);color:#fff}

/* 联系 */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.info-list li{padding:12px 0;border-bottom:1px dashed var(--line);font-size:15.5px}
.info-list li b{display:inline-block;width:82px;color:var(--brand)}
.contact-grid img{border-radius:var(--radius)}

/* 页脚 */
.footer{background:#111a2b;color:#a8b4c8;font-size:14px;padding-top:40px}
.footer .f-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:26px;padding-bottom:26px}
.footer h4{color:#fff;font-size:16px;margin-bottom:14px}
.footer ul li{line-height:2.1}
.footer .f-about p{line-height:1.9;margin-bottom:10px}
.footer .qr{display:flex;gap:12px;align-items:center;margin-top:8px}
.footer .qr .code{width:96px;height:96px;background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#889;font-size:12px}
.copyright{border-top:1px solid #263149;padding:16px 0;text-align:center;color:#7f8ca1;font-size:13px;line-height:2}
.copyright a{color:#9fb0c8}
.copyright a:hover{color:#fff}

/* 返回顶部 */
#totop{
  position:fixed;right:18px;bottom:70px;width:44px;height:44px;border-radius:50%;background:rgba(26,86,219,.85);
  color:#fff;display:none;align-items:center;justify-content:center;font-size:20px;cursor:pointer;z-index:100;
}
#totop:hover{background:var(--brand-dark)}

/* 分页 */
.pager{display:flex;gap:8px;justify-content:center;margin-top:26px;flex-wrap:wrap}
.pager a,.pager span{padding:8px 15px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:14px}
.pager a:hover,.pager span.now{background:var(--brand);color:#fff;border-color:var(--brand)}
.pager .disable{color:#b9c0cc}

/* 表格 */
.tb{width:100%;border-collapse:collapse;background:#fff;font-size:15px}
.tb th,.tb td{border:1px solid var(--line);padding:12px 14px;text-align:left}
.tb th{background:var(--brand-light);color:#1f3d78}
.tb tr:nth-child(even) td{background:#fafbfe}

@media (max-width:992px){
  .g3,.g4{grid-template-columns:repeat(2,1fr)}
  .layout,.about-wrap,.contact-grid{grid-template-columns:1fr}
  .data-row{grid-template-columns:repeat(2,1fr)}
  .footer .f-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  body{font-size:15.5px}
  .header .wrap{height:60px}
  .nav{
    display:none;position:absolute;top:60px;left:0;right:0;background:#fff;flex-direction:column;
    box-shadow:0 6px 16px rgba(0,0,0,.1);padding:8px;border-top:1px solid var(--line);
  }
  .nav.show{display:flex}
  .nav a{border-radius:0;border-bottom:1px solid var(--line)}
  .menu-btn{display:block}
  .banner img{height:260px}
  .banner .cap h1{font-size:22px}
  .banner .cap p{font-size:14px;display:none}
  .g3,.g4,.g2{grid-template-columns:1fr}
  .news-list .item{grid-template-columns:1fr}
  .news-list .item img{width:100%;height:180px}
  .article{padding:20px 16px}
  .article h1{font-size:21px}
  .footer .f-grid{grid-template-columns:1fr}
  .topbar .wrap{height:auto;padding:6px 0;justify-content:center;gap:10px}
}
