.topic-home { background: #fff url("../assets/2026_xqds/background.png") center top / 100% auto no-repeat; }
.topic-main { padding-top: 35px; padding-bottom: 120px; }
.topic-section + .topic-section { margin-top: 120px; }
.section-title { margin: 0 auto 60px; width: 571px; max-width: 85%; }
.section-title img { display: block; width: 100%; height: auto; }
.feature-gallery { position: relative; height: 698px; padding: 0 0 90px; background: url("../assets/2026_xqds/gallery-base.png") center bottom / 100% 230px no-repeat; }
.feature-gallery .gallery-stage { position: relative; width: 960px; max-width: 80%; height: 608px; padding: 12px; border: 3px solid #3dd5df; background: linear-gradient(135deg,#fff,#57b8f2); }
.gallery-slide { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; background: #d9edf4; }
.gallery-slide + .gallery-slide { display: none; }
.gallery-slide > img { width: 100%; height: 100%; object-fit: cover; object-position:center top; }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 18px 24px; color: #fff; font-size: 18px; line-height: 1.5; background: linear-gradient(transparent,rgba(0,35,56,.85)); overflow-wrap: anywhere; }
.gallery-thumbs { position: absolute; right: 0; top: 56px; width: 270px; height: 510px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 158px; width: 100%; padding: 0; border: 4px solid #fff; background: #d9eef4; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover;object-position: center top; }
.gallery-thumb[aria-pressed="true"] { border-color: #19c6da; }
.thumb-control { position: absolute; right: 100px; width: 60px; height: 67px; border: 0; background: center / contain no-repeat; z-index: 2; }
.thumb-up { top: 8px; background-image: url("../assets/2026_xqds/thumb-up.png"); }
.thumb-down { top: 538px; background-image: url("../assets/2026_xqds/thumb-down.png"); }
.gallery-more { position: absolute; right: 28px; bottom: 22px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 500; font-size: 18px; color: #087ed0; line-height: 25px; text-align: left; font-style: normal; white-space: nowrap; }
.more-link .more-arrows { flex: 0 0 24px; width: 24px; height: 24px; fill: currentColor; }
.gallery-more .more-link { color: #fff; }
.gallery-more a:hover { color: #fff; text-decoration: underline; }
.news-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; }
.news-card { min-height: 598px; border-bottom: 7px solid #087ed0; border-radius: 8px; background: linear-gradient(180deg,#e2f2ff 0%,#edf7ff 44%,#f3faff 100%); position: relative; }
.card-image { aspect-ratio: 279 / 235; overflow: hidden; border-radius: 8px 8px 0 0; clip-path: polygon(0 0,100% 0,100% 100%,0 79.5745%); }
.card-image img { width: 100%; height: 100%; object-fit: cover;object-position: center top; }
.card-copy { padding: 15px 24px 90px; font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif; color: #228fd4; }
.card-copy h3 { color: inherit; font-weight: 600; font-size: 28px; line-height: 40px; height: 80px; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-divider { display: block; width: 57px; height: 4px; margin: 26px 0 28px; background: #228fd4; }
.card-copy p { color: inherit; font-weight: 600; font-size: 16px; line-height: 22px; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-arrow { position: absolute; right: 25px; bottom: 34px; width: 21px; height: 10px; background: #0a87d1; clip-path: polygon(0 37.5%,80.9524% 37.5%,71.4286% 0,100% 50%,71.4286% 100%,80.9524% 62.5%,0 62.5%); }
.section-more { position: relative; z-index: 1; text-align: center; margin-top: 30px; line-height: 25px; }
.section-cards { position: relative; }
.section-cards::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 90px; bottom: -56px; width: min(1470px,calc((100vw + 100%) / 2 - 90px)); height: 143px; background: url("../assets/2026_xqds/ribbon.png") left center / 100% 100% no-repeat; }
.section-cards { isolation: isolate; }
.topic-section.section-photos { margin-top: 175px; padding-bottom: 25px; position: relative; }
.photo-more { position: relative; width: 1024px; max-width: calc(100% - 80px); margin: 0 auto; padding-right: 20px; text-align: right; line-height: 25px; z-index: 1; }
.photo-gallery { position: relative; width: 1024px; max-width: calc(100% - 80px); aspect-ratio: 1024 / 732; padding: 56px 60px 76px; margin: auto; background: url("../assets/2026_xqds/frame.png") center / 100% 100% no-repeat; }
.photo-gallery .gallery-stage { height: 100%; }
.photo-control { position: absolute; width: 91px; height: 84px; top: 50%; transform: translateY(-50%); border: 0; background: center / contain no-repeat; }
.photo-prev { left: -42px; background-image: url("../assets/2026_xqds/arrow-left.png"); }
.photo-next { right: -42px; background-image: url("../assets/2026_xqds/arrow-right.png"); }
.media-panel { position: relative; padding: 20px; background: #fff; box-shadow: 0 8px 28px #408ca512; }
.media-content { position: relative; min-height: 434px; padding: 0 20px 40px 62.5862%; display: flex; flex-direction: column; justify-content: space-around; }
.media-item { display: block; font-size: 18px; padding: 24px 0 46px; border-bottom: 1px solid #e1eff5; overflow-wrap: anywhere; }
.media-item > img { display: none; }
.media-item:first-child > img { display: block; position: absolute; left: 0; top: 0; width: 62%; height: 100%; object-fit: cover; }
.media-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.media-more { position: absolute; right: 40px; bottom: 26px; line-height: 25px; }
.media-visuals { position: absolute; top: 0; left: 0; width: 60.5172%; height: 100%; overflow: hidden; }
.media-visual { display: block; width: 100%; height: 100%; }
.media-visual img { width: 100%; height: 100%; object-fit: cover;object-position: center top; }
.media-item.is-current { color: #087ed0; }
@media (min-width: 768px) and (max-width: 1250px) {
  .feature-gallery { height: 570px; }
  .feature-gallery .gallery-stage { height: 480px; }
  .gallery-thumbs { width: 23%; height: 400px; }
  .gallery-thumb { flex-basis: 122px; }
  .thumb-control { right: 8%; }
  .thumb-down { top: 428px; }
  .news-card { min-height: 500px; }
  .card-copy h3 { font-size: 20px; }
}
@media (max-width: 767px) {
  .topic-home { background-size: auto 100%; }
  .topic-main { padding-top: 24px; padding-bottom: 48px; }
  .topic-section + .topic-section, .topic-section.section-photos { margin-top: 48px; }
  .topic-section.section-photos { padding-bottom: 0; }
  .section-title { width: 285px; max-width: 95%; margin-bottom: 24px; }
  .feature-gallery { height: auto; padding-bottom: 42px; background-size: 100% 100px; }
  .feature-gallery .gallery-stage { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; padding: 5px; border-width: 2px; }
  .gallery-caption { padding: 14px 12px 10px; font-size: 14px; }
  .gallery-thumbs { position: static; width: 100%; height: 72px; flex-direction: row; gap: 8px; margin-top: 10px; overflow-x: auto; overflow-y: hidden; }
  .gallery-thumb { width: 100px; height: 72px; flex: 0 0 100px; border-width: 2px; }
  .gallery-controls { display: none; }
  .gallery-more { bottom: 9px; right: 12px; }
  .news-cards { grid-template-columns: 1fr; gap: 24px; }
  .news-card { min-height: 0; }
  .card-image { aspect-ratio: 16 / 9; }
  .card-copy { padding: 20px 20px 60px; }
  .card-copy h3 { font-size: 20px; height: auto; line-height: 1.5; }
  .card-divider { margin: 18px 0; }
  .card-copy p { font-size: 15px; }
  .section-cards::after { left: 0; width: 100%; height: 54px; bottom: -16px; }
  .photo-more { max-width: calc(100% - 24px); padding-right: 0; margin-bottom: 12px; }
  .photo-gallery { max-width: calc(100% - 24px); padding: 16px 18px 24px; }
  .photo-control { width: 38px; height: 38px; }
  .photo-prev { left: -16px; }
  .photo-next { right: -16px; }
  .media-panel { padding: 12px; }
  .media-content { padding: 0; min-height: 0; gap: 0; }
  .media-item { font-size: 16px; padding: 16px 4px; border-bottom: 1px solid #e1eff5; }
  .media-item:first-child > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: 16px; }
  .media-visuals { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .media-more { position: static; text-align: right; margin-top: 16px; }
}

.news-cards > .empty-message { grid-column: 1 / -1; }
.media-content.is-empty { padding-left: 0; }

/* 三个栏目共用独立轮播，保留各区域原有装饰。 */
.image-gallery { position: relative; padding-bottom: 42px; }
.image-gallery .gallery-stage { position: relative; height: 560px; padding: 10px; border: 3px solid #3dd5df; background: linear-gradient(135deg,#fff,#57b8f2); }
.image-control { position: absolute; top: 280px; transform: translateY(-50%); z-index: 2; width: 48px; height: 64px; padding: 0; border: 0; border-radius: 4px; color: #fff; font-size: 30px; background: rgba(0,55,83,.6); }
.image-control:hover { background: #147e9b; }
.image-prev { left: 18px; }
.image-next { right: 18px; }
.gallery-stage { touch-action: pan-y pinch-zoom; }
.gallery-stage > .empty-message { display: flex; align-items: center; justify-content: center; height: 100%; }
.carousel-toolbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 36px; }
.feature-gallery .carousel-toolbar { right: 28%; bottom: 28px; }
.photo-gallery .carousel-toolbar { bottom: 22px; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.carousel-dot { width: 24px; height: 28px; padding: 0; border: 0; background: transparent; }
.carousel-dot::after { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: #b1d3df; }
.carousel-dot[aria-pressed="true"]::after { background: #087d9e; box-shadow: 0 0 0 3px #ffffffb3; }
/* 轮播和媒体聚焦共用叠层切换，保留上一张直至淡出结束。 */
.gallery-stage.is-ready, .media-visuals.is-ready { display: grid; isolation: isolate; }
.is-ready > .switch-layer { display: block; grid-area: 1 / 1; min-width: 0; min-height: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .48s ease, visibility 0s linear .48s; }
.is-ready > .switch-layer.is-current { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
@media (max-width: 767px) {
  .image-gallery .gallery-stage { height: auto; aspect-ratio: 16 / 10; padding: 5px; border-width: 2px; }
  .image-control { top: calc((100% - 42px) / 2); width: 32px; height: 44px; font-size: 23px; }
  .image-prev { left: 9px; }
  .image-next { right: 9px; }
  .feature-gallery { padding-bottom: 86px; }
  .feature-gallery .carousel-toolbar { left: 0; right: 0; bottom: 40px; }
  .photo-gallery { padding-bottom: 60px; aspect-ratio: auto; }
  .photo-gallery .gallery-stage { height: auto; aspect-ratio: 16 / 10; }
  .photo-gallery .carousel-toolbar { bottom: 18px; }
  .carousel-toolbar { gap: 8px; }
  .carousel-dots { gap: 2px; }
}

/* 悬停反馈只作用于可操作内容，保持原有栏目布局。 */
.topic-home { --hover-lift: -8px; --hover-zoom: 1.045; --hover-nudge: 5px; --hover-control-scale: 1.08; }
.more-link { text-underline-offset: 5px; }
.media-title { padding: 3px 0; }
@media (prefers-reduced-motion: no-preference) {
  .news-card { transition: transform .28s ease, box-shadow .28s ease; }
  .gallery-slide > img, .card-image img, .gallery-thumb img { transition: transform .45s ease, filter .3s ease; }
  .gallery-caption { transition: background-color .25s ease; }
  .gallery-thumb { transition: border-color .2s ease, box-shadow .2s ease; }
  .thumb-control, .photo-control { transition: scale .2s ease, filter .2s ease; }
  .carousel-dot::after { transition: transform .2s ease, background-color .2s ease; }
  .card-copy h3, .more-link { transition: color .2s ease; }
  .card-arrow, .more-arrows, .media-title { transition: transform .25s ease, color .2s ease; }
  .media-item { transition: background-color .25s ease, box-shadow .25s ease; }
}
@media (hover: hover) and (pointer: fine) {
  .news-card:hover, .news-card:focus-visible { transform: translateY(var(--hover-lift)); box-shadow: 0 18px 30px #17658129; }
  .news-card:hover .card-image img, .news-card:focus-visible .card-image img,
  .gallery-slide:hover > img, .gallery-slide:focus-visible > img { transform: scale(var(--hover-zoom)); }
  .news-card:hover h3, .news-card:focus-visible h3 { color: #086d94; }
  .news-card:hover .card-arrow, .news-card:focus-visible .card-arrow { transform: translateX(var(--hover-nudge)); }
  .gallery-slide:hover .gallery-caption, .gallery-slide:focus-visible .gallery-caption { color: #fff; background-color: #003c5640; }
  .gallery-thumb:hover, .gallery-thumb:focus-visible { border-color: #19c6da; box-shadow: inset 0 0 0 1px #087d9e; }
  .gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(var(--hover-zoom)); filter: brightness(1.06); }
  .thumb-control:hover, .thumb-control:focus-visible,
  .photo-control:hover, .photo-control:focus-visible { scale: var(--hover-control-scale); filter: brightness(1.12) drop-shadow(0 3px 5px #147e9b33); }
  .carousel-dot:hover::after, .carousel-dot:focus-visible::after { background-color: #087d9e; transform: scale(1.25); }
  .media-item:hover, .media-item:focus-visible { color: #087d9e; background-color: #eaf7fb; box-shadow: inset 3px 0 #1ebfd2; }
  .media-item:hover .media-title, .media-item:focus-visible .media-title { transform: translateX(var(--hover-nudge)); }
  .more-link:hover, .more-link:focus-visible { text-decoration: underline; }
  .more-link:hover .more-arrows, .more-link:focus-visible .more-arrows { transform: translateX(var(--hover-nudge)); }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready > .switch-layer { transition: none; }
  .topic-home { --hover-lift: 0px; --hover-zoom: 1; --hover-nudge: 0px; --hover-control-scale: 1; }
  .carousel-dot:hover::after, .carousel-dot:focus-visible::after { transform: none; }
}
