/* Global Styles */
:root {
    --primary-color: #e74c3c; 
    --secondary-color: #f39c12;
    --accent-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1; 
    --text-color: #2c3e50;
    --max-width: 1200px;
    --blade-color: #f1c40f; 
}

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

body {
    font-family: 'Patrick Hand', 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    background-image: url('images/wooden-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    overflow: hidden;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}

.btn:before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    height: 30px;
    width: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s;
    transform: scale(0);
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
    background: #d62c1a; /* 红色加深 */
}

.btn:hover:before {
    transform: scale(10);
    opacity: 0;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    font-family: 'Luckiest Guy', 'Comic Sans MS', fantasy;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

section {
    padding: 60px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.9);
}

section:nth-child(even) {
    background-color: rgba(236, 240, 241, 0.9);
}


section:before,
section:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

section:before {
    top: 20px;
    left: 20px;
    background-image: url('images/watermelon.png');
    transform: rotate(-15deg);
}

section:after {
    bottom: 20px;
    right: 20px;
    background-image: url('images/orange.png');
    transform: rotate(15deg);
}

/* Header Styles */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-image: url('images/dojo-bg.jpg');
    background-size: cover;
    background-position: center;
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex: 1;
}

.site-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

header h1 {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

header h1:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('images/ninja-star.png');
    background-size: contain;
    top: -5px;
    right: -55px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

header nav ul li a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.2);
}


header nav ul li a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--blade-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

header nav ul li a:hover:before {
    width: 80%;
}

/* Game Section */
.game-section {
    background-image: url('images/dojo-bg-light.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.game-section:before,
.game-section:after {
    display: none;
}

.game-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.game-container {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 10px solid #8B4513; /* 木质边框 */
    position: relative;
    padding: 0;
    background: #8B4513;
}


.game-container:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30%;
    width: 40%;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    z-index: 10;
}

#game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
}

.game-controls {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #8B4513; 
}

.game-controls .btn {
    margin: 0 15px;
    min-width: 150px;
}

/* Rating System */
.rating-container {
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px dashed var(--secondary-color);
}

.rating-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.stars {
    font-size: 40px;
    color: var(--secondary-color);
    margin: 20px 0;
}

.star {
    cursor: pointer;
    margin: 0 8px;
    transition: transform 0.3s, color 0.3s;
}

.star:hover {
    transform: scale(1.3) rotate(10deg);
    color: var(--primary-color);
}

.star.active i {
    font-weight: 900;
}

.rating-stats {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-color);
    margin: 15px 0;
}

.average-rating {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-family: 'Luckiest Guy', cursive;
}

.vote-count {
    display: block;
    font-size: 1rem;
    color: #777;
    margin-top: 5px;
}

#rating-text {
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* About Section */
.about-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.about-section h2:before,
.about-section h2:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-section h2:before {
    right: 100%;
}

.about-section h2:after {
    left: 100%;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
    max-height: 450px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.about-text.expanded {
    max-height: 2000px;
    /* 足够大，展开全部 */
}

.about-text:not(.expanded):after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 90%);
    pointer-events: none;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    transform: rotate(3deg);
    border: 10px solid white;
}

/* How to Play Section */
.how-to-play-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.steps {
    margin-top: 40px;
}

.step {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}


.step:before {
    content: attr(data-step);
    position: absolute;
    top: -25px;
    left: -25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.step-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.step-image img {
    border-radius: 15px;
    border: 8px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    height: auto;
    transform: rotate(-2deg);
}

.step-content {
    flex: 2;
    min-width: 300px;
    padding: 0 30px;
}

.step-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.step-content p {
    font-size: 1.1rem;
}

/* Tips Section */
.tips-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-sizing: border-box;
    align-items: stretch;
}

.tip {
    margin: 12px 0;
    padding: 20px;
    border-radius: 14px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.tip:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 0 0 20px 20px;
}

.tip:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tip h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.tip i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.tip p {
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-content {
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-question {
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 5px solid var(--primary-color);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 1.1rem;
}

/* Videos Section */
.videos-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Download Buttons Section */
.download-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.download-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--dark-color);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    text-align: left;
    margin: 0 10px 10px 0;
    cursor: pointer;
    border: none;
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    background-color: var(--primary-color);
    color: #fff;
}

.download-button i {
    font-size: 2.5rem;
    margin-right: 15px;
}

.download-button .button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-button .small-text {
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.8;
}

.download-button .big-text {
    font-size: 1.2rem;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}

/* Videos Section */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s;
}

.video:hover {
    transform: translateY(-10px);
}

.video iframe {
    border-radius: 10px 10px 0 0;
}

.video h3 {
    padding: 20px;
    background-color: white;
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

/* Comments Section */
.comments-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.comments-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .comments-container {
        grid-template-columns: 1fr 1fr;
    }
}

.comments-list {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
    border: 8px solid var(--accent-color);
    border-radius: 20px;
}

.comment {
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 2px dashed #eee;
    transition: transform 0.3s;
}

.comment:hover {
    transform: translateX(5px);
}

.comment:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.comment-date {
    color: #777;
    font-size: 0.9rem;
}

.comment-form {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--primary-color);
}

.comment-form h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    background-image: url('images/dojo-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

footer p {
    font-size: 1.1rem;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    color: white;
    font-size: 28px;
    margin: 0 15px;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.2) rotate(10deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header h1 {
        margin-bottom: 15px;
    }

    header h1:after {
        right: -40px;
        top: -10px;
        width: 40px;
        height: 40px;
    }

    header nav {
        margin-top: 0px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 5px 10px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text,
    .about-image {
        padding: 0;
        margin-bottom: 30px;
    }

    .step {
        flex-direction: column;
    }

    .step-image,
    .step-content {
        padding: 0;
        margin-bottom: 20px;
    }

    #game-iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 15px;
        overflow-x: hidden;
    }
    .container {
        padding: 0 5px;
    }
    header {
        padding: 8px 0;
    }
    .site-logo {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    header h1:after {
        width: 24px;
        height: 24px;
        right: -28px;
        top: -5px;
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    header nav ul li {
        margin: 0 0 8px 0;
    }
    .game-section {
        padding: 30px 0 20px 0;
        background-size: cover;
    }
    .game-container {
        border-width: 5px;
        border-radius: 10px;
        margin: 10px 0;
    }
    #game-iframe {
        height: 220px;
        min-height: 120px;
    }
    .game-controls {
        flex-direction: column;
        padding: 10px 0;
        gap: 10px;
    }
    .game-controls .btn {
        min-width: 120px;
        font-size: 1rem;
        padding: 10px 0;
        margin: 5px 0;
    }
    .about-content, .steps, .comments-container {
        flex-direction: column !important;
        padding: 0;
    }
    .about-text, .about-image, .step-image, .step-content {
        min-width: 0;
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
    .about-image img, .step-image img {
        max-width: 95vw;
        border-width: 4px;
    }
    .rating-container, .comment-form, .comments-list {
        padding: 10px;
        border-radius: 10px;
    }
    .rating-container {
        max-width: 100%;
    }
    .stars {
        font-size: 2rem;
    }
    .rating-stats {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.3rem;
        padding-bottom: 5px;
    }
    .tip, .faq-item, .video, .comment {
        padding: 10px;
        border-radius: 10px;
    }
    .download-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .download-button {
        min-width: 0;
        font-size: 1rem;
        padding: 12px 18px;
        border-radius: 10px;
        margin: 0 20px 10px 20px;
        text-align: left;
    }
    .download-button .button-text {
        align-items: flex-start;
    }
    .tips-content {
        padding: 10px;
        gap: 0;
        box-sizing: border-box;
    }
    .tip {
        margin: 10px 0;
        padding: 15px;
        border-radius: 10px;
        box-sizing: border-box;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        overflow: hidden;
    }
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .site-branding {
        display: flex;
        align-items: center;
        flex: 1;
    }
    .site-logo {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    .game-title {
        font-size: 1.5rem;
        color: #fff;
        margin: 0;
        line-height: 1;
        font-family: 'Luckiest Guy', 'Comic Sans MS', fantasy;
    }
    .menu-toggle {
        margin-left: 0;
    }
    .modal-content {
        padding: 15px;
        border-radius: 10px;
        max-width: 95vw;
    }
    .modal-title {
        font-size: 1.1rem;
    }
    .share-option {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    footer {
        padding: 20px 0;
    }
    .social-links {
        margin-top: 10px;
    }
    .social-links a {
        font-size: 20px;
        margin: 0 6px;
    }
    /* 1. 移动端菜单弹出 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1200;
        margin-left: auto;
    }
    .menu-toggle span {
        display: block;
        width: 28px;
        height: 4px;
        margin: 3px 0;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }
    #main-nav {
        position: fixed;
        top: 0;
        left: -80vw;
        width: 75vw;
        height: 100vh;
        background: var(--dark-color);
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        z-index: 1100;
        transition: left 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 0;
    }
    #main-nav.active {
        left: 0;
    }
    #main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin-top: 60px;
    }
    #main-nav ul li {
        width: 100%;
        margin: 0;
    }
    #main-nav ul li a {
        display: block;
        width: 100%;
        padding: 18px 24px;
        color: #fff;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    /* 菜单按钮动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    /* 2. section:before/after 浮动装饰元素在标题下方 */
    section:before, section:after {
        z-index: 0;
    }
    .section-title {
        position: relative;
        z-index: 2;
    }
    /* 3. 主要内容区样式统一 */
    .about-content, .how-to-play-section .steps, .tips-content, .faq-content, .videos-container, .comments-container, .rating-container, .comment-form, .comments-list {
        margin: 20px 0;
        padding: 20px;
        border-radius: 12px;
        background: rgba(255,255,255,0.95);
        box-sizing: border-box;
        overflow: hidden;
        word-break: break-all;
    }
    .about-content {
        margin: 20px 0;
        padding: 20px;
    }
    .about-text, .about-image, .step-image, .step-content {
        min-width: 0;
        padding: 0 !important;
        margin-bottom: 15px !important;
        word-break: break-all;
    }
    .about-image img, .step-image img {
        max-width: 100%;
        border-width: 4px;
        display: block;
        margin: 0 auto;
    }
    /* 保证文字和图片都不超出内容区 */
    .about-content p, .about-content img, .how-to-play-section .steps p, .how-to-play-section .steps img, .tips-content p, .tips-content img, .faq-content p, .faq-content img, .videos-container iframe, .comments-list, .comment-form, .rating-container {
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-all;
    }
    /* 其它细节优化 */
    .comment {
        padding: 10px;
        border-radius: 10px;
        background: #fff;
    }
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .comment-author, .comment-date {
        font-size: 1rem;
    }
    .rating-container {
        margin: 20px 0;
        padding: 20px;
        border-radius: 12px;
        background: rgba(255,255,255,0.95);
    }
}

/* Share Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid var(--secondary-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-color);
    transition: transform 0.3s, color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.share-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-option {
    padding: 15px 25px;
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.share-option:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.share-option i {
    margin-right: 15px;
    font-size: 1.2em;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-email {
    background-color: #ea4335;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

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

.slideInFromLeft {
    animation: slideInFromLeft 0.5s ease-in;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 1s;
}

@keyframes slash {
    0% { transform: translateX(-100%) rotate(45deg); width: 0; opacity: 0.8; }
    50% { width: 200%; opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); width: 0; opacity: 0.8; }
}

.slash-effect {
    position: relative;
    overflow: hidden;
}

.slash-effect:hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blade-color);
    box-shadow: 0 0 10px 2px var(--blade-color);
    animation: slash 0.6s ease-out;
}

.game-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    line-height: 1;
    font-family: 'Luckiest Guy', 'Comic Sans MS', fantasy;
}

.menu-toggle {
    margin-left: 0;
}

.show-more-btn {
    display: block;
    margin: 10px auto 0 auto;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 1rem;
    font-family: 'Luckiest Guy', cursive;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.show-more-btn:hover {
    background: var(--secondary-color);
} 