/* ===== 飞人游戏 · 深色资源站风格 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #14161a;
  --bg-2: #1b1e24;
  --card: #20242b;
  --card-2: #262b33;
  --line: #2d323b;
  --line-2: #3a4049;
  --txt: #b9bfc9;
  --txt-2: #7c8593;
  --white: #eef1f5;
  --accent: #ff7a18;
  --accent-2: #ffb238;
  --danger: #e5484d;
  --green: #46c07a;
  --blue: #4a9eff;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.wrap { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 12px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #0d0f13; border-bottom: 1px solid #22262d; font-size: 12px; }
.topbar .wrap { display: flex; align-items: center; height: 34px; gap: 18px; color: #7f8794; }
.topbar .right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.topbar .hot-line { color: #5f6672; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; }

/* ---------- 头部导航 ---------- */
.header { background: #171a20; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #ff4d4d); color: #fff;
  font-weight: 800; font-size: 19px; box-shadow: 0 4px 14px rgba(255, 122, 24, .35);
}
.logo .txt b { display: block; color: #fff; font-size: 17px; letter-spacing: 1px; line-height: 1.2; }
.logo .txt span { font-size: 11px; color: var(--txt-2); letter-spacing: 2px; }

.nav { display: flex; align-items: center; height: 60px; }
.nav > li { position: relative; height: 60px; display: flex; align-items: center; }
.nav > li > a {
  padding: 0 13px; font-size: 14px; color: #d3d8e0; display: flex; align-items: center; gap: 4px; height: 100%;
}
.nav > li:hover > a, .nav > li.on > a { color: var(--accent); }
.nav > li > a .caret { font-size: 9px; opacity: .7; }
.nav > li:hover .sub { display: block; }
.sub {
  display: none; position: absolute; top: 60px; left: 0; min-width: 190px; background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); padding: 6px 0; z-index: 80;
}
.sub a { display: block; padding: 7px 16px; font-size: 13px; color: #c3c9d2; }
.sub a:hover { background: #30353f; color: var(--accent); }
.sub li { position: relative; }
.sub .sub2 { display: none !important; position: absolute; left: 190px; top: -6px; min-width: 180px;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 0; }
.sub li:hover .sub2 { display: block !important; }

.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius);
  font-size: 13px; background: var(--card-2); border: 1px solid var(--line-2); color: #cfd4dc;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff4d4d); color: #fff; border: none; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.1); color: #fff; }
.btn.big { padding: 11px 26px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 54px 0 44px; text-align: center; overflow: hidden;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(255, 122, 24, .18), transparent 70%),
    radial-gradient(800px 380px at 82% 10%, rgba(74, 158, 255, .16), transparent 70%),
    linear-gradient(180deg, #191d24, #14161a);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 38px; color: #fff; letter-spacing: 2px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub-t { color: var(--txt-2); margin-top: 10px; font-size: 15px; letter-spacing: 3px; }

.search-box { margin: 26px auto 0; width: 640px; max-width: 100%; display: flex; }
.search-box input {
  flex: 1; height: 46px; padding: 0 18px; background: #0f1116; border: 1px solid var(--line-2);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: #fff; font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
  width: 108px; background: linear-gradient(135deg, var(--accent), #ff4d4d); color: #fff;
  font-size: 15px; font-weight: 600; border-radius: 0 var(--radius) var(--radius) 0;
}
.hot-words { margin-top: 12px; font-size: 12px; color: var(--txt-2); }
.hot-words b { color: #8b939f; font-weight: 400; }
.hot-words a { display: inline-block; margin: 3px 8px 0 0; color: #96a0ad; }
.hot-words a:hover { color: var(--accent); }

/* ---------- 数据条 ---------- */
.stat-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stat-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-bar .item { padding: 16px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat-bar .item:last-child { border-right: none; }
.stat-bar .num { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.stat-bar .num span { font-size: 12px; color: var(--txt-2); font-weight: 400; margin-left: 4px; }
.stat-bar .lb { font-size: 12px; color: var(--txt-2); margin-top: 2px; }

/* ---------- 快捷入口 ---------- */
.quick { padding: 22px 0 4px; }
.quick .wrap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.quick a {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 6px; text-align: center; transition: .18s;
}
.quick a:hover { border-color: var(--accent); background: var(--card-2); transform: translateY(-2px); }
.quick .ic { font-size: 22px; line-height: 1; }
.quick .t { color: #e3e7ee; font-size: 13px; margin-top: 8px; }
.quick .d { color: var(--txt-2); font-size: 11px; }

/* ---------- 分类统计卡 ---------- */
.cat-cards { padding: 18px 0 6px; }
.cat-cards .wrap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-cards a {
  background: linear-gradient(160deg, #242931, #1c2027); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 8px; text-align: center; transition: .18s;
}
.cat-cards a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-cards .ic { font-size: 20px; }
.cat-cards .n { color: #e3e7ee; font-size: 13px; margin-top: 6px; }
.cat-cards .c { color: var(--accent); font-size: 12px; font-weight: 700; }

/* ---------- 公告条 ---------- */
.notice {
  margin: 18px 0 0; background: #2a2115; border: 1px solid #4a3a1d; border-left: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: #d9c9a8;
}
.notice b { color: var(--accent-2); }

/* ---------- 版块标题 ---------- */
.sec-head {
  display: flex; align-items: flex-end; gap: 12px; padding: 26px 0 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.sec-head h2 { font-size: 19px; color: #fff; font-weight: 700; position: relative; padding-left: 12px; }
.sec-head h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--accent);
}
.sec-head .desc { font-size: 12px; color: var(--txt-2); }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--txt-2); }

/* ---------- 主体两栏 ---------- */
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }

/* ---------- 资源列表（信息密度） ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; }
.list-tabs button {
  padding: 11px 16px; font-size: 13px; color: var(--txt-2); white-space: nowrap; border-bottom: 2px solid transparent;
}
.list-tabs button:hover { color: #fff; }
.list-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); background: var(--card); }

.item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); transition: background .15s; }
.item:last-child { border-bottom: none; }
.item:hover { background: var(--card-2); }
.item .thumb {
  width: 128px; height: 76px; flex-shrink: 0; border-radius: 4px; overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.item .thumb .cn {
  color: rgba(255, 255, 255, .92); font-weight: 800; font-size: 17px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  padding: 0 6px; text-align: center; line-height: 1.25;
}
.item .thumb .tagcat {
  position: absolute; left: 0; top: 0; font-size: 10px; padding: 2px 6px; color: #fff;
  background: rgba(0, 0, 0, .55); border-radius: 0 0 4px 0;
}
.item .thumb .play-ic {
  position: absolute; right: 4px; bottom: 4px; font-size: 10px; background: var(--accent); color: #fff;
  padding: 1px 5px; border-radius: 3px;
}
.item .info { flex: 1; min-width: 0; }
.item h3 {
  font-size: 14px; color: #e8ebf0; font-weight: 600; line-height: 1.5; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.item h3:hover { color: var(--accent); }
.item .meta { font-size: 12px; color: var(--txt-2); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item .meta .v { color: #8e96a3; }
.item .meta em { font-style: normal; color: #6f7683; }
.item .meta .zy { color: var(--green); }
.item .meta .pd { color: var(--blue); }
.item .meta .sz { color: var(--accent-2); }
.item .right { text-align: right; flex-shrink: 0; width: 92px; }
.item .right .time { font-size: 12px; color: var(--txt-2); }
.item .right .views { font-size: 11px; color: #616974; margin-top: 2px; }
.item .right .go {
  margin-top: 6px; font-size: 12px; padding: 3px 10px; border-radius: 3px; background: #2f3742; color: #cfd5de;
  display: inline-block;
}
.item .right .go:hover { background: var(--accent); color: #fff; }

.empty { padding: 60px 0; text-align: center; color: var(--txt-2); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 20px 0 6px; flex-wrap: wrap; }
.pager button, .pager span {
  min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 13px; color: var(--txt); background: var(--card); display: grid; place-items: center;
}
.pager button:hover { border-color: var(--accent); color: var(--accent); }
.pager button.cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pager .info { border: none; background: none; color: var(--txt-2); }

/* ---------- 侧栏 ---------- */
.side .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.side .box h4 {
  font-size: 14px; color: #fff; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; gap: 6px;
}
.side .box h4::before { content: ''; width: 3px; height: 13px; background: var(--accent); display: inline-block; }
.side .box .bd { padding: 12px 14px; }

.rank li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #2b3038; font-size: 13px; }
.rank li:last-child { border-bottom: none; }
.rank .no {
  width: 18px; height: 18px; flex-shrink: 0; display: grid; place-items: center; border-radius: 3px;
  background: #333a44; color: #aeb5c0; font-size: 11px; margin-top: 3px;
}
.rank li:nth-child(1) .no { background: #ff4d4d; color: #fff; }
.rank li:nth-child(2) .no { background: #ff7a18; color: #fff; }
.rank li:nth-child(3) .no { background: #ffb238; color: #fff; }
.rank .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5dae2; }
.rank .t:hover { color: var(--accent); }
.rank .n { color: var(--txt-2); font-size: 11px; margin-top: 1px; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a { font-size: 12px; padding: 3px 9px; background: #282e37; border-radius: 3px; color: #9aa3af; }
.tagcloud a:hover { background: var(--accent); color: #fff; }

.side .note { font-size: 12px; color: var(--txt-2); line-height: 1.9; }
.side .note b { color: var(--accent-2); }
.join { text-align: center; }
.join .p { font-size: 22px; color: var(--accent-2); font-weight: 800; }
.join .btn { margin-top: 10px; width: 100%; justify-content: center; }

/* ---------- 在线畅玩网格 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .18s; display: block;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.pcard .cover { height: 108px; display: grid; place-items: center; font-size: 40px; position: relative; }
.pcard .cover .badge {
  position: absolute; right: 6px; top: 6px; font-size: 10px; background: rgba(0, 0, 0, .5);
  color: #fff; padding: 1px 6px; border-radius: 3px;
}
.pcard .b { padding: 9px 10px; }
.pcard .b .t { font-size: 13px; color: #e6eaef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .b .m { font-size: 11px; color: var(--txt-2); margin-top: 3px; display: flex; justify-content: space-between; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 34px; background: #101217; border-top: 2px solid var(--accent); padding: 34px 0 90px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer p, .footer li { font-size: 12.5px; color: var(--txt-2); line-height: 2; }
.footer li:hover { color: var(--accent); }
.footer .about p { margin-bottom: 8px; }
.footer .links { margin-top: 22px; padding-top: 16px; border-top: 1px solid #1d2128; font-size: 12px; color: #6b7280; }
.footer .links b { color: #8d95a1; font-weight: 400; }
.footer .links a { display: inline-block; margin: 0 10px 0 0; color: #8d95a1; }
.footer .copy { text-align: center; font-size: 12px; color: #5f6672; margin-top: 14px; }

/* ---------- 移动端底部工具条 ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #171a20;
  border-top: 1px solid var(--line); display: none;
}
.mbar .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.mbar a { padding: 7px 0 8px; text-align: center; font-size: 11px; color: #98a1ad; }
.mbar a .i { font-size: 17px; display: block; }
.mbar a.on, .mbar a:hover { color: var(--accent); }

/* 真实封面图 */
.item .thumb img.gcover { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition: opacity .35s; }
.item .thumb img.gcover.loaded { opacity:1; }
.item .thumb .cn { position:relative; z-index:2; }
.d-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition: opacity .35s; border-radius: var(--radius); }
.d-cover img.loaded { opacity:1; }
.d-cover .cn, .d-cover .en { position:relative; z-index:2; }

/* ---------- 详情页 ---------- */
.crumb { font-size: 12px; color: var(--txt-2); padding: 14px 0; }
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 6px; color: #4d545f; }

.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.d-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.d-head { display: flex; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.d-cover {
  width: 190px; height: 250px; border-radius: var(--radius); flex-shrink: 0; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.d-cover .cn { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 3px 10px rgba(0, 0, 0, .6); padding: 0 12px; text-align: center; }
.d-cover .en { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 10px; color: rgba(255, 255, 255, .7); }
.d-title h1 { font-size: 21px; color: #fff; font-weight: 700; line-height: 1.4; }
.d-title .en { font-size: 12px; color: var(--txt-2); margin-top: 4px; word-break: break-all; }
.d-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.d-tags span { font-size: 12px; padding: 3px 10px; border-radius: 3px; background: #2b313a; color: #a9b1bd; }
.d-tags span.g { color: var(--green); }
.d-tags span.o { color: var(--accent-2); }
.d-tags span.b { color: var(--blue); }
.d-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.d-stats { display: flex; gap: 24px; margin-top: 16px; font-size: 12px; color: var(--txt-2); }
.d-stats b { color: #fff; font-size: 15px; margin-right: 3px; }

.d-body { padding: 18px; }
.d-body h3 { font-size: 15px; color: #fff; margin: 4px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); }
.d-body p { font-size: 13.5px; color: var(--txt); line-height: 1.95; margin-bottom: 10px; }
.d-body ul.ul { margin: 6px 0 14px; }
.d-body ul.ul li { font-size: 13px; color: var(--txt); padding-left: 16px; position: relative; line-height: 2; }
.d-body ul.ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.shot-grid a { display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: #0d1015; }
.shot-grid img { width: 100%; height: 104px; object-fit: cover; display: block; transition: transform .25s; }
.shot-grid a:hover img { transform: scale(1.05); }
.d-req {
  white-space: pre-wrap; font-size: 13px; color: var(--txt); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; line-height: 1.9; margin-top: 6px;
}

.req { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.req td, .req th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.req th { background: var(--bg-2); color: #fff; width: 110px; font-weight: 600; }
.req tr td:first-child { color: var(--txt-2); }

/* ---------- 游戏运行区 ---------- */
.player {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.player .ph { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.player .ph b { color: #fff; font-size: 14px; }
.player .ph .sp { margin-left: auto; display: flex; gap: 8px; }
.player .stage { padding: 14px; display: flex; justify-content: center; background: #0d1015; }
.player .tips { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt-2); }
.stage-inner { width: 100%; max-width: 520px; }
.stage-inner canvas { width: 100%; display: block; border-radius: 4px; background: #0b0e13; }
.gbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.gbar .sc { font-size: 13px; color: var(--txt-2); }
.gbar .sc b { color: var(--accent-2); font-size: 17px; }
.gbar .btns { margin-left: auto; display: flex; gap: 8px; }
.gbar .btns button { font-size: 12px; padding: 5px 12px; border-radius: 4px; background: #2c323c; color: #cfd5de; }
.gbar .btns button:hover { background: var(--accent); color: #fff; }
.msg { font-size: 13px; color: var(--accent-2); min-height: 20px; margin-bottom: 8px; }
.grid-helper { display: grid; gap: 4px; }

/* ---------- 通用小组件 ---------- */
.pill { font-size: 11px; padding: 2px 7px; border-radius: 3px; background: #2e343d; color: #9aa3af; }
.pill.hot { background: #4a1f1f; color: #ff8a8a; }
.pill.new { background: #1f3a2a; color: #7ce0a3; }
.pill.play { background: #4a3312; color: #ffc06a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .wrap { width: 100%; }
  .quick .wrap, .cat-cards .wrap { grid-template-columns: repeat(4, 1fr); }
  .pgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .main-grid, .detail-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mbar { display: block; }
  .stat-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 26px; }
  .d-head { flex-direction: column; }
  .d-cover { width: 100%; height: 200px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .quick .wrap, .cat-cards .wrap { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .head-right .btn span.hide-sm { display: none; }
}
