.main-banner {
    background: linear-gradient(135deg, #edeaff 0%, #e3dfff 100%);
    margin: 30px 30px 20px;
    border-radius: 20px;
    padding: 44px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    z-index: 2;
    max-width: 62%;
}

.banner-badge {
    background-color: #5046e5;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.banner-title {
    font-size: 2.2rem;
    color: #1e1b4b;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.banner-desc {
    font-size: 0.95rem;
    color: #483da7;
    margin-bottom: 24px;
    line-height: 1.75;
}

.banner-btn {
    display: inline-block;
    background-color: #1e1b4b;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 12px;
    transition: all 0.2s;
}

.banner-btn:hover {
    background-color: #312e81;
    transform: translateY(-2px);
}

.banner-visual {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.banner-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-img {
    font-size: 6rem;
    line-height: 1;
}

.test-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 30px;
}

.section-title {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.view-all {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    color: #5046e5;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 30px 20px;
}

.test-card {
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.25s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(80, 70, 229, 0.06);
    border-color: rgba(80, 70, 229, 0.2);
}

.card-thumb {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    overflow: hidden;
}

.card-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-emoji {
    line-height: 1;
}

.bg-blue { background-color: #ecf7ff; }
.bg-pink { background-color: #fff0f6; }
.bg-yellow { background-color: #fefce8; }
.bg-purple { background-color: #f7f4ff; }
.bg-green { background-color: #f0fdf4; }
.bg-red { background-color: #fff1f2; }
.bg-orange { background-color: #fff7ed; }
.bg-dark { background-color: #f1f5f9; }
.bg-mint { background-color: #f0fdfa; }

.card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 8px;
}

.tag-personality {
    background-color: #eef2ff;
    color: #5046e5;
}

.tag-love {
    background-color: #fff1f2;
    color: #f43f5e;
}

.tag-snack {
    background-color: #fffbeb;
    color: #d97706;
}

.card-title {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-count {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: auto;
}

.archive-shell {
    padding: 40px 0;
}

.category-header {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px 40px;
    margin: 0 30px 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.category-icon-main {
    font-size: 3rem;
    background-color: #f1f5f9;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.6rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-summary {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.list-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #edf2f7;
    padding-top: 18px;
}

.total-count {
    font-size: 0.9rem;
    color: #475569;
}

.total-count strong {
    color: #5046e5;
    font-weight: 700;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-item {
    font-size: 0.88rem;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.sort-item.active {
    color: #1e293b;
    font-weight: 700;
}

.sort-divider {
    font-size: 0.8rem;
    color: #e2e8f0;
}

.archive-intro {
    margin: 18px 30px 8px;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 28px 30px;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #5046e5;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.archive-title {
    font-size: 2rem;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 10px;
}

.archive-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.test-section--archive {
    margin-bottom: 0;
}

.archive-grid {
    padding-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #5046e5;
    border-color: #5046e5;
    color: #ffffff;
    font-weight: 700;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.pagination .page-numbers.dots {
    width: auto;
}

.empty-state {
    padding: 0 30px 12px;
    color: #64748b;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .archive-shell {
        padding: 20px 0;
    }

    .main-banner {
        margin: 15px 20px;
        padding: 24px 20px;
        border-radius: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-content {
        max-width: 100%;
    }

    .banner-title {
        font-size: 1.4rem;
    }

    .banner-desc {
        font-size: 0.85rem;
    }

    .banner-visual {
        width: 100%;
        height: 180px;
    }

    .banner-img {
        font-size: 4rem;
    }

    .section-header {
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .test-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px 15px;
    }

    .card-thumb {
        height: 100px;
        font-size: 2.2rem;
    }

    .card-info {
        padding: 12px;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .category-header {
        padding: 20px;
        margin: 0 15px 20px;
        border-radius: 14px;
    }

    .category-title-wrapper {
        gap: 14px;
        margin-bottom: 16px;
    }

    .category-icon-main {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-summary {
        font-size: 0.85rem;
    }

    .list-filter-bar {
        padding-top: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .total-count,
    .sort-item {
        font-size: 0.8rem;
    }

    .archive-intro {
        margin: 15px 20px 5px;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .empty-state {
        padding-left: 15px;
        padding-right: 15px;
    }
}
