:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-color: #e5e7eb;
    --button-bg: rgba(37, 99, 235, 0.1);
    --button-hover: rgba(37, 99, 235, 0.15)
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray)
}

a {
    text-decoration: none
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem
}

.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100
}

.navbar {
    padding: 0.75rem 0
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none
}

.nav-links {
    list-style: none;
    margin-bottom: 2rem
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--light-gray);
    color: var(--primary-color)
}

.main-content {
    padding: 0.5rem 0 3rem
}

.featured-posts {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    width: inherit;
    max-width: 100%
}

.featured-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none
}

.featured-posts h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem
}

.featured-posts h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px
}

.post-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto
}

.post-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-left: 2px solid var(--border-color);
    padding: 0.75rem
}

.post-card:hover {
    transform: translateY(-3px);
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05)
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover
}

.post-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-color)
}

.post-content h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease
}

.post-content h2 a:hover {
    color: var(--primary-color)
}

.post-excerpt {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.post-meta {
    gap: 1rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem
}

.read-more-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: auto
}

.read-more {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: var(--button-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-weight: 500
}

.read-more:hover {
    background-color: var(--button-hover);
    color: var(--primary-color);
    transform: translateX(3px)
}

.post-card:hover .read-more {
    background-color: var(--primary-color);
    color: var(--white)
}

.main-footer {
    background-color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem
}

.main-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    gap: 2rem
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    height: 100vh
}

.sidebar-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: auto;
    min-height: 0
}

.sidebar-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0
}

.sidebar-nav ul {
    list-style: none;
    padding: 0
}

.sidebar-nav ul li {
    margin-bottom: 0.5rem
}

.sidebar-nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background-color: var(--light-gray);
    color: var(--primary-color)
}

.sidebar-toggle {
    display: none
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease
}

.sidebar-close:hover {
    color: var(--primary-color)
}

.ads-sidebar {
    width: 300px;
    position: sticky;
    top: 90px;
    height: fit-content
}

.ads-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.ads-box {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05)
}

.ads-box h4 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center
}

.ads-placeholder {
    background: var(--light-gray);
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 0.25rem;
    overflow: hidden
}

@media (max-width:1280px) {
    .main-container {
        grid-template-columns: 220px minmax(0, 1fr) 250px;
        gap: 1.5rem
    }

    .post-grid {
        max-width: 100%
    }

    .ads-sidebar {
        width: 250px
    }
}

@media (max-width:1024px) {
    .main-container {
        grid-template-columns: 220px 1fr
    }

    .ads-sidebar {
        position: static;
        width: 100%
    }

    .ads-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem
    }

    .ads-box {
        width: 300px;
        margin: 0
    }
}

@media (max-width:768px) {
    body {
        overflow-x: hidden
    }

    .container {
        width: 100%;
        padding: 0
    }

    .main-container {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0
    }

    .blog-post-content {
        width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        box-shadow: none
    }

    .sidebar {
        display: none;
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 1000;
        transition: left 0.3s ease
    }

    .sidebar.active {
        display: block;
        left: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1)
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999
    }

    .sidebar-overlay.active {
        display: block
    }

    .ads-sidebar {
        display: none
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 1.25rem;
        padding: 0.5rem;
        cursor: pointer;
        margin-left: 0.5rem
    }

    .sidebar-close {
        display: block
    }

    .sidebar-content {
        padding: 1.5rem
    }

    .main-header {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1)
    }

    .main-header .container {
        padding: 0 0.75rem
    }

    .blog-intro {
        width: 100%;
        background: linear-gradient(120deg, rgba(74, 109, 255, 0.95) 0%, rgba(89, 97, 225, 0.95) 50%, rgba(108, 85, 224, 0.95) 100%)
    }

    .blog-intro .container {
        width: 100%;
        padding: 1rem;
        margin: 0
    }

    .intro-ad {
        width: 100%;
        padding: 0 1rem;
        margin: 1rem 0
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%
    }

    .post-grid {
        gap: 1.5rem;
        max-width: none;
        padding: 0 1rem
    }

    .featured-posts {
        padding: 1.5rem 0;
        border-radius: 0;
        margin: 0 -1rem;
        width: calc(100% + 2rem)
    }

    .featured-posts h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem
    }

    .blog-intro {
        margin: 0
    }

    .blog-intro .container {
        padding: 1.5rem 0;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%)
    }

    .main-content {
        padding: 0.25rem 0 2rem
    }

    .intro-content {
        padding: 0 1rem
    }

    .featured-image {
        margin: -1rem -1rem 1rem -1rem;
        border-radius: 0
    }

    .featured-image img {
        max-height: 300px
    }

    .container {
        padding: 0
    }

    .main-content .container {
        max-width: 100%;
        width: 100%;
        padding: 0
    }

    .navbar {
        padding: 0;
        height: 48px;
        display: flex;
        align-items: center;
        background: var(--white);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05)
    }

    .navbar .container {
        padding: 0 0.75rem;
        height: 100%
    }

    .brand {
        font-size: 1.2rem
    }

    .sidebar-toggle {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px
    }

    .sidebar-toggle i {
        font-size: 1.1rem
    }

    .question-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        border-radius: 0
    }
}

@media (max-width:480px) {
    .post-grid {
        gap: 1.25rem;
        padding: 0 0.75rem
    }

    .post-stats {
        flex-wrap: nowrap;
        gap: 0.5rem
    }

    .post-info {
        gap: 0.5rem
    }

    .ads-box {
        margin: 0.5rem 0
    }

    .ads-placeholder {
        min-height: 250px
    }

    .ads-sidebar {
        padding: 0 0.5rem
    }

    .featured-posts {
        padding: 1rem 0;
        padding-left: 1rem
    }

    .featured-posts h1 {
        padding: 0 0.75rem
    }

    .blog-intro {
        padding: 1.25rem 0
    }

    .intro-content {
        padding: 0 0.75rem
    }

    .main-content {
        padding: 0.25rem 0 1.5rem
    }

    .main-container {
        padding: 0;
        margin: 0;
        width: 100vw
    }

    .blog-post-content {
        padding: 0.75rem
    }

    .featured-image {
        margin: -0.75rem -0.75rem 0.75rem -0.75rem
    }

    .featured-image img {
        max-height: 250px
    }

    .container {
        padding: 0
    }

    .main-header .container {
        padding: 0.75rem
    }

    .blog-intro .container {
        padding: 0.75rem
    }

    .intro-ad {
        padding: 0 0.75rem
    }

    .navbar {
        height: 44px
    }

    .navbar .container {
        padding: 0 0.5rem
    }

    .brand {
        font-size: 1.1rem
    }

    .sidebar-toggle {
        width: 28px;
        height: 28px
    }

    .sidebar-toggle i {
        font-size: 1rem
    }

    .question-section {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        padding: 1rem
    }

    .question-header h2 {
        padding-left: 0
    }
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #fbbf24
}

.stars i {
    font-size: 0.8rem
}

.rating span {
    font-size: 0.8rem;
    color: #666
}

.post-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap
}

.post-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem
}

.post-info i {
    font-size: 0.8rem;
    color: var(--primary-color)
}

.blog-intro {
    margin-bottom: 0.75rem
}

.blog-intro .container {
    background: linear-gradient(120deg, rgba(74, 109, 255, 0.95) 0%, rgba(89, 97, 225, 0.95) 50%, rgba(108, 85, 224, 0.95) 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden
}

.blog-intro .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 50%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 50%);
    opacity: 0.6;
    z-index: 1
}

.blog-intro .container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05)
}

.post-ad {
    grid-column: 1/-1;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 1rem 0
}

.post-ad h4 {
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem
}

.post-ad .ad-placeholder {
    width: 100%;
    min-height: 100px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 0.25rem;
    padding: 1rem;
    text-align: center;
    color: #666
}

@media (min-width:768px) {
    .post-ad .ad-placeholder {
        min-height: 120px
    }
}

@media (min-width:1024px) {
    .post-ad .ad-placeholder {
        min-height: 150px
    }
}

@media (max-width:480px) {
    .post-ad {
        margin: 0.5rem 0
    }

    .post-ad .ad-placeholder {
        min-height: 90px;
        padding: 0.75rem
    }
}

.intro-ad {
    margin: 1rem auto;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: center
}

.intro-ad h4 {
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem
}

.intro-ad .ad-placeholder {
    width: 100%;
    min-height: 120px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 0.25rem;
    padding: 1rem;
    text-align: center;
    color: #666
}

@media (max-width:768px) {
    .intro-ad {
        margin: 0.5rem 0;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%)
    }

    .intro-ad .ad-placeholder {
        min-height: 100px;
        border-radius: 0
    }
}

@media (max-width:480px) {
    .intro-ad .ad-placeholder {
        min-height: 90px;
        padding: 0.75rem
    }
}

.blog-post-content {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.8;
    width: inherit
}

.featured-image {
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
    background: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    object-position: center
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto
}

.post-text p {
    margin-bottom: 1.5rem
}

.post-text h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-color);
    line-height: 1.4
}

.post-text h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    line-height: 1.4
}

.post-text ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1rem
}

.post-text li {
    margin-bottom: 0.75rem;
    position: relative
}

.code-block {
    background: #1e1e1e;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto
}

.code-block pre {
    margin: 0
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre;
    display: block
}

.code-block .tag {
    color: #569cd6
}

.code-block .attribute {
    color: #9cdcfe
}

.code-block .string {
    color: #ce9178
}

.code-block .comment {
    color: #6a9955;
    font-style: italic
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--light-gray);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #4a5568
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0
}

.tag {
    background: var(--button-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.3s ease
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color)
}

.prev-post,
.next-post {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease
}

.prev-post:hover,
.next-post:hover {
    color: var(--primary-color)
}

.post-stats-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: center
}

.post-stats-header .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2rem
}

.post-stats-header .stars {
    display: flex;
    align-items: center;
    gap: 0.2rem
}

.post-stats-header .stars i {
    color: #fbbf24;
    font-size: 0.9rem
}

.post-stats-header .rating span {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem
}

.post-stats-header .post-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center
}

.post-stats-header .post-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    color: var(--white);
    font-size: 0.85rem
}

.post-stats-header .post-info i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9)
}

@media (max-width:768px) {
    .post-stats-header {
        margin-top: 0.75rem;
        gap: 0.5rem
    }

    .post-stats-header .post-info {
        gap: 0.5rem
    }

    .post-stats-header .post-info span {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem
    }
}

@media (max-width:480px) {
    .post-stats-header .post-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%
    }
}

.related-posts {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color)
}

.related-posts.grid-style h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color)
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem
}

.related-post-card {
    display: block;
    text-decoration: none;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1)
}

.related-post-card .post-image {
    width: 100%;
    height: 150px;
    overflow: hidden
}

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

.related-post-card .post-content {
    padding: 1rem
}

.related-post-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.3s ease
}

.related-post-card:hover h4 {
    color: var(--primary-color)
}

.related-post-card .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666
}

.related-post-card .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem
}

.related-post-card .post-meta i {
    font-size: 0.9rem;
    color: var(--primary-color)
}

.related-posts.list-style h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color)
}

.related-posts-list {
    display: flex;
    flex-direction: column
}

.related-post-item {
    padding: 0.75rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease
}

.related-post-item:hover {
    background-color: var(--light-gray)
}

.related-post-item h4 {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.4
}

.related-post-item .post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.related-post-item .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.8rem
}

.related-post-item .post-meta i {
    color: #666;
    font-size: 0.8rem
}

@media (max-width:768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem
    }
}

@media (max-width:480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        padding: 0 0.75rem
    }

    .related-post-card .post-image {
        height: 180px
    }
}

@media (max-width:768px) {
    .related-posts.list-style {
        margin-left: -1.5rem;
        margin-right: -1.5rem
    }

    .related-posts.list-style h3 {
        padding: 0 1.5rem
    }

    .related-post-item {
        padding: 0.75rem 1.5rem
    }
}

@media (max-width:480px) {
    .related-posts.list-style {
        margin-left: -1rem;
        margin-right: -1rem
    }

    .related-posts.list-style h3 {
        padding: 0 1rem
    }

    .related-post-item {
        padding: 0.75rem 1rem
    }

    .related-post-item .post-meta {
        gap: 0.75rem
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem
}

.search-container {
    position: relative
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s ease
}

.search-input {
    width: 200px;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.9rem
}

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

.search-btn {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease
}

.search-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1)
}

.search-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0
    }

    to {
        width: 200px;
        opacity: 1
    }
}

@keyframes slideOut {
    from {
        width: 200px;
        opacity: 1
    }

    to {
        width: 0;
        opacity: 0
    }
}

@media (max-width:768px) {
    .search-form {
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 0.5rem;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: none
    }

    .search-form.active {
        display: flex;
        animation: slideIn 0.3s ease forwards
    }

    .search-toggle {
        display: block
    }

    .search-toggle.active {
        color: var(--secondary-color)
    }
}

@media (max-width:480px) {
    .search-input {
        width: 160px
    }

    @keyframes slideIn {
        to {
            width: 160px
        }
    }

    @keyframes slideOut {
        from {
            width: 160px
        }
    }
}

.question-section {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color)
}

.question-header {
    margin-bottom: 1.5rem
}

.question-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem
}

.question-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.question-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    background: var(--light-gray);
    padding: 0.4rem 0.75rem;
    border-radius: 1rem
}

.question-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color)
}

.question-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color)
}

.asker-info {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.question-stats {
    display: flex;
    gap: 1rem
}

.question-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.875rem
}

.question-stats i {
    color: var(--primary-color)
}

@media (max-width:768px) {
    .question-details {
        flex-direction: column;
        gap: 1rem
    }

    .asker-info {
        order: 1;
        width: 100%
    }

    .question-stats {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color)
    }
}

@media (max-width:480px) {
    .question-details {
        margin-top: 1rem;
        padding-top: 0.75rem
    }

    .asker-info {
        gap: 0.5rem
    }

    .asker-avatar {
        width: 32px;
        height: 32px
    }

    .asker-avatar i {
        font-size: 1.25rem
    }

    .asker-name {
        font-size: 0.85rem
    }

    .question-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.5rem
    }

    .question-stats span {
        font-size: 0.8rem
    }

    .question-stats i {
        font-size: 0.9rem
    }
}

.answers-section {
    margin-top: 2rem
}

.answers-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color)
}

.answer-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #9ca3af
}

.answer-card.best-answer {
    border-left-color: #047857;
    background: #ecfdf5
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem
}

.answerer-details {
    display: flex;
    flex-direction: column
}

.answerer-badge {
    font-size: 0.8rem;
    color: #666
}

.answer-rating {
    text-align: right
}

.best-answer-badge {
    display: inline-block;
    background: #047857;
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500
}

.best-answer-badge i {
    margin-right: 0.3rem
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem
}

.rating-count {
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.3rem
}

.answer-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color)
}

.answer-content ol,
.answer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem
}

.answer-content li {
    margin-bottom: 1rem
}

.answer-content strong {
    color: var(--text-color);
    font-weight: 600
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color)
}

.answer-actions {
    display: flex;
    gap: 1rem
}

.helpful-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease
}

.helpful-btn {
    background: var(--primary-color);
    color: #ffffff
}

.helpful-btn:hover {
    background: var(--secondary-color);
    color: #ffffff
}

.share-btn {
    background: var(--light-gray);
    color: #666
}

.share-btn:hover {
    background: #e5e7eb
}

.answer-date {
    font-size: 0.875rem;
    color: #666
}

@media (max-width:768px) {
    .answer-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem
    }

    .answer-actions {
        width: 100%;
        justify-content: space-between
    }

    .helpful-btn,
    .share-btn {
        flex: 1;
        justify-content: center
    }

    .answer-date {
        width: 100%;
        text-align: center;
        font-size: 0.8rem
    }
}

@media (max-width:480px) {
    .answer-footer {
        margin-top: 1rem;
        padding-top: 0.75rem
    }

    .answer-actions {
        gap: 0.5rem
    }

    .helpful-btn,
    .share-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem
    }

    .helpful-btn i,
    .share-btn i {
        font-size: 0.75rem
    }
}

.load-more-answers {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
    position: relative
}

.load-more-answers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent)
}

.load-more-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1
}

.load-more-btn:hover {
    color: var(--white)
}

.load-more-btn:hover::before {
    transform: translateX(0)
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transform: translateY(1px)
}

.load-more-btn:hover .btn-icon {
    transform: translateY(3px)
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0)
    }
}

.load-more-btn {
    animation: pulse 2s infinite
}

@media (max-width:768px) {
    .load-more-answers {
        margin-left: -1.5rem;
        margin-right: -1.5rem
    }

    .load-more-btn {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        justify-content: center
    }
}

@media (max-width:480px) {
    .load-more-answers {
        margin-left: -1rem;
        margin-right: -1rem
    }

    .load-more-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem
    }
}

.load-more-btn {
    position: relative
}

.loading-spinner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none
}

.loading-spinner i {
    animation: spin 1s linear infinite
}

.load-more-btn.loading .btn-text,
.load-more-btn.loading .btn-icon {
    visibility: hidden
}

.load-more-btn.loading .loading-spinner {
    display: block
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
    text-align: center;
    cursor: pointer
}

.error-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem
}

.error-icon {
    font-size: 1.25rem;
    animation: shake 0.5s ease-in-out
}

.error-text {
    font-size: 0.95rem;
    font-weight: 500
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-5px)
    }

    75% {
        transform: translateX(5px)
    }
}

@media (max-width:768px) {
    .error-message {
        margin-left: 1rem;
        margin-right: 1rem
    }
}

@media (max-width:480px) {
    .error-message {
        font-size: 0.85rem;
        padding: 0.75rem
    }

    .error-icon {
        font-size: 1.25rem
    }
}

.responsive-ad {
    margin: 2rem 0;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden
}

.responsive-ad .ad-placeholder {
    width: 100%;
    min-height: 100px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border: 2px dashed #ccc
}

@media (max-width:768px) {
    .responsive-ad {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        border-radius: 0
    }

    .responsive-ad .ad-placeholder {
        min-height: 90px
    }
}

@media (max-width:480px) {
    .responsive-ad {
        margin-left: -1rem;
        margin-right: -1rem
    }

    .responsive-ad .ad-placeholder {
        min-height: 60px;
        font-size: 0.8rem
    }
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem
}

@media (max-width:768px) {
    .answer-header {
        flex-direction: column;
        gap: 1rem
    }

    .answerer-info {
        width: 100%
    }

    .answer-rating {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.5rem
    }

    .best-answer-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0
    }

    .rating-stars {
        display: flex;
        align-items: center;
        gap: 0.3rem
    }
}

@media (max-width:480px) {
    .answer-header {
        gap: 0.75rem
    }

    .answerer-info {
        flex-wrap: wrap
    }

    .answerer-details {
        flex: 1;
        min-width: 0
    }

    .answerer-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .answerer-badge {
        font-size: 0.75rem
    }

    .best-answer-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem
    }

    .rating-stars {
        font-size: 0.8rem
    }

    .rating-count {
        font-size: 0.75rem
    }
}

@media (max-width:768px) {
    .answers-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem
    }

    .answers-section h3 {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .answer-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0
    }
}

@media (max-width:480px) {
    .answers-section {
        margin-left: -1rem;
        margin-right: -1rem
    }

    .answers-section h3 {
        padding-left: 1rem;
        padding-right: 1rem
    }

    .answer-card {
        padding: 1rem
    }
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-color)
}

.error503-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.5s ease-out
}

.error503-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite
}

.error503-code {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem
}

.error503-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem
}

.error503-message {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6
}

.error503-retry-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem
}

.error503-retry-timer {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem
}

.error503-retry-message {
    color: #6b7280;
    font-size: 0.9rem
}

.error503-retry-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem
}

.error503-retry-button:hover {
    background: #2563eb;
    transform: translateY(-2px)
}

.error503-retry-button:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    transform: none
}

.error503-retry-button i {
    font-size: 1.1rem
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loading {
    animation: spin 1s linear infinite
}

@media (max-width:480px) {
    .error503-container {
        padding: 2rem 1.5rem
    }

    .error503-icon {
        font-size: 3rem
    }

    .error503-code {
        font-size: 2rem
    }

    .error503-title {
        font-size: 1.25rem
    }
}

.error503-list {
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none
}

.error503-list li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center
}

.error503-list li:before {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.error503-list li:after {
    content: '!';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-weight: bold;
    font-size: 0.85rem
}

.error503-list li:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease
}

.error503-message {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05)
}

@media (max-width:480px) {
    .error503-list {
        margin: 1rem 0
    }

    .error503-list li {
        font-size: 0.9rem;
        padding-left: 1.75rem;
        margin-bottom: 0.6rem
    }

    .error503-list li:before {
        width: 18px;
        height: 18px
    }

    .error503-list li:after {
        width: 18px;
        height: 18px;
        font-size: 0.8rem
    }

    .error503-message {
        padding: 1.25rem
    }
}

.error403-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 550px;
    width: 100%;
    position: relative;
    overflow: hidden
}

.error403-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem
}

.error403-icon {
    font-size: 3.5rem;
    color: #dc2626;
    position: relative;
    z-index: 2;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both
}

.error403-icon-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #fee2e2;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-red 2s infinite
}

.error403-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700
}

.error403-message {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6
}

.error403-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left
}

.error403-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease
}

.error403-list li:hover {
    transform: translateX(10px)
}

.error403-list li i {
    font-size: 1.25rem;
    color: #dc2626;
    width: 24px
}

.error403-list li span {
    color: #4b5563;
    font-size: 1rem
}

.error403-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0
}

.error403-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease
}

.error403-button.primary {
    background: #dc2626;
    color: white
}

.error403-button.primary:hover {
    background: #b91c1c;
    transform: translateY(-2px)
}

.error403-button.secondary {
    background: #f3f4f6;
    color: #4b5563
}

.error403-button.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px)
}

.error403-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb
}

.error403-help p {
    color: #6b7280;
    font-size: 0.95rem
}

.error403-help a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500
}

.error403-help a:hover {
    text-decoration: underline
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0)
    }

    25%,
    75% {
        transform: translate3d(2px, 0, 0)
    }

    40%,
    60% {
        transform: translate3d(-4px, 0, 0)
    }
}

@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5
    }
}

@media (max-width:640px) {
    .error403-container {
        padding: 2rem 1.5rem;
        margin: 1rem
    }

    .error403-title {
        font-size: 2rem
    }

    .error403-message {
        font-size: 1rem
    }

    .error403-actions {
        flex-direction: column
    }

    .error403-button {
        width: 100%;
        justify-content: center
    }

    .error403-list li {
        padding: 0.75rem
    }
}

.error404-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden
}

.error404-animation {
    position: relative;
    height: 200px;
    margin-bottom: 2rem
}

.error404-ghost {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite
}

.error404-ghost-body {
    width: 120px;
    height: 160px;
    background: var(--primary-color);
    border-radius: 100px 100px 0 0;
    position: relative;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2)
}

.error404-ghost-eyes {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 20px;
    display: flex;
    justify-content: space-between
}

.error404-ghost-eyes::before,
.error404-ghost-eyes::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 3s ease-in-out infinite
}

.error404-ghost-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    overflow: hidden
}

.error404-ghost-waves div {
    flex: 1;
    background: var(--primary-color);
    height: 100%;
    border-radius: 0 0 20px 20px;
    animation: wave 1.5s ease-in-out infinite
}

.error404-ghost-waves div:nth-child(2) {
    animation-delay: 0.2s
}

.error404-ghost-waves div:nth-child(3) {
    animation-delay: 0.4s
}

.error404-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: shadow 3s ease-in-out infinite
}

.error404-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(37, 99, 235, 0.2)
}

.error404-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem
}

.error404-message {
    color: #6b7280;
    margin-bottom: 2rem
}

.error404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0
}

.error404-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none
}

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

.error404-button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px)
}

.error404-button.secondary {
    background: #f3f4f6;
    color: var(--text-color)
}

.error404-button.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px)
}

@media (max-width:640px) {
    .error404-actions {
        flex-direction: column
    }

    .error404-button {
        width: 100%;
        justify-content: center
    }
}

.sidebar-nav-ads {
    margin-top: 1rem;
    flex: 1;
    min-height: calc(100vh - 300px)
}

.sidebar-nav-ads .ad-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem
}

@media (max-width:768px) {
    .sidebar-nav-ads {
        min-height: 250px
    }
}

.nav-ads-full {
    margin-top: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 50%);
    overflow: hidden
}

.nav-ads-container {
    flex: 1;
    background: var(--light-gray);
    border: 2px dashed #ccc;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    height: 100%;
    min-height: 0;
    overflow: auto
}

@media (max-width:768px) {
    .nav-ads-container {
        min-height: 250px;
        max-height: none
    }
}

.asker-info {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.asker-avatar {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.asker-avatar i {
    font-size: 1.25rem;
    color: var(--primary-color)
}

.asker-name {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.25rem
}

.asker-name a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none
}

.asker-name a:hover {
    text-decoration: underline
}

@media (max-width:480px) {
    .asker-avatar {
        width: 32px;
        height: 32px
    }

    .asker-avatar i {
        font-size: 1.1rem
    }

    .asker-name {
        font-size: 0.85rem
    }
}

.answerer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.answerer-avatar {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.answerer-avatar i {
    font-size: 1.25rem;
    color: var(--primary-color)
}

.answerer-name {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.25rem
}

.answerer-name a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none
}

.answerer-name a:hover {
    text-decoration: underline
}

@media (max-width:480px) {
    .answerer-avatar {
        width: 32px;
        height: 32px
    }

    .answerer-avatar i {
        font-size: 1.1rem
    }

    .answerer-name {
        font-size: 0.85rem
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0
    }

    100% {
        background-position: 1000px 0
    }
}

.skeleton-loading {
    width: 100%;
    min-height: 100vh;
    background: var(--white)
}

.skeleton-header {
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.skeleton-brand {
    width: 120px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

.skeleton-nav {
    width: 200px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

.skeleton-main {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    gap: 2rem;
    padding: 2rem
}

.skeleton-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.skeleton-menu {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow)
}

.skeleton-title {
    height: 32px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

.skeleton-text {
    height: 16px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

.skeleton-text.short {
    width: 60%
}

.skeleton-ads {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.skeleton-ad-box {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px
}

@media (max-width:1024px) {
    .skeleton-main {
        grid-template-columns: 220px 1fr
    }

    .skeleton-ads {
        display: none
    }
}

@media (max-width:768px) {
    .skeleton-main {
        grid-template-columns: 1fr;
        padding: 1rem
    }

    .skeleton-sidebar {
        display: none
    }
}