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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-desktop {
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #1e88e5;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
}

.nav-mobile-menu {
    list-style: none;
}

.nav-mobile-menu li {
    margin-bottom: 15px;
}

.nav-mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px;
    display: block;
    transition: background 0.3s ease;
}

.nav-mobile-menu a:hover {
    background: #f5f5f5;
    color: #1e88e5;
}

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

.login-btn,
.register-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-btn {
    background: #f5f5f5;
    color: #333;
}

.login-btn:hover {
    background: #e0e0e0;
}

.register-btn {
    background: #1e88e5;
    color: #fff;
}

.register-btn:hover {
    background: #1565c0;
}

.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

/* Image styles */
.hero-image img,
.content-section img,
.intro-section img,
.link-section img,
.games-section img,
.advantages-section img,
.experience-section img,
.guide-section img,
.promotion-section img,
.security-section img,
.conclusion-section img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.hero-image {
    margin-top: 30px;
}

.hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Featured image styles */
.post-thumbnail img,
.post-item-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-item-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.post-item-thumbnail img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-item:hover .post-item-thumbnail img {
    transform: scale(1.05);
}

.front-page,
.page-content,
.single-post,
.archive-page,
.blog-page,
.template-page {
    background: #fff;
    padding: 40px 0;
}

.hero-section {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.content-section,
.intro-section,
.link-section,
.games-section,
.advantages-section,
.experience-section,
.guide-section,
.promotion-section,
.security-section,
.conclusion-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2,
.intro-section h2,
.link-section h2,
.games-section h2,
.advantages-section h2,
.experience-section h2,
.guide-section h2,
.promotion-section h2,
.security-section h2,
.conclusion-section h2 {
    font-size: 2rem;
    color: #1e88e5;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after,
.intro-section h2::after,
.link-section h2::after,
.games-section h2::after,
.advantages-section h2::after,
.experience-section h2::after,
.guide-section h2::after,
.promotion-section h2::after,
.security-section h2::after,
.conclusion-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #1e88e5;
}

.content-section h3,
.games-section h3,
.advantages-section h3,
.experience-section h3,
.guide-section h3,
.promotion-section h3,
.security-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px;
}

.content-section p,
.intro-section p,
.link-section p,
.games-section p,
.advantages-section p,
.experience-section p,
.guide-section p,
.promotion-section p,
.security-section p,
.conclusion-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.page-header h1,
.post-header h1,
.archive-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
}

.page-body,
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #888;
    font-size: 0.9rem;
}

.post-category,
.post-date {
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
}

.post-tags {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.tag-link {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #1e88e5;
    color: #fff;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.post-navigation a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

.post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-item-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.post-item-header h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item-header h2 a:hover {
    color: #1e88e5;
}

.post-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.post-item-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-item-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.read-more {
    display: inline-block;
    color: #1e88e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1565c0;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1e88e5;
    color: #fff;
}

.pagination .current {
    background: #1e88e5;
    color: #fff;
}

.sidebar {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e88e5;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #1e88e5;
}

.category-list li,
.recent-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
}

.tag-cloud a:hover {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1e88e5;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-bottom {
    background: #1a252f;
    padding: 30px 20px;
    text-align: center;
}

.footer-bottom-content p {
    margin: 10px 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.template-page h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.template-page .content-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
}

.template-page .content-section:last-child {
    border-bottom: none;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #888;
}

.post-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.archive-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.blog-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-mobile.active {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .content-section,
    .intro-section,
    .link-section,
    .games-section,
    .advantages-section,
    .experienc e-section,
    .guide-section,
    .promotion-section,
    .security-section,
    .conclusion-section {
        padding: 40px 15px;
    }
    
    .content-section h2,
    .intro-section h2,
    .link-section h2,
    .games-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3,
    .games-section h3 {
        font-size: 1.2rem;
    }
    
    .page-header h1,
    .post-header h1,
    .archive-header h1,
    .template-page h1 {
        font-size: 1.8rem;
    }
    
    .post-wrapper,
    .archive-content,
    .blog-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .login-btn,
    .register-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
