/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.logo-text small {
    font-size: 10px;
    font-weight: normal;
    color: #999;
    letter-spacing: 2px;
}

.main-nav { display: flex; gap: 36px; }

.main-nav a {
    color: #ccc;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    border-bottom-color: #ff5f3f;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    margin: 5px 0;
}

/* ===== 首屏轮播 ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 480px;
    overflow: hidden;
}

.carousel { height: 100%; }

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active { opacity: 1; }

.slide-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.slide-2 { background: linear-gradient(135deg, #2b1055 0%, #7597de 130%); }
.slide-3 { background: linear-gradient(135deg, #200122 0%, #6f0000 130%); }

.slide-content { color: #fff; }

.slide-content h1 {
    font-size: 44px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.slide-content p {
    font-size: 18px;
    color: rgba(255,255,255,.85);
}

.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s;
}

.carousel-dots button.active { background: #fff; }

/* ===== 通用版块 ===== */
.section { padding: 80px 0; }

.section-gray { background: #f6f7f9; }

.section-dark { background: #14141c; color: #ddd; }

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: #888;
    margin-bottom: 48px;
}

/* ===== 产品展示 ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-grid-single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.game-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.game-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.game-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.game-info { padding: 20px; }

.game-info h3 { font-size: 18px; margin-bottom: 8px; }

.game-info p { font-size: 14px; color: #777; }

/* ===== 新闻 ===== */
.news-list { list-style: none; }

.news-item {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    align-items: center;
}

.news-date {
    flex: 0 0 72px;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 24px;
}

.news-date strong {
    display: block;
    font-size: 30px;
    color: #ff5f3f;
    line-height: 1.1;
}

.news-date span { font-size: 13px; color: #999; }

.news-body h3 { font-size: 17px; margin-bottom: 6px; }

.news-body p { font-size: 14px; color: #777; }

/* ===== 加入我们 ===== */
.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.job-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px;
    transition: border-color .2s, box-shadow .2s;
}

.job-card:hover {
    border-color: #ff5f3f;
    box-shadow: 0 8px 20px rgba(255,95,63,.1);
}

.job-card h3 { font-size: 18px; margin-bottom: 6px; }

.job-meta { font-size: 13px; color: #ff5f3f; margin-bottom: 10px; }

.job-card > p:last-child { font-size: 14px; color: #777; }

/* ===== 关于我们 ===== */
.about-inner { max-width: 760px; }

.about-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
    text-align: center;
    color: #bbb;
}

.section-dark .section-title { color: #fff; }

/* ===== 页脚 ===== */
.site-footer {
    background: #0c0c12;
    color: #888;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}

.site-footer a { color: #888; }

.site-footer a:hover { color: #ccc; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(10,10,15,.97);
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
    }

    .main-nav.open { display: flex; }

    .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

    .slide-content h1 { font-size: 30px; }

    .game-grid, .job-grid { grid-template-columns: 1fr; }

    .news-item { flex-direction: column; align-items: flex-start; gap: 10px; }

    .news-date { border-right: none; border-bottom: 1px solid #eee; padding: 0 0 10px; width: 100%; text-align: left; }

    .section { padding: 56px 0; }
}
