/* 全局样式 */
* {
    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%;
}

.platform-account-item {
    margin-left: -0.75rem;
}

.nav-menu .platform-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.25rem 0.62rem 0.25rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(236, 240, 241, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.nav-menu .platform-account-link::after {
    display: none;
}

.nav-menu .platform-account-link:hover {
    border-color: rgba(231, 76, 60, 0.7);
    color: #fff;
}

.platform-account-mark {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f05a4d, #9e201c);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.25);
}

/* 英雄区域 */
.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);
}

.preorder-trigger {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 auto 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(231, 76, 60, 0.58);
    padding: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.preorder-trigger::before { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 12px rgba(231, 76, 60, 0.9); content: ''; }
.preorder-trigger-label { color: rgba(255, 255, 255, 0.58); }
.preorder-trigger strong { color: white; font-size: 0.8rem; letter-spacing: 0.1em; }
.preorder-trigger-price { border-left: 1px solid rgba(231, 76, 60, 0.42); padding-left: 0.65rem; color: #ffd3a4; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.preorder-trigger-action { color: #ff8478; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; }
.preorder-trigger:hover,
.preorder-trigger:focus-visible {
    border-color: var(--primary-color);
    color: white;
    outline: none;
}

.preorder-trigger b { color: var(--primary-color); font-size: 0.95rem; font-weight: 400; }
.preorder-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1.5rem; background: rgba(2, 5, 9, 0.78); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.preorder-modal.is-open,
.preorder-modal:target { opacity: 1; pointer-events: auto; }
.preorder-modal-card { position: relative; width: min(100%, 490px); border: 1px solid rgba(231, 76, 60, 0.58); border-radius: 18px; padding: 2.25rem; background: linear-gradient(135deg, #151719, #30191c); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6); text-align: left; transform: translateY(16px) scale(0.98); transition: transform 0.25s ease; }
.preorder-modal.is-open .preorder-modal-card,
.preorder-modal:target .preorder-modal-card { transform: none; }
.preorder-modal-kicker { margin: 0 0 0.6rem; color: #f38376; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; }
.preorder-modal-card h2 { margin: 0; color: white; font-size: clamp(1.75rem, 5vw, 2.35rem); line-height: 1.12; }
.preorder-modal-card > p:not(.preorder-modal-kicker) { margin: 1.1rem 0 1.65rem; color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.7; }
.preorder-price { display: flex; align-items: baseline; gap: 0.48rem; margin-top: 1.25rem; color: #f6aa5f; }
.preorder-price span { color: rgba(255,255,255,0.57); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; }
.preorder-price strong { color: white; font-size: 2.2rem; line-height: 1; letter-spacing: -0.04em; }
.preorder-price em { color: #f6aa5f; font-size: 0.8rem; font-style: normal; font-weight: 800; letter-spacing: 0.1em; }
.preorder-modal-close { position: absolute; top: 0.9rem; right: 0.95rem; border: 0; color: rgba(255,255,255,0.7); background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }.preorder-modal-close:hover, .preorder-modal-close:focus-visible { color: white; outline: none; }
.preorder-steam-link { display: inline-flex; align-items: center; gap: 0.55rem; border: 1px solid #66c0f4; border-radius: 50px; padding: 0.85rem 1.15rem; color: white; background: #171a21; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }.preorder-steam-link:hover, .preorder-steam-link:focus-visible { color: #171a21; background: #66c0f4; outline: none; transform: translateY(-2px); }.preorder-steam-link .steam-icon { width: 19px; height: 19px; }.preorder-steam-link b { margin-left: 0.7rem; font-size: 1rem; font-weight: 400; }

.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;
}

.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;
    }

    .preorder-modal-card { padding: 2rem 1.45rem 1.55rem; }
    .preorder-trigger { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
    .preorder-trigger-price { padding-left: 0.5rem; }
    .preorder-trigger-action { padding-left: 0.5rem; font-size: 0.6rem; }

    .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));
    pointer-events: none;
}

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

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