html {
    scroll-behavior: smooth;
}

.faq-content {
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.faq-content.show {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

#progress-bar {
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

.fade-out-up {
    animation: fadeOutUp 0.5s ease-out forwards;
}

@keyframes fadeOutUp {
    to {
        opacity: 0;
        transform: translateY(-10px);
        margin-bottom: 0;
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

:root {
    --primary: #3A86FF;
    --secondary: #80ED99;
    --background: #F9FAFB;
    --text: #1E1E1E;
    --error: #EF476F;
    --gray-light: #E5E7EB;
    --gray-medium: #D1D5DB;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.subtitle {
    font-size: 1.1rem;
    color: #6B7280;
}

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

.post-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.image-copyright {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 0.8rem;
}

.post-title-index {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.post-title-index a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more svg {
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: #2a6ad8;
}

.read-more:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-detail {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0;
}

.post-excerpt {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.post-featured-image {
    margin: 2rem 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.image-copyright {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
    margin-top: 0.5rem;
}

.post-content {
    line-height: 1.7;
    margin-bottom: 3rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tag {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #4b5563;
}

.author-box {
    border-top: 1px solid #e5e7eb;
    padding-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #4b5563;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #000;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .post-title {
        font-size: 2rem;
    }
}

.copyright-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.8rem;
    z-index: 10;
}

.feedback-container.has-ai-response .locked-content {
    display: block;
}

.feedback-container.has-ai-response #feedback-form,
.feedback-container.has-ai-response #ai-response.hidden {
    display: none;
}

.locked-content {
    display: none;
}

.ai-response-display {
    border-left: 3px solid #4f46e5;
}