/* 全局样式 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-attachment: fixed;
    color: white;
    line-height: 1.6;
}

/* 头部样式 */
.site-header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: #ffd700;
    text-align: center;
    margin: 0;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background-color: #ffd700;
    color: #000;
}

/* 主内容区 */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* 老虎机样式 */
.slot-machine {
    width: 400px;
    background: #d32f2f;
    border: 10px solid #ffd700;
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.7);
}

.slot-header {
    text-align: center;
    margin-bottom: 15px;
}

.slot-header h1 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-size: 2em;
    margin: 0;
}

.lights {
    height: 5px;
    background: linear-gradient(90deg, 
        red, orange, yellow, green, blue, indigo, violet);
    border-radius: 5px;
    margin: 10px 0;
    animation: lightFlow 3s infinite linear;
    background-size: 200% 100%;
}

@keyframes lightFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.slot-screen {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #000;
    border: 5px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.reel {
    width: 80px;
    height: 80px;
    overflow: hidden;
    position: relative;
}

.symbol-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.symbol {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    text-shadow: 0 0 5px gold;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 10px;
    border-radius: 10px;
}

.bet-display, .credit-display {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.2em;
    min-width: 60px;
    text-align: center;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

button {
    background: #ffd700;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    color: #000;
}

button:hover {
    transform: scale(1.05);
}

#spin-btn {
    background: #e53935;
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    text-transform: uppercase;
}

#spin-btn:hover {
    background: #c62828;
}

/* 游戏介绍 */
.game-info {
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-info h2 {
    color: #ffd700;
    margin-top: 0;
}

.game-info h3 {
    color: #ffd700;
}

/* 页脚 */
.site-footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    margin-top: 30px;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.copyright {
    text-align: right;
    color: #aaa;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .slot-machine {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .copyright {
        text-align: center;
    }
}