/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --dark-bg: #1a1a1a;
    --light-text: #ecf0f1;
    --accent-color: #c0392b;
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

/* Keep the site chrome aligned to the wider desktop canvas. Page content may
   remain readable at 1200px, while the brand and company details do not float
   in the middle of an ultrawide screen. */
.navbar .container,
.footer > .container {
    width: calc(100% - 96px);
    max-width: none;
    padding-inline: 0;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.language-switcher {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bdc3c7;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--light-text);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    min-width: 80px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #bdc3c7;
    padding: 0.6rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-color);
}

.dropdown-content a.active {
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.3), rgba(26, 26, 26, 0.8));
}

.hero-background img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center bottom;
    
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    transform: translateY(-8%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-steam {
    background: #171a21;
    color: white;
    border: 2px solid #66c0f4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-steam:hover {
    background: #66c0f4;
    color: #171a21;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 192, 244, 0.4);
}

.steam-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* 关于游戏 */
.about {
    padding: 5rem 0;
    background: var(--gradient-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

/* Trailer Section */
.video-section {
    padding: 5rem 0;
    background: var(--gradient-dark);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.video-container video {
    width: 100%;
    display: block;
}

/* 截图轮播 */
.gallery {
    padding: 5rem 0;
    background: #0f0f0f;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 指示点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* 页脚 */
.footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(231, 76, 60, 0.3);
}

.footer-content {
    padding: 2rem;
    /* border: 2px solid var(--primary-color); */
    border-radius: 10px;
    margin-bottom: 2rem;
}

.footer-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-left h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
}

.footer-left p {
    color: #bdc3c7;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
}

.footer-right h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
}

.contact-info-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.contact-value {
    color: #bdc3c7;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-address {
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #7f8c8d;
}

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .footer-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-horizontal {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container,
    .footer > .container {
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .carousel-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 25px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Logo images */
.nav-brand .logo-image {
    height: 100px;
    width: auto;
    display: block;
    filter: brightness(1.2) contrast(1.1);
    margin:-35px 0;
}

.hero-title-image {
    max-width: 790px;
    width: 100%;
    height: auto;
    margin-bottom: -160px;
    animation: fadeInUp 1s ease;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.9));
}

@media (max-width: 768px) {
    .hero-title-image {
        max-width: 90%;
    }

    .nav-brand .logo-image {
        height: 35px;
    }
}
