/* Responsive refinements: loaded last so it can safely override page-specific styles. */
:root { --page-pad: clamp(20px, 3vw, 42px); }
/* overflow-x:hidden 会让 body 成为滚动容器、页面内所有 position:sticky 失效
   （产品分类页筛选悬浮等）。clip 同样裁掉水平溢出但不产生滚动容器；
   不支持 clip 的旧浏览器回退到 hidden（维持原状）。 */
html, body { overflow-x: hidden; overflow-x: clip; }
.product-filters { max-width: none; margin: 0; padding: 0 max(20px, calc((100vw - 1160px) / 2)); background: #fff; border-bottom: 1px solid #e0e5df; }
.product-filter-row { display: flex; gap: 24px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #edf0ed; }
.product-filter-row:last-child { border-bottom: 0; }
.product-filter-row > strong { flex: 0 0 74px; color: #263b36; font-size: 14px; font-weight: 500; line-height: 32px; }
.product-filter-scroller { position: relative; flex: 1 1 auto; min-width: 0; }
.product-filter-options { display: flex; flex-wrap: nowrap; gap: 5px 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.product-filter-options::-webkit-scrollbar { display: none; }
.product-filter-scroller.has-overflow .product-filter-options { padding-right: 38px; }
.product-filter-options a { flex: 0 0 auto; padding: 5px 13px; color: #76817b; font-size: 13px; white-space: nowrap; border-radius: 2px; }
.product-filter-options a:hover, .product-filter-options a.is-active { color: #fff; background: #b27a43; }
.product-filter-options a.is-clearable::after { content: '\00d7'; display: inline-block; margin-left: 7px; font-size: 16px; font-weight: 300; line-height: .8; vertical-align: -1px; }
.product-filter-pager { position: absolute; top: 0; z-index: 1; display: none; width: 30px; height: 32px; padding: 0; border: 0; color: #52635d; background: #fff; cursor: pointer; font-size: 25px; line-height: 28px; transition: color .2s, opacity .2s; }
.product-filter-scroller.has-overflow .product-filter-pager { display: block; }
.product-filter-pager--prev { left: 0; box-shadow: 10px 0 11px #fff; }
.product-filter-pager--next { right: 0; box-shadow: -10px 0 11px #fff; }
.product-filter-pager:hover { color: #b27a43; }
.product-filter-pager.is-hidden { opacity: 0; pointer-events: none; }
/* Product filters: keep labels aligned and pager controls inside the scroller. */
.category-page--product .product-filter-row { display: flex; align-items: flex-start; gap: 24px; }
.category-page--product .product-filter-row > strong { flex: 0 0 92px; line-height: 32px; }
.category-page--product .product-filter-scroller { height: 32px; min-height: 32px; }
.category-page--product .product-filter-options { height: 32px; }
.category-page--product .product-filter-options a { padding: 5px 13px; line-height: 22px; }
.category-page--product .product-filter-pager { top: 0; height: 32px; }
.category-page--product .product-filter-row > strong { flex-basis: 96px; min-width: 96px; font-family: var(--font-sans, Arial, sans-serif); font-size: 14px; font-weight: 500; }
.category-page--product .product-filter-scroller { position: relative; overflow: visible; }
.category-page--product .product-filter-scroller.has-overflow .product-filter-pager { display: block; }
.category-page--product .product-filter-pager--prev { left: 0; }
.category-page--product .product-filter-pager--next { right: 0; }
.category-banner--custom-bg { background-position: center; background-repeat: no-repeat; background-size: cover; }
.material-page .material-page__banner.category-banner--custom-bg { background-image: var(--material-banner-image) !important; }
/* Hero uses a horizontal track so slide changes move smoothly instead of flashing. */
.hero__slides { display: flex; transform: translateX(0); transition: transform .75s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.hero__slide { position: relative; inset: auto; flex: 0 0 100%; opacity: 1; visibility: visible; transform: none; transition: none; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
/* Layered case cards must not resize beneath the pointer. A scale change on
   hover can move the hit area and repeatedly fire mouseenter/mouseleave near
   the card edge, which appears as a flashing image. */
.project-carousel--layered .project-card:hover { transform: none; }
.project-carousel--layered .project-card:nth-child(n+4) { transform: scale(.84); }
.project-carousel--layered .project-card:nth-child(n+4):hover { transform: scale(.84); }
.project-carousel--layered.is-looped .project-card:nth-child(2),
.project-carousel--layered.is-looped .project-card:nth-child(3),
.project-carousel--layered.is-looped .project-card:nth-child(4) { transform: none !important; opacity: 1; filter: none; }
.project-carousel--layered.is-looped .project-card:nth-child(n+5) { transform: scale(.84); }
.project-carousel--layered.is-looped .project-card { opacity: .4; transform: scale(.84) !important; filter: saturate(.7); }
.project-carousel--layered.is-looped .project-card.is-carousel-active { opacity: 1; transform: none !important; filter: none; }
.project-carousel--layered.is-looped .project-card.is-carousel-hidden { display: none; pointer-events: none; }
.project-carousel--layered.is-looped .project-card.is-carousel-side { display: block; opacity: .4; transform: scale(.84) !important; filter: saturate(.7); }
.project-carousel--layered.is-looped .project-card.is-carousel-active { display: block; opacity: 1; transform: none !important; filter: none; }
.project-carousel--layered .project-card img,
.project-carousel--layered .project-card:hover img { transform: none; }
.project-carousel--layered { position: relative; }
.project-carousel--layered.is-looped .project-track { /* A side card still occupies a full flex slot. Shift that slot outside the central viewport so the three active cards stay perfectly aligned. */ transform: translateX(calc((-100% - 22px) / 3)) !important; }
.carousel-arrow--side { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 42px; height: 52px; border-color: #d8dfda; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px #20352b18; }
.carousel-arrow--side:hover { transform: translateY(-50%); }
.carousel-arrow--prev { left: -56px; }
.carousel-arrow--next { right: -56px; }
/* Keep images, embedded media and tables inside article columns at every size. */
.markdown img, .article-content img { height: auto; }
.markdown iframe, .article-content iframe { max-width: 100%; }
.markdown table, .article-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-menu a, .menu-toggle, .carousel-arrow, .back-top { -webkit-tap-highlight-color: transparent; }
@media (min-width: 1440px) {
  :root { --max: 1320px; }
  .site-header__inner { max-width: 1320px; }
  .section { padding-left: 40px; padding-right: 40px; }
  .project-carousel--layered { width: 84%; }
  .project-carousel--layered .project-card { height: 300px; }
}
@media (min-width: 901px) and (max-width: 1120px) {
  .site-header__inner { gap: 22px; padding: 0 24px; }
  .brand img { width: 160px; }
  .site-menu > ul { gap: 18px; }
  .header-phone { padding-left: 18px; }
  .section { padding-left: 24px; padding-right: 24px; }
  .project-carousel--layered { width: 88%; }
}
@media (max-width: 900px) {
  body { overflow-x: hidden; overflow-x: clip; }
  .site-header { background: rgba(29, 41, 41, .96); box-shadow: 0 4px 18px #0002; }
  .site-header__inner { gap: 14px; }
  .brand img { width: min(160px, 46vw); }
  .menu-toggle { padding: 10px 4px 10px 10px; cursor: pointer; }
  .menu-toggle i { transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-menu { overflow-y: auto; overscroll-behavior: contain; }
  .site-menu > ul > li { border-bottom: 1px solid #ffffff18; }
  .site-menu > ul > li:last-child { border-bottom: 0; }
  .site-menu > ul > li > a { min-height: 45px; display: flex; align-items: center; justify-content: space-between; }
  .site-menu > ul > li > a:after { display: none; }
  .has-children.is-submenu-open .sub-menu { display: block; }
  .has-children:hover .sub-menu, .has-children:focus-within .sub-menu { display: none; }
  .has-children.is-submenu-open:hover .sub-menu, .has-children.is-submenu-open:focus-within .sub-menu { display: block; }
  .sub-menu { margin: 0 0 10px; border-left: 2px solid var(--accent); }
  .sub-menu a { min-height: 40px; display: flex; align-items: center; }
  /* The hero is image-only. Keep the source image fully visible on narrow
       screens instead of enlarging it into a cropped full-height panel. */
  .hero { min-height: 0; height: auto; aspect-ratio: 16 / 9; background: #111c1b; }
  .hero__slides,
    .hero__slide { height: 100%; }
  .hero__slide { background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #111c1b; }
  .section { padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .section__head { margin-bottom: 32px; }
  .section__head--center .carousel-actions { gap: 8px; }
  .project-carousel--layered { width: 92%; }
  .project-carousel--layered.is-looped .project-track { transform: translateX(calc((-100% - 22px) / 2)) !important; }
  .carousel-arrow--prev { left: 5px; }
  .carousel-arrow--next { right: 5px; }
  .category-content { padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .category-banner { padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .detail-page--product { padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .detail-page--article-simple { padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .footer__top { padding-bottom: 38px; }
}
@media (min-width: 561px) and (max-width: 767px) {
  .project-carousel--layered .project-card { height: 250px; }
  .category-card { height: 250px; }
  .about__image { height: 380px; }
}
@media (max-width: 560px) {
  :root { --page-pad: 16px; }
  body { font-size: 15px; }
  .site-header__inner { height: 64px; padding: 0 16px; }
  .brand img { width: min(142px, 55vw); }
  .site-menu { top: 64px; }
  .site-menu.is-open { max-height: calc(100svh - 64px); padding: 8px 16px 16px; }
  .hero { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .eyebrow { font-size: 10px; letter-spacing: .18em; }
  .btn { padding: 11px 17px; gap: 16px; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .section--case, .section--collections, .section--news { padding-top: 58px; padding-bottom: 58px; }
  .section__head--center h2 { font-size: clamp(29px, 9vw, 40px); }
  .section__head--center .carousel-actions { margin-top: 14px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .project-carousel--layered { width: 100%; }
  .project-carousel--layered.is-looped .project-track { transform: translateX(calc(-100% - 22px)) !important; }
  .carousel-arrow--side { width: 34px; height: 42px; background: rgba(32, 44, 44, .72); color: #fff; border-color: transparent; }
  .carousel-arrow--prev { left: 5px; }
  .carousel-arrow--next { right: 5px; }
  .project-carousel--layered .project-card, .project-carousel .project-card { height: 225px; }
  .project-carousel--layered .project-card:nth-child(n+4) { opacity: 1; transform: none; filter: none; }
  .project-card__meta { left: 17px; right: 17px; bottom: 15px; }
  .project-card__meta strong { font-size: 18px; }
  .category-card { height: 220px; }
  .category-card span { left: 16px; bottom: 14px; }
  .about__image { height: 245px; }
  .section--about .about__content, .about__content { padding: 52px 22px; }
  .about__content > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; }
  .news-item { padding: 18px 0; }
  .site-footer { padding: 46px 20px 18px; }
  .brand--footer img { width: 155px; }
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .category-page { padding-top: 64px; }
  .category-tabs { top: 64px; }
  .category-banner { padding-top: 46px; padding-bottom: 45px; }
  .category-banner h1 { font-size: 34px; }
  .category-tabs__inner { padding: 10px 16px; gap: 4px; }
  .product-filters { padding-left: 16px; padding-right: 16px; }
  .category-tabs a { padding: 7px 12px; font-size: 13px; }
  .category-content { padding-top: 40px; padding-bottom: 58px; }
  .product-filter-row { display: block; padding: 12px 0; }
  .product-filter-row > strong { display: block; line-height: 26px; margin-bottom: 5px; }
  .product-filter-options { gap: 4px; }
  .product-filter-options a { padding: 5px 10px; font-size: 12px; }
  .category-pagination { padding-top: 32px; white-space: nowrap; overflow-x: auto; }
  .detail-page { padding-top: 64px; }
  .product-full-content .markdown { font-size: 16px; line-height: 2; }
  .detail-page--product { padding-top: 82px; padding-bottom: 55px; }
  .product-breadcrumb { margin-bottom: 16px; font-size: 12px; gap: 7px; }
  .product-intro__cover { aspect-ratio: 4 / 3; }
  .product-intro__info h1 { font-size: 30px; margin-bottom: 18px; }
  .product-specs > div { grid-template-columns: 68px minmax(0, 1fr); padding: 11px 0; gap: 10px; font-size: 14px; }
  .product-full-content__head { margin-bottom: 25px; }
  .product-full-content__head h2 { font-size: 30px; }
  .product-full-content .markdown { padding: 24px 16px; }
  .detail-page--article-simple { padding-top: 82px; padding-bottom: 48px; }
  .article-simple-breadcrumb { overflow-x: auto; white-space: nowrap; font-size: 13px; }
  .article-simple-content h1 { font-size: 25px; }
  .article-simple-meta { gap: 9px; flex-wrap: wrap; }
  .article-simple-content .markdown { font-size: 16px; line-height: 2; }
  .article-simple-content .markdown h2 { font-size: 22px; }
  .article-simple-content .markdown h3 { font-size: 19px; }
}
@media (max-width: 374px) {
  .brand img { width: 125px; }
  .hero { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .section__head--center h2 { font-size: 28px; }
  .project-carousel--layered .project-card, .project-carousel .project-card { height: 205px; }
  .article-simple-meta { font-size: 10px; }
}
/* Footer: contact information on the left and visual platform links on the right. */
.site-footer .footer__top { align-items: flex-start; gap: clamp(42px, 8vw, 140px); padding-bottom: 42px; }
.footer-company { min-width: min(100%, 420px); }
.footer-company .brand--footer { min-width: 0; }
.footer-company__details { display: grid; gap: 8px; margin-top: 22px; }
.footer-company__details p { max-width: none; margin: 0; color: #aeb8b2; font-size: 14px; }
.footer-company__details a { color: #e5b887; }
.footer-tools { display: flex; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; gap: clamp(16px, 2.8vw, 42px); margin: 0 0 0 auto; }
.footer-tool { display: block; width: min(128px, 10vw); height: auto; background: transparent; transform: none; }
.footer-tool:hover { background: transparent; transform: translateY(-3px); }
@media (max-width: 1050px) {
  .site-footer .footer__top { gap: 32px; }
  .footer-tools { flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
  .footer-tool { display: grid; width: 38px; height: 38px; place-items: center; }
  .footer-tool:hover { background: #ffffff18; transform: translateY(-2px); }
}
@media (max-width: 720px) {
  .site-footer .footer__top { flex-direction: column; gap: 28px; }
  .footer-tools { width: 100%; justify-content: flex-start; margin-left: 0; }
}
