.b2-explore-form-page {
    padding: 24px;
}

.b2-explore-page-title h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.b2-explore-page-title p {
    color: #6b7280;
    margin: 0;
}

.b2-explore-alert,
.b2-explore-login-tip {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #f8fafc;
}

.b2-explore-alert.success {
    background: #ecfdf5;
    color: #166534;
}

.b2-explore-alert.error {
    background: #fef2f2;
    color: #b91c1c;
}

.b2-explore-alert.warning {
    background: #fffbeb;
    color: #92400e;
}

.b2-explore-alert a {
    margin-left: 10px;
}

.b2-explore-login-tip.is-hidden,
.b2-explore-alert.is-hidden {
    display: none;
}

.b2-explore-field {
    margin-bottom: 22px;
}

.b2-explore-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.b2-explore-field input,
.b2-explore-field select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    height: 46px;
    padding: 0 14px;
    background: #fff;
}

.b2-explore-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.b2-explore-row-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2-explore-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2-explore-row input {
    flex: 1;
}

.b2-explore-row .button.text {
    white-space: nowrap;
}

.b2-explore-field-desc {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
}

.b2-explore-submit {
    padding-top: 8px;
}

.b2-explore-submit button {
    min-width: 140px;
}

.explore-write-thumb {
    min-height: 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.explore-write-thumb > label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(26, 26, 26, 0.2);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
    flex-flow: column;
}

.explore-write-thumb > label p {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    transition: all 0.2s;
    font-size: 14px;
}

.explore-write-thumb > label:hover p {
    opacity: 1;
    visibility: visible;
    margin-top: 58px;
}

.explore-write-thumb img {
    width: 100%;
    display: block;
}

.write-reset-thumb {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.write-reset-thumb .text {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 6px;
}

.explore-cover-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
}

.explore-cover-modal.show-modal {
    display: flex;
}

.explore-cover-modal .trix-dialog__link-fields {
    width: 28rem;
    max-width: calc(100vw - 32px);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    background: #fff;
}

.explore-cover-modal .close-button {
    position: absolute;
    right: 14px;
    top: 12px;
    cursor: pointer;
    font-size: 24px;
    color: #94a3b8;
}

.explore-cover-modal .trix-dialog-title {
    margin-top: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
}

.explore-cover-modal .image-table {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.explore-cover-modal .image-table > div {
    margin: 0 6px;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    position: relative;
}

.explore-cover-modal .image-table > div.picked::before {
    content: '';
    width: 5px;
    height: 5px;
    background: red;
    position: absolute;
    top: 28px;
    left: 50%;
    margin-left: -2.5px;
    border-radius: 100%;
}

.explore-cover-modal .image-upload-box {
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    min-height: 240px;
}

.explore-cover-modal .image-upload-box > div {
    color: #94a3b8;
}

.explore-cover-modal .image-upload-box svg {
    fill: #dbe2ea;
}

.explore-cover-modal .editor-images-list {
    display: flex;
    flex-flow: wrap;
    overflow-y: auto;
    max-height: 366px;
}

.explore-cover-modal .editor-images-list li {
    width: 25%;
    border: 1px solid #fff;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

.explore-cover-modal .editor-images-list li.picked::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--b2color, #ef4444);
    pointer-events: none;
}

.explore-cover-modal .editor-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.explore-cover-modal .editor-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-cover-modal .editor-file-none {
    text-align: center;
    color: #94a3b8;
    padding: 24px 0;
}

.explore-cover-modal .image-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.explore-cover-modal .trix-button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.explore-breadcrumbs {
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.explore-breadcrumbs a,
.explore-breadcrumbs span {
    color: #666;
}

.explore-breadcrumbs-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.explore-breadcrumbs-sep {
    margin: 0 4px;
}

.explore-breadcrumbs-edit {
    flex: 0 0 auto;
}

#explore-mixed-list {
    background-color: #f8f9fa;
}

.explore-home-page .content-area {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.explore-home-grid {
    column-count: 5;
    column-gap: 16px;
}

.explore-home-card {
    position: relative;
    vertical-align: top;
    break-inside: avoid;
    margin-bottom: 16px;
    padding: 0 10px 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
}

.explore-home-card-cover {
    margin: 0 -18px 14px;
}

.explore-home-card-cover img {
    width: 100%;
    display: block;
}

.explore-home-card-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-home-card-title a {
    color: inherit;
}

.explore-home-card-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.explore-home-card-label {
    flex: 0 0 auto;
    color: #111827;
    font-weight: 600;
}

.explore-home-card-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.explore-home-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #111827;
}

.explore-home-card-author img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.explore-home-card-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-home-card-mode {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 9px;
    color: #b1b1b1;
    font-size: 10px;
}

.explore-home-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.explore-home-empty {
    padding: 28px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .b2-explore-form-page {
        padding: 18px;
    }

    .b2-explore-page-title h1 {
        font-size: 24px;
    }

    .b2-explore-row {
        flex-direction: column;
        align-items: stretch;
    }

    .b2-explore-row .button.text {
        width: 100%;
    }

    .b2-explore-field-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .explore-home-grid {
        column-count: 2;
        column-gap: 5px;
    }

    .explore-home-card {
        padding: 0px 8px 4px;
        margin-bottom: 12px;
    }

    .explore-home-card-cover {
        margin: 0 -16px 12px;
    }
}
