/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #00cec9;
    --dark: #0f0f1e;
    --darker: #080811;
    --light: #f5f6fa;
    --text: #dfe6e9;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄展示区 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    z-index: -2;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/photo-1534423861386-85a16f5d13fd.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.6);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(0, 206, 201, 0.1);
}

/* 游戏展示区 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.game-info p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.game-status {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-status.upcoming {
    background: var(--accent);
}

.game-status.developing {
    background: #e17055;
}

/* 新闻动态 */
.news-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.news-date {
    min-width: 100px;
    text-align: center;
    background: var(--primary);
    padding: 10px;
    border-radius: 8px;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.news-content p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 206, 201, 0.2);
    color: var(--accent);
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 招聘信息 */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.job-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.job-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.job-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.job-card p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.job-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text);
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 页脚 */
.footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal 样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--dark);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2.5rem 2rem 1.5rem;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.modal-day {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: white;
}

.modal-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: white;
}

.modal-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: white;
    line-height: 1.3;
}

.modal-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.news-content-full {
    line-height: 1.8;
}

.news-content-full h4 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--accent);
}

.news-content-full p {
    margin-bottom: 1.2rem;
    color: var(--text);
}

.news-content-full ul, .news-content-full ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-content-full li {
    margin-bottom: 0.5rem;
}

.news-image {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* 响应式Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        justify-content: center;
    }
    
    .modal-footer .cta-button {
        flex: 1;
        min-width: 120px;
    }
}

/* 新闻项点击效果 */
.news-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:active {
    transform: scale(0.98);
}