/* ============================================
   星辉互动娱乐 - 主样式表
   设计风格：科技暗色 + 渐变霓虹 + 现代扁平
   ============================================ */

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #e8e8e8;
    background: #0a0e1a;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: #6ec6ff; text-decoration: none; transition: color .25s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(10, 14, 26, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
}
.site-header.scrolled { background: rgba(10, 14, 26, .95); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a { font-size: 15px; color: #aab; position: relative; padding: 4px 0; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 2px;
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

/* ========== Hero ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,14,26,.65) 0%, rgba(10,14,26,.85) 60%, rgba(10,14,26,1) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: 20px;
    background: linear-gradient(135deg, #6ec6ff 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1.2;
}
.hero-sub { font-size: 1.2rem; color: #99a; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 36px; font-size: 1rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px; transition: all .3s;
    box-shadow: 0 4px 15px rgba(59,130,246,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,.5); color: #fff; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 32px; font-size: 1rem; font-weight: 500; color: #ccd;
    border: 2px solid rgba(255,255,255,.2); border-radius: 10px; transition: all .3s;
}
.btn-ghost:hover { border-color: #6ec6ff; color: #6ec6ff; }
.btn-ghost-light {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 32px; font-size: 1rem; font-weight: 500; color: #fff;
    border: 2px solid rgba(255,255,255,.4); border-radius: 10px; transition: all .3s;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-secondary {
    display: inline-block; margin-top: 8px; color: #6ec6ff; font-weight: 500; font-size: .95rem;
    border-bottom: 1px solid transparent; transition: border-color .25s;
}
.btn-secondary:hover { border-color: #6ec6ff; color: #93d5ff; }

/* Hero Stats */
.hero-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-plus { font-size: 1.4rem; font-weight: 700; color: #8b5cf6; }
.stat-label { font-size: .85rem; color: #778; margin-top: 4px; }

/* Scroll Hint */
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span {
    display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative;
}
.scroll-hint span::after {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: #6ec6ff; border-radius: 2px;
    animation: scrollDot 1.5s infinite;
}
@keyframes scrollDot { 0%,100%{opacity:1;top:8px} 50%{opacity:.3;top:18px} }

/* ========== Section Base ========== */
.section { padding: 100px 0; position: relative; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.section-subtitle { text-align: center; color: #778; margin-bottom: 50px; font-size: 1rem; }

/* ========== Games Preview Cards ========== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.game-card {
    background: linear-gradient(145deg, #11162a, #0d1120);
    border-radius: 20px; overflow: hidden;
    transition: transform .35s, box-shadow .35s;
    border: 1px solid rgba(255,255,255,.05);
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,.5), 0 0 40px rgba(59,130,246,.15); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s; }
.game-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
}
.badge-new { background: linear-gradient(135deg, #10b981, #059669); }
.badge-warm { background: linear-gradient(135deg, #f472b6, #db2777); }
.card-body { padding: 26px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.card-body p { color: #889; font-size: .95rem; line-height: 1.6; }
.card-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card-tags span {
    padding: 3px 12px; border-radius: 20px; font-size: .78rem;
    background: rgba(59,130,246,.12); color: #6ec6ff; border: 1px solid rgba(59,130,246,.2);
}

/* ========== Intro Section ========== */
.intro { background: linear-gradient(180deg, #0a0e1a, #0d1225, #0a0e1a); }
.intro-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text h2 { font-size: 2rem; margin-bottom: 18px; color: #fff; }
.intro-text p { color: #99a; margin-bottom: 14px; line-height: 1.9; }
.intro-highlights { margin: 20px 0 28px; }
.intro-highlights li { color: #889; padding: 6px 0; font-size: .95rem; }
.intro-highlights li strong { color: #6ec6ff; }
.intro-img img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* ========== Data Section ========== */
.data-section { padding: 60px 0; background: linear-gradient(135deg, #111b3a, #1a1050); }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.data-item { text-align: center; padding: 30px 20px; }
.data-icon { font-size: 2.5rem; margin-bottom: 12px; }
.data-item h3 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.data-item p { color: #99a; font-size: .9rem; }

/* ========== News ========== */
.news-list { display: flex; flex-direction: column; gap: 24px; max-width: 900px; margin: 0 auto; }
.news-item {
    display: flex; gap: 24px; background: #11162a; padding: 20px;
    border-radius: 16px; align-items: flex-start;
    border: 1px solid rgba(255,255,255,.04);
    transition: transform .3s, border-color .3s;
}
.news-item:hover { transform: translateX(4px); border-color: rgba(59,130,246,.3); }
.news-img { flex-shrink: 0; width: 200px; height: 130px; border-radius: 10px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-meta time { color: #556; font-size: .85rem; }
.news-cat { padding: 2px 10px; border-radius: 12px; font-size: .75rem; background: rgba(139,92,246,.2); color: #a78bfa; }
.news-body h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.news-body h3 a { color: #ddd; }
.news-body h3 a:hover { color: #6ec6ff; }
.news-body p { color: #667; font-size: .9rem; line-height: 1.6; }

/* ========== CTA Section ========== */
.cta-section { background: linear-gradient(135deg, #1a1050, #0d1b3a); text-align: center; }
.cta-wrap h2 { font-size: 2rem; color: #fff; margin-bottom: 12px; }
.cta-wrap p { color: #99a; margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Sub Banner (子页面) ========== */
.sub-banner {
    padding: 160px 0 60px; text-align: center;
    background: linear-gradient(180deg, #0d1230, #0a0e1a);
    position: relative; overflow: hidden;
}
.sub-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(139,92,246,.08) 0%, transparent 50%);
}
.sub-banner .container { position: relative; z-index: 1; }
.sub-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 10px; font-weight: 700; }
.sub-banner p { color: #778; font-size: 1.05rem; }

/* ========== Games Detail (games.html) ========== */
.games-list-page { display: flex; flex-direction: column; gap: 60px; }
.game-detail-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
    background: #0d1120; border-radius: 24px; padding: 40px;
    border: 1px solid rgba(255,255,255,.05);
}
.game-detail-card.reverse .game-detail-img { order: 2; }
.game-detail-card.reverse .game-detail-info { order: 1; }
.game-detail-img img { border-radius: 16px; width: 100%; height: 320px; object-fit: cover; }
.game-detail-info .game-genre { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: .8rem; background: rgba(59,130,246,.15); color: #6ec6ff; margin-bottom: 14px; }
.game-detail-info h2 { font-size: 1.8rem; color: #fff; margin-bottom: 14px; }
.game-detail-info p { color: #889; line-height: 1.8; margin-bottom: 16px; }
.game-features { margin-bottom: 20px; }
.game-features li { color: #99a; padding: 5px 0; font-size: .95rem; }
.game-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-tag { padding: 5px 14px; border-radius: 8px; font-size: .82rem; background: rgba(255,255,255,.06); color: #aab; border: 1px solid rgba(255,255,255,.08); }

/* Coming Soon */
.coming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.coming-card { text-align: center; padding: 36px 24px; background: #11162a; border-radius: 16px; border: 1px solid rgba(255,255,255,.05); transition: transform .3s; }
.coming-card:hover { transform: translateY(-4px); }
.coming-icon { font-size: 2.5rem; margin-bottom: 14px; }
.coming-card h3 { color: #fff; margin-bottom: 6px; }
.coming-card p { color: #667; font-size: .9rem; margin-bottom: 14px; }
.coming-status { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: .78rem; background: rgba(251,146,60,.15); color: #fb923c; }

/* ========== News Filter (news.html) ========== */
.news-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 8px 24px; border-radius: 30px; font-size: .9rem; color: #889; background: #11162a; border: 1px solid rgba(255,255,255,.06); transition: all .25s; }
.filter-btn:hover { color: #fff; border-color: rgba(59,130,246,.4); }
.filter-btn.active { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; border-color: transparent; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 28px; }
.news-grid-item { background: #11162a; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.04); transition: transform .3s; }
.news-grid-item:hover { transform: translateY(-4px); }
.news-grid-item img { width: 100%; height: 200px; object-fit: cover; }
.news-grid-body { padding: 24px; }
.news-cat-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .75rem; margin-left: 8px; }
.cat-update { background: rgba(59,130,246,.2); color: #6ec6ff; }
.cat-company { background: rgba(139,92,246,.2); color: #a78bfa; }
.cat-event { background: rgba(16,185,129,.2); color: #34d399; }
.read-more { display: inline-block; margin-top: 12px; color: #6ec6ff; font-size: .88rem; font-weight: 500; }
.read-more:hover { color: #93d5ff; }

/* ========== About Page ========== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; color: #fff; margin-bottom: 18px; }
.about-text p { color: #99a; line-height: 1.9; margin-bottom: 14px; }
.about-img img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* Culture */
.culture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.culture-card { text-align: center; padding: 36px 24px; background: #11162a; border-radius: 16px; border: 1px solid rgba(255,255,255,.05); transition: transform .3s; }
.culture-card:hover { transform: translateY(-4px); }
.culture-icon { font-size: 2.5rem; margin-bottom: 14px; }
.culture-card h3 { color: #fff; margin-bottom: 10px; }
.culture-card p { color: #778; font-size: .9rem; line-height: 1.6; }

/* Timeline */
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #3b82f6, #8b5cf6); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
.timeline-year { font-size: 1.1rem; font-weight: 700; color: #6ec6ff; margin-bottom: 4px; }
.timeline-content h3 { color: #fff; margin-bottom: 6px; font-size: 1.1rem; }
.timeline-content p { color: #778; font-size: .92rem; }

/* Jobs */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.job-card { padding: 28px 24px; background: #11162a; border-radius: 16px; border: 1px solid rgba(255,255,255,.05); transition: transform .3s; }
.job-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.3); }
.job-card h3 { color: #fff; margin-bottom: 8px; }
.job-card p { color: #778; font-size: .9rem; margin-bottom: 12px; }
.job-location { font-size: .82rem; color: #6ec6ff; }

/* ========== Contact Page ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 1.8rem; color: #fff; margin-bottom: 28px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.contact-icon { font-size: 1.6rem; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,.1); border-radius: 12px; }
.contact-item h3 { color: #ccd; font-size: .95rem; margin-bottom: 4px; }
.contact-item p { color: #778; font-size: .9rem; line-height: 1.5; }

/* Form */
.contact-form-wrap { background: #11162a; padding: 36px; border-radius: 20px; border: 1px solid rgba(255,255,255,.05); }
.contact-form-wrap h2 { font-size: 1.8rem; color: #fff; margin-bottom: 6px; }
.form-hint { color: #667; font-size: .88rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: #aab; font-size: .9rem; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; font-size: .95rem;
    background: #0d1120; border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
    color: #ddd; font-family: inherit; transition: border-color .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; }
.form-checkbox label { margin-bottom: 0; color: #889; font-size: .88rem; }
.form-checkbox a { color: #6ec6ff; }
.form-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; margin-top: 8px; }

/* Map */
.map-section { padding: 60px 0 100px; }
.map-placeholder {
    max-width: 900px; margin: 0 auto; height: 300px;
    background: #11162a; border-radius: 20px; border: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center;
}
.map-content { text-align: center; }
.map-icon { font-size: 3rem; margin-bottom: 12px; }
.map-content h3 { color: #fff; margin-bottom: 6px; }
.map-content p { color: #778; font-size: .9rem; }
.map-tip { font-size: .8rem; color: #445; margin-top: 8px; }

/* ========== Footer ========== */
.site-footer { background: #070a14; padding: 50px 0 24px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { height: 36px; margin-bottom: 12px; }
.footer-brand p { color: #445; font-size: .85rem; line-height: 1.6; }
.footer-links-col h4 { color: #aab; font-size: .95rem; margin-bottom: 14px; }
.footer-links-col a { display: block; color: #556; font-size: .88rem; padding: 4px 0; }
.footer-links-col a:hover { color: #6ec6ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.04); padding-top: 20px; text-align: center; }
.footer-bottom p { color: #334; font-size: .82rem; line-height: 1.8; }

/* ========== 动画初始状态 ========== */
.fade-init { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-init.in-view { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .intro-wrap, .about-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .game-detail-card { grid-template-columns: 1fr; padding: 24px; }
    .game-detail-card.reverse .game-detail-img { order: 0; }
    .game-detail-card.reverse .game-detail-info { order: 0; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 72px; left: 0; width: 100%;
        background: #0d1120; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 16px; }
    .section { padding: 60px 0; }
    .hero-stats { gap: 30px; }
    .news-item { flex-direction: column; }
    .news-img { width: 100%; height: 180px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .timeline { padding-left: 28px; }
    .data-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .data-item { padding: 20px 12px; }
}
