body.tpl-home,
body.tpl-detail-page {
    color: #333;
    background: #f1f3f7;
}

.tpl-container {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.tpl-header {
    background: #fff;
    border-bottom: 1px solid #e5e8ef;
}

.tpl-header-inner,
.detail-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
}

.tpl-logo,
.detail-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #222;
    font-size: 21px;
    font-weight: 800;
}

.tpl-logo span,
.detail-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: #1677ff;
    border-radius: 50%;
    font-size: 15px;
}

.tpl-logo img,
.detail-logo img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.tpl-nav,
.detail-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.tpl-nav a,
.detail-nav a {
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

.tpl-nav a:hover,
.tpl-nav .tpl-admin-link,
.detail-nav a:hover {
    color: #1677ff;
}

.tpl-hero {
    padding: 34px 0 26px;
    text-align: center;
}

.tpl-hero h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 22px;
    color: #333;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.tpl-hero h1 span {
    display: inline-block;
    width: 44px;
    height: 8px;
    background: #8bb8ff;
    border-radius: 10px;
}

.tpl-search {
    display: flex;
    width: min(560px, 100%);
    height: 42px;
    margin: 0 auto 18px;
    background: #fff;
    border: 1px solid #dfe5f0;
    border-radius: 5px;
    overflow: hidden;
}

.tpl-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

.tpl-search input:focus {
    box-shadow: none;
}

.tpl-search button {
    width: 86px;
    color: #fff;
    background: #1677ff;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.tpl-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tpl-tabs a,
.tpl-tabs span {
    min-width: 76px;
    padding: 10px 16px;
    color: #666;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.tpl-tabs a.active {
    color: #1677ff;
}

.tpl-board {
    padding: 6px 0 54px;
}

.tpl-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 7px;
}

.tpl-filter strong {
    display: block;
    color: #333;
    font-size: 18px;
}

.tpl-filter p {
    margin: 4px 0 0;
    color: #888;
    font-size: 13px;
}

.tpl-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tpl-category-links a {
    padding: 7px 12px;
    color: #666;
    background: #f5f7fb;
    border-radius: 18px;
    font-size: 13px;
}

.tpl-category-links a.active,
.tpl-category-links a:hover {
    color: #fff;
    background: #1677ff;
}

.tpl-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 24px;
}

.tpl-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(33, 54, 89, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tpl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(33, 54, 89, 0.10);
}

.tpl-cover {
    position: relative;
    display: block;
    height: 128px;
    background: #d8dde7;
}

.tpl-cover::before {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    width: 20px;
    height: 20px;
    content: "";
    background: #ffb400;
    border: 2px solid #fff;
    border-radius: 5px;
}

.tpl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpl-cover b {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    color: #fff;
    background: #ff4d4f;
    border-radius: 20px;
    font-size: 11px;
}

.tpl-card-body {
    padding: 12px 13px 10px;
}

.tpl-card h3 {
    margin: 0 0 14px;
    overflow: hidden;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-card h3 a:hover {
    color: #1677ff;
}

.tpl-card-line,
.tpl-card-foot {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 12px;
}

.tpl-card-line {
    justify-content: space-between;
    margin-bottom: 10px;
}

.tpl-card-line em {
    color: #ff3df0;
    font-style: normal;
    font-weight: 800;
}

.tpl-card-foot {
    gap: 8px;
}

.tpl-card-foot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-card-foot strong {
    margin-left: auto;
    color: #ff3b30;
    white-space: nowrap;
    font-size: 12px;
}

.tpl-empty {
    padding: 60px;
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 6px;
    text-align: center;
}

.tpl-toolbar {
    position: fixed;
    right: 18px;
    top: 48%;
    z-index: 20;
    display: grid;
    gap: 8px;
}

.tpl-toolbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #1677ff;
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(33, 54, 89, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.tpl-footer {
    padding: 22px 0;
    color: #8b93a2;
    background: #fff;
    border-top: 1px solid #e5e8ef;
    font-size: 13px;
}

.tpl-footer .tpl-container {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.tpl-detail-page {
    background: #eef3fb;
}

.detail-topbar {
    height: 30px;
    color: #fff;
    background: #0b82ff;
    font-size: 12px;
}

.detail-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}

.detail-topbar a {
    margin-left: 16px;
    color: #fff;
}

.detail-header {
    background: #fff;
    border-bottom: 1px solid #dfe7f3;
}

.detail-logo span {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.tpl-detail-main {
    padding: 12px 0 34px;
}

.tpl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #7b8794;
    font-size: 13px;
}

.tpl-breadcrumb a {
    color: #1677ff;
}

.tpl-product-summary {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
}

.summary-cover {
    border: 1px solid #e5e8ef;
}

.summary-cover img {
    width: 100%;
    height: 205px;
    object-fit: cover;
}

.summary-cover div {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    color: #777;
    background: #fafafa;
    border-top: 1px solid #e5e8ef;
    font-size: 12px;
}

.summary-info h1 {
    margin: 0 0 8px;
    color: #333;
    font-size: 22px;
    line-height: 1.35;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    color: #98a2b3;
    font-size: 12px;
}

.summary-notice {
    margin-bottom: 12px;
    padding: 10px 14px;
    color: #fff;
    background: #5c6cff;
    font-size: 14px;
    font-weight: 800;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.summary-tags span {
    padding: 6px 10px;
    color: #667085;
    background: #f4f7fb;
    border: 1px solid #e5e8ef;
    border-radius: 3px;
    font-size: 12px;
}

.summary-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.summary-price strong {
    color: #ff3b30;
    font-size: 22px;
}

.summary-price span {
    color: #999;
    font-size: 13px;
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-actions a {
    min-width: 106px;
    padding: 10px 16px;
    color: #fff;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.summary-actions .primary {
    background: #ff3b30;
}

.summary-actions .secondary {
    background: #5c6cff;
}

.summary-actions .dark {
    background: #333;
}

.tpl-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.tpl-detail-content,
.sidebar-card {
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
}

.detail-tabs {
    display: flex;
    gap: 28px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e8ef;
}

.detail-tabs a {
    padding: 16px 0 14px;
    color: #333;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 800;
}

.detail-tabs a.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
}

.detail-panel {
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f5;
}

.detail-panel h2 {
    position: relative;
    margin: 0 0 18px;
    padding-left: 12px;
    color: #333;
    font-size: 17px;
}

.detail-panel h2::before {
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 14px;
    content: "";
    background: #1677ff;
}

.attr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf0f5;
    border-left: 1px solid #edf0f5;
}

.attr-grid div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.attr-grid span {
    padding: 11px 12px;
    color: #667085;
    background: #f7f9fc;
    font-size: 13px;
}

.attr-grid strong {
    padding: 11px 12px;
    color: #333;
    font-size: 13px;
}

.detail-panel p {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.tpl-feature-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.tpl-feature-list li {
    margin-bottom: 8px;
    padding: 10px 12px;
    color: #555;
    background: #f8fafc;
    border-left: 3px solid #1677ff;
    font-size: 14px;
}

.detail-preview-img {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #edf0f5;
}

.tpl-detail-sidebar {
    display: grid;
    gap: 14px;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-card h3 {
    margin: 0 0 12px;
    color: #333;
    font-size: 16px;
}

.seller-card {
    text-align: center;
}

.seller-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 10px;
    color: #fff;
    background: #3a7cff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
}

.seller-card p,
.buy-card p {
    margin: 0 0 14px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.seller-card a,
.buy-card a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    background: #1677ff;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.buy-card {
    background: #fff9ed;
    border-color: #ffe2a8;
}

.buy-card a {
    background: #ff7a00;
}

.side-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
}

.side-product:last-child {
    border-bottom: 0;
}

.side-product img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #edf0f5;
}

.side-product span {
    overflow: hidden;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-toolbar {
    top: 58%;
}

@media (max-width: 1120px) {
    .tpl-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .tpl-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tpl-product-summary,
    .tpl-detail-layout {
        grid-template-columns: 1fr;
    }

    .tpl-detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .tpl-container {
        width: min(100% - 40px, 1220px);
    }

    .tpl-header-inner,
    .detail-header-inner {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding: 14px 0 12px;
    }

    .tpl-nav,
    .detail-nav {
        width: 100%;
        overflow-x: auto;
        gap: 14px;
        padding-top: 8px;
        white-space: nowrap;
    }

    .tpl-nav a,
    .detail-nav a {
        flex: 0 0 auto;
        font-size: 16px;
    }

    .tpl-hero {
        padding: 38px 0 26px;
    }

    .tpl-hero h1 {
        display: flex;
        width: 100%;
        gap: 12px;
        font-size: 22px;
        line-height: 1.35;
        white-space: nowrap;
    }

    .tpl-hero h1 span {
        flex: 1;
        max-width: 48px;
        min-width: 38px;
    }

    .tpl-search {
        align-items: center;
        width: 100%;
        height: 54px;
        margin-bottom: 16px;
        padding: 6px;
        flex-direction: row;
        background: #fff;
        border: 1px solid #dce4f0;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(33, 54, 89, 0.06);
    }

    .tpl-search input,
    .tpl-search button {
        font-size: 16px;
    }

    .tpl-search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 42px;
        padding: 0 10px 0 12px;
        color: #333;
    }

    .tpl-search button {
        flex: 0 0 auto;
        width: 86px;
        min-height: 42px;
        border-radius: 9px;
    }

    .tpl-filter,
    .tpl-footer .tpl-container,
    .detail-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tpl-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px;
    }

    .tpl-tabs a,
    .tpl-tabs span {
        min-width: 96px;
        padding: 12px 16px;
        text-align: center;
    }

    .tpl-filter {
        padding: 20px;
    }

    .tpl-category-links {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .tpl-category-links a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .tpl-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .tpl-cover {
        height: 122px;
    }

    .tpl-card-body {
        padding: 12px;
    }

    .tpl-card h3 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .tpl-card-foot {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tpl-card-foot strong {
        width: 100%;
        margin-left: 0;
        text-align: right;
    }

    .tpl-toolbar {
        display: none;
    }

    .attr-grid {
        grid-template-columns: 1fr;
    }

    .tpl-detail-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .tpl-container {
        width: min(100% - 28px, 1220px);
    }

    .tpl-hero h1 {
        gap: 8px;
        font-size: 20px;
    }

    .tpl-hero h1 span {
        max-width: 34px;
        min-width: 26px;
        height: 6px;
    }

    .tpl-tabs {
        justify-content: center;
    }

    .tpl-tabs a,
    .tpl-tabs span {
        min-width: calc(50% - 6px);
    }

    .tpl-filter {
        margin-bottom: 16px;
    }

    .tpl-cover {
        height: 110px;
    }

    .tpl-card h3 {
        font-size: 15px;
    }
}

@media (max-width: 680px) {
    .tpl-hero {
        padding: 30px 0 18px;
    }

    .tpl-hero h1 {
        justify-content: center;
        margin-bottom: 18px;
        font-size: 21px;
    }

    .tpl-search {
        margin-bottom: 14px;
    }

    .tpl-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: calc(100% + 40px);
        margin-left: -20px;
        overflow-x: auto;
        gap: 10px;
        padding: 0 20px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tpl-tabs::-webkit-scrollbar {
        display: none;
    }

    .tpl-tabs a,
    .tpl-tabs span {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 16px;
        border-radius: 6px;
        white-space: nowrap;
    }

    .tpl-filter {
        display: block;
        padding: 18px 16px;
        border-radius: 8px;
    }

    .tpl-filter > div:first-child {
        margin-bottom: 14px;
    }

    .tpl-category-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: calc(100% + 32px);
        margin-left: -16px;
        overflow-x: auto;
        gap: 9px;
        padding: 0 16px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tpl-category-links::-webkit-scrollbar {
        display: none;
    }

    .tpl-category-links a {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 14px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .tpl-card-grid {
        gap: 14px 10px;
    }

    .tpl-card {
        border-radius: 8px;
    }

    .tpl-cover {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .tpl-card-body {
        padding: 10px;
    }

    .tpl-card h3 {
        display: -webkit-box;
        min-height: 40px;
        margin-bottom: 9px;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.4;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .tpl-card-line {
        display: none;
        margin-bottom: 8px;
    }

    .tpl-card-foot {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        align-items: center;
    }

    .tpl-card-foot span:nth-child(n+2) {
        display: none;
    }

    .tpl-card-foot strong {
        width: auto;
        margin-left: 0;
        text-align: right;
    }
}

@media (max-width: 420px) {
    .tpl-tabs a,
    .tpl-tabs span {
        min-width: auto;
    }

    .tpl-category-links {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
    }

    .tpl-cover {
        height: auto;
    }
}

body.tpl-home,
body.tpl-detail-page {
    background: #f3f6fb;
}

.tpl-header,
.detail-header {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(30, 63, 122, 0.05);
}

.tpl-logo,
.detail-logo {
    letter-spacing: -0.03em;
}

.tpl-logo span,
.detail-logo span {
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.24);
}

.tpl-hero {
    position: relative;
    overflow: hidden;
    background: #f3f6fb;
}

.tpl-hero h1 {
    text-shadow: 0 1px 0 #fff;
}

.tpl-hero h1 span {
    background: #8bb8ff;
    box-shadow: 0 5px 14px rgba(22, 119, 255, 0.16);
}

.tpl-search {
    border-color: #d8e3f4;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(30, 63, 122, 0.08);
}

.tpl-search button {
    border-radius: 9px;
    box-shadow: 0 8px 16px rgba(22, 119, 255, 0.20);
}

.tpl-tabs a,
.tpl-tabs span,
.tpl-category-links a {
    box-shadow: 0 5px 16px rgba(30, 63, 122, 0.04);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tpl-tabs a:hover,
.tpl-category-links a:hover {
    transform: translateY(-1px);
}

.tpl-tabs a.active,
.tpl-category-links a.active {
    color: #fff;
    background: #1677ff;
}

.tpl-filter,
.tpl-card,
.tpl-product-summary,
.tpl-detail-content,
.sidebar-card {
    border-color: #e1e8f3;
    box-shadow: 0 10px 28px rgba(30, 63, 122, 0.06);
}

.tpl-filter {
    border-radius: 12px;
}

.tpl-card {
    border-radius: 10px;
}

.tpl-cover {
    overflow: hidden;
}

.tpl-cover img {
    transition: transform 0.22s ease;
}

.tpl-card:hover .tpl-cover img {
    transform: scale(1.04);
}

.tpl-cover::before {
    box-shadow: 0 3px 8px rgba(255, 180, 0, 0.28);
}

.tpl-cover b {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: #ff4d5d;
    box-shadow: 0 6px 14px rgba(255, 77, 93, 0.28);
}

.tpl-card h3 {
    color: #2c3442;
}

.tpl-card-foot strong,
.summary-price strong {
    color: #ff3b30;
}

.detail-topbar {
    background: #1677ff;
}

.tpl-product-summary,
.tpl-detail-content,
.sidebar-card {
    border-radius: 10px;
}

.summary-notice {
    border-radius: 6px;
    background: #4f63ff;
}

.summary-actions a,
.seller-card a,
.buy-card a {
    border-radius: 6px;
}

@media (max-width: 680px) {
    .tpl-header {
        position: static;
    }

    .tpl-container {
        width: min(100% - 32px, 1220px);
    }

    .tpl-header-inner {
        padding: 16px 0 14px;
    }

    .tpl-logo {
        font-size: 22px;
    }

    .tpl-nav {
        gap: 18px;
        padding-top: 12px;
    }

    .tpl-nav a {
        font-size: 15px;
    }

    .tpl-hero {
        padding: 28px 0 20px;
    }

    .tpl-hero h1 {
        margin-bottom: 18px;
        font-size: 20px;
    }

    .tpl-search {
        height: 52px;
        margin-bottom: 16px;
        padding: 5px;
        border-radius: 14px;
    }

    .tpl-search input {
        min-height: 42px;
        font-size: 15px;
    }

    .tpl-search button {
        width: 78px;
        min-height: 42px;
        border-radius: 11px;
        font-size: 15px;
    }

    .tpl-tabs {
        width: calc(100% + 32px);
        margin-left: -16px;
        padding: 0 16px 3px;
    }

    .tpl-tabs a,
    .tpl-tabs span {
        padding: 10px 15px;
        border-radius: 8px;
    }

    .tpl-board {
        padding-top: 12px;
    }

    .tpl-filter {
        padding: 18px 16px 16px;
        border-radius: 12px;
    }

    .tpl-filter strong {
        font-size: 20px;
    }

    .tpl-category-links a {
        min-height: 35px;
        padding: 0 15px;
        background: #f5f7fb;
    }

    .tpl-card-grid {
        gap: 16px 12px;
    }

    .tpl-card {
        border-radius: 12px;
    }

    .tpl-cover {
        aspect-ratio: 4 / 3;
    }

    .tpl-cover::before {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }

    .tpl-cover b {
        right: 8px;
        bottom: 8px;
    }

    .tpl-card-body {
        padding: 11px;
    }

    .tpl-card h3 {
        min-height: 40px;
        margin-bottom: 10px;
        font-size: 15px;
        font-weight: 800;
    }

    .tpl-card-foot {
        font-size: 13px;
    }

    .tpl-card-foot strong {
        font-size: 14px;
    }

    .detail-header {
        position: static;
    }

    .tpl-product-summary,
    .tpl-detail-content,
    .sidebar-card {
        border-radius: 12px;
    }
}

.tpl-admin-page,
.tpl-admin-login {
    color: #2c3442;
    background: #f3f6fb;
}

.admin-shell-header {
    background: #fff;
    border-bottom: 1px solid #e1e8f3;
    box-shadow: 0 8px 24px rgba(30, 63, 122, 0.05);
}

.admin-shell-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header-actions a {
    padding: 9px 14px;
    color: #475467;
    background: #f5f7fb;
    border: 1px solid #e4e9f2;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.admin-header-actions a:hover {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
}

.tpl-admin-main {
    padding: 24px 0 48px;
}

.admin-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 63, 122, 0.06);
}

.admin-kicker,
.admin-card-title span,
.admin-products-head span,
.admin-login-copy span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #1677ff;
    font-size: 13px;
    font-weight: 900;
}

.admin-hero-panel h1,
.admin-card-title h2,
.admin-products-head h2,
.admin-login-copy h1 {
    margin: 0;
    color: #202939;
    letter-spacing: -0.03em;
}

.admin-hero-panel h1 {
    font-size: 28px;
}

.admin-hero-panel p,
.admin-login-copy p {
    max-width: 680px;
    margin: 10px 0 0;
    color: #667085;
    line-height: 1.75;
}

.admin-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-row div {
    min-width: 116px;
    padding: 15px;
    background: #f7f9fd;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
    text-align: center;
}

.admin-stat-row strong {
    display: block;
    color: #1677ff;
    font-size: 22px;
    line-height: 1.1;
}

.admin-stat-row span {
    display: block;
    margin-top: 6px;
    color: #7b8794;
    font-size: 13px;
    font-weight: 800;
}

.admin-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.admin-form-card,
.admin-guide-card,
.admin-products-panel,
.admin-login-card {
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 63, 122, 0.06);
}

.admin-form-card,
.admin-products-panel {
    padding: 22px;
}

.admin-card-title,
.admin-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-card-title a,
.admin-products-head a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #1677ff;
    background: #f1f6ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.admin-source-form {
    display: grid;
    gap: 18px;
}

.admin-form-section {
    padding: 18px;
    background: #f8fafd;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
}

.admin-form-section h3 {
    margin: 0 0 14px;
    color: #202939;
    font-size: 17px;
}

.admin-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-field-grid label,
.admin-login-field {
    display: grid;
    gap: 8px;
}

.admin-field-grid label span,
.admin-login-field span {
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.admin-field-grid input,
.admin-field-grid textarea,
.admin-login-field input {
    width: 100%;
    padding: 12px 13px;
    color: #202939;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    box-shadow: none;
    font: inherit;
}

.admin-field-grid input:focus,
.admin-field-grid textarea:focus,
.admin-login-field input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
    outline: 0;
}

.admin-field-grid textarea {
    resize: vertical;
    line-height: 1.7;
}

.admin-span-2 {
    grid-column: 1 / -1;
}

.admin-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-submit-row button,
.admin-login-button {
    padding: 12px 20px;
    color: #fff;
    background: #1677ff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(22, 119, 255, 0.20);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.admin-submit-row span {
    color: #7b8794;
    font-size: 13px;
}

.admin-guide-card {
    position: sticky;
    top: 88px;
    padding: 20px;
}

.admin-guide-card h2 {
    margin: 0 0 14px;
    color: #202939;
    font-size: 18px;
}

.admin-guide-card dl,
.admin-guide-card dd {
    margin: 0;
}

.admin-guide-card dl {
    display: grid;
    gap: 12px;
}

.admin-guide-card div {
    padding: 13px;
    background: #f8fafd;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
}

.admin-guide-card dt {
    margin-bottom: 6px;
    color: #202939;
    font-weight: 900;
}

.admin-guide-card dd {
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.admin-products-panel {
    margin-top: 18px;
}

.admin-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
}

.admin-product-cover {
    position: relative;
    display: block;
    height: 160px;
    background: #d8dde7;
}

.admin-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #fff;
    background: #1677ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-product-info {
    padding: 14px;
}

.admin-product-info h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: #202939;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-info p {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.admin-product-meta,
.admin-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-product-meta {
    margin-bottom: 12px;
}

.admin-product-meta strong {
    color: #ff3b30;
}

.admin-product-meta span {
    color: #98a2b3;
    font-size: 12px;
}

.admin-product-actions a,
.admin-product-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.admin-product-actions a {
    color: #1677ff;
    background: #f1f6ff;
}

.admin-product-actions button {
    color: #ef4444;
    background: #fff1f1;
    border: 0;
    cursor: pointer;
}

.admin-login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.admin-login-card {
    width: min(440px, 100%);
    padding: 28px;
}

.admin-login-copy {
    margin: 26px 0 20px;
}

.admin-login-copy h1 {
    font-size: 28px;
}

.admin-login-button {
    width: 100%;
    margin-top: 16px;
}

.admin-login-back {
    display: block;
    margin-top: 16px;
    color: #667085;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-hero-panel,
    .admin-workbench {
        grid-template-columns: 1fr;
    }

    .admin-guide-card {
        position: static;
    }

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

@media (max-width: 680px) {
    .admin-shell-header-inner,
    .admin-submit-row,
    .admin-card-title,
    .admin-products-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tpl-admin-main {
        padding: 18px 0 34px;
    }

    .admin-hero-panel,
    .admin-form-card,
    .admin-guide-card,
    .admin-products-panel,
    .admin-login-card {
        border-radius: 14px;
    }

    .admin-hero-panel,
    .admin-form-card,
    .admin-products-panel {
        padding: 18px;
    }

    .admin-stat-row,
    .admin-field-grid,
    .admin-product-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-cover {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

.layui-admin-page {
    background: #f2f4f8;
}

.bh-layui-admin .layui-header {
    background: #1f2937;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.10);
}

.bh-layui-admin .layui-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.bh-layui-admin .layui-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #1677ff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.24);
}

.bh-layui-admin .layui-logo img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.bh-layui-admin .layui-side {
    top: 60px;
    width: 220px;
    background: #1f2937;
}

.bh-layui-admin .layui-nav-tree {
    width: 220px;
    background: #1f2937;
}

.bh-layui-admin .layui-nav-tree .layui-nav-item a {
    height: 46px;
    line-height: 46px;
    font-weight: 800;
}

.bh-layui-admin .layui-nav-tree .layui-icon {
    margin-right: 8px;
}

.bh-layui-admin .layui-body {
    left: 220px;
    padding-bottom: 54px;
    background: #f2f4f8;
}

.bh-layui-admin .layui-footer {
    left: 220px;
    color: #7b8794;
    background: #fff;
    border-top: 1px solid #e4e9f2;
}

.layui-admin-fluid {
    padding: 18px;
}

.layui-admin-alert {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.layui-admin-alert.is-error {
    color: #b42318;
    background: #fff1f1;
    border: 1px solid #ffd4d4;
}

.layui-admin-alert.is-success {
    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.layui-admin-alert.is-editing {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.layui-admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(30, 63, 122, 0.045);
}

.layui-admin-page-head h1 {
    margin: 0;
    color: #202939;
    font-size: 22px;
    font-weight: 900;
}

.layui-admin-page-head p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
}

.layui-admin-stat-row {
    margin-bottom: 16px;
}

.layui-admin-stat-card,
.layui-admin-card {
    border: 1px solid #e1e8f3;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(30, 63, 122, 0.045);
}

.layui-admin-stat-card .layui-card-body {
    min-height: 118px;
}

.layui-admin-stat-card span {
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.layui-admin-stat-card strong {
    display: block;
    margin-top: 10px;
    color: #1677ff;
    font-size: 32px;
    line-height: 1;
}

.layui-admin-stat-card p {
    margin: 12px 0 0;
    color: #98a2b3;
    font-size: 13px;
}

.layui-admin-card {
    overflow: hidden;
}

.layui-admin-card .layui-card-header {
    height: auto;
    min-height: 52px;
    padding: 14px 18px;
    color: #202939;
    border-bottom: 1px solid #e4e9f2;
    font-size: 17px;
    font-weight: 900;
    line-height: 24px;
}

.layui-admin-card .layui-card-body {
    padding: 18px;
}

.layui-admin-settings-card {
    margin-bottom: 16px;
}

.layui-admin-card-action {
    float: right;
}

.layui-admin-result-count {
    float: right;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 800;
}

.layui-admin-cover-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafd;
    border: 1px solid #e4e9f2;
    border-radius: 8px;
}

.layui-admin-cover-preview img {
    width: 128px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
}

.layui-admin-cover-preview span {
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.layui-admin-logo-preview img {
    width: 72px;
    height: 72px;
}

.layui-admin-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #1677ff;
    background: #f1f6ff;
    border: 1px dashed #9ec5ff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.layui-admin-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.layui-admin-upload span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.layui-admin-upload:hover {
    background: #e8f2ff;
    border-color: #1677ff;
}

.layui-admin-form-tips {
    margin-top: 8px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.6;
}

.layui-admin-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.layui-admin-category-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #1677ff;
    background: #f1f6ff;
    border: 1px solid #d4e6ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.layui-admin-submit {
    margin-top: 18px;
    margin-bottom: 0;
}

.layui-admin-guide dl,
.layui-admin-guide dd {
    margin: 0;
}

.layui-admin-guide dt {
    margin-top: 12px;
    color: #202939;
    font-weight: 900;
}

.layui-admin-guide dt:first-child {
    margin-top: 0;
}

.layui-admin-guide dd {
    margin-top: 6px;
    color: #667085;
    line-height: 1.7;
}

.layui-admin-shortcuts {
    display: grid;
    gap: 12px;
}

.layui-admin-shortcuts a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 12px;
    padding: 14px;
    color: #202939;
    background: #f8fafd;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
}

.layui-admin-shortcuts a:hover {
    color: #1677ff;
    background: #f1f6ff;
    border-color: #d4e6ff;
}

.layui-admin-shortcuts i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #1677ff;
    background: #fff;
    border-radius: 10px;
    font-size: 22px;
}

.layui-admin-shortcuts span {
    align-self: end;
    font-weight: 900;
}

.layui-admin-shortcuts em {
    color: #98a2b3;
    font-size: 12px;
    font-style: normal;
}

.layui-admin-filter {
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafd;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
}

.layui-admin-table {
    margin: 0;
}

.layui-admin-table th {
    color: #475467;
    background: #f8fafd;
    font-weight: 900;
}

.layui-admin-cover {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #e4e9f2;
    border-radius: 6px;
}

.layui-admin-title {
    display: block;
    margin-bottom: 5px;
    color: #202939;
    font-size: 15px;
}

.layui-admin-table p {
    margin: 0 0 7px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.layui-admin-price {
    color: #ff3b30;
}

.layui-admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.layui-admin-row-actions form {
    margin: 0;
}

.layui-admin-empty {
    padding: 56px 20px;
    color: #667085;
    text-align: center;
}

.layui-admin-empty h3 {
    margin: 0 0 8px;
    color: #202939;
}

@media (max-width: 980px) {
    .bh-layui-admin .layui-layout-left {
        display: none;
    }
}

@media (max-width: 760px) {
    .bh-layui-admin .layui-side {
        display: none;
    }

    .bh-layui-admin .layui-body,
    .bh-layui-admin .layui-footer {
        left: 0;
    }

    .bh-layui-admin .layui-logo {
        width: auto;
        padding-left: 14px;
    }

    .bh-layui-admin .layui-layout-right {
        right: 8px;
    }

    .bh-layui-admin .layui-layout-right .layui-nav-item:first-child {
        display: none;
    }

    .layui-admin-fluid {
        padding: 12px;
    }

    .layui-admin-card .layui-card-body {
        padding: 14px;
    }

    .layui-admin-table {
        min-width: 840px;
    }

    .layui-admin-card .layui-card-body {
        overflow-x: auto;
    }
}

.layui-admin-login-page {
    min-height: 100vh;
    background: #f2f4f8;
}

.layui-admin-login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.layui-admin-login-card {
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(30, 63, 122, 0.10);
}

.layui-admin-login-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #202939;
    font-size: 22px;
    font-weight: 900;
}

.layui-admin-login-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: #1677ff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.24);
}

.layui-admin-login-brand img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.layui-admin-login-card .layui-form-label {
    width: 90px;
    font-weight: 900;
}

.layui-admin-login-card .layui-input-block {
    margin-left: 120px;
}

.layui-admin-login-button {
    margin-top: 12px;
    border-radius: 8px;
    font-weight: 900;
}

.layui-admin-login-back {
    display: block;
    margin-top: 16px;
    color: #667085;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 520px) {
    .layui-admin-login-card {
        padding: 24px 18px;
    }

    .layui-admin-login-card .layui-form-label {
        float: none;
        width: auto;
        padding-left: 0;
        text-align: left;
    }

    .layui-admin-login-card .layui-input-block {
        margin-left: 0;
    }
}

.tpl-logo .site-logo-img,
.detail-logo .site-logo-img {
    display: inline-block !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    transform: none !important;
}

.bh-layui-admin .layui-logo img,
.layui-admin-login-brand img {
    display: inline-block !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    transform: none !important;
}

.tpl-logo,
.detail-logo {
    max-width: 320px;
    overflow: hidden;
    white-space: nowrap;
}

.wp-product-form {
    display: block;
}

.wp-editor-layout {
    align-items: flex-start;
}

.wp-title-card .layui-card-body {
    padding: 16px;
}

.wp-title-input {
    width: 100%;
    height: 58px;
    padding: 0 2px;
    color: #202939;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e4e9f2;
    font-size: 30px;
    font-weight: 900;
    line-height: 58px;
    outline: 0;
}

.wp-title-input::placeholder {
    color: #a4adbb;
}

.wp-excerpt-input {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0 2px;
    color: #475467;
    background: transparent;
    border: 0;
    font-size: 15px;
    outline: 0;
}

.wp-editor-card {
    margin-top: 16px;
}

.wp-editor-card .layui-card-body {
    padding: 0;
}

.wp-editor-card .tox-tinymce {
    border: 0;
    border-radius: 0 0 12px 12px;
}

.wp-feature-editor {
    min-height: 168px;
    border: 0;
    border-radius: 0;
    line-height: 1.75;
}

.wp-editor-card .layui-admin-form-tips {
    margin: 0;
    padding: 0 18px 16px;
}

.wp-side-card {
    margin-bottom: 16px;
}

.wp-side-card .layui-card-body {
    padding: 16px;
}

.wp-publish-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.wp-publish-meta span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.wp-publish-meta strong {
    color: #202939;
    font-size: 13px;
}

.wp-side-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wp-side-actions .layui-btn {
    margin: 0;
}

.wp-field-label {
    display: block;
    margin: 14px 0 8px;
    color: #202939;
    font-size: 13px;
    font-weight: 900;
}

.wp-field-label:first-child {
    margin-top: 0;
}

.wp-cover-url {
    margin-top: 12px;
}

.wp-cover-preview {
    display: block;
    margin-top: 12px;
    padding: 8px;
}

.wp-cover-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.wp-cover-preview span {
    display: block;
    margin-top: 8px;
}

.detail-rich-text {
    color: #475467;
    font-size: 15px;
    line-height: 1.85;
}

.detail-rich-text p {
    margin: 0 0 14px;
}

.detail-rich-text h1,
.detail-rich-text h2,
.detail-rich-text h3,
.detail-rich-text h4,
.detail-rich-text h5,
.detail-rich-text h6 {
    margin: 18px 0 10px;
    color: #202939;
}

.detail-rich-text ul,
.detail-rich-text ol {
    margin: 10px 0 14px 22px;
}

.detail-rich-text blockquote {
    margin: 14px 0;
    padding: 10px 14px;
    background: #f5f8ff;
    border-left: 4px solid #1677ff;
    border-radius: 6px;
}

.detail-rich-text table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
}

.detail-rich-text th,
.detail-rich-text td {
    padding: 10px 12px;
    border: 1px solid #e4e9f2;
}

.detail-rich-text pre,
.detail-rich-text code {
    color: #202939;
    background: #f5f7fb;
    border-radius: 6px;
}

.detail-rich-text pre {
    overflow-x: auto;
    padding: 12px;
}

.detail-rich-text a {
    color: #1677ff;
    font-weight: 800;
}

.layui-admin-security-tips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.layui-admin-security-tips li {
    position: relative;
    padding: 10px 0 10px 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f0f2f5;
}

.layui-admin-security-tips li:last-child {
    border-bottom: 0;
}

.layui-admin-security-tips li::before {
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    content: "";
    background: #1677ff;
    border-radius: 50%;
}
