/* 全局样式 */
:root {
    --primary-color: #8d2729;     /* 红色主题，符合FNAF恐怖游戏风格 */
    --secondary-color: #f39c12;   /* 黄色作为次要颜色 */
    --accent-color: #3498db;      /* 蓝色作为强调 */
    --dark-color: #1a1a1a;        /* 更暗的背景色 */
    --light-color: #f4f4f4;
    --text-color: #333;
    --text-light: #777;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.primary {
    background-color: var(--primary-color);
    color: white;
}

.primary:hover {
    background-color: #a82c2d;
    color: white;
}

.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.secondary:hover {
    background-color: #e67e22;
    color: white;
}

.download-btn {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    text-align: center;
}

.download-btn:hover {
    background-color: #2980b9;
    color: white;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(141, 39, 41, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 页头 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 在线游玩区域 */
.play-online {
    background-color: white;
    text-align: center;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.game-container {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.game-placeholder {
    background-color: #2c2c2c;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-instructions {
    padding: 20px;
    background-color: #f8f9fa;
    text-align: left;
}

.disclaimer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: left;
}

/* 下载区域 */
.download {
    background-color: #f8f9fa;
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 300px;
}

.filename {
    font-weight: 500;
    margin-bottom: 10px;
}

.filesize {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 版本信息 */
.version-info {
    background-color: white;
    text-align: center;
}

.version-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.version-item {
    text-align: left;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

/* 游戏体验 */
.experience {
    background-color: #f8f9fa;
    text-align: center;
}

.game-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* 特色区域 */
.features {
    background-color: white;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 60px 0;
    text-align: left;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content, .feature-image {
    flex: 1;
}

/* 关于游戏 */
.about, .how-to-play, .why-play {
    background-color: #f8f9fa;
}

.about .container, .how-to-play .container, .why-play .container {
    max-width: 900px;
}

.about h3, .how-to-play h3, .why-play h3 {
    text-align: center;
}

.about-content {
    margin-top: 20px;
}

/* FAQ */
.faq {
    background-color: white;
}

.faq .container {
    max-width: 900px;
}

.faq h3 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 15px;
}

.footer-links h4, .footer-news h4 {
    margin-bottom: 20px;
}

.footer-links ul, .footer-news ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-news a {
    color: #bbb;
}

.footer-links a:hover, .footer-news a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal a {
    color: #bbb;
    margin-left: 5px;
}

.footer-legal a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 991px) {
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-item.reverse {
        flex-direction: column;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .game-placeholder {
        height: 300px;
    }
    
    .version-details {
        gap: 20px;
    }
}

/* 游戏控制列表样式 */
.controls-list {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding-left: 20px;
}

.controls-list li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 8px;
    list-style-type: none;
}

.controls-list li:before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: var(--primary-color);
} 