/* 单店版四套主题一行四张画廊（首页与单店介绍页共用，1080P 清晰度专项优化） */
.yl-themes-section {
    padding: 96px 0;
    background: #F6FBF9;
    border-top: 1px solid rgba(15, 118, 110, 0.08);
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yl-themes-section *,
.yl-themes-section *::before,
.yl-themes-section *::after {
    box-sizing: border-box;
}

.yl-themes-section .yl-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.yl-themes-section .yl-section-head {
    max-width: 740px;
    margin: 0 auto 30px;
    text-align: center;
}

.yl-themes-section .yl-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: #ffffff;
    color: #0F766E;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.yl-themes-section .yl-section-head h2 {
    margin: 0;
    color: #0F172A;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.yl-themes-section .yl-section-head p {
    margin: 14px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

.yl-theme-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.yl-theme-pills button {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yl-theme-pills button:hover {
    border-color: #0F766E;
    color: #0F766E;
}

.yl-theme-pills button[aria-pressed="true"] {
    border-color: #0F766E;
    background: #0F766E;
    color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(15, 118, 110, 0.5);
}

/* 核心：PC 端严格一行四张，每卡宽约 292px，在 1080P 下清晰锐利 */
.yl-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.yl-theme-card {
    margin: 0;
    padding: 12px 12px 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.14);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.yl-theme-card:hover,
.yl-theme-card.is-active {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 22px 44px -18px rgba(15, 118, 110, 0.24);
}

.yl-theme-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #F1F5F9;
    aspect-ratio: 300 / 610;
    text-decoration: none;
}

.yl-theme-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.yl-theme-card:hover .yl-theme-frame img {
    transform: scale(1.02);
}

.yl-zoom-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yl-theme-frame:hover .yl-zoom-chip {
    background: #0F766E;
    transform: translateY(-1px);
}

.yl-theme-card figcaption {
    padding: 14px 4px 0;
}

.yl-theme-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.yl-theme-meta strong {
    color: #0F172A;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.yl-theme-meta span {
    padding: 2px 9px;
    border-radius: 999px;
    background: #F0FDFA;
    color: #0F766E;
    font-size: 11.5px;
    font-weight: 700;
}

.yl-theme-card figcaption p {
    margin: 8px 0 0;
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.6;
}

.yl-theme-footer {
    margin-top: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 26px;
}

.yl-theme-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #0F766E;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(15, 118, 110, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}

.yl-theme-demo-btn:hover {
    background: #0B5D56;
    transform: translateY(-2px);
}

.yl-theme-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0F766E;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.yl-theme-more-link:hover {
    color: #0B5D56;
}

/* 通用高清大图查看弹窗 */
.yl-image-viewer {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 32px 80px -16px rgba(15, 23, 42, 0.36);
    overflow: hidden;
}

.yl-image-viewer[open] {
    display: flex;
    flex-direction: column;
}

.yl-image-viewer::backdrop {
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.yl-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    flex-shrink: 0;
}

.yl-viewer-bar strong {
    color: #0F172A;
    font-size: 15px;
    font-weight: 800;
}

.yl-viewer-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #F8FAFC;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yl-viewer-close:hover {
    border-color: #0F766E;
    background: #0F766E;
    color: #ffffff;
}

.yl-viewer-scroll {
    overflow-y: auto;
    padding: 20px;
    background: #F1F5F9;
    text-align: center;
}

.yl-viewer-scroll img {
    display: block;
    width: auto;
    max-width: min(100%, 460px);
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.24);
}

@media (max-width: 1080px) {
    .yl-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .yl-themes-section {
        padding: 64px 0;
    }

    .yl-themes-section .yl-shell {
        width: calc(100% - 32px);
    }

    .yl-themes-section .yl-section-head h2 {
        font-size: 26px;
    }

    .yl-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .yl-theme-card {
        padding: 8px 8px 12px;
        border-radius: 14px;
    }

    .yl-theme-meta strong {
        font-size: 14px;
    }

    .yl-theme-meta span {
        display: none;
    }

    .yl-theme-card figcaption p {
        font-size: 12px;
    }
}
