/* 游戏盒子（主域名首页）样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.box-body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #e8ebf2;
    background: #0f1117;
    -webkit-font-smoothing: antialiased;
}

.box-wrap { width: 1200px; max-width: calc(100% - 40px); margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* 头部 */
.box-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 17, 23, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}
.box-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.box-logo { display: flex; align-items: center; gap: 10px; }
.box-logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #ff2d6f, #ff7a3d);
    color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.box-logo-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.box-logo-text em { font-style: normal; font-size: 10px; color: #7f879b; letter-spacing: 2px; margin-top: 2px; }
.box-nav { display: flex; gap: 26px; font-size: 14px; color: #aeb5c6; }
.box-nav a:hover, .box-nav a.on { color: #fff; }
.box-nav a.on { position: relative; }
.box-nav a.on::after {
    content: ""; position: absolute; left: 50%; bottom: -22px; width: 18px; height: 3px;
    margin-left: -9px; border-radius: 2px; background: #ff2d6f;
}

/* 首屏 */
.box-hero {
    padding: 72px 0 54px;
    background:
        radial-gradient(900px 400px at 50% -60px, rgba(255, 45, 111, .25), transparent 70%),
        radial-gradient(700px 300px at 85% 10%, rgba(255, 122, 61, .12), transparent 70%);
    text-align: center;
}
.box-hero h1 { font-size: 46px; letter-spacing: 2px; line-height: 1.2; }
.box-hero h1 span { color: #ff2d6f; }
.box-hero-sub { margin-top: 14px; color: #9aa2b5; font-size: 15px; }
.box-hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 26px; font-size: 13px; color: #8d95a8; }
.box-hero-stats b { color: #fff; font-size: 16px; margin-right: 4px; }

/* 游戏列表 */
.box-main { padding: 20px 0 70px; }
.box-section-title { text-align: center; margin: 10px 0 30px; }
.box-section-title h2 { font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.box-section-title p { margin-top: 8px; color: #7d859a; font-size: 13px; }

.box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.box-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #181b24, #14161e);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.box-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 45, 111, .45);
    box-shadow: 0 14px 36px rgba(255, 45, 111, .16);
}
.box-card-icon {
    width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
    background: #0c0e13; border: 1px solid rgba(255, 255, 255, .08);
}
.box-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.box-icon-letter {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ff2d6f, #ff7a3d);
}
.box-card-body { margin-top: 14px; }
.box-card-body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.box-card-body h3 span { display: block; font-size: 12px; font-weight: 400; color: #7f879b; margin-top: 3px; }
.box-card-stars { color: #ffb400; font-size: 12px; margin-top: 8px; letter-spacing: 1px; }
.box-card-desc {
    margin-top: 10px; font-size: 12px; line-height: 1.7; color: #9aa2b5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 61px;
}
.box-card-btns { display: flex; gap: 8px; margin-top: 16px; }
.box-btn { flex: 1; height: 36px; line-height: 36px; text-align: center; border-radius: 8px; font-size: 13px; font-weight: 500; }
.box-btn-ghost { border: 1px solid rgba(255, 255, 255, .16); color: #cfd5e2; }
.box-btn-ghost:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.box-btn-main { background: linear-gradient(135deg, #ff2d6f, #ff5b4d); color: #fff; }
.box-btn-main:hover { filter: brightness(1.08); }
.box-card-domain { margin-top: 10px; font-size: 11px; color: #5d6577; text-align: center; }

.box-empty { text-align: center; padding: 70px 0; color: #8d95a8; }
.box-empty p { font-size: 18px; color: #cfd5e2; }
.box-empty span { display: inline-block; margin-top: 10px; font-size: 13px; }

/* 页脚 */
.box-footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 28px 0 34px; text-align: center; color: #7d859a; font-size: 12px; line-height: 1.9; }
.box-footer-note { color: #5d6577; }

@media (max-width: 1100px) {
    .box-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .box-grid { grid-template-columns: repeat(2, 1fr); }
    .box-hero { padding: 48px 0 34px; }
    .box-hero h1 { font-size: 32px; }
    .box-nav { display: none; }
}
@media (max-width: 520px) {
    .box-grid { grid-template-columns: 1fr; gap: 14px; }
    .box-hero h1 { font-size: 27px; }
    .box-hero-stats { gap: 16px; flex-wrap: wrap; }
    .box-card-desc { -webkit-line-clamp: 2; min-height: 0; }
}
