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

body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfbf7;
    background-image: 
        radial-gradient(#f4e868 1px, transparent 1px);
    background-size: 30px 30px;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.05), transparent 50%);
    pointer-events: none;
    z-index: -2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 1000;
    border: 4px solid #2c3e50;
    border-radius: 50px;
    box-shadow: 8px 8px 0px rgba(44, 62, 80, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar.scrolled {
    top: 10px;
    background: #fdfbf7;
    box-shadow: 8px 8px 0px #ffb800;
    padding: 10px 40px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #2c3e50;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navbar .logo span {
    font-family: 'Syncopate', sans-serif;
    color: #2c3e50;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 900;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.nav-links a:hover {
    color: #2c3e50;
    background: #ffb800;
    border: 2px solid #2c3e50;
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: 3px 3px 0px #2c3e50;
}

.lang-switch {
    background: #ffb800;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Syncopate', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0px #2c3e50;
}

.lang-switch:hover {
    background: #ffd700;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #2c3e50;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#particle-canvas {
    position: fixed; /* 改为 fixed 铺满全屏，使其不局限于首屏 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.hero-bg {
    display: none; /* 移除导致分界线的独立背景层 */
}

.hero-content {
    z-index: 1;
}

.glow-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 90px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffb800;
    text-shadow: 4px 4px 0px #2c3e50, 8px 8px 0px rgba(44, 62, 80, 0.2);
    letter-spacing: 4px;
    -webkit-text-stroke: 2px #2c3e50;
    animation: bounce 2s infinite ease-in-out alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.slogan {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: #2c3e50;
    text-transform: uppercase;
}

.sub-slogan {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    font-weight: 700;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 900;
    background: #ffb800;
    border: 3px solid #2c3e50;
    color: #2c3e50;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    border-radius: 50px;
    box-shadow: 4px 4px 0px #2c3e50;
}

.cta-btn:hover {
    background: #ffd700;
    color: #2c3e50;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2c3e50;
}

.cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #2c3e50;
}

/* Sections */
section {
    padding: 100px 0;
}

h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 40px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* About Section */
.about {
    background-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    border: 3px solid #2c3e50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0px rgba(44, 62, 80, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #ffb800;
}

.about-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    border-color: #2c3e50;
    box-shadow: 12px 12px 0px #ffb800;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 900;
}

.about-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
}

/* Games Section */
.game-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.game-card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: all 0.5s ease;
    border: none;
    gap: 40px;
}

.game-card:nth-child(even) {
    flex-direction: row-reverse;
}

.game-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.game-image-wrapper {
    flex: 1.5;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 12px 12px 0px rgba(44, 62, 80, 0.2);
    border: 4px solid #2c3e50;
}

.game-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 184, 0, 0.4) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.game-card:hover .game-image-wrapper::after {
    opacity: 0;
}

.game-image {
    height: 400px;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.game-info {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 4px solid #2c3e50;
    position: relative;
    transform: translateX(-40px);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    box-shadow: 8px 8px 0px #ffb800;
}

.game-card:nth-child(even) .game-info {
    transform: translateX(40px);
    box-shadow: -8px 8px 0px #ffb800;
}

.game-card:hover .game-info {
    transform: translateX(-20px) translateY(-5px);
    box-shadow: 12px 12px 0px #ffb800;
}

.game-card:nth-child(even):hover .game-info {
    transform: translateX(20px) translateY(-5px);
    box-shadow: -12px 12px 0px #ffb800;
}

.game-info h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.game-info p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    background: #ffb800;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 2px solid #2c3e50;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px #2c3e50;
}

/* Footer */
footer {
    background: #fdfbf7;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 4px solid #2c3e50;
    margin-top: 50px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #2c3e50;
}

.footer-content .logo span {
    font-family: 'Syncopate', sans-serif;
    color: #2c3e50;
}

.footer-content p {
    color: #555;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-info {
    font-size: 14px;
}

.copyright {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

/* Legal & Text Pages */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
    background: #fdfbf7;
    border-bottom: 4px solid #2c3e50;
}

.page-header p {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-container {
    max-width: 800px;
    background: #fff;
    border-radius: 20px;
    border: 4px solid #2c3e50;
    padding: 60px;
    margin: 60px auto;
    box-shadow: 12px 12px 0px #ffb800;
}

.legal-content h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 24px;
    color: #2c3e50;
    margin: 40px 0 20px;
    text-align: left;
    letter-spacing: 1px;
    font-weight: 900;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.legal-content ul {
    color: #555;
    margin-left: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 500;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content strong {
    color: #2c3e50;
    font-weight: 900;
}

/* Animations */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal {
    transform: scale(0.95);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1;
    transform: translate(0) scale(1);
}
