.template-community-surface,
.template-community-page,
.template-community-shell,
.template-community-filter-board,
.template-community-card,
.template-community-card-cover,
.template-community-card-body,
.template-community-publish-btn,
.template-community-filter-chip,
.template-community-sort-tab,
.template-community-card-price {
    box-sizing: border-box;
}

.template-community-surface {
    width: 100%;
    min-height: calc(100vh - 110px);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .05), transparent 24%),
        linear-gradient(180deg, #f6f9fd 0%, #ffffff 16%);
}

.template-community-page {
    width: 100%;
    padding: 18px 0 52px;
    background: transparent;
    font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.template-community-shell {
    max-width: 1460px;
    padding: 0 20px;
}

.template-community-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0;
}

.template-community-page-head-main {
    min-width: 0;
}

.template-community-page-title {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.28;
}

.template-community-intro-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .95fr);
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #dbe5f1;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.template-community-intro-main {
    min-width: 0;
}

.template-community-intro-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1f63d9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.template-community-intro-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.015em;
}

.template-community-intro-text {
    margin: 10px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.85;
}

.template-community-intro-points {
    display: grid;
    gap: 10px;
    align-content: center;
}

.template-community-intro-point {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2eaf4;
    background: rgba(255, 255, 255, .88);
}

.template-community-intro-point strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.template-community-intro-point span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.template-community-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #1d70d8;
    border-radius: 8px;
    background: linear-gradient(180deg, #2f8dff 0%, #1874e8 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 5px 12px rgba(24, 116, 232, .2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.template-community-publish-btn:hover,
.template-community-publish-btn:focus {
    color: #ffffff;
    background: linear-gradient(180deg, #328fff 0%, #126fdf 100%);
    box-shadow: 0 8px 16px rgba(24, 116, 232, .22);
    transform: translateY(-1px);
    text-decoration: none;
}

.template-community-filter-board {
    padding: 6px 14px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.template-community-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.template-community-filter-row + .template-community-filter-row {
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.template-community-filter-title {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 62px;
    padding-top: 2px;
    color: #1f2a37;
    font-size: 13px;
    font-weight: 700;
}

.template-community-filter-title i {
    width: 16px;
    text-align: center;
    color: #64748b;
}

.template-community-filter-links {
    display: flex;
    align-items: center;
    gap: 8px 8px;
    flex-wrap: wrap;
}

.template-community-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    background: #f8fbff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e1e9f3;
    box-shadow: none;
    transition: all .18s ease;
}

.template-community-filter-chip:hover,
.template-community-filter-chip:focus {
    color: #1f63d9;
    text-decoration: none;
    background: #f1f6ff;
    border-color: #d2e2fb;
    box-shadow: none;
}

.template-community-filter-chip.is-active {
    background: #eaf3ff;
    color: #1f63d9;
    border-color: #cfe0f9;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .03);
}

.template-community-sort-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 0;
    padding: 10px 0 0;
    border-top: 1px solid #edf2f7;
}

.template-community-sort-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0 8px;
    border-radius: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
}

.template-community-sort-tab:hover,
.template-community-sort-tab:focus {
    color: #1f63d9;
    text-decoration: none;
    background: transparent;
}

.template-community-sort-tab.is-active {
    color: #1f63d9;
    background: transparent;
    border-color: transparent;
}

.template-community-sort-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: #1f63d9;
}

.template-community-sort-summary {
    margin-left: auto;
    color: #8593a8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.template-community-masonry {
    column-count: 4;
    column-gap: 18px;
    margin-top: 18px;
}

.template-community-card {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.template-community-card:hover,
.template-community-card:focus {
    transform: translateY(-2px);
    border-color: #cdddf0;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
    text-decoration: none;
}

.template-community-card-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.template-community-card-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2eaf4;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.template-community-card-cover-overlay {
    position: absolute;
    inset: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, .08);
    transition: opacity .18s ease;
}

.template-community-cover-watermark {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    color: rgba(15, 23, 42, 0.18);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.template-community-card:hover .template-community-card-cover-overlay,
.template-community-card:focus .template-community-card-cover-overlay {
    opacity: 1;
}

.template-community-card-cover-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #1f63d9;
    border: 0;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(31, 99, 217, .22);
}

.template-community-card-cover-empty {
    display: flex;
    width: 100%;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    border: 1px dashed #d4e0ef;
    background: #ffffff;
    color: #8d9cb1;
    font-size: 12px;
    font-weight: 600;
}

.template-community-card-cover-empty i {
    font-size: 22px;
}

.template-community-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 12px 12px;
}

.template-community-card-title {
    color: #132235;
    min-height: 40px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
    letter-spacing: -.01em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.template-community-card-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #8b9aad;
    font-size: 11px;
    font-weight: 500;
}

.template-community-card-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.template-community-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #eef3f8;
}

.template-community-card-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #253447;
    font-size: 12px;
    font-weight: 600;
}

.template-community-card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: #e5e7eb;
    border: 1px solid #eef2f6;
    box-shadow: none;
}

.template-community-card-author span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-community-card-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid #cfe0f8;
    background: #eef5ff;
    color: #1f63d9;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
}

.template-community-empty {
    margin-top: 18px;
    padding: 48px 24px;
    text-align: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    box-shadow: none;
}

.template-community-empty h3,
.template-community-empty h4 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.template-community-empty p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.template-community-empty i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    font-size: 22px;
}

.template-community-empty-compact {
    margin-top: 0;
    padding: 32px 14px;
    border-radius: 12px;
    box-shadow: none;
}

.template-community-pagination-wrap {
    margin-top: 18px;
    clear: both;
}

.template-community-modal .modal-dialog {
    width: min(1080px, calc(100% - 24px));
}

.template-community-modal .modal-content {
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.template-community-modal .modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef6;
}

.template-community-modal .modal-title {
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
}

.template-community-modal .modal-body {
    padding: 14px 16px 16px;
}

.template-community-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .94fr);
    gap: 14px;
    align-items: start;
}

.template-community-doc-panel,
.template-community-form-panel {
    border-radius: 10px;
    border: 1px solid #dbe5f1;
    background: #ffffff;
}

.template-community-doc-panel {
    padding: 12px 12px;
    background: #f9fbff;
    align-self: start;
}

.template-community-form-panel {
    padding: 12px 12px 10px;
}

.template-community-modal-section-head h5 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.template-community-modal-section-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.template-community-doc-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.template-community-doc-search-wrap {
    position: relative;
    flex: 1 1 auto;
}

.template-community-doc-search-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}

.template-community-doc-search-wrap .form-control,
.template-community-doc-search-wrap .form-control:focus {
    height: 34px;
    border-radius: 8px;
    border-color: #d4deeb;
    padding-left: 30px;
    box-shadow: none;
    font-size: 12px;
}

.template-community-doc-scroll {
    max-height: 430px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 4px;
}

.template-community-doc-loading {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    border: 1px dashed #dbe5f1;
    border-radius: 8px;
    background: #ffffff;
}

.template-community-doc-item {
    position: relative;
    display: block;
    padding: 12px 12px 12px 34px;
    border-radius: 8px;
    border: 1px solid #dde6f2;
    background: #ffffff;
    cursor: pointer;
    transition: all .18s ease;
}

.template-community-doc-item + .template-community-doc-item {
    margin-top: 8px;
}

.template-community-doc-item:hover {
    border-color: #cfe0f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.template-community-doc-item.is-active {
    background: #eef5ff;
    border-color: #cfe0f9;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .05);
}

.template-community-doc-radio {
    position: absolute;
    left: 10px;
    top: 14px;
}

.template-community-doc-name {
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.template-community-doc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.template-community-doc-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
}

.template-community-doc-note {
    margin-top: 8px;
    color: #1f63d9;
    font-size: 11px;
    font-weight: 700;
}

.template-community-doc-pagination {
    margin-top: 10px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.template-community-doc-pagination-info {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.template-community-doc-pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.template-community-publish-benefits {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #c7d9f3;
    border-radius: 10px;
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.template-community-publish-benefits h6 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.template-community-publish-benefits ul {
    margin: 0;
    padding-left: 18px;
}

.template-community-publish-benefits li {
    color: #475569;
    font-size: 12px;
    line-height: 1.7;
}

.template-community-form-panel .form-group {
    margin-bottom: 12px;
}

.template-community-form-panel label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.template-community-form-panel .form-control,
.template-community-form-panel .form-control:focus {
    min-height: 36px;
    border-radius: 8px;
    border-color: #d4deeb;
    font-size: 12px;
    box-shadow: none;
}

.template-community-form-panel textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.template-community-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.template-community-pricing-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.template-community-cover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.template-community-cover-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 204px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dde6f2;
    background: #f8fbff;
    overflow: hidden;
}

.template-community-cover-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
    border-radius: 8px;
}

.template-community-cover-placeholder {
    display: flex;
    min-height: 204px;
    padding: 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.template-community-cover-placeholder.is-error p {
    color: #dc2626;
}

.template-community-cover-placeholder p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

.template-community-cover-spinner,
.template-community-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, .18);
    border-top-color: #2563eb;
    animation: templateCommunitySpin .8s linear infinite;
}

.template-community-spinner {
    border-color: rgba(255, 255, 255, .34);
    border-top-color: #ffffff;
}

.template-community-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 14px;
    border-top: 1px solid #e8eef6;
}

.template-community-modal-note {
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.template-community-modal .btn {
    border-radius: 8px;
    min-height: 32px;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
}

.template-community-modal .btn-default {
    border-color: #d4deeb;
    color: #3f4d61;
    background: #ffffff;
}

.template-community-modal .btn-default:hover,
.template-community-modal .btn-default:focus {
    border-color: #c4d7f3;
    color: #1f63d9;
    background: #f5f9ff;
}

.template-community-modal .btn-primary {
    border-color: #1d70d8;
    background: linear-gradient(180deg, #2f8dff 0%, #1874e8 100%);
}

.template-community-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.template-community-hidden {
    display: none !important;
}

.template-community-render-sandbox {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1400px;
    height: 980px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.template-community-render-iframe {
    width: 1400px;
    height: 980px;
    border: 0;
    background: #ffffff;
}

.template-community-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.template-community-detail-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #7a8699;
    font-size: 12px;
    font-weight: 500;
}

.template-community-detail-breadcrumb a {
    color: #667085;
}

.template-community-detail-breadcrumb a:hover,
.template-community-detail-breadcrumb a:focus {
    color: #2563eb;
    text-decoration: none;
}

.template-community-detail-backlink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #dbe5f1;
    background: #ffffff;
    color: #3f4d61;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}

.template-community-detail-backlink:hover,
.template-community-detail-backlink:focus {
    color: #2563eb;
    text-decoration: none;
    border-color: #d8e6ff;
}

.template-community-preview-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.template-community-viewer-card,
.template-community-intro-card {
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.template-community-viewer-card {
    padding: 14px;
}

.template-community-viewer-shell {
    position: relative;
    border-radius: 12px;
    border: 0;
    background: #ffffff;
    overflow: hidden;
}

.template-community-viewer-stage {
    position: relative;
    min-height: 700px;
    padding: 0;
    background: #ffffff;
}

.template-community-viewer-scroller {
    width: 100%;
    height: 674px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 0;
    background: #ffffff;
    padding: 0;
    cursor: grab;
    user-select: none;
}

.template-community-viewer-watermark {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .12em;
    color: rgba(15, 23, 42, 0.18);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

.template-community-viewer-scroller.is-panning {
    cursor: grabbing;
}

.template-community-viewer-scene {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.template-community-viewer-image {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    pointer-events: none;
    -webkit-user-drag: none;
}

.template-community-viewer-empty {
    display: flex;
    min-height: 560px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #8a97ab;
    font-size: 13px;
    font-weight: 600;
}

.template-community-viewer-empty i {
    font-size: 30px;
}

.template-community-viewer-toolbar {
    position: absolute;
    right: 12px;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
}

.template-community-viewer-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d8e3f1;
    background: rgba(255, 255, 255, .96);
    color: #344054;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
    transition: all .18s ease;
}

.template-community-viewer-tool:hover,
.template-community-viewer-tool:focus {
    color: #2563eb;
    border-color: #d6e5ff;
    transform: translateY(-1px);
    outline: none;
}

.template-community-viewer-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 2px 2px;
}

.template-community-viewer-maininfo {
    min-width: 0;
}

.template-community-viewer-title {
    color: #101828;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.template-community-viewer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #8b99ad;
    font-size: 12px;
    font-weight: 500;
}

.template-community-viewer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.template-community-viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.template-community-detail-action-btn,
.template-community-detail-use-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: all .18s ease;
}

.template-community-detail-action-btn {
    border: 1px solid #d7e2ef;
    background: #ffffff;
    color: #415167;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}

.template-community-detail-action-btn:hover,
.template-community-detail-action-btn:focus {
    color: #2563eb;
    border-color: #d7e5ff;
    text-decoration: none;
}

.template-community-detail-use-btn {
    border: 1px solid #1d70d8;
    background: linear-gradient(180deg, #2f8dff 0%, #1874e8 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(24, 116, 232, .24);
}

.template-community-detail-use-btn:hover,
.template-community-detail-use-btn:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.template-community-intro-card {
    padding: 16px 18px 18px;
}

.template-community-intro-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eef6;
}

.template-community-intro-title {
    margin: 0;
    color: #101828;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.template-community-intro-submeta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #8b99ad;
    font-size: 12px;
}

.template-community-intro-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #edf2f7;
}

.template-community-detail-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.template-community-intro-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #cfe0f8;
    background: #eef5ff;
    color: #1f63d9;
    font-size: 13px;
    font-weight: 700;
}

.template-community-intro-body {
    padding-top: 14px;
}

.template-community-intro-section h3 {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
}

.template-community-intro-text {
    margin-top: 8px;
    color: #4e5f75;
    font-size: 13px;
    line-height: 1.75;
}

.template-community-intro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.template-community-intro-item {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e4ecf5;
    background: #f8fbff;
}

.template-community-intro-item span {
    display: block;
    color: #8594a8;
    font-size: 11px;
    font-weight: 600;
}

.template-community-intro-item strong {
    display: block;
    margin-top: 5px;
    color: #1d2939;
    font-size: 15px;
    font-weight: 700;
}

.template-community-related-title {
    margin: 24px 0 12px;
    color: #1f2937;
    font-size: 17px;
    font-weight: 700;
}

.template-community-checkout-card,
.template-community-pay-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 26px 24px;
    border-radius: 16px;
    border: 1px solid #e5eaf2;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.template-community-checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.template-community-checkout-head h1,
.template-community-pay-card h1 {
    margin: 0;
    color: #17212f;
    font-size: 23px;
    font-weight: 700;
}

.template-community-checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f6f85;
    font-size: 13px;
}

.template-community-checkout-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e7edf7;
    border-radius: 12px;
    background: #f8fbff;
}

.template-community-checkout-title {
    color: #1f2b3a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.template-community-checkout-tags {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-community-checkout-price {
    color: #1864e8;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .3px;
}

.template-community-checkout-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.template-community-pay-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.template-community-pay-btn:hover,
.template-community-pay-btn:focus {
    color: #fff;
    transform: translateY(-1px);
}

.template-community-pay-btn-wechat {
    background: linear-gradient(135deg, #13c95f 0%, #0ba14a 100%);
    box-shadow: 0 12px 20px rgba(16, 185, 129, .26);
}

.template-community-pay-btn-alipay {
    background: linear-gradient(135deg, #1f8afe 0%, #0f5dd9 100%);
    box-shadow: 0 12px 20px rgba(29, 122, 247, .26);
}

.template-community-checkout-note {
    margin-top: 14px;
    color: #7b8aa0;
    font-size: 13px;
    line-height: 1.7;
}

.template-community-pay-card {
    text-align: center;
}

.template-community-pay-meta {
    margin-top: 10px;
    color: #65768f;
    font-size: 13px;
    line-height: 1.8;
}

.template-community-pay-amount {
    margin-top: 10px;
    color: #1864e8;
    font-size: 34px;
    font-weight: 800;
}

.template-community-pay-qrcode {
    margin: 16px auto 0;
    width: 232px;
    height: 232px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #dce6f6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-community-pay-tip {
    margin-top: 12px;
    color: #7a889d;
    font-size: 13px;
}

.template-community-pay-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.template-community-pay-check-btn,
.template-community-pay-back-btn {
    border-radius: 10px;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.template-community-pay-check-btn {
    border: 0;
    color: #fff;
    background: #1f7af8;
    box-shadow: 0 10px 18px rgba(31, 122, 248, .22);
}

.template-community-pay-back-btn {
    border: 1px solid #d7e2f1;
    color: #4f627d;
    background: #fff;
}

.template-community-pay-modal-dialog {
    width: 460px;
    max-width: calc(100% - 20px);
    margin: 26px auto;
}

.template-community-pay-modal .modal-content {
    border-radius: 14px;
    border: 1px solid #e3ebf7;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
}

.template-community-pay-modal .modal-header {
    border-bottom: 1px solid #e8eef7;
    padding: 14px 16px;
}

.template-community-pay-modal .modal-title {
    color: #13223a;
    font-size: 18px;
    font-weight: 700;
}

.template-community-pay-modal .modal-body {
    padding: 16px;
}

.template-community-pay-modal-price {
    text-align: center;
    color: #1669eb;
    font-size: 28px;
    font-weight: 800;
}

.template-community-pay-modal-hint {
    margin-top: 8px;
    text-align: center;
    color: #667890;
    font-size: 12px;
    line-height: 1.6;
}

.template-community-pay-modal-qr-wrap {
    margin: 14px auto 0;
    width: 236px;
    min-height: 236px;
    border-radius: 12px;
    border: 1px solid #d7e4f8;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-community-pay-modal-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d7d93;
    font-size: 12px;
}

.template-community-pay-modal-qr svg {
    display: block;
    width: 214px;
    height: 214px;
}

.template-community-pay-modal-tip {
    margin-top: 10px;
    text-align: center;
    color: #8695a7;
    font-size: 12px;
    line-height: 1.6;
}

.template-community-pay-modal .modal-footer {
    border-top: 1px solid #e8eef7;
    padding: 12px 16px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.template-community-pay-modal .modal-footer .btn {
    min-height: 34px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
}

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

@media (max-width: 1599px) {
    .template-community-shell {
        max-width: 1440px;
        padding: 0 24px;
    }

    .template-community-masonry {
        column-count: 4;
    }
}

@media (max-width: 1199px) {
    .template-community-modal-grid,
    .template-community-detail {
        grid-template-columns: 1fr;
    }

    .template-community-intro-banner {
        grid-template-columns: 1fr;
    }

    .template-community-shell {
        padding: 0 18px;
    }

    .template-community-page-title {
        font-size: 20px;
    }

    .template-community-viewer-stage {
        min-height: 560px;
    }

    .template-community-viewer-scroller {
        height: 520px;
        padding: 0;
    }

    .template-community-viewer-title {
        font-size: 20px;
    }

    .template-community-intro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-community-masonry {
        column-count: 3;
        column-gap: 16px;
    }
}

@media (max-width: 991px) {
    .template-community-masonry {
        column-count: 2;
        column-gap: 14px;
    }
}

@media (max-width: 767px) {
    .template-community-page {
        padding: 18px 0 36px;
    }

    .template-community-shell {
        padding: 0 14px;
    }

    .template-community-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .template-community-page-title {
        font-size: 18px;
    }

    .template-community-intro-banner {
        padding: 16px 14px;
    }

    .template-community-intro-title {
        font-size: 17px;
    }

    .template-community-filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .template-community-filter-board {
        padding: 8px 10px 10px;
        border-radius: 10px;
    }

    .template-community-filter-title {
        min-width: 0;
        padding-top: 0;
    }

    .template-community-sort-row {
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        flex-wrap: nowrap;
    }

    .template-community-sort-summary {
        display: none;
    }

    .template-community-masonry {
        column-count: 1;
        column-gap: 0;
    }

    .template-community-detail-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .template-community-viewer-card {
        padding: 12px;
        border-radius: 12px;
    }

    .template-community-card-cover {
        min-height: 0;
    }

    .template-community-card-cover img {
        height: auto;
    }

    .template-community-viewer-stage {
        min-height: 400px;
        padding: 10px;
    }

    .template-community-viewer-scroller {
        height: 360px;
        padding: 0;
    }

    .template-community-viewer-toolbar {
        right: 10px;
        gap: 8px;
    }

    .template-community-viewer-tool {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .template-community-viewer-footer,
    .template-community-intro-header {
        flex-direction: column;
        align-items: stretch;
    }

    .template-community-viewer-title {
        font-size: 18px;
    }

    .template-community-viewer-actions {
        justify-content: stretch;
    }

    .template-community-detail-action-btn,
    .template-community-detail-use-btn {
        width: 100%;
    }

    .template-community-intro-card {
        padding: 14px;
        border-radius: 12px;
    }

    .template-community-intro-title {
        font-size: 16px;
    }

    .template-community-intro-grid {
        grid-template-columns: 1fr;
    }

    .template-community-modal .modal-dialog {
        width: calc(100% - 14px);
        margin: 10px auto;
    }

    .template-community-modal .modal-header,
    .template-community-modal .modal-body,
    .template-community-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .template-community-modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .template-community-checkout-card,
    .template-community-pay-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .template-community-pay-modal-dialog {
        width: calc(100% - 14px);
        margin: 12px auto;
    }

    .template-community-pay-modal-qr-wrap {
        width: 214px;
        min-height: 214px;
    }

    .template-community-pay-modal-qr svg {
        width: 192px;
        height: 192px;
    }

    .template-community-checkout-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-community-checkout-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-community-checkout-price {
        font-size: 26px;
    }

    .template-community-checkout-actions {
        grid-template-columns: 1fr;
    }

    .template-community-pay-qrcode {
        width: 206px;
        height: 206px;
    }
}
