/* ============================================
   新盛游戏官网 - 主样式表
   Xinsheng Games Official Website
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primary: #0a1628;
    --color-secondary: #131f3a;
    --color-accent: #00d4ff;
    --color-accent2: #7b2ff7;
    --color-gold: #f0c040;
    --color-white: #ffffff;
    --color-gray: #8a9bb5;
    --color-dark: #050a14;
    --color-card: rgba(19, 31, 58, 0.85);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #131f3a 40%, #1a0a3e 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff, #7b2ff7);
    --gradient-gold: linear-gradient(135deg, #f0c040, #ff8c00);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'WenQuanYi Micro Hei', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--color-dark);
    color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* ---------- Layout Helpers ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 1px;
}
.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.btn-gold {
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 10, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.nav-logo img { width: 42px; height: 42px; border-radius: 8px; }
.nav-logo span { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-links a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.1);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}
.nav-cta {
    padding: 10px 20px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.nav-cta:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/banner/hero-banner.jpg') center/cover;
    opacity: 0.25;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,10,20,0.3) 0%, rgba(5,10,20,0.8) 100%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.6;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}
.hero h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 600px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 700px;
}
.hero-stat {
    text-align: center;
    padding: 20px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}
.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 4px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
    background: linear-gradient(180deg, var(--color-dark) 0%, #0a1020 100%);
    position: relative;
}
.games-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/games/games-bg.jpg') center/cover;
    opacity: 0.05;
    z-index: 0;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}
.game-card {
    background: var(--color-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}
.game-card .cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.game-card .cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.game-card:hover .cover img { transform: scale(1.06); }
.game-card .cover .tag {
    position: absolute;
    top: 16px; left: 16px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-accent);
    backdrop-filter: blur(4px);
}
.game-card .info { padding: 24px; }
.game-card .info h3 { margin-bottom: 8px; }
.game-card .info p { font-size: 0.9rem; margin-bottom: 16px; }
.game-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game-card .meta .platform {
    display: flex;
    gap: 6px;
}
.game-card .meta .platform span {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.game-card .play-btn {
    padding: 6px 16px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.game-card .play-btn:hover { box-shadow: var(--shadow-glow); }

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    background: var(--color-primary);
    position: relative;
}
.news-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/news/news-bg.jpg') center/cover;
    opacity: 0.04;
    z-index: 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.news-card {
    display: flex;
    background: var(--color-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}
.news-card .thumb {
    width: 200px;
    min-width: 200px;
    height: 140px;
    overflow: hidden;
}
.news-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-card .body .date {
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.news-card .body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.news-card .body p {
    font-size: 0.85rem;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}
.news-more {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: linear-gradient(180deg, #0a1020 0%, var(--color-dark) 100%);
    position: relative;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.team-card {
    background: var(--color-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 47, 247, 0.4);
    box-shadow: 0 8px 32px rgba(123, 47, 247, 0.2);
}
.team-card .avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--gradient-accent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.team-card p { font-size: 0.9rem; }

/* ============================================
   ABOUT / COMPANY SECTION
   ============================================ */
.about-section {
    background: var(--color-primary);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; }
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.about-feature {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    text-align: center;
}
.about-feature .icon { font-size: 2rem; margin-bottom: 8px; }
.about-feature h4 { font-size: 0.95rem; margin-bottom: 4px; }
.about-feature p { font-size: 0.8rem; }
.about-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.about-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ============================================
   CAREERS SECTION
   ============================================ */
.careers-section {
    background: linear-gradient(135deg, #0d1a30 0%, #1a0e3a 100%);
    position: relative;
}
.careers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/team/recruit-bg.jpg') center/cover;
    opacity: 0.06;
    z-index: 0;
}
.careers-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.careers-content h2 { margin-bottom: 16px; }
.careers-content p { margin-bottom: 32px; font-size: 1.1rem; }
.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}
.career-tags span {
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--color-dark);
    padding: 80px 0;
    position: relative;
}
.partners-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner/partner-bg.jpg') center/cover;
    opacity: 0.04;
    z-index: 0;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.partner-logo {
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-gray);
    transition: var(--transition);
    font-weight: 600;
}
.partner-logo:hover {
    border-color: rgba(0, 212, 255, 0.3);
    color: #fff;
    background: rgba(0, 212, 255, 0.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--color-primary);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.contact-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--color-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}
.contact-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}
.contact-card .icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: 0.95rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #03060c;
    padding: 60px 0 24px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner/footer-bg.jpg') center/cover;
    opacity: 0.03;
}
.footer-inner {
    position: relative;
    z-index: 1;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-brand .logo img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand .logo span { font-size: 1.3rem; font-weight: 800; }
.footer-brand p { font-size: 0.9rem; max-width: 350px; }
.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--color-gray);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}
.footer-social a:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(5,10,20,0.98);
        padding: 20px;
        gap: 4px;
    }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .games-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; }
    .news-card .thumb { width: 100%; height: 180px; }
    .team-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
