/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 主要内容区域 */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 2rem;
}

/* 英雄区域 */
#hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* 游戏介绍部分 */
#about {
    background-color: var(--light-bg);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* 下载部分 */
#download {
    text-align: center;
}

.download-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
}

.download-button {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin: 0;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: var(--secondary-color);
}

/* 玩法说明部分 */
#how-to-play {
    background-color: var(--light-bg);
}

.gameplay-content {
    max-width: 800px;
    margin: 0 auto;
}

.gameplay-content ul {
    list-style-position: inside;
    margin: 1rem 0;
}

/* 联系表单 */
#contact {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* 游戏介绍新结构样式 */
.about-container {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.about-main-img {
    width: 240px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: #eee;
}

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

.about-desc {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.about-meta {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.about-rating {
    font-size: 1rem;
    color: #444;
}
.rating-good {
    color: #4a90e2;
    font-weight: bold;
    margin-left: 0.2em;
}
.rating-count {
    color: #888;
    margin-left: 0.2em;
}

.about-date, .about-devpub {
    font-size: 0.98rem;
    color: #555;
}

.about-tags {
    margin-top: 0.5rem;
}
.tag {
    display: inline-block;
    background: #e3eafc;
    color: #2563eb;
    border-radius: 4px;
    padding: 0.25em 0.8em;
    font-size: 0.95em;
    margin-right: 0.5em;
    margin-bottom: 0.3em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-video {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
    margin-left: 0;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    .about-video {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-media {
        flex-direction: column;
        align-items: center;
    }
    .about-logo, .about-main-img {
        width: 80vw;
        max-width: 98vw;
    }
    .about-meta {
        padding: 1rem 0.5rem;
    }
}

.gameplay-gallery {
    margin-top: 2.5rem;
}
.screenshots {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 1rem;
}
.screenshot {
    width: 220px;
    height: 124px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #eee;
    transition: transform 0.2s;
}
.screenshot:hover {
    transform: scale(1.05);
}
@media (max-width: 900px) {
    .screenshots {
        justify-content: center;
    }
    .screenshot {
        width: 45vw;
        height: 25vw;
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .screenshot {
        width: 90vw;
        height: 50vw;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
    background: #fff;
}
.lightbox-close {
    color: #fff;
    font-size: 2.5rem;
    position: absolute;
    top: 2rem;
    right: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #e74c3c;
}

#requirements {
    text-align: center;
}
.requirements-table {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0;
    align-items: stretch;
}
.requirements-col {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: none;
    box-shadow: none;
    padding: 0 0 1.2rem 0;
    border-radius: 0;
}
.requirements-col h3 {
    margin-top: 1.2rem;
}
.requirements-col ul {
    list-style: disc inside;
    color: #333;
    font-size: 1rem;
    line-height: 2;
}
@media (max-width: 900px) {
    .requirements-table {
        flex-direction: column;
        gap: 1.5rem;
    }
    .requirements-col {
        max-width: 98vw;
        padding: 1.2rem 1rem 1rem 1rem;
    }
}

.download-reqs-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 3rem auto 2rem auto;
    flex-wrap: wrap;
}
#download, #requirements {
    flex: 1 1 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0;
    min-width: 320px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#download h2, #requirements h2 {
    margin-bottom: 1.5rem;
}
@media (max-width: 1000px) {
    .download-reqs-container {
        flex-direction: column;
        gap: 2rem;
        max-width: 98vw;
    }
    #download, #requirements {
        max-width: 98vw;
        min-width: unset;
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
}

/* 评论区样式 */
.comments-section {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-weight: bold;
}

.comment-time {
    color: #888;
}

.comment-actions {
    margin-top: 10px;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4757;
}

.like-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
}

.comments-more-wrap {
    text-align: center;
}

.comments-more-btn {
    padding: 10px 20px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comments-more-btn:hover {
    background: #ff6b81;
}

/* 隐藏评论样式 */
.hidden-comment {
    display: none;
}

.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0 1.2rem 0;
    text-align: center;
    font-size: 1.05rem;
    margin-top: 2rem;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.footer-copyright {
    flex: 1 1 200px;
    text-align: left;
    color: #cfd8dc;
}
.footer-links {
    flex: 1 1 200px;
    text-align: center;
}
.footer-links a {
    color: #90caf9;
    text-decoration: none;
    margin: 0 0.3em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #e3eafc;
}
.footer-top {
    flex: 1 1 200px;
    text-align: right;
}
.footer-backtop {
    color: #ffd54f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.footer-backtop:hover {
    color: #fff176;
}
@media (max-width: 700px) {
    .footer-main {
        flex-direction: column;
        gap: 1.2rem;
    }
    .footer-copyright, .footer-links, .footer-top {
        text-align: center;
    }
} 