@charset "utf-8";

/* Phase 2 is limited to the four pages marked modern-inner. */
.modern-inner :is(#n22, #n23, #n32, #n33) { padding: 40px 0 56px; background: var(--modern-surface); }
.modern-inner .component > :is(.product, .picture) { width: calc(100% - 64px); max-width: 1240px; margin: 0 auto; padding: 0; }
.modern-inner :is(#n22, #n23, #n32, #n33) #right { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.modern-inner :is(#n22, #n23, #n32) #left { width: 236px; padding: 20px; border: 1px solid var(--modern-line); border-radius: 12px; background: #fff; }
.modern-inner #left.float1 { margin: 0 24px 0 0; }
.modern-inner #left.float2 { margin: 0 0 0 24px; }
.modern-inner .sidebar_title h2 { margin: 0 0 14px; padding: 0 0 0 10px; color: var(--modern-ink); font-size: 17px; line-height: 1.6; }
.modern-inner :is(#n22, #n23, #n32) .sidebar_title h2 { color: var(--modern-ink); font-size: 17px; }
.modern-inner :is(#n22, #n23, #n32) .sidelist .InfoTitle { color: var(--modern-muted); font-size: 14px; line-height: 1.7; }
.modern-inner .sidebar_body + .sidebar_bottom { margin-bottom: 24px; }

/* Existing channel links and breadcrumbs, with the homepage's spacing. */
.modern-inner .banner_img img { display: block; width: 100%; height: auto; }
.modern-inner #subchannel_main { padding: 18px 0; border-bottom: 1px solid var(--modern-line); background: #fff; }
.modern-inner #subchannel { width: calc(100% - 64px); max-width: 1240px; margin: 0 auto; padding: 0; overflow: visible; }
.modern-inner .subchannellist { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; white-space: normal; }
.modern-inner .subchannellist > li { display: flex; align-items: stretch; flex: 0 0 auto; float: none; margin: 0; }
.modern-inner #subchannel.modern-navigation-ready { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.modern-inner .modern-navigation-ready .subchannellist { justify-content: flex-start; flex-wrap: nowrap; white-space: nowrap; }
.modern-inner .modern-navigation-ready .subchannellist > li:first-child { margin-left: auto; }
.modern-inner .modern-navigation-ready .subchannellist > li:last-child { margin-right: auto; }
.modern-inner .subchannellist .separator { display: none; }
.modern-inner .subchannellist a.depth2 { display: block; min-height: 44px; margin: 0; padding: 10px 8px; border: 1px solid var(--modern-line); border-radius: 8px; color: var(--modern-muted); font-size: 14px; font-weight: 400; line-height: 1.6; white-space: nowrap; }
.modern-inner #subchannel:not(.modern-navigation-ready) .subchannellist > li:not(.modern-has-submenu) > a.depth2 { padding-left: 6px; padding-right: 6px; }
.modern-inner .subchannellist a.depth2.ThemeColor { border-color: var(--modern-accent); background: var(--modern-surface); }
.modern-inner .subchannellist :is(a.depth2, .modern-subchannel-toggle):focus-visible { outline-offset: -3px; }
.modern-inner .subchannellist .depth3list { display: none; top: 100%; width: min(640px, calc(100vw - 32px)); max-height: min(480px, 60vh); margin: 0; padding: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--modern-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(25,38,59,.1); text-align: left; white-space: normal; z-index: 2000; }
.modern-inner .subchannellist > li:nth-child(n+7) .depth3list { left: auto; right: 0; }
.modern-inner .subchannellist > li:hover .depth3list,
.modern-inner .subchannellist > li:focus-within .depth3list { display: grid; }
.modern-inner .subchannellist .depth3list[hidden] { display: none !important; }
.modern-inner .subchannellist .depth3list:before { display: none; }
.modern-inner .subchannellist .depth3list a.depth3 { width: auto; min-width: 0; padding: 10px 12px; border-radius: 6px; color: var(--modern-ink); font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.modern-inner .subchannellist > li.modern-has-submenu > a.depth2 { padding-right: 4px; border-right: 0; border-radius: 8px 0 0 8px; }
.modern-inner .subchannellist > li.modern-has-submenu .icon-more { display: none; }
.modern-inner .subchannellist > li.modern-has-submenu .depth3list { display: grid; position: fixed; left: 0; right: auto; }
.modern-inner .modern-subchannel-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--modern-line); border-left: 0; border-radius: 0 8px 8px 0; background: #fff; color: var(--modern-muted); cursor: pointer; }
.modern-inner .modern-subchannel-toggle:after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.modern-inner .modern-subchannel-toggle[aria-expanded="true"] { color: var(--modern-accent); background: var(--modern-surface); }
.modern-inner .subchannellist a.depth2.ThemeColor + .modern-subchannel-toggle { border-color: var(--modern-accent); background: var(--modern-surface); }
.modern-inner .right_title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.modern-inner #location { display: block; float: none; padding: 0; color: var(--modern-muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.modern-inner #location b { font-weight: 400; }
.modern-inner #location a { color: var(--modern-muted); }
.modern-inner #location a:hover { color: var(--modern-accent); }
.modern-inner .right_title .seachwrap { margin: 0; padding: 0; }
.modern-inner .right_title .frmInfoSearch { display: flex; max-width: 100%; }
.modern-inner .right_title .seachwrap .Keywords { width: 220px; max-width: calc(100% - 44px); height: 44px; padding: 10px 12px; border: 1px solid var(--modern-line); border-radius: 8px 0 0 8px; background: #fff; font-size: 14px; }
.modern-inner .right_title .seachwrap .btnSearch { width: 44px; height: 44px; border-radius: 0 8px 8px 0; }

/* Preserve query, pagination and visibility flags; change only the cards. */
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0),
.modern-product-detail #n33 .InfoRelation .grid-product0 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.modern-case-list #n22 #right .picture0 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0):after,
.modern-product-detail #n33 .InfoRelation .grid-product0:after { display: none; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) > li,
.modern-product-detail #n33 .InfoRelation .grid-product0 > li { width: auto !important; float: none; min-width: 0; margin: 0; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) > li > a,
.modern-product-detail #n33 .InfoRelation .grid-product0 > li > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--modern-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) > li > a:hover,
.modern-product-detail #n33 .InfoRelation .grid-product0 > li > a:hover { border-color: var(--modern-accent); box-shadow: 0 10px 24px rgba(25,38,59,.07); }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoPicture,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoPicture { float: none; width: 100%; height: 220px; margin: 0; overflow: hidden; border-radius: 8px; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoPicture img,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoPicture img { display: block; width: 100%; height: 100%; object-fit: contain; transform: none; }
.modern-case-list #n22 #right .picture0 .InfoPicture img { object-fit: cover; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoWrap,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoWrap { position: static; float: none; width: auto; margin: 16px 0 0; padding: 0; background: transparent; transform: none; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoWrap:after,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoWrap:after { display: none; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoTitle,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoTitle { margin: 0; color: var(--modern-ink); font-size: 16px; font-weight: 500; line-height: 1.7; text-align: left; white-space: normal; overflow-wrap: anywhere; transform: none; }
.modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoSContent,
.modern-product-detail #n33 .InfoRelation .grid-product0 .InfoSContent { display: block; margin: 10px 0 0; padding: 0; color: var(--modern-muted); font-size: 14px; line-height: 1.8; transform: none; }
.modern-inner .page_main { padding: 28px 0 0; }
.modern-inner .page { display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 8px; border: 0; overflow: visible; }
.modern-inner .page a, .modern-inner .page span { float: none; min-width: 40px; margin: 0; padding: 8px 12px; border: 1px solid var(--modern-line); border-radius: 8px; background: #fff; color: var(--modern-muted); font-size: 14px; line-height: 1.5; }
.modern-inner .page .current { border-color: var(--modern-accent); background: var(--modern-accent); color: #fff; }
.modern-inner .page a:hover { border-color: var(--modern-accent); color: var(--modern-accent); }

/* The gallery still uses the existing Swiper and its navigation controls. */
.modern-product-detail #n33 .full-width0 { width: 100%; max-width: none; }
.modern-product-detail #n33 .info_product_detail_wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 32px; overflow: hidden; border: 1px solid var(--modern-line); border-radius: 12px; background: #fff; }
.modern-product-detail #n33 .product_swiper { --modern-gallery-height: 420px; float: none; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0 44px; }
.modern-product-detail #n33 .product_swiper .InfoSwiper { height: var(--modern-gallery-height) !important; }
.modern-product-detail #n33 .product_swiper .InfoSwiper img { width: 100%; height: var(--modern-gallery-height); object-fit: contain; }
.modern-product-detail #n33 .product_swiper > .InfoPicture { height: var(--modern-gallery-height); }
.modern-product-detail #n33 .product_swiper > .InfoPicture img { width: 100%; height: 100%; object-fit: contain; }
.modern-product-detail #n33 .product_swiper .product_thumbnail { margin-top: 12px; }
.modern-product-detail #n33 .product_swiper .product_thumbnail li { width: 96px; }
.modern-product-detail #n33 .product_swiper .product_thumbnail img { width: 88px; height: 72px; margin: 4px; padding: 4px; border: 1px solid var(--modern-line); border-radius: 6px; background: #fff; object-fit: contain; }
.modern-product-detail #n33 .product_swiper .product_thumbnail img.ThemeColorBg { border-color: var(--modern-accent); }
.modern-product-detail #n33 .product_swiper :is(.swiper-prev, .swiper-next) { width: 36px; height: 44px; padding: 0; border-radius: 8px; font-size: 24px; line-height: 44px; }
.modern-product-detail #n33 .detail_table { float: none; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 16px 0; }
.modern-product-detail #n33 .detail_table .InfoTitle h1 { margin: 0; color: var(--modern-ink); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.modern-product-detail #n33 .detail_table .InfoSContent { margin: 18px 0; color: var(--modern-muted); font-size: 16px; line-height: 1.9; }
.modern-product-detail #n33 .InfoContent_main { margin-top: 28px; padding: 28px 32px; border: 1px solid var(--modern-line); border-radius: 12px; background: #fff; }
.modern-product-detail #n33 .InfoContent_main:before,
.modern-product-detail #n33 .ProductDescription1:before { display: none; }
.modern-product-detail #n33 .ProductDescription { margin: 0 0 24px; padding: 0; font-size: 20px; }
.modern-product-detail #n33 .ProductDescription span { padding: 0 0 12px; cursor: default; }
.modern-product-detail #n33 .InfoContent_main .InfoContent { padding: 0; color: var(--modern-ink); font-size: 16px; line-height: 1.9; }
.modern-product-detail #n33 .ProductDescription1 { margin: 36px 0 20px; }
.modern-product-detail #n33 .ProductDescription1 span { padding: 0; color: var(--modern-ink); font-size: 22px; font-weight: 600; }
.modern-product-detail #n33 .InfoRelation { margin: 0; }

/* Retain the case body, source information and access controls. */
.modern-case-detail #n32 #right { padding: 32px; border: 1px solid var(--modern-line); border-radius: 12px; background: #fff; }
.modern-case-detail #n32 .right_body > .InfoTitle h1 { margin: 0; color: var(--modern-ink); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.modern-case-detail #n32 .info_from_wrap { margin: 16px 0 24px; padding: 0; color: var(--modern-muted); font-size: 14px; line-height: 1.8; text-align: left; }
.modern-case-detail #n32 .right_body > .InfoSContent { margin: 0 0 24px; padding: 16px 20px; border-radius: 8px; background: var(--modern-surface); color: var(--modern-muted); line-height: 1.9; }
.modern-case-detail #n32 .right_body > .InfoSContent:empty { display: none; }
.modern-case-detail #n32 .InfoContent { color: var(--modern-ink); font-size: 16px; line-height: 1.9; }
.modern-inner :is(#n32, #n33) .InfoContent { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; }
.modern-inner :is(#n32, #n33) .InfoContent img { max-width: 100%; height: auto !important; }
.modern-inner :is(#n32, #n33) .InfoContent table { border-collapse: collapse; }
.modern-inner :is(#n32, #n33) .InfoContent th,
.modern-inner :is(#n32, #n33) .InfoContent td { padding: 10px 14px; border: 1px solid var(--modern-line); vertical-align: top; }
.modern-inner :is(#n32, #n33) .InfoContent th { background: var(--modern-surface); }
.modern-inner :is(#n32, #n33) .InfoContent :is(video, iframe) { max-width: 100%; }
.modern-inner :is(#n32, #n33) .info_previous_next_wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; color: var(--modern-muted); font-size: 14px; line-height: 1.8; }
.modern-inner :is(#n32, #n33) .info_previous_next_wrap > :is(.Previous, .Next) { float: none; width: auto; margin: 0; padding: 14px; border: 1px solid var(--modern-line); border-radius: 8px; text-align: left; overflow-wrap: anywhere; }

@media screen and (max-width: 1199px) {
    /* Cached pages without the enhancement script retain usable category links and submenus. */
    .modern-inner #subchannel:not(.modern-navigation-ready) .subchannellist > li:not(.separator):not(.modern-has-submenu) { display: block; flex: 1 1 auto; min-width: 0; }
    .modern-inner #subchannel:not(.modern-navigation-ready) .subchannellist > li:not(.modern-has-submenu) a.depth2 { white-space: normal; overflow-wrap: anywhere; }
    .modern-inner #subchannel:not(.modern-navigation-ready) .subchannellist > li:not(.modern-has-submenu) .depth3list { position: static; width: 100%; margin-top: 6px; }
    .modern-product-list #n23 #right .product0 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modern-product-detail #n33 .info_product_detail_wrap { gap: 24px; padding: 24px; }
    .modern-product-detail #n33 .product_swiper { --modern-gallery-height: 320px; padding: 0 40px; }
}
@media screen and (max-width: 900px) {
    .modern-product-detail #n33 .info_product_detail_wrap { grid-template-columns: 1fr; }
    .modern-product-detail #n33 .detail_table { padding: 0; }
}
@media screen and (max-width: 767px) {
    .modern-inner :is(#n22, #n23, #n32, #n33) { padding: 24px 0 36px; }
    .modern-inner .component > :is(.product, .picture), .modern-inner #subchannel { width: calc(100% - 32px); }
    .modern-inner #subchannel_main { padding: 12px 0; }
    .modern-inner .subchannellist { justify-content: flex-start; }
    .modern-inner .subchannellist > li { flex: 0 0 auto; }
    .modern-inner .subchannellist a.depth2 { padding: 8px 12px; }
    .modern-inner .right_title { gap: 12px; margin-bottom: 20px; }
    .modern-inner .right_title .seachwrap { width: 100%; }
    .modern-inner .right_title .seachwrap .Keywords { flex: 1; width: auto; }
    .modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) { gap: 12px; }
    .modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) > li > a { padding: 12px; }
    .modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoPicture { height: 180px; }
    .modern-inner :is(#n22, #n23) #right :is(.picture0, .product0) .InfoTitle { font-size: 15px; }
    .modern-product-detail #n33 .info_product_detail_wrap { gap: 20px; padding: 16px; }
    .modern-product-detail #n33 .product_swiper { --modern-gallery-height: 260px; padding: 0 36px; }
    .modern-product-detail #n33 .InfoContent_main { padding: 20px 16px; }
    .modern-product-detail #n33 .InfoRelation .grid-product0 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .modern-product-detail #n33 .InfoRelation .grid-product0 > li > a { padding: 12px; }
    .modern-product-detail #n33 .InfoRelation .grid-product0 .InfoPicture { height: 180px; }
    .modern-case-detail #n32 #right { padding: 20px 16px; }
    .modern-inner :is(#n32, #n33) .info_previous_next_wrap { grid-template-columns: 1fr; }
}
@media screen and (max-width: 399px) {
    .modern-inner :is(#n22, #n23) #right :is(.picture0, .product0),
    .modern-product-detail #n33 .InfoRelation .grid-product0 { grid-template-columns: 1fr; }
}
