:root {
    --primary-color: #4a0e0e;
    --secondary-color: #f39c12;
    --text-color: #333;
    --background-color: #f4f4f4;
    --section-padding: 40px 0; /* 减少在移动设备上的内边距 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px; /* 基础字体大小 */
}
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.hero {
    background: url('https://s.sprunkiincredibox.com/img/bg01.png') no-repeat center center/cover;
    height: auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-content {
    z-index: 2;
    position: relative;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%; /* 让按钮占满整行 */
    text-align: center;
}
.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
section {
    padding: var(--section-padding);
}
section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}
.feature-grid, .step-grid, .mode-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr; /* 在移动设备上使用单列布局 */
    gap: 20px;
}
.feature-item, .step-item, .mode-item, .testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover, .step-item:hover, .mode-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.feature-icon, .step-number {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.about-sprunki, .sprunki-history {
    background-color: #f9f9f9;
}
.sprunki-history {
    background-color: var(--primary-color);
    color: white;
}
.tip-list {
    list-style-type: none;
    padding-left: 0;
}
.tip-list li {
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}
.tip-list li::before {
    content: "\f0eb";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}
.faq-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.faq-question::before {
    content: "\f059";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--secondary-color);
}
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3vh;
    font-family: 'Roboto', sans-serif;
}

.logo a {
    color: white;
    text-decoration: none;
    letter-spacing: 3px;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: none; /* 默认隐藏导航链接 */
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s ease;
}

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

.burger {
    display: block; /* 显示汉堡菜单图标 */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1024px) {
    .nav-links {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        opacity: 0;
    }
    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

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

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px,-6px);
}

.language-selector {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.language-selector span {
    margin-right: 10px;
}

.language-selector ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

.language-selector ul li {
    margin: 0 5px;
}

.language-selector ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-selector ul li a:hover,
.language-selector ul li a:focus {
    background-color: white;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .language-selector {
        flex-direction: column;
    }

    .language-selector span {
        margin-bottom: 10px;
    }
}

/* Copie os estilos da página principal e adicione os seguintes */
.play-online {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}
.play-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.play-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.related-games {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.game-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.2em;
    margin: 0;
}

.game-card p {
    padding: 0 15px 15px;
    font-size: 0.9em;
    color: #666;
}

/* 响应式排版 */
h1 {
    font-size: 2rem; /* 在移动设备上使用较小的字体大小 */
}

h2 {
    font-size: 1.75rem;
}

p {
    font-size: 1rem;
}

/* 导航栏调整 */
.nav-links {
    display: none; /* 默认隐藏导航链接 */
}

.burger {
    display: block; /* 显示汉堡菜单图标 */
}

/* 当导航栏激活时显示链接 */
.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px 0;
}

.nav-active li {
    margin: 10px 0;
}

/* 英雄区域调整 */
.hero {
    height: auto;
    padding: 60px 0;
}

.hero h1 {
    font-size: 2.5rem;
}

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

/* 网格布局调整 */
.feature-grid, .step-grid, .mode-grid, .testimonial-grid, .game-card-grid {
    grid-template-columns: 1fr; /* 在移动设备上使用单列布局 */
    gap: 20px;
}

/* 按钮样式调整 */
.cta-button, .play-button {
    width: 100%; /* 让按钮占满整行 */
    text-align: center;
    padding: 15px;
}

/* 图片响应式处理 */
img {
    max-width: 100%;
    height: auto;
}

/* 媒体查询 */
@media screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: flex;
    }

    .burger {
        display: none;
    }

    .feature-grid, .step-grid, .mode-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-button, .play-button {
        width: auto;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 1140px;
        padding: 0 30px;
    }

    /* 导航栏优化 */
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        transform: none;
    }

    .nav-links li {
        opacity: 1;
        margin-left: 20px;
    }

    .burger {
        display: none;
    }

    /* 英雄区域优化 */
    .hero {
        /* height: 80vh; */
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    /* 网格布局优化 */
    .feature-grid, .step-grid, .mode-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

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

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

    /* 按钮样式优化 */
    .cta-button, .play-button {
        width: auto;
        padding: 15px 40px;
    }

    /* 内容区域优化 */
    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 3rem;
        margin-bottom: 60px;
    }

    /* FAQ 部分优化 */
    .faq-item {
        padding: 30px;
    }

    /* 语言选择器优化 */
    .language-selector {
        flex-direction: row;
    }

    .language-selector ul {
        margin-left: 20px;
    }
}

/* 额外的大屏幕优化 */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero p {
        font-size: 1.8rem;
    }
}

/* 确保内容不会过宽 */
.container {
    max-width: 100%;
}

/* 优化图片显示 */
.game-card img {
    height: 200px;
    object-fit: cover;
}

/* 优化间距 */
.feature-item, .step-item, .mode-item, .testimonial {
    padding: 30px;
}

/* 改善可读性 */
body {
    line-height: 1.6;
}

p {
    margin-bottom: 1em;
}

.game-container {
    position: relative;
    width: 100%;
    /* height: 800px; */
}

.fullscreen-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fullscreen-button i {
    font-size: 16px;
}
