/* 
 * Roglide: Slide & Match Blocks - Main Stylesheet
 * 复古风格蓝色主题游戏网站样式
 */

/* 全局样式 Global Styles */
:root {
    /* 颜色变量 Color Variables */
    --primary-color: #4169E1;      /* 皇家蓝 Royal Blue */
    --secondary-color: #00BFFF;    /* 深天蓝 Deep Sky Blue */
    --accent-color: #FFD700;       /* 金色 Gold */
    --dark-color: #191970;         /* 午夜蓝 Midnight Blue */
    --light-color: #F0F8FF;        /* 爱丽丝蓝 Alice Blue */
    --text-color: #333;            /* 深灰色文本 Dark Gray Text */
    --bg-color: #E6F2FF;           /* 浅蓝背景 Light Blue Background */
}

/* 网站背景图案 Website Background Pattern */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234169e1' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    line-height: 1.6;
}

/* 容器样式 Container Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 艺术字体应用 Artistic Font Application */
h1, h2, h3, .logo h1, .footer-logo h3 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px var(--accent-color);
}

/* 语言选择器 Language Selector */
.language-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-selector button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.language-selector button:hover {
    background-color: var(--light-color);
}

.language-selector button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 页面顶部导航 Header Navigation */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.logo {
    text-align: center;
    padding: 10px 0;
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--light-color);
    text-shadow: 3px 3px 0px var(--secondary-color);
    letter-spacing: -1px;
    transform: skew(-5deg);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 游戏区域 Game Section */
.game-container {
    position: relative;
    margin: 20px 0;
    width: 100%;
    height: 80vh;
    max-height: 700px;
    border: 10px solid var(--dark-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: #000;
}

.game-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
}

#fullscreen-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* 游戏介绍 Game Introduction */
.game-intro {
    padding: 40px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 游戏截图 Screenshots */
.screenshots {
    padding: 40px 0;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.screenshots .section-title {
    color: var(--light-color);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.screenshot {
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.screenshot:hover {
    transform: translateY(-10px);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

/* 游戏特点 Features */
.features {
    padding: 60px 0;
    background-image: linear-gradient(135deg, var(--bg-color) 0%, white 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

/* 游戏攻略 How to Play */
.how-to-play {
    padding: 60px 0;
    background-color: var(--light-color);
}

.instructions {
    max-width: 800px;
    margin: 0 auto;
}

.instruction-step {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 80px;
}

.step-content {
    padding: 20px;
}

.step-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* 游戏创作团队 Development Team */
.team {
    padding: 60px 0;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.team .section-title {
    color: var(--light-color);
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.member-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.member-role {
    color: var(--accent-color);
}

/* 游戏发展历史 Game History */
.history {
    padding: 60px 0;
    background-image: linear-gradient(135deg, var(--bg-color) 0%, white 100%);
}

.timeline {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    width: 60px;
    text-align: center;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* 玩家评价 Player Reviews */
.reviews {
    padding: 60px 0;
    background-color: var(--light-color);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.review::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 150px;
    color: rgba(0, 0, 0, 0.05);
    font-family: Georgia, serif;
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.reviewer {
    text-align: right;
    font-weight: bold;
}

/* FAQ 常见问题 */
.faq {
    padding: 60px 0;
    background-image: linear-gradient(135deg, var(--bg-color) 0%, white 100%);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 页脚 Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--light-color);
    margin: 0;
    font-size: 1.5rem;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--light-color);
    text-decoration: none;
}

/* 响应式设计 Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .game-container {
        height: 60vh;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .screenshot-grid,
    .feature-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-date {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* 动画效果 Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature, .screenshot, .review, .instruction-step, .team-member, .timeline-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.feature:nth-child(2), .screenshot:nth-child(2), .review:nth-child(2), .instruction-step:nth-child(2), .team-member:nth-child(2), .timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature:nth-child(3), .screenshot:nth-child(3), .review:nth-child(3), .instruction-step:nth-child(3), .team-member:nth-child(3), .timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

.feature:nth-child(4), .review:nth-child(4), .instruction-step:nth-child(4), .team-member:nth-child(4), .timeline-item:nth-child(4) {
    animation-delay: 0.6s;
}

.feature:nth-child(5), .instruction-step:nth-child(5) {
    animation-delay: 0.8s;
}

.feature:nth-child(6) {
    animation-delay: 1s;
} 