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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

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

/* Header */
.navbar {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.top-banner {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 紧凑型标签导航 */
.category-nav {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* 页脚分类导航样式 */
.footer-categories {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin: 0 -1rem 1.5rem -1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.footer-categories .category-nav {
    background: transparent;
    padding: 0;
    border-bottom: none;
    backdrop-filter: none;
}

.footer-categories .category-tag {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.footer-categories .category-tag:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.category-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-tag:hover::before {
    left: 100%;
}

.category-tag:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.category-tag span {
    font-size: 1rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.category-tag:hover span {
    transform: scale(1.1);
}

.category-tag.home-tag {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
    font-weight: 600;
}

.category-tag.home-tag:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px) scale(1.05);
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #4CAF50;
}

.breadcrumb-item.current {
    color: #4CAF50;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #999;
    font-weight: normal;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .category-nav .container {
        gap: 0.6rem;
    }
    
    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .category-nav {
        padding: 0.8rem 0;
    }
    
    .category-nav .container {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 1rem;
    }
    
    .category-nav .container::-webkit-scrollbar {
        display: none;
    }
    
    .category-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .category-tag span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-nav {
        padding: 0.6rem 0;
    }
    
    .category-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .category-tag span {
        font-size: 0.85rem;
    }
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-link, .site-name-link {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo-link:hover, .site-name-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #4CAF50;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.site-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.search-section {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 1rem;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input:focus {
    border-color: white;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input::placeholder {
    color: #666;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #4a5568;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-result-item:hover {
    background: #374151;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 500;
    color: #fff;
}

.search-result-category {
    font-size: 0.8rem;
    color: #9ca3af;
    background: #4a5568;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(108, 92, 231, 0.2);
    color: #fff;
}

/* Search Button - Hidden in new design */
.search-btn {
    display: none;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-modal h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.search-modal input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.search-modal input:focus {
    outline: none;
    border-color: #3498db;
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.search-close:hover {
    color: #2c3e50;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.8rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}



/* Games Section */
.games-section {
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.games-section h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.games-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.games-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card h3 {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.game-card p {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    display: none;
}

.game-hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4444;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Content Introduction Section */
.content-intro {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 1rem;
}

.content-intro h2 {
    color: #e91e63;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.content-intro h3 {
    color: #e91e63;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

.content-intro p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.content-intro a {
    color: #2196F3;
    text-decoration: none;
}

.content-intro a:hover {
    text-decoration: underline;
}

/* Game Links Styling */
.game-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.game-link:hover {
    color: #2E7D32;
    background: rgba(76, 175, 80, 0.1);
    text-decoration: none;
}

.game-link:before {
    content: '🎮';
    font-size: 0.8em;
    margin-right: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-link:hover:before {
    opacity: 1;
}

/* Enhanced Similar Games Section */
.similar-games ul {
    list-style: none;
    padding: 0;
}

.similar-games li {
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.similar-games li:hover {
    background: #e8f5e8;
    transform: translateX(5px);
}

.faq-section {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.faq-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Game Page */
.game-page {
    padding: 1rem 0;
    background: white;
}

.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.game-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-area {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.game-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.game-info h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.game-info h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.game-info h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.game-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.game-info ul {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.game-info li {
    margin-bottom: 0.5rem;
}

/* Game Sidebar */
.game-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    height: fit-content;
    position: static;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.related-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.related-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.related-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.related-game-card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.related-game-info {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.related-game-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-game-category {
    font-size: 0.65rem;
    color: #666;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    display: inline-block;
    text-transform: capitalize;
}

/* 相关游戏响应式设计 */
@media (max-width: 768px) {
    .related-games {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .related-game-title {
        font-size: 0.75rem;
    }
    
    .related-game-category {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .related-games {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .related-game-title {
        font-size: 0.7rem;
    }
    
    .related-game-category {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.faq-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        order: -1;
        position: static;
    }
    
    .related-games {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

/* Category Links */
.category-link {
    background: white;
    color: #34495e;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    margin: 0.5rem;
}

.category-link:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
    padding: 1.5rem 0;
    margin-top: 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: #4CAF50;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.footer-links a:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    
    .nav-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }
    
    .logo-section {
        flex: 0 0 auto;
    }
    
    .search-section {
        flex: 1;
        margin: 0 1rem;
        max-width: none;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .home-icon {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nav-links {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .site-name {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .search-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        justify-content: flex-start;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        margin: 0.2rem;
    }
}

/* 游戏加载和错误状态样式 */
.game-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-error {
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.game-error h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.game-error p {
    color: #856404;
    margin-bottom: 1rem;
}

.game-error ul {
    text-align: left;
    color: #856404;
    margin: 1rem 0;
    padding-left: 2rem;
}

.game-error li {
    margin: 0.5rem 0;
}

.reload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.reload-btn:hover {
    background: #45a049;
}

#game-iframe {
    display: none;
}

/* 法律页面样式 */
.legal-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #4CAF50;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: #34495e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 4px solid #4CAF50;
    padding-left: 1rem;
}

.legal-content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin: 0.5rem 0;
    color: #555;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content strong {
    color: #2c3e50;
}

.legal-content a {
    color: #4CAF50;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* 法律页面响应式设计 */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 1rem 0;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }
}