/* 博客区样式 */
.blog-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 7rem 1rem 10rem;
    background: linear-gradient(to bottom, 
        #6B46C1 0%,      /* 顶部深紫色 */
        #8B5CF6 20%,     /* 浅紫色 */
        #A78BFA 40%,     /* 更浅的紫色 */
        #C4B5FD 50%,     /* 浅紫色过渡 */
        #93C5FD 60%,    /* 中间一点蓝色 */
        #A78BFA 70%,    /* 回到紫色 */
        #8B5CF6 85%,     /* 紫色 */
        #7C3AED 100%    /* 底部深紫色 */
    );
    overflow: hidden;
}

.blog-star-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.blog-container {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.blog-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .blog-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.blog-header-content {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .blog-header-content {
        margin-bottom: 0;
    }
}

.blog-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
}

.blog-subtitle {
    font-size: 1.125rem;
    color: rgba(191, 219, 254, 1);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.blog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-pill {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: rgba(191, 219, 254, 1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.blog-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.blog-header-mascot {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(-1rem) translateY(-1rem);
    display: none;
    z-index: 20;
}

@media (min-width: 768px) {
    .blog-header-mascot {
        display: block;
    }
}

.blog-header-mascot img {
    width: 12rem;
    height: 12rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: bounce-slow 3s infinite;
}

@media (min-width: 1024px) {
    .blog-header-mascot img {
        width: 14rem;
        height: 14rem;
    }
}

.blog-header-mascot-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .blog-header-mascot-mobile {
        display: none;
    }
}

.blog-header-mascot-mobile img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.blog-filter-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .blog-filter-bar {
        flex-direction: row;
        padding: 1rem;
        border-radius: 2rem;
    }
}

.blog-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 0.25rem;
    margin-bottom: 0;
    width: 100%;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .blog-tabs {
        width: auto;
    }
}

.blog-tab {
    flex: 1;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .blog-tab {
        flex: none;
        padding: 0.625rem 1.5rem;
    }
}

.blog-tab.active {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.blog-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blog-search {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .blog-search {
        width: 18rem;
    }
}

.blog-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    width: 1.125rem;
    height: 1.125rem;
    z-index: 1;
}

.blog-search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: white;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
}

.blog-search-input:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    background: white;
    border-radius: 2rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.blog-card:hover {
    transform: translateY(-0.25rem);
}

.blog-card-image {
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    /* max-width: 12rem; */
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.15);
}

.blog-card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #FDE68A;
    opacity: 0.5;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1F2937;
    line-height: 1.4;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.blog-card-desc {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateX(-1rem) translateY(-1rem) translateY(0);
    }
    50% {
        transform: translateX(-1rem) translateY(-1rem) translateY(-10px);
    }
}

