/* ===== Base ===== */
:root {
    --color-primary: #EE3124;
    --color-primary-dark: #C41E1E;
    --color-dark: #1A1A1A;
    --color-navy: #2D2D2D;
    --color-gray: #666666;
    --color-light-gray: #F5F5F5;
    --color-border: #E0E0E0;
    --color-white: #FFFFFF;
    --font-heading: 'Montserrat', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --max-width: 1440px;
    --header-height: 110px;
    --utility-height: 40px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-header p {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-dark:hover {
    background-color: #333;
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.link-arrow {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.2s;
}

.link-arrow:hover {
    color: var(--color-primary-dark);
}

/* ===== Header ===== */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

/* ===== Transparent Overlay Header (over hero) ===== */
.top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    transition: background 0.3s ease;
}

.top-overlay .site-header {
    background-color: transparent;
    border-bottom-color: rgba(255,255,255,0.28);
    box-shadow: none;
    position: static;
}

.top-overlay .utility-bar {
    background-color: var(--color-dark);
}

/* white text over hero */
.top-overlay .logo,
.top-overlay .logo .tm {
    color: var(--color-white);
}

.top-overlay .main-nav > ul > li > a {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.top-overlay .mobile-menu-toggle span {
    background-color: var(--color-white);
}

/* scrolled state: fixed solid */
.top-overlay.scrolled {
    position: fixed;
}

.top-overlay.scrolled .site-header {
    background-color: var(--color-white);
    border-bottom-color: var(--color-border);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* the dark indicator is invisible over the hero photo, so flip it to white */
.top-overlay .main-nav > ul > li:hover > a,
.top-overlay .main-nav > ul > li > a.active {
    border-bottom-color: var(--color-white);
}

.top-overlay.scrolled .logo,
.top-overlay.scrolled .logo .tm,
.top-overlay.scrolled .main-nav > ul > li > a {
    color: var(--color-dark);
    text-shadow: none;
}

.top-overlay.scrolled .main-nav > ul > li:hover > a,
.top-overlay.scrolled .main-nav > ul > li > a.active {
    border-bottom-color: var(--color-dark);
}

.top-overlay.scrolled .mobile-menu-toggle span {
    background-color: var(--color-dark);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Logo 图片：高度上限 65px，按比例缩放 */
.logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 65px;
}

/* 页头 Logo 双图切换：白底显示 logo，压在 hero 上的透明底显示 logo2 */
.logo .logo-img--on-dark {
    display: none;
}

.top-overlay:not(.scrolled) .logo .logo-img--on-dark {
    display: block;
}

.top-overlay:not(.scrolled) .logo .logo-img--on-light {
    display: none;
}

.logo strong {
    color: var(--color-primary);
}

.logo .tm {
    font-size: 0.7rem;
    vertical-align: super;
    color: var(--color-gray);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* ===== Header Search ===== */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-dark);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.search-toggle:hover,
.search-toggle.active {
    color: var(--color-primary);
    background-color: var(--color-light-gray);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 16px 30px rgba(0,0,0,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 3;
}

.search-panel.open {
    max-height: 200px;
}

.search-panel .container {
    padding-top: 18px;
    padding-bottom: 18px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid var(--color-border);
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-bottom-color: var(--color-primary);
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: none;
    outline: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
}

.search-form input::placeholder {
    color: var(--color-gray);
}

.search-form .search-submit {
    flex-shrink: 0;
}

/* search icon picks up the transparent hero header */
.top-overlay .search-toggle {
    color: var(--color-white);
}

.top-overlay .search-toggle:hover,
.top-overlay .search-toggle.active {
    color: var(--color-white);
    background-color: rgba(255,255,255,0.18);
}

.top-overlay.scrolled .search-toggle {
    color: var(--color-dark);
}

.top-overlay.scrolled .search-toggle:hover,
.top-overlay.scrolled .search-toggle.active {
    color: var(--color-primary);
    background-color: var(--color-light-gray);
}

/* ===== Utility Bar ===== */
.utility-bar {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    padding: 10px 0;
    letter-spacing: 0.2px;
}



.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-links a {
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
}

.utility-links a:hover {
    color: var(--color-white);
}

/* 顶栏电话 / 邮箱：15px 白色 */
.utility-links > a {
    color: var(--color-white);
    font-size: 15px;
}

.utility-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.utility-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-white);
    transition: color 0.2s, transform 0.2s;
}

.utility-social a:hover {
    color: var(--color-white);
    transform: translateY(-1px);
}

.utility-social svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ===== Main Nav ===== */
.main-nav {
    align-self: stretch;
    height: 100%;
}

.main-nav > ul {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 2px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-dark);
    text-transform: none;
    letter-spacing: 0.3px;
    padding: 16px 16px;
    display: block;
}

.main-nav > ul > li {
    display: flex;
}

/* let each top-level link fill the full header height, so the
   hover underline sits flush with the header's bottom border */
.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 2px solid transparent;
}

.main-nav > ul > li > a:hover {
    color: var(--color-primary);
}

/* slim neutral indicator instead of the heavy brand-red block */
.main-nav > ul > li:hover > a,
.main-nav > ul > li > a.active {
    border-bottom-color: var(--color-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    transition: all 0.3s ease;
}

/* ===== Desktop Dropdown Menu ===== */
.main-nav ul li {
    position: relative;
}

.has-dropdown {
    display: flex;
    align-items: stretch;
}

.dropdown-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    padding: 4px;
}

/* 箭头用内联 SVG 绘制，避免依赖字体字形（防止乱码方块） */
.dropdown-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background-color: var(--color-white);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    border-top: 3px solid var(--color-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 110;
    padding: 6px 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 11px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
    padding-left: 28px;
}

/* ===== Third-Level Flyout (desktop) ===== */
.dropdown .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* chevron hinting there is one more level behind this item
   （用边框绘制，不依赖字体字形，避免乱码方块） */
.dropdown .has-submenu > a::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: 14px;
    border-right: 2px solid var(--color-gray);
    border-bottom: 2px solid var(--color-gray);
    transform: rotate(-45deg);
    transition: border-color 0.2s ease, margin-left 0.2s ease;
}

.dropdown .has-submenu:hover > a::after,
.dropdown .has-submenu:focus-within > a::after {
    margin-left: 17px;
    border-color: var(--color-primary);
}

.submenu {
    position: absolute;
    /* -7px lifts the panel so its first item lines up with the parent label */
    top: -7px;
    left: 100%;
    min-width: 250px;
    padding: 6px 0;
    background-color: var(--color-white);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 120;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-dark);
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.submenu li a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
    padding-left: 28px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    width: 100%;
    /* 高度按图片本身比例（--hero-ar 由 PHP 按实际图片尺寸输出）随宽度自适应：
       图片满宽 + 保持原始高度；过高时整体不超过一屏 */
    height: auto;
    aspect-ratio: var(--hero-ar, 16 / 9);
    max-height: 100vh;
    overflow: hidden;
    background-color: #111;
}

.hero-slides {
    /* 绝对定位铺满横幅，避免百分比高度在某些情况下解析为 0 */
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 横幅图片：宽度恒为 100%（整幅满屏），高度按原图比例自适应；
   超过横幅高度（一屏）的部分由 .hero 的 overflow:hidden 裁掉 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
}

/* 文字可读性遮罩（原先是与图片一起写在 background-image 里的渐变） */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.42) 45%, rgba(8,8,8,0.05) 100%);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    /* same gutters as .container so hero copy lines up with the rest of the page */
    position: relative;
    z-index: 1;            /* 位于图片与遮罩之上 */
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--color-white);
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    padding-left: 54px;
    position: relative;
}

.hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--color-primary);
}

.hero-content h1 {
    font-family: var(--font-heading);
    /* scales with the viewport and tops out at 3.7rem, so it stays
       confident on large screens without the oversized 4.6rem block */
    font-size: clamp(2.6rem, 3.9vw, 3.7rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    max-width: 760px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 1.3rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
    max-width: 600px;
    margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-content .btn {
    padding: 18px 44px;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.16);
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.hero-prev { left: 28px; }
.hero-next { right: 28px; }

.hero-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.hero-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 52px;
    height: 5px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.hero-dot.active {
    background: var(--color-white);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-slide.active .hero-content {
    animation: fadeInUp 0.8s ease;
}

/* ===== Company Advantages (5 pillars) ===== */
.advantages {
    padding: 56px 0;
    background-color: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.advantage-card {
    padding: 34px 22px;
    background-color: var(--color-light-gray);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.advantage-card:hover {
    background-color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.advantage-card:hover .advantage-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.advantage-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-icon i {
    font-size: 26px;
    line-height: 1;
}

.advantage-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-gray);
}

/* ===== Why Choose the Brand ===== */
.brand-why {
    padding: 90px 0;
    background-color: var(--color-light-gray);
    border-bottom: 1px solid var(--color-border);
}

.brand-why-header {
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}

.brand-why-header h2 {
    position: relative;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-dark);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.brand-why-header h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--color-primary);
}

.brand-why-header p {
    color: var(--color-gray);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.brand-why-header .btn {
    margin-top: 12px;
}

.brand-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.brand-pillar {
    padding: 40px 30px;
    background-color: var(--color-white);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.1);
}

.brand-pillar h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.brand-pillar p {
    color: var(--color-gray);
    font-size: 0.98rem;
}

/* ===== Entry Cards (Four Business Grid) ===== */
.entry-cards {
    padding: 56px 0;
    background-color: var(--color-white);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.entry-card {
    display: block;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.entry-card:hover {
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}

.entry-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.entry-card:hover img {
    transform: scale(1.05);
}

.entry-overlay {
    padding: 22px 24px 26px;
    color: var(--color-dark);
}

.entry-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 4px;
    transition: color 0.2s;
}

.entry-card:hover .entry-overlay h3 {
    color: var(--color-primary);
}

.entry-overlay p {
    font-size: 0.88rem;
    color: var(--color-gray);
    margin-bottom: 12px;
}

/* ===== Product Categories ===== */
.product-categories {
    padding: 80px 0;
    background-color: var(--color-light-gray);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: block;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.category-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.category-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-media img {
    transform: scale(1.06);
}

.category-body {
    padding: 20px 22px 22px;
    text-align: center;
}

.category-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.category-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ===== Why Choose ===== */
.why-us {
    padding: 90px 0;
    background-color: var(--color-light-gray);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 没有右侧图片时占满整行，避免留出空白列 */
.why-us-grid--single {
    grid-template-columns: 1fr;
}

.why-us-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 24px;
    text-transform: uppercase;
    border-left: 6px solid var(--color-primary);
    padding-left: 20px;
}

.why-us-content p {
    color: var(--color-gray);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.why-us-image {
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Video Play Button Overlay ===== */
.brand-why-image {
    position: relative;
}

.brand-why-image.has-video img {
    transition: transform 0.35s ease;
}

.brand-why-image.has-video:hover img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.85);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 2;
}

.video-play-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    margin-left: 3px;
}

/* ===== Video Modal ===== */
.dm-video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dm-video-modal.open {
    display: flex;
}

.dm-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.dm-video-modal-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.dm-video-modal-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.dm-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.dm-video-close:hover {
    color: var(--color-primary);
}

/* ===== Distributor Banner ===== */
.distributor-banner {
    background: linear-gradient(rgba(26,26,26,0.88), rgba(26,26,26,0.88)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 64px 0;
    color: var(--color-white);
}

.distributor-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.distributor-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.distributor-banner p {
    opacity: 0.85;
    font-size: 1.1rem;
}

/* ===== About 底部富文本内容区 ===== */
.about-intro {
    padding: 80px 0;
    background-color: var(--color-white);
}

.about-intro img {
    max-width: 100%;
    height: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.value-item {
    padding: 40px 28px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.value-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.value-item p {
    color: var(--color-gray);
    font-size: 0.98rem;
}

/* Stats variant used on About page */
.value-item .value-icon {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 14px;
}

/* ===== Featured Media ===== */
.featured-media {
    background-color: var(--color-light-gray);
    padding: 90px 0;
}

.featured-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: stretch;
    background-color: var(--color-white);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.featured-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.featured-content > p {
    color: var(--color-gray);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ===== CTA Row ===== */
.cta-row {
    padding: 80px 0;
    background-color: var(--color-white);
}

.cta-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cta-box {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 36px 32px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.cta-box:hover {
    background-color: var(--color-primary);
    transform: translateY(-4px);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-light-gray);
    padding: 36px;
    border-top: 4px solid var(--color-primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-list li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e2e2e2;
    color: var(--color-gray);
    font-size: 0.95rem;
    transition: color 0.2s, padding-left 0.2s;
}

.service-list li a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

.service-card .btn {
    margin-top: 24px;
}

/* ===== Resources ===== */
.resources {
    padding: 80px 0;
    background-color: var(--color-light-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.resource-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background-color: var(--color-white);
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.8rem;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ===== Projects Gallery ===== */
.projects-gallery {
    padding: 0 0 80px;
    background-color: var(--color-white);
}

/* ===== New Products (scrolling product strip) ===== */
.new-products {
    padding: 80px 0;
    background-color: var(--color-light-gray);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

@media (max-width: 768px) {
    .new-products {
        padding: 56px 0;
    }
}

.projects-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 250px;
    margin-right: 18px;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.projects-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.projects-item-name {
    display: block;
    padding: 8px 6px;
    font-size: 13px;
    color: #333;
    text-align: center;
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.projects-arrow:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.08);
}

.projects-arrow:focus-visible {
    outline: 3px solid var(--color-dark);
    outline-offset: 2px;
}

.projects-prev {
    left: 0;
}

.projects-next {
    right: 0;
}

.projects-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    text-align: center;
}


/* ===== Projects banner: same treatment as the distributor banner ===== */
.projects-banner {
    background: linear-gradient(rgba(26,26,26,0.9), rgba(26,26,26,0.9)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 64px 0;
    color: var(--color-white);
}

.projects-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.projects-banner-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.projects-banner-text p {
    opacity: 0.85;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 620px;
}

.projects-banner .btn-instagram {
    flex: 0 0 auto;
}

/* ===== Photo carousel: arrow buttons + scrolling track =====
   Photos stay inside the content width (no full-bleed strip) and the
   arrows sit right next to the strip on both sides. */
.projects-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 92%;
    max-width: var(--max-width);
    margin: 44px auto 0;
}

.projects-carousel .projects-marquee {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-carousel .projects-marquee::-webkit-scrollbar {
    display: none;
}

/* the CSS marquee keeps the strip moving until the JS carousel takes over */
.projects-carousel.is-ready .projects-marquee-track {
    animation: none;
}

.projects-carousel .projects-arrow {
    position: static;
    top: auto;
    transform: none;
    flex: 0 0 auto;
}

.projects-carousel .projects-arrow:hover {
    transform: scale(1.08);
}

.projects-carousel .projects-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 900px) {
    .projects-carousel {
        gap: 10px;
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .projects-banner {
        padding: 48px 0;
    }

    .projects-banner-inner {
        gap: 24px;
    }

    .projects-banner-text h2 {
        font-size: 1.7rem;
    }

    .projects-banner-text p {
        font-size: 1rem;
    }
}



.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px;
    border-radius: 60px;
    background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(220,39,67,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(220,39,67,0.4);
}

.btn-instagram svg {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ===== WhatsApp button (Request a Quote banner) ===== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px;
    border-radius: 60px;
    background-image: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(18,140,126,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(37,211,102,0.42);
}

.btn-whatsapp svg {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

@media (max-width: 640px) {
    .btn-instagram,
    .btn-whatsapp {
        padding: 15px 26px;
        font-size: 0.85rem;
    }

    .btn-instagram svg,
    .btn-whatsapp svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {
    .projects-marquee .projects-item {
        width: 210px;
    }
}

@media (max-width: 640px) {
    .projects-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
        background-color: rgba(26,26,26,0.6);
    }

    .projects-arrow:hover {
        background-color: var(--color-primary);
    }

    .projects-prev {
        left: 8px;
    }

    .projects-next {
        right: 8px;
    }
}

/* ===== Blog ===== */
.blog-section {
    padding: 80px 0;
    background-color: var(--color-light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.blog-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-media img {
    transform: scale(1.06);
}

.blog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 26px;
}

.blog-meta {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.blog-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.blog-body h3 a {
    color: inherit;
}

.blog-body h3 a:hover {
    color: var(--color-primary);
}

.blog-body p {
    color: var(--color-gray);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.blog-more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.blog-more:hover {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-section {
        padding: 56px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Certification Strip ===== */
.cert-strip {
    background-color: var(--color-light-gray);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
}

.cert-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cert-inner span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.cert-inner span:hover {
    color: var(--color-dark);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 16px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links ul li {
    margin-bottom: 10px;
}

/* 页脚联系方式：字体图标与文字对齐 */
.footer-links li i {
    display: inline-block;
    width: 16px;
    margin-right: 8px;
    text-align: center;
    color: var(--color-primary);
    font-size: 0.95em;
}

.footer-links a {
    font-size: 0.92rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-aux-links {
    margin: 0;
}

.footer-aux-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-aux-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.social-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ===== Page Hero (Category / Product / About / Projects) ===== */
.page-hero {
    height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.6), rgba(10,10,10,0.3));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* 详情页 hero 内的面包屑：深色底图上改用浅色文字 */
.page-hero .cg-breadcrumb {
    padding: 0;
    border-bottom: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .cg-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.page-hero .cg-breadcrumb a:hover {
    color: var(--color-white);
}

.page-hero .cg-breadcrumb .bc-sep {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero .cg-breadcrumb span:last-child {
    color: var(--color-white);
    font-weight: 600;
}

/* ===== Category Page ===== */
.category-page {
    padding: 60px 0 80px;
    background-color: var(--color-light-gray);
}

.category-filter {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    scroll-margin-top: 130px;
}

.category-products .category-filter + .product-grid {
    margin-bottom: 48px;
}

.category-filter h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.category-filter span {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ===== Product Cards ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid #e5e5e5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ===== Product Detail ===== */
.product-detail {
    padding: 60px 0 40px;
    background-color: var(--color-white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* 案例详情：单列大图居中（无右侧内容） */
.case-detail-media {
    max-width: 960px;
    margin: 0 auto 48px;
}

.case-detail-media .product-thumbnails {
    justify-content: center;
    flex-wrap: wrap;
}

.product-main-image {
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.product-summary h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.feature-list {
    margin-bottom: 28px;
}

.feature-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #eee;
    color: var(--color-dark);
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* text1 含英文冒号：参考 m01 模板，按「键: 值」展示（灰键 + 深色值，不带勾）
   冒号前的标签固定 120px，值从同一竖线开始，多行对齐 */
.feature-list--kv li {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-list--kv li::before {
    content: none;
}

.feature-list--kv .feature-list-label {
    flex: 0 0 120px;
    width: 120px;
    color: var(--color-gray);
}

.feature-list--kv .feature-list-value {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--color-dark);
    word-break: break-word;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 按钮内的图标与文字间距 */
.product-actions .btn i {
    margin-right: 8px;
    font-size: 1.05em;
}

/* 产品信息区社媒衔接（与顶部栏同一组链接） */
.product-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.product-socials-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-dark);
}

.product-socials-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-socials-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    transition: all 0.2s;
}

.product-socials-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.product-socials-links svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ===== 右下角漂浮 WhatsApp 聊天入口 ===== */
.dm-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 100px;
    z-index: 900;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.dm-whatsapp-float svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

@media (max-width: 576px) {
    .dm-whatsapp-float {
        right: 14px;
        bottom: 100px;
        width: 50px;
        height: 50px;
    }

    .dm-whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== 询盘弹窗（产品详情页 Inquiry Now） ===== */
.dm-modal[hidden] {
    display: none;
}

.dm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.dm-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--color-white);
    padding: 32px;
}

.dm-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--color-gray);
    cursor: pointer;
    transition: color 0.2s;
}

.dm-modal-close:hover {
    color: var(--color-primary);
}

body.dm-modal-open {
    overflow: hidden;
}

/* ===== Product Tabs ===== */
.product-tabs {
    background-color: var(--color-light-gray);
    padding: 32px;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    color: var(--color-gray);
    margin-bottom: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    width: 35%;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    background-color: #eaeaea;
}

.specs-table td {
    color: var(--color-gray);
}

/* ===== Related Products ===== */
.related-products {
    padding: 60px 0 80px;
    background-color: var(--color-light-gray);
}

/* ===== About ===== */
.about-content {
    padding: 80px 0;
    background-color: var(--color-white);
}

.about-content .why-us-content h2 {
    margin-top: 32px;
}

.about-content .why-us-content h2:first-child {
    margin-top: 0;
}

/* ===== Projects & Testimonials ===== */
.projects-gallery {
    padding: 0 0 80px;
    background-color: var(--color-white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 1500px) {
    .main-nav a {
        font-size: 0.86rem;
        padding: 16px 10px;
    }

    .logo {
        font-size: 2rem;
    }
}

/* Collapse the desktop nav into the slide-down menu below this width,
   so the links never get squeezed or wrapped. */
@media (max-width: 1280px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    }

    .main-nav.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav {
        height: auto;
    }

    .main-nav > ul {
        flex-direction: column;
        height: auto;
        gap: 0;
        padding: 12px 0;
    }

    .main-nav > ul > li {
        display: block;
        border-bottom: 1px solid #eee;
    }

    .main-nav > ul > li > a {
        display: block;
        padding: 14px 24px;
        border-bottom: none;
    }

    /* keep menu text readable on the light slide-down panel */
    .top-overlay .main-nav > ul > li > a,
    .top-overlay .main-nav > ul > li > a.active {
        color: var(--color-dark);
        text-shadow: none;
    }

    .main-nav > ul > li > a,
    .main-nav > ul > li:hover > a,
    .main-nav > ul > li > a.active {
        border-bottom-color: transparent;
    }

    .main-nav > ul > li.has-dropdown {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .main-nav > ul > li.has-dropdown > a {
        flex: 1;
    }

    .dropdown-arrow {
        display: flex;
        color: var(--color-dark);
        padding: 14px 24px;
        transition: transform 0.25s ease;
    }

    .dropdown-arrow svg {
        width: 18px;
        height: 18px;
    }

    .has-dropdown.open > .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        min-width: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        background-color: #fafafa;
        transition: max-height 0.35s ease;
    }

    .has-dropdown.open > .dropdown {
        max-height: 1400px;
    }

    .dropdown li a {
        padding: 12px 40px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }

    .dropdown li a:hover {
        padding-left: 46px;
    }

    /* the third level folds inline inside the accordion instead of
       flying out, so the submenu drops its absolute positioning */
    .dropdown .has-submenu > a::after {
        content: none;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        width: 100%;
        padding: 0;
        border-top: none;
        box-shadow: none;
        background-color: #f2f2f2;
    }

    .submenu li a {
        padding: 11px 56px;
    }

    .submenu li a:hover {
        padding-left: 62px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        margin-left: auto;
    }
}

@media (max-width: 1024px) {
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-inner {
        grid-template-columns: 1fr;
    }

    .cta-row-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .header-cta .btn {
        padding: 10px 16px;
        font-size: 0.76rem;
    }

    .logo {
        font-size: 1.7rem;
    }

    /* 手机端：顶部条不再悬浮在横幅上 —— 横幅显示在 logo 下方；滚动时吸顶
       用 relative 而非 static：static 会让 z-index 失效，横幅(定位元素)会盖住顶栏导致菜单点不动 */
    .top-overlay {
        position: relative;
    }

    .top-overlay .site-header {
        background-color: var(--color-dark);
        border-bottom-color: transparent;
    }

    .top-overlay.scrolled {
        position: sticky;
        top: 0;
    }

    /* 手机端顶栏不显示电话 / 邮箱 */
    .utility-links > a {
        display: none;
    }

    /* 横幅：文字缩小（副标题与按钮隐藏），高度仍按图片比例 */
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-eyebrow,
    .hero-sub,
    .hero-content .btn {
        display: none;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }

    .hero-dot {
        width: 28px;
        height: 4px;
    }

    .utility-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* 手机端不显示网站左上角文字（topsay） */
    .utility-tagline {
        display: none;
    }

    .utility-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 18px;
    }

    .page-hero {
        height: 280px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    /* 推荐产品（.entry-grid）手机端保持一行 2 个，不参与单列折叠 */
    .product-grid,
    .cta-row-grid,
    .values-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 推荐产品卡片：窄屏下收窄内边距与字号 */
    .entry-overlay {
        padding: 14px 14px 16px;
    }

    .entry-overlay h3 {
        font-size: 1rem;
    }

    .entry-overlay p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-summary {
        order: 1;
    }

    .product-gallery {
        order: 2;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
    }

    .specs-table th {
        background-color: transparent;
        padding-bottom: 4px;
    }

    .specs-table td {
        padding-top: 4px;
    }

    .distributor-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.7rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.82rem;
    }

    .header-cta .btn {
        display: none;
    }

    .search-toggle {
        width: 38px;
        height: 38px;
    }
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 80px 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2,
.contact-form h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-intro {
    color: var(--color-gray);
    margin-bottom: 34px;
}

.contact-list li {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light-gray);
    border-radius: 50%;
    font-size: 1.05rem;
}

.contact-list h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.contact-list p {
    color: var(--color-gray);
}

.contact-list a {
    color: var(--color-dark);
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--color-primary);
}

.contact-form {
    background-color: var(--color-light-gray);
    padding: 40px 36px;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 18px 40px rgba(0,0,0,0.07);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(238,49,36,0.12);
}

.form-note {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #E8F5E9;
    border-left: 3px solid #2E7D32;
    color: #1B5E20;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 56px 0;
    }

    .contact-form {
        padding: 30px 22px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ===== Why Choose the Brand — responsive ===== */
@media (max-width: 1024px) {
    .brand-why {
        padding: 72px 0;
    }

    .brand-pillars {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brand-why {
        padding: 56px 0;
    }

    .brand-why-header {
        margin-bottom: 36px;
    }

    .brand-why-header h2 {
        font-size: 1.8rem;
    }

    .brand-pillars {
        grid-template-columns: 1fr;
    }

    .brand-pillar {
        padding: 30px 24px;
    }
}

/* ===== Product Categories — responsive ===== */
@media (max-width: 1280px) {
    .category-grid {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-categories {
        padding: 56px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Gallery Carousel (arrow scroll, 4 per row, no effects) ===== */
.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 92%;
    max-width: var(--max-width);
    margin: 44px auto 0;
}

.gallery-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-viewport::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 18px;
    width: 100%;
}

.gallery-track-item {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.gallery-track-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* 产品名默认隐藏：鼠标悬停时作为图片上的蒙版浮层显示（文字贴图片底部） */
.gallery-track-item .projects-item-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 14px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-track-item:hover .projects-item-name {
    opacity: 1;
}

.gallery-carousel .projects-arrow {
    position: static;
    transform: none;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .gallery-track-item {
        flex: 0 0 calc(50% - 9px);
    }
}

.gallery-pagination {
    margin-top: 40px;
}

/* ===== 案例分类筛选（Projects 列表页顶部） ===== */
.case-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: var(--max-width);
    margin: 40px auto 0;
}

.case-filter-item {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-dark);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 40px;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.case-filter-item:hover,
.case-filter-item.is-active {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ===== Projects Grid (static 4-column gallery) ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: var(--max-width);
    margin: 44px auto 0;
}

.projects-grid-item {
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.projects-grid-item:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.projects-grid-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.projects-grid-item:hover img {
    transform: scale(1.08);
}

/* 名称：常驻显示在图片底部（渐变蒙版保证白字可读），悬停时图片放大、卡片上浮 */
.projects-grid-item .projects-item-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 26px 12px 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 新产品轮播：产品名固定显示在图片底部，悬停时图片放大 ===== */
.projects-carousel .projects-item {
    overflow: hidden;
}

.projects-carousel .projects-item img {
    transition: transform 0.35s ease;
}

.projects-carousel .projects-item:hover img {
    transform: scale(1.12);
}

/* 产品名常驻显示在图片底部（渐变蒙版底衬，保证白字可读） */
.projects-carousel .projects-item-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 10px 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .projects-carousel .projects-item img {
        transition: none;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ===== Projects Marquee (auto-scrolling project photos) ===== */
.projects-marquee {
    position: relative;
    margin-top: 40px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.projects-marquee-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    animation: projects-marquee 46s linear infinite;
}

.projects-marquee:hover .projects-marquee-track,
.projects-marquee:focus-within .projects-marquee-track {
    animation-play-state: paused;
}

@keyframes projects-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .projects-marquee {
        margin-top: 30px;
    }

    .projects-marquee .projects-item {
        width: 165px;
        margin-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-marquee-track {
        animation: none;
    }
}
