/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    color: #E0E0E0;
    background-image: url('upload/five nights at freddy\'s background.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

a {
    text-decoration: none;
    color: #B8860B;
    transition: all 0.3s ease;
}

a:hover {
    color: #8B0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.7);
}

h1, h2, h3, h4 {
    font-family: 'Creepster', cursive;
    color: #8B0000;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    animation: textFlicker 5s infinite;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    color: #B8860B;
}

section {
    padding: 30px 5%;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #8B0000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

/* 导航栏 */
header {
    background: linear-gradient(to right, #8B0000, #000);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: #E0E0E0;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
    letter-spacing: 3px;
    animation: logoFlicker 3s infinite;
}

/* 主标题 */
.main-title {
    text-align: center;
    padding: 40px 5%;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 0;
}

/* 游戏区域 */
.game-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.game-frame {
    flex: 1;
    aspect-ratio: 16/9;
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.game-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.3), transparent);
    pointer-events: none;
    z-index: 1;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 0;
}

/* 广告位 */
.ad-left, .ad-right {
    width: 160px;
    height: 600px;
    position: sticky;
    top: 100px;
}

.ad-middle {
    height: 90px;
    margin: 30px auto;
    max-width: 728px;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.5);
    border: 1px dashed #8B0000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8B0000;
    font-weight: bold;
}

/* 评分系统 */
.rating-system {
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

.stars {
    font-size: 2rem;
    color: #B8860B;
    margin-bottom: 10px;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.votes {
    color: #999;
    margin-bottom: 20px;
}

.rate-now {
    margin-top: 20px;
}

.user-stars {
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    margin-top: 10px;
}

.user-stars i {
    margin: 0 5px;
    transition: all 0.3s ease;
}

.user-stars i:hover {
    color: #B8860B;
    transform: scale(1.2);
}

/* 游戏介绍 */
.game-info {
    max-width: 900px;
    margin: 30px auto;
}

.info-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-left: 4px solid #8B0000;
}

.info-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 评论区 */
.comments {
    max-width: 900px;
    margin: 30px auto;
}

.comment-form {
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border: 1px solid #333;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #111;
    border: 1px solid #333;
    color: #E0E0E0;
    font-family: 'Open Sans', sans-serif;
}

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

.submit-btn {
    background-color: #8B0000;
    color: #E0E0E0;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #B8860B;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.7);
}

.comment {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-left: 3px solid #333;
}

.comment:hover {
    border-left-color: #8B0000;
}

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

.comment-header h4 {
    margin-bottom: 0;
    color: #B8860B;
}

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

.comment-content {
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-actions button:hover {
    color: #B8860B;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

#load-more-btn {
    background-color: #333;
    color: #E0E0E0;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background-color: #8B0000;
}

/* 页脚 */
footer {
    background-color: #111;
    padding: 30px 5%;
    margin-top: 50px;
    border-top: 2px solid #8B0000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* 政策页面样式 */
.policy-content {
    max-width: 900px;
    margin: 30px auto;
}

.policy-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-left: 4px solid #8B0000;
}

.policy-section h2 {
    color: #B8860B;
    margin-bottom: 15px;
}

.policy-section p, .policy-section ul {
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
}

.policy-section strong {
    color: #8B0000;
}

/* 动画效果 */
@keyframes textFlicker {
    0%, 100% { text-shadow: 2px 2px 4px #000; }
    5% { text-shadow: 2px 2px 4px #000, 0 0 15px rgba(139, 0, 0, 0.8); }
    10% { text-shadow: 2px 2px 4px #000; }
    15% { text-shadow: 2px 2px 4px #000, 0 0 15px rgba(139, 0, 0, 0.8); }
    16% { text-shadow: 2px 2px 4px #000; }
    50% { text-shadow: 2px 2px 4px #000; }
    55% { text-shadow: 2px 2px 4px #000, 0 0 15px rgba(139, 0, 0, 0.8); }
    56% { text-shadow: 2px 2px 4px #000; }
}

@keyframes logoFlicker {
    0%, 100% { text-shadow: 0 0 10px rgba(139, 0, 0, 0.8); }
    5% { text-shadow: 0 0 15px rgba(139, 0, 0, 1); }
    6% { text-shadow: 0 0 10px rgba(139, 0, 0, 0.8); }
    90% { text-shadow: 0 0 10px rgba(139, 0, 0, 0.8); }
    95% { text-shadow: 0 0 15px rgba(139, 0, 0, 1); }
    96% { text-shadow: 0 0 10px rgba(139, 0, 0, 0.8); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
    }
    
    .ad-left, .ad-right {
        width: 100%;
        height: 100px;
        position: static;
        margin-bottom: 20px;
    }
    
    .game-frame {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .logo a {
        font-size: 2rem;
    }
    
    .stars, .user-stars {
        font-size: 1.5rem;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px 3%;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo a {
        font-size: 1.7rem;
    }
}
