/* =========================================================
   A DECOR INC — STYLE
   Light corporate look: white / sky blue / navy / signal red
========================================================= */

:root {
    --navy: #0f2a5c;
    --navy-2: #163a7a;
    --navy-deep: #0a1f45;
    --red: #d71920;
    --red-dark: #b3121a;
    --sky: #eaf2fc;
    --sky-2: #f5f9fe;
    --line: #dde6f2;
    --text: #3a4a66;
    --muted: #6b7a94;
    --white: #ffffff;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 42, 92, .06);
    --shadow: 0 10px 30px rgba(15, 42, 92, .10);
    --shadow-lg: 0 20px 50px rgba(15, 42, 92, .16);

    --header-h: 84px;
    --container: 1200px;
    --gutter: 24px;

    --font-head: "Manrope", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 支持的浏览器用 clip：一样防止左右滑动，但不会干扰 iPhone 的滑动定位和固定 header */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body.menu-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}

p {
    margin: 0 0 1em;
}

address {
    font-style: normal;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.icon-flip {
    transform: scaleX(-1);
}

:focus-visible {
    outline: 3px solid rgba(215, 25, 32, .45);
    outline-offset: 3px;
}


/* =========================================================
   BUTTONS & LABELS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
}

.button .icon {
    transition: transform .2s;
}

.button:hover .icon {
    transform: translateX(3px);
}

.button-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(215, 25, 32, .25);
}

.button-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.button-outline {
    background: rgba(255, 255, 255, .7);
    color: var(--navy);
    border-color: var(--navy);
}

.button-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.button-ghost {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--navy);
    border-color: var(--navy);
    background: transparent;
}

.button-ghost:hover {
    background: var(--navy);
    color: var(--white);
}

.button-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
}

.button-outline-light:hover {
    background: var(--white);
    color: var(--navy);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}

.section-label::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--red);
    flex-shrink: 0;
}

.section-label.light {
    color: #ffb3b6;
}

.section h2,
.split-text h2,
.capabilities-section h2,
.belief-section h2,
.contact-section h2 {
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

h2 span {
    display: block;
}

.section {
    padding: 96px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 44px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head > p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: box-shadow .25s;
}

.header.is-scrolled {
    box-shadow: 0 4px 20px rgba(15, 42, 92, .10);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 28px;
    border-right: 1px solid var(--line);
    flex-shrink: 0;
}

.logo img {
    height: 58px;
    width: auto;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.navigation > a,
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    transition: color .2s;
}

.navigation > a::after,
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .25s;
}

.navigation > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--red);
}

.navigation > a.is-active::after,
.nav-dropdown-toggle.is-active::after {
    transform: scaleX(1);
}

/* 只在手机 / 平板菜单出现的链接（电脑版导航不显示） */
.nav-mobile-only {
    display: none !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.nav-dropdown-menu a:hover {
    background: var(--sky);
    color: var(--red);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 6px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(215, 25, 32, .25);
    transition: background .2s;
}

.nav-button:hover {
    background: var(--red-dark);
}

.nav-button .icon {
    width: 18px;
    height: 18px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .25s, opacity .25s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: clamp(580px, calc(100vh - var(--header-h)), 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #cfe3fa 0%, #eef5fd 100%);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.hero-slide.is-active .hero-media {
    animation: heroZoom 9s ease-out both;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* 视频上面的半透明浅色层：数字越大 = 视频越淡、文字越清楚（0 ~ 1） */
.hero {
    --hero-veil-text: .94;   /* 文字那一边（左） */
    --hero-veil-mid: .72;    /* 中间 */
    --hero-veil-video: .30;  /* 视频那一边（右），整段视频都带一点透明 */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(244, 249, 255, var(--hero-veil-text)) 0%,
            rgba(244, 249, 255, var(--hero-veil-text)) 28%,
            rgba(244, 249, 255, var(--hero-veil-mid)) 48%,
            rgba(244, 249, 255, var(--hero-veil-video)) 70%,
            rgba(244, 249, 255, var(--hero-veil-video)) 100%),
        linear-gradient(0deg, rgba(10, 31, 69, .18) 0%, rgba(10, 31, 69, 0) 25%);
}

/* 视频稍微降低饱和度，和网站的蓝白色调比较搭 */
video.hero-media {
    filter: saturate(.85);
    opacity: 0;
    transition: opacity .8s ease;
}

/* 视频载入好之后淡入（载入前只显示浅蓝色背景） */
video.hero-media.is-ready {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 110px;
}

.hero-text {
    max-width: 620px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
}

.eyebrow::before {
    content: "";
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--red);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(36px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    margin-bottom: 22px;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero-text > p {
    max-width: 540px;
    font-size: 18px;
    color: #24365a;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.hero-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 600px;
}

.hero-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-steps span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 13px;
    color: var(--red);
    line-height: 1.6;
}

.hero-steps strong {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hero-steps small {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}

.hero-dots[hidden] {
    display: none !important;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 84px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 30px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 1px 4px rgba(15, 42, 92, .25);
    cursor: pointer;
    transition: width .3s, background .3s;
}

.hero-dots button.is-active {
    width: 44px;
    background: var(--red);
}

.hero-play {
    position: absolute;
    right: max(var(--gutter), calc((100vw - var(--container)) / 2));
    bottom: 70px;
    z-index: 3;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9);
    background: rgba(10, 31, 69, .45);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .2s;
}

.hero-play:hover {
    background: var(--red);
}

.hero-play .icon-play,
.hero-play.is-paused .icon-pause {
    display: none;
}

.hero-play.is-paused .icon-play {
    display: block;
}


/* =========================================================
   TRUST BAR
========================================================= */

.trust-bar {
    position: relative;
    z-index: 5;
    margin-top: -52px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    width: calc(100% - var(--gutter) * 2);
    max-width: var(--container);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item > .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--red);
}

.trust-item strong {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: .02em;
}

.trust-item span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}


/* =========================================================
   SPLIT SECTIONS (About / Cat Ladders) — 斜切图片
========================================================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
    background: linear-gradient(100deg, var(--sky-2) 0%, var(--sky) 100%);
    overflow: hidden;
}

.split-text {
    padding: 80px 56px 80px max(var(--gutter), calc((100vw - var(--container)) / 2));
    max-width: calc(var(--container) / 2 + (100vw - var(--container)) / 2);
}

.split-text p {
    color: var(--text);
}

.split-text h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 28px 0 12px;
}

.split-text .button {
    margin-top: 12px;
}

.split-media {
    position: relative;
    min-height: 460px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    background: #c9dcf3;
}

.split-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(234, 242, 252, .35) 0%, rgba(234, 242, 252, 0) 30%);
}

.split-reverse {
    margin-top: 0;
    background: linear-gradient(260deg, var(--sky-2) 0%, var(--sky) 100%);
}

.split-reverse .split-media {
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.split-reverse .split-text {
    padding: 80px max(var(--gutter), calc((100vw - var(--container)) / 2)) 80px 56px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: grid;
    gap: 10px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-list .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
}

.check-list strong {
    color: var(--navy);
}


/* =========================================================
   PRODUCTS
========================================================= */

.products-section {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    aspect-ratio: 4 / 3;
}

.product-card:hover .fit-frame img {
    transform: scale(1.03);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.product-info small {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-info h3 a {
    display: inline;
}

.product-info h3 .icon {
    display: inline-block;
    vertical-align: -3px;
    margin-left: 4px;
    color: var(--red);
    transition: transform .2s;
}

.product-card:hover h3 .icon {
    transform: translateX(4px);
}

.product-info p {
    font-size: 15px;
    color: var(--text);
    flex: 1;
}

.card-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--red);
}

.card-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   照片统一大小（fit-frame）
   所有卡片照片同一个比例（4:3），照片完整显示不裁切，
   空出来的位置用同一张照片模糊垫底（由 JavaScript 设定 --bg）
========================================================= */

.fit-frame {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe8f3;
}

/* 照片直接填满整个框，不再有模糊边 */
.fit-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}


/* =========================================================
   CAPABILITIES (Why custom ladder) — 左字右图
========================================================= */

.capabilities-section {
    position: relative;
    padding: 96px 0;
    background: var(--sky-2);
    overflow: hidden;
}

.capabilities-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    background: linear-gradient(160deg, #dbe9fa 0%, var(--sky) 100%);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.capabilities-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: center;
}

.capabilities-intro p {
    font-size: 17px;
}

.capabilities-intro .button {
    margin-top: 8px;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cap-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.cap-card:hover {
    border-bottom-color: var(--red);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* 右上角淡色编号 */
.cap-card::after {
    content: attr(data-num);
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--sky);
}

.cap-body {
    padding: 28px 26px 26px;
}

.cap-body h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* 图标放在圆圈里 */
.cap-body h3 .icon {
    width: 52px;
    height: 52px;
    padding: 13px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
}

.cap-body p {
    margin: 0;
    font-size: 14.5px;
}


/* =========================================================
   MATERIALS — 照片卡片
========================================================= */

.materials-section {
    background: var(--white);
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.material-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-2) 100%);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

/* 滑鼠移上去时顶部出现红线 */
.material-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.material-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.material-item:hover::before {
    transform: scaleX(1);
}

.material-body {
    position: relative;
    padding: 34px 30px 30px;
}

.material-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    margin-bottom: 20px;
}

.material-icon .icon {
    width: 26px;
    height: 26px;
}

.material-body > strong {
    position: absolute;
    top: 28px;
    right: 28px;
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--red);
}

.material-item h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.material-item p {
    margin: 0;
    font-size: 15px;
}


/* =========================================================
   PROJECTS — 按类别筛选
========================================================= */

.projects-section {
    background: var(--sky-2);
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.project-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.project-tab span {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--sky);
    font-size: 12px;
    color: var(--navy);
    text-align: center;
}

.project-tab:hover {
    border-color: var(--navy);
}

.project-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.project-tab.is-active span {
    background: var(--red);
    color: var(--white);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
    animation: projectIn .35s ease both;
}

.project-card[hidden] {
    display: none;
}

@keyframes projectIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.project-card:hover .fit-frame img {
    transform: scale(1.03);
}

/* 项目照片框：竖的 3:4，竖照片整幅显示、几乎占满；点了可以放大 */
/* 项目照片框 3:5，接近手机竖照片（9:16），照片填满、几乎不裁切 */
.project-card .fit-frame {
    aspect-ratio: 3 / 5;
    cursor: zoom-in;
}

.project-card .fit-frame::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 31, 69, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat;
    opacity: .85;
    transition: opacity .2s, transform .2s;
}

.project-card .fit-frame:hover::after {
    opacity: 1;
    transform: scale(1.08);
}

.project-card-body {
    flex: 1;
    padding: 18px 22px 22px;
    border-top: 3px solid var(--red);
}

.project-cat {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}

.project-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.project-card p {
    margin: 0;
    font-size: 14.5px;
}

.project-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.project-more-wrap:has(.project-more[hidden]) {
    display: none;
}

.project-more[hidden] {
    display: none;
}

/* 打开时箭头朝上 */
.project-more .icon {
    transition: transform .25s;
}

.project-more.is-open .icon {
    transform: rotate(180deg);
}

.project-more:hover .icon {
    transform: none;
}

.project-more.is-open:hover .icon {
    transform: rotate(180deg);
}

.project-empty {
    margin: 0;
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
}


/* =========================================================
   LIGHTBOX：项目照片放大，整幅显示
========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 72px;
    background: rgba(6, 16, 38, .92);
    animation: lbIn .2s ease;
}

.lightbox[hidden] {
    display: none;
}

@keyframes lbIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100% - 48px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
}

.lightbox-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: var(--white);
    cursor: pointer;
    transition: background .2s;
}

.lightbox-btn:hover {
    background: var(--red);
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-close .icon {
    transform: rotate(45deg);
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
    display: none;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 70px 12px 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .lightbox-figure img {
        max-height: calc(100% - 90px);
    }
}


/* =========================================================
   CORPORATE BELIEF — 左字右图
========================================================= */

.belief-section {
    position: relative;
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    overflow: hidden;
}

.belief-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--red);
    z-index: 2;
}

.belief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.belief-content {
    padding: 88px 56px 88px max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.belief-section h2 {
    color: var(--white);
}

.belief-section h2 span {
    color: #9fc3f5;
}

.belief-text {
    padding-left: 26px;
    border-left: 3px solid var(--red);
}

.belief-text p {
    font-size: 16.5px;
}

.belief-text p:last-child {
    margin-bottom: 0;
}

.belief-media {
    position: relative;
    min-height: 420px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    background: var(--navy-2);
}

.belief-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.belief-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 42, 92, .45) 0%, rgba(15, 42, 92, 0) 40%);
}


/* =========================================================
   CERTIFICATIONS
========================================================= */

.certifications-section {
    background: var(--white);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-card {
    padding: 18px 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}

.cert-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.cert-image {
    aspect-ratio: 3 / 4;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--sky-2);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cert-card h5 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    background: var(--sky-2);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.faq-intro .button {
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .25s, border-color .25s;
}

.faq-list details[open] {
    border-color: transparent;
    box-shadow: var(--shadow);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary .icon {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--red);
    transition: transform .25s, background .25s, color .25s;
}

.faq-list details[open] summary .icon {
    transform: rotate(45deg);
    background: var(--red);
    color: var(--white);
}

.faq-list details p {
    margin: 0;
    padding: 0 24px 22px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--white);
}

.contact-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: var(--container);
}

.contact-content {
    position: relative;
    padding: 56px 52px;
    background:
        linear-gradient(135deg, rgba(15, 42, 92, .96) 0%, rgba(22, 58, 122, .92) 100%),
        url("images/cat-ladder-safety-cage-rooftop-water-tank-singapore.webp") center / cover;
    color: rgba(255, 255, 255, .85);
}

.contact-content::after {
    content: "";
    position: absolute;
    left: 52px;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--red);
}

.contact-content h2 {
    color: var(--white);
}

.contact-content > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-details {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 44px 44px;
    background: var(--white);
}

.contact-row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sky);
    color: var(--red);
    flex-shrink: 0;
}

.contact-row small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-row a,
.contact-row p {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    word-break: break-word;
}

.contact-row a:hover {
    color: var(--red);
}

.social-media-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-row p {
    font-size: 14px;
    line-height: 1.55;
}

.location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* 地图按钮：图标 + 文字，不依赖图片文件 */
.location-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.location-links a:hover {
    border-color: transparent;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    color: var(--navy);
}

.loc-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
}

.loc-icon .icon {
    width: 16px;
    height: 16px;
}

.loc-gmaps {
    background: #EA4335;   /* Google Maps 红 */
}

.loc-waze {
    background: #33CCFF;   /* Waze 蓝 */
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    border-top: 4px solid var(--red);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 40px 64px;
    padding-top: 64px;
    padding-bottom: 48px;
}

/* Logo 是深色字，放在白色圆角底上才看得清楚 */
.footer-logo {
    display: block;
    height: 72px;
    width: auto;
    padding: 10px 16px;
    margin-bottom: 18px;
    background: var(--white);
    border-radius: 10px;
}

.footer-brand p {
    margin: 0;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--white);
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-title::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--red);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, .78);
    transition: color .2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.footer-contact .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #ff6b70;
}

.footer-contact a {
    word-break: break-word;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
    transition: transform .2s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.whatsapp-float .icon {
    width: 28px;
    height: 28px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .logo {
        padding-right: 18px;
    }

    .navigation > a,
    .nav-dropdown-toggle {
        padding: 10px 8px;
        font-size: 14px;
    }

    .navigation > a::after,
    .nav-dropdown-toggle::after {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 1080px) {
    :root {
        --header-h: 72px;
    }

    .logo {
        border-right: 0;
        padding-right: 0;
        margin-right: auto;
    }

    .logo img {
        height: 48px;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 40px;
        background: var(--white);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }

    .navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* 菜单关起来时完全不能点，避免点到隐形的链接（之前跑位、跳回上面的原因） */
    .navigation:not(.active) {
        pointer-events: none;
    }

    .navigation > a,
    .nav-dropdown-toggle {
        padding: 16px 4px;
        font-size: 17px;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }

    .navigation > a::after,
    .nav-dropdown-toggle::after {
        left: 0;
        right: auto;
        width: 4px;
        top: 14px;
        bottom: 14px;
        height: auto;
        transform: scaleY(0);
    }

    .navigation > a.is-active,
    .nav-dropdown-toggle.is-active {
        padding-left: 16px;
        color: var(--red);
    }

    .navigation > a.is-active::after,
    .nav-dropdown-toggle.is-active::after {
        transform: scaleY(1);
    }

    .nav-dropdown-toggle .icon {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: inherit;   /* 跟着菜单一起隐藏，不能自己一直显示 */
        transform: none;
        border: 0;
        box-shadow: none;
        padding: 6px 0 10px 16px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-menu a {
        padding: 9px 12px;
        font-size: 15px;
    }

    .hero-steps {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid,
    .belief-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .capabilities-section::before {
        width: 100%;
        height: 45%;
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    }

    .faq-intro {
        position: static;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .section,
    .capabilities-section {
        padding: 72px 0;
    }

    /* 平板 / 手机：文字盖住整个画面，所以整片都要够淡 */
    .hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(244, 249, 255, var(--hero-veil-text)) 0%,
                rgba(244, 249, 255, .82) 60%,
                rgba(244, 249, 255, .55) 100%);
    }

    .split-section {
        grid-template-columns: 1fr;
        margin-top: 64px;
    }

    .split-text,
    .split-reverse .split-text {
        max-width: none;
        padding: 56px var(--gutter);
    }

    .split-media,
    .split-reverse .split-media {
        min-height: 300px;
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    }

    .split-reverse .split-media {
        order: 2;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .materials-list {
        grid-template-columns: 1fr;
    }

    .belief-text {
        padding-left: 22px;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 48px;
        padding-bottom: 120px;
    }

    .eyebrow {
        font-size: 12px;
        gap: 10px;
    }

    .eyebrow::before {
        width: 28px;
    }

    .hero-text > p {
        font-size: 16px;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-dots {
        left: var(--gutter);
        transform: none;
        bottom: 84px;
    }

    .hero-play {
        width: 44px;
        height: 44px;
        bottom: 72px;
    }

    .trust-bar {
        margin-top: -44px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 16px 18px;
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .products-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .cert-card {
        padding: 12px 12px 16px;
    }

    .cert-card h3 {
        font-size: 15px;
    }




    .faq-list summary {
        padding: 18px;
        font-size: 16px;
    }

    .faq-list details p {
        padding: 0 18px 18px;
    }

    .contact-content {
        padding: 44px 22px;
    }

    .contact-content::after {
        left: 22px;
    }

    .contact-buttons .button {
        width: 100%;
    }

    .contact-details {
        padding: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
}

/* =========================================================
   MOBILE LAYOUT（≤ 900px）
   封面和电脑版一样：视频铺满整个封面当背景，字叠在视频上面。
========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height: calc(100svh - var(--header-h));
        max-height: 820px;
    }

    /* 视频铺满封面；主体（画面右侧）尽量留在屏幕里 */
    .hero-media {
        object-fit: cover;
        object-position: 65% center;
    }

    .hero-slide.is-active .hero-media {
        animation: none;
    }

    /* 半透明浅色层：上面（标题、段落）比较浓，下面（按钮）比较淡，让视频透出来 */
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(244, 249, 255, .90) 0%,
            rgba(244, 249, 255, .82) 45%,
            rgba(244, 249, 255, .55) 75%,
            rgba(244, 249, 255, .25) 100%);
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 96px;
    }

    .hero-play {
        right: max(var(--gutter), 16px);
        bottom: 72px;
        width: 42px;
        height: 42px;
    }

    .contact-card {
        width: calc(100% - var(--gutter) * 2);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {

    .hero-content {
        padding-top: 32px;
    }

    .hero h1 {
        font-size: 34px;
    }

    /* 暂停按钮放左下角，避开右下角的 WhatsApp 按钮 */
    .hero-play {
        left: var(--gutter);
        right: auto;
    }

    .hero-text > p {
        margin-bottom: 24px;
    }

    .hero-buttons {
        margin-bottom: 0;
        gap: 10px;
    }

    /* Footer：全部置中，整齐分区 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 44px;
        padding-bottom: 8px;
        text-align: center;
    }

    .footer-brand {
        padding-bottom: 28px;
    }

    .footer-logo {
        margin: 0 auto 14px;
        height: 64px;
    }

    .footer-col {
        padding: 26px 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .footer-title {
        justify-content: center;
    }

    .footer-title::before {
        display: none;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 12px;
    }

    .footer-contact {
        justify-items: center;
    }

    .footer-contact li {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-bottom {
        text-align: center;
        /* 留位置给右下角的 WhatsApp 按钮，不会挡到字 */
        padding: 18px 0 88px;
    }
}


/* =========================================================
   新版块的响应式（Capabilities / Materials / Projects / Belief）
========================================================= */

@media (max-width: 1080px) {

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .belief-grid {
        grid-template-columns: 1fr;
    }

    .belief-content {
        padding: 72px var(--gutter) 56px;
    }

    .belief-media {
        min-height: 320px;
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }
}

@media (max-width: 900px) {

    .materials-list {
        grid-template-columns: 1fr;
    }

    /* 手机封面照片：让右边的主体留在画面里 */
    .hero-media {
        object-position: 72% center;
    }
}

@media (max-width: 640px) {

    .cap-grid {
        grid-template-columns: 1fr;
    }

    /* 手机：项目改成"左图右字"列表，一个屏幕看得到 3 个，整齐不挤 */
    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card {
        flex-direction: row;
        align-items: stretch;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card .fit-frame {
        flex: 0 0 38%;
        aspect-ratio: 3 / 5;
    }

    .project-card .fit-frame::after {
        right: 8px;
        bottom: 8px;
        width: 30px;
        height: 30px;
        background-size: 17px;
    }

    .project-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 16px 16px 16px 18px;
        border-top: 0;
        border-left: 3px solid var(--red);
    }

    .project-cat {
        font-size: 10.5px;
    }

    .project-card h3 {
        font-size: 17px;
    }

    .project-card p {
        font-size: 14px;
        line-height: 1.55;
    }

    /* 类别按钮：手机上排成 2 栏（3 行 × 2 个），全部一次看得到，不用滑 */
    .project-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;   /* 每行按钮一样高 */
        gap: 8px;
        margin-bottom: 22px;
    }

    .project-tab {
        justify-content: space-between;
        gap: 6px;
        min-height: 46px;
        padding: 8px 10px 8px 14px;
        border-radius: 12px;
        font-size: 13.5px;
        line-height: 1.25;
        white-space: normal;
        text-align: left;
    }

    .project-tab span {
        flex-shrink: 0;
    }

    .belief-media {
        min-height: 260px;
    }
}


/* 手机：圆点置中，暂停按钮在左下角，按钮下面留空间，不会重叠 */
@media (max-width: 640px) {
    .hero-content {
        padding-bottom: 124px;
    }

    .hero-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 74px;
    }

    .hero-play {
        bottom: 58px;
    }
}


/* =========================================================
   BURGER 菜单尺寸（≤ 1080px）
   FAQ 出现在菜单里；footer 的 Quick Links 隐藏（链接都在菜单）
========================================================= */

@media (max-width: 1080px) {

    .navigation > a.nav-mobile-only {
        display: flex !important;
    }

    .footer-col-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 640px) {

    .footer-content {
        grid-template-columns: 1fr;
    }
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
