/* 主题案例与案例图片集页面样式：使用独立命名空间避免污染既有页面。 */
.jhy-cases-page,
.jhy-gallery-page {
    width: min(1660px, 90%);
    margin: 0 auto;
    padding: 110px 0 140px;
}

.jhy-case-wrap {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.jhy-case-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 80px 30px 100px 0;
}

.jhy-case-sidebar h2,
.jhy-case-store-label,
.jhy-case-hall-label {
    color: var(--chestnut);
    font-weight: 600;
    letter-spacing: 3px;
}

.jhy-case-sidebar h2 {
    font-size: 20px;
    margin-bottom: 28px;
}

.jhy-case-store-label,
.jhy-case-hall-label {
    font-size: 13px;
    margin: 20px 0 12px;
}

.jhy-case-store-nav,
.jhy-case-hall-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 桌面端门店分组目录：标题、礼堂列表和空状态保持清晰层级。 */
.jhy-case-store-group {
    display: block;
    min-width: 0;
}

.jhy-case-store-group + .jhy-case-store-group {
    margin-top: 24px;
}

.jhy-case-store-title {
    margin: 0;
    padding: 0 0 7px;
    color: var(--chestnut);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.jhy-case-store-group.is-active .jhy-case-store-title {
    color: var(--gold);
}

.jhy-case-hall-nav {
    margin-left: 12px;
}

.jhy-case-hall-nav button {
    position: relative;
    display: block;
    width: 100%;
    padding: 5px 0 5px 18px;
    border: 0;
    background: transparent;
    color: var(--rosegold);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 1px;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: var(--transition);
}

.jhy-case-hall-nav button::before {
    position: absolute;
    top: 50%;
    left: 0;
    content: '-';
    color: var(--rosegold);
    line-height: 1;
    transform: translateY(-50%);
    transition: var(--transition);
}

.jhy-case-hall-nav button:hover,
.jhy-case-hall-nav button:focus-visible,
.jhy-case-hall-nav button.is-active {
    color: var(--gold);
}

.jhy-case-hall-nav button:hover::before,
.jhy-case-hall-nav button:focus-visible::before,
.jhy-case-hall-nav button.is-active::before {
    color: var(--gold);
    transform: translate(2px, -50%);
}

.jhy-case-hall-nav button.is-active {
    font-weight: 600;
    background: rgba(201, 169, 110, .1);
}

.jhy-case-hall-nav button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.jhy-case-empty-halls {
    margin: 0;
    padding: 5px 0 5px 18px;
    color: var(--rosegold);
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.jhy-case-content {
    min-width: 0;
    border-left: 1px solid rgba(201, 169, 110, .5);
    padding: 80px 0 100px 80px;
}

.jhy-case-status,
.jhy-gallery-status,
.jhy-article-status {
    color: var(--chestnut);
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 25px;
}

.jhy-case-status[data-state="error"],
.jhy-gallery-status[data-state="error"],
.jhy-article-status[data-state="error"] {
    color: #9f302c;
}

.jhy-case-status[data-state="empty"] {
    color: var(--rosegold);
}

.jhy-state-retry {
    display: block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    background: transparent;
    color: var(--chestnut);
    cursor: pointer;
    font: inherit;
}

.jhy-case-item {
    scroll-margin-top: 110px;
    padding-left: 0;
    padding-bottom: 100px;
    border-bottom: 1px solid rgba(201, 169, 110, .5);
}

.jhy-case-item + .jhy-case-item {
    margin-top: 100px;
}

.jhy-case-item.is-spy-active .jhy-case-title {
    color: var(--gold);
}

.jhy-case-heading {
    display: inline-block;
    min-width: 260px;
    padding: 0 45px;
    text-align: center;
    border-left: 1px solid rgba(201, 169, 110, .5);
    border-right: 1px solid rgba(201, 169, 110, .5);
}

.jhy-case-en,
.jhy-gallery-en {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 36px;
    letter-spacing: 3.6px;
    line-height: 1.25;
    text-transform: uppercase;
}

.jhy-case-title,
.jhy-gallery-title {
    margin-top: 15px;
    color: var(--chestnut);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
}

.jhy-case-subtitle,
.jhy-gallery-location {
    margin-top: 50px;
    color: var(--rosegold);
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 25px;
}

.jhy-case-copy {
    margin-top: 25px;
    color: var(--chestnut);
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 25px;
}

.jhy-case-copy p + p {
    margin-top: 12px;
}

.jhy-case-main-image {
    margin-top: 40px;
    overflow: hidden;
}

.jhy-case-image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.jhy-case-image-button img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s ease;
}

.jhy-case-image-button:hover img,
.jhy-case-image-button:focus-visible img {
    transform: scale(1.05);
}

.jhy-case-empty-image {
    min-height: 200px;
    display: grid;
    place-items: center;
    background: rgba(201, 169, 110, .1);
    color: var(--rosegold);
}

.jhy-case-gallery {
    margin-top: 20px;
    overflow: hidden;
}

.jhy-case-gallery .swiper-wrapper {
    display: flex;
    gap: 2%;
}

.jhy-case-gallery .swiper-slide {
    flex: 0 0 32%;
    min-width: 0;
    overflow: hidden;
}

/* 案例小图固定 1:1：轮播内图片与“查看更多”占位统一为正方形，主图不受影响。 */
.jhy-case-gallery .jhy-case-image-button img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.jhy-case-gallery .swiper-slide.jhy-case-more-slide {
    aspect-ratio: 1 / 1;
}

.jhy-case-gallery.is-css-fallback {
    overflow-x: auto;
}

.jhy-case-more {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: var(--chestnut);
    color: white;
}

.jhy-case-more-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(.65);
    transform: scale(1.05);
}

.jhy-case-more span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
    letter-spacing: 1.4px;
}

.jhy-case-mobile-selects {
    display: none;
}

.jhy-gallery-content {
    padding: 80px 0 0;
}

.jhy-gallery-heading {
    max-width: 800px;
    margin-bottom: 50px;
}

.jhy-gallery-description {
    margin-top: 25px;
    color: var(--chestnut);
    font-size: 14px;
    line-height: 2;
    letter-spacing: 1.4px;
}

.jhy-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.jhy-gallery-image-button {
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.jhy-gallery-image-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s ease;
}

.jhy-gallery-image-button:hover img,
.jhy-gallery-image-button:focus-visible img {
    transform: scale(1.05);
}

.jhy-gallery-empty {
    color: var(--rosegold);
    letter-spacing: 1.4px;
}

.jhy-lightbox[hidden] {
    display: none;
}

.jhy-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.jhy-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .84);
}

.jhy-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: min(1100px, 100%);
    max-height: 100%;
}

.jhy-lightbox-figure {
    max-height: calc(100vh - 48px);
    margin: 0;
    text-align: center;
}

.jhy-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    margin: 0 auto;
    object-fit: contain;
}

.jhy-lightbox-caption {
    padding-top: 10px;
    color: white;
    font-size: 13px;
}

.jhy-lightbox-close,
.jhy-lightbox-prev,
.jhy-lightbox-next {
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: white;
    cursor: pointer;
    font: inherit;
}

.jhy-lightbox-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
}

.jhy-lightbox-prev,
.jhy-lightbox-next {
    width: 44px;
    height: 60px;
    border-radius: 8px;
    font-size: 38px;
    line-height: 1;
}

.jhy-lightbox button:focus-visible,
.jhy-case-more:focus-visible,
.jhy-case-image-button:focus-visible,
.jhy-gallery-image-button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

@media (max-width: 1480px) {
    .jhy-case-sidebar,
    .jhy-case-content { padding-top: 60px; }
    .jhy-case-content { padding-left: 50px; }
    .jhy-case-item + .jhy-case-item { margin-top: 60px; }
    .jhy-case-en,
    .jhy-gallery-en { font-size: 28px; }
}

@media (max-width: 1200px) {
    .jhy-case-wrap { grid-template-columns: 200px minmax(0, 1fr); }
    .jhy-case-sidebar { padding-top: 30px; }
    .jhy-case-content { padding: 30px 0 60px 30px; }
    .jhy-case-en,
    .jhy-gallery-en { font-size: 20px; }
}

@media (max-width: 900px) {
    .jhy-cases-page,
    .jhy-gallery-page { width: min(94%, 760px); padding: 60px 0 80px; }
    .jhy-case-mobile-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
    .jhy-case-mobile-selects label { color: var(--chestnut); font-size: 13px; letter-spacing: 1px; }
    .jhy-case-mobile-selects select { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid rgba(201, 169, 110, .7); border-radius: 4px; background: white; color: var(--chestnut); font: inherit; }
    .jhy-case-sidebar { display: none; }
    .jhy-case-content { width: 100%; padding: 0 0 40px; border-left: 0; }
    .jhy-case-item { padding-bottom: 60px; }
    .jhy-case-item + .jhy-case-item { margin-top: 60px; }
    .jhy-case-heading { display: block; min-width: 0; padding: 0 20px; }
    .jhy-case-en,
    .jhy-gallery-en { font-size: 16px; letter-spacing: 3px; }
    .jhy-case-heading,
    .jhy-gallery-heading { text-align: center; }
    .jhy-case-subtitle { margin-top: 30px; }
    .jhy-case-gallery .swiper-wrapper { gap: 12px; overflow-x: auto; }
    .jhy-case-gallery .swiper-slide { flex-basis: 82%; }
    .jhy-gallery-content { padding-top: 45px; }
    .jhy-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .jhy-lightbox-panel { grid-template-columns: 1fr; gap: 8px; }
    .jhy-lightbox-prev,
    .jhy-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
    .jhy-lightbox-prev { left: -4px; }
    .jhy-lightbox-next { right: -4px; }
}

@media (max-width: 520px) {
    .jhy-case-mobile-selects { grid-template-columns: 1fr; }
    .jhy-gallery-grid { grid-template-columns: 1fr; }
}
