
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --dark: #1a1a2e;
    --darker: #0d0d19;
    --light: #f5f6fa;
    --accent: #ff7675;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: rgba(13, 13, 25, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--secondary);
    font-size: 2.2rem;
}

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

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

#language-select {
  background-color: var(--darker);
  color: var(--light);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#language-select:hover {
  border-color: var(--primary);
}

#language-select:focus {
  outline: none;
  box-shadow: 0 0 5px var(--primary);
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.15), transparent 30%),
                radial-gradient(circle at bottom left, rgba(0, 206, 201, 0.15), transparent 30%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 6rem;
}

.hero-text {
    max-width: 700px;
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

/* 游戏展示部分 */
.section {
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    border-color: rgba(108, 92, 231, 0.5);
}

.game-img {
    height: 220px;
    overflow: hidden;
}

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

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

.game-info {
    padding: 1.8rem;
}

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

.game-info p {
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.game-tag {
    background: rgba(108, 92, 231, 0.2);
    color: var(--light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 公司介绍部分 */
.about {
    background: linear-gradient(to bottom, var(--darker), #14142a);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: #d0d0d0;
    font-size: 1.1rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: #d0d0d0;
}

/* 轮播图样式 */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 15px;
}

.mySlides {
    display: none;
}

/* 左右切换按钮 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 小圆点指示器 */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* 淡入效果 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 企业文化部分 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.single-culture {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.single-culture:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    border-color: rgba(108, 92, 231, 0.5);
}

.culture-img {
    height: 280px;
    overflow: hidden;
}

.culture-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.culture-info {
    padding: 1.8rem 1.5rem;
}

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

.culture-info .position {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.culture-info p {
    color: #d0d0d0;
    font-size: 0.95rem;
}

/* 联系部分 */
.contact {
    background: linear-gradient(to bottom, #14142a, var(--darker));
    position: relative;
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.contact-info p {
    color: #d0d0d0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.contact-text p, .contact-text a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary);
}

.contact-form {
    background: rgba(30, 30, 46, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(20, 20, 35, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background: var(--darker);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(108, 92, 231, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.2);
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    margin-top: 2rem;
    color: #999;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 92, 231, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 3.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.8rem;
    }

    nav ul {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}