:root {
    --primary: #49aa3d;
    --primary-dark: #2e8f3f;
    --primary-light: #eaf6ec;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --text2: #999;
    --gray: #f5f7f6;
    --white: #fff;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    font-size: 18px;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
    width: 1200px;
    margin: 0 auto;
}



.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    color: #1a1a1a;
    border: 1px solid #363636;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-light:hover { background: var(--primary-light); }

.btn-sm {display: block; height: 36px; width: 100px; font-size: 16px; color: #fff;text-align: center;line-height: 36px;}

/* ---------- Buttons: uniform 4px corner radius ----------
   Covers every button on the homepage (View Products, MORE, section links).
   The circular back-to-top button (.back-to-top) and the product tabs
   (.tab-btn / .tab-btn2) are intentionally NOT affected.
   style.css is loaded by index.htm only, so no other page is touched. */
.btn,
.btn-primary,
.btn-outline,
.btn-light,
.btn-sm {
    border-radius: 4px;
}
/* The sweeping highlight on the primary button inherits the radius above. */

.section { padding: 60px 0; }

.section-title {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
    font-size: 36px;
}
.section-subtitle{
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}



.section-title.center { text-align: center; }

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title.light { color: var(--white); }

.section-title.light::after { background: var(--white); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header .section-title { margin-bottom: 0; }



/* Hero */
.hero {
    margin-top: 132px;
    position: relative;
    height: 655px;
    display: flex;
    overflow: hidden;
    /* light fallback (#eaf6ec): the mid-point of a cross-fade (two layers at
       ~0.75 combined opacity) must never expose the white page background
       behind the stacked image layers; matches the pale hero look */
    background: var(--primary-light);
}

/* Stacked background layers: each .hero-bg carries its own image via an inline
   background-image (see index.htm); the carousel cross-fades them with opacity. */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
}
.hero-bg.is-active { opacity: 1; }
.hero-line{
    width: 100%;
    height: 36px;
    background: var(--primary);
}
/* .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,40,20,0.82) 0%, rgba(20,40,20,0.5) 55%, rgba(20,40,20,0.2) 100%);
    z-index: 2;
} */

.hero-content {
    position: relative;
    z-index: 3;
    color:var(--dark);
    padding-top: 150px;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 22px;
    margin: 28px 0;
    max-width: 900px;
    color: #333;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-btns .btn-primary{
    width: 196px;
    height: 65px;
    text-align: center;
    line-height: 65px;
    font-size: 24px;
}
.hero-btns .btn-outline{
    width: 298px;
    height: 65px;
    text-align: center;
    line-height: 65px;
    font-size: 24px;
}

/* Who We Are */
.who-we-are {
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.who-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1565514020176-dbf2277f4f25?w=1200&q=80') right bottom / auto 90% no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.who-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.who-text{
    max-width:600px;
}


.who-text .section-title::after { display: none; }



.who-bar {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 22px;
    border-radius: 100px;
}

.who-text p {
    color: #1a1a1a;
    margin-bottom: 18px;
    font-size: 18px;
}
.who-text .who-subtitle {
    color: #666;
    margin-bottom: 12px;
    font-size: 18px;
}
.who-text .btn {
    margin-top: 60px;
}

.who-visual {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 360px;
    min-height: 360px;
    position: relative;
    z-index: 1;
}

.who-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    width: 180px;
    height: 180px;
}

.who-card-culture { grid-column: 2; grid-row: 1; }
.who-card-mission { grid-column: 1; grid-row: 2; }
.who-card-vision { grid-column: 2; grid-row: 2; }

.card-light { background: var(--white); color: #1a1a1a; box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
.card-light .card-plus { color: var(--primary); }
.card-green { background: var(--primary); color: var(--white); }

.card-plus { font-size: 16px; opacity: 0.9; }

.stats {
    margin: 100px 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.stat-num {
    font-size: 50px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-unit {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.stat-label {
    display: block;
    font-size: 15px;
    color: #666;
}



/* Vision & Story */
.about-vision {
    background-image:url(../images/home2-Our.jpg);
    background-size: cover;
    padding: 0;
    width: 100%;
}

.about-vision-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    height: 600px;
}

.about-vision .vision-content {
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-vision .vision-content .section-title{
    color: var(--white);
}

.about-vision .vision-content p {
    font-size: 18px;
    line-height: 2;
    opacity: 0.95;
}
.about-vision .vision-content .btn{
    margin-top: 24px;
    width: 178px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
}

.about-vision .vision-image {
    position: relative;
    overflow: hidden;
    border-radius: 220px 0 0 220px;
}

.about-vision .vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Products */
.products { background:#e9eef4; }

.products-layout {
    margin-top: 36px;
    display: flex;
}

.product-tabs {
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0;
    height:100%;
    width:300px;
    height: 426px;
    overflow: hidden;
}

.product-tabs .tab-btn {
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 106px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #eaeff5;
    position: relative;
}
.product-tabs .tab-btn2{
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 106px;
}
.product-tabs .tab-btn:last-of-type {
    border-bottom: none;
    display: flex;
    align-items: center;
}

.product-tabs .tab-btn:hover,
.product-tabs  .tab-btn.active {
    background: var(--primary);
    color: var(--white);
}
.product-tabs .tab-btn::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}
.product-tabs .tab-btn.active::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.product-tabs .btn {
    margin-top: 12px;
    width: 100px;
}

.product-showcase {
    flex: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(0,0,0,0.09);
}

.product-showcase img {
    width: 100%;
    height: 426px;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: var(--white);
}

.product-info h3 { font-size: 20px; margin-bottom: 8px; }

.product-info p { opacity: 0.9; font-size: 18px; }

/* Industries */
.industries { background: var(--white); margin-bottom: 20px;}
.section-header-left .section-subtitle{
    text-align: left;
}
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.industry-card {
    background: var(--white);
    padding: 28px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #e7e7e7;
    height: 426px;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.industry-card h4 {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    height: 80px;
    line-height: 28px;
}
.industry-card h4::after{
    position:absolute;
    bottom: 0;
    display: block;
    content: '';
    width:50px;
    height: 3px;
    background: var(--primary);
    border-radius: 100px;
}

.industry-card p {
    font-size: 18px;
    color: #666;
    margin-bottom: 18px;
    /* The body copy is clamped to 4 lines by .line-clamp-4 (display:-webkit-box).
       This used to be `flex: 1`, which stretched the paragraph to whatever height
       the card had left over - roughly 5 lines - and the two fight each other:
       the clamp draws its ellipsis on line 4, yet the surplus height still shows
       a 5th line underneath. So keep the paragraph at its natural height, capped
       at exactly the 4 lines the clamp promises, and let the image below take
       over the push-to-bottom job instead. */
    flex: none;
    max-height: 6.4em;      /* 4 lines x the inherited 1.6 line-height */
}

.industry-card img {
    height: 130px;
    object-fit: cover;
    width: 100%;
    margin-top: auto;       /* the job the paragraph's flex: 1 used to do */
}

/* R&D */
.rd .container{
    width: 100%;
}
.rd .btn{
    display: block;
    height: 36px;
    width: 100px;
    font-size: 16px;
    color: var(--primary);
    text-align: center;
    line-height: 36px;
    background: var(--white);
}
.rd { padding: 0; background: var(--primary); }

.rd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    align-items: center;
}

.rd-image {
    height: 100%;
    min-height: 380px;
    overflow: hidden;   /* parallax scaling must not overflow the container (prevents a horizontal scrollbar) */
}

.rd-image img {
    width: 100%;
    height: 604px;
    object-fit: cover;
}

.rd-content {
    position: relative;
    padding: 60px 0;
    color: var(--white);
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.rd-content::before {
    content: '';
    position: absolute;
    left: -339px;
    top: 0;
    bottom: 0;
    width: 340px;
    background: var(--primary);
    clip-path: polygon(100% 0, 340px 0, 0 100%, 100% 100%);
    z-index: 1;
}

.rd-content ul {
    list-style: none;
    margin: 0px 0 28px;
    position: relative;
    z-index: 1;
}

.rd-content li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}
.rd-content li a{
  	color:#fff;
}

.rd-content li::before { 
    display: inline-block;
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--white);
 }

/* Honors */
.honors { background:#e9eef4; }

.honor-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-top: -8px;
    margin-bottom: 36px;
}

.honor-carousel {
    margin-top: 36px;
    position: relative;
    overflow: hidden;
}

.honor-track {
    display: flex;
    transition: all 0.8s;
}

.honor-slide {
    flex: 0 0 25%;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
}

/* 只有一张证书时居中。
   .honor-track 是 flex，.honor-slide 固定占 25%（窄屏 33.3% / 50% / 100%），
   只有一张时这张卡会紧贴左侧、右边留出一大片空白，看起来像布局坏了。
   给唯一的 slide 加左右 auto margin：flex 主轴上多余的空白被两侧均分，卡片居中；
   多张时 :only-child 不命中，轮播（百分比排列 + translateX 平移）行为完全不变。
   文本节点不计入 :only-child，所以 arclist 输出前后的换行空白不会让它失效。 */
.honor-slide:only-child {
    margin-left: auto;
    margin-right: auto;
}

.honor-slide img {
    margin-top: 10px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    background: var(--white);
}

.honor-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.honor-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: #d0d0d0;
    cursor: pointer;
    transition: var(--transition);
}

.honor-dot.active { background: var(--primary); }

@media (max-width: 992px) {
    .honor-slide { flex: 0 0 33.333%; }
}

@media (max-width: 768px) {
    .honor-slide { flex: 0 0 50%; }
}

@media (max-width: 576px) {
    .honor-slide { flex: 0 0 100%; padding: 0 24px; }
}

/* News */
.news { background: var(--white); padding: 70px;}

.news-subtitle {
    color: #666;
    margin-bottom: 6px;
}

.news-layout {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.news-feature {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

.news-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.news-feature-overlay h3 {
    font-size: 20px;
    color: var(--white);
    line-height: 1.4;
    margin: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
  	overflow:hidden;
}

.news-item {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}


.news-item-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.news-item-main h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
}

.news-item-main .news-date {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
}


.news-item:hover .news-item-main h4,
.news-item:hover .news-item-main .news-date {
    color: var(--primary);
}

.news-item-desc {
    font-size: 18px;
    color: #666;
    margin: 0;
}
.news-top{
    display: flex;
    justify-content: space-between;
}
.news-top .btn{
    height: 36px;
    width: 100px;
    line-height: 36px;
    text-align: center;
    background: var(--primary);
    font-size: 16px;
    color: #fff;
}


/* Responsive */
@media (max-width: 1230px) {
    .container { width: auto; padding: 0 20px; }
}

@media (max-width: 992px) {
    .product-tabs .tab-btn{
        font-size: 16px;
    }
    .product-tabs .tab-btn::after,
    .product-tabs .tab-btn.active::after { font-size: 14px; }
    .section-title { font-size: 20px; }

    .header { background: rgba(255,255,255,0.98); }
    .header-inner { height: 64px; display: flex;align-items: center; justify-content: space-between;}
    .logo { font-size: 20px; }
    .logo img { height: 40px; }

    /* ---------- 横向溢出根因：.reveal-blur 的入场前 scale(1.12) ----------
       .product-showcase / .honor-carousel / .news-feature 都是整宽块（390 视口内容宽 350），
       隐藏态 transform: scale(1.12) 后变成 392 宽、左右各溢出 1px，
       body 的 overflow-x:hidden 管不住 html 的 scrollWidth（实测 391 > 390）。
       在它们各自的 section 上裁掉横向溢出即可，动画本身和轮播可视内容都不受影响
       （只裁掉放大带来的 1px 边缘，轮播的 overflow:hidden 仍由 .honor-carousel 自己负责）。 */
    .section.products,
    .section.honors,
    .section.news { overflow-x: clip; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px;
        gap: 0;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        margin-left: 0;
    }

    .nav.open { display: flex; }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }

    .menu-toggle { display: block; }

    /* align-items:center —— 桌面靠 .hero-content 的 padding-top:150px 定位，窄屏 padding-top 归零后
       .hero 的 flex 默认 stretch 会让内容贴顶、下方露出一大片图；这里改为垂直居中。
       上下 padding 取 50/50 对称（原 40/60 会让内容整体偏低 10px），总留白仍是 100px。 */
    .hero { margin-top: 64px; height: auto; min-height: 520px; padding: 50px 0; align-items: center; }
    .hero-content { padding-top: 0; text-align: center; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; margin: 20px auto 28px; }
    .hero-btns { justify-content: center; }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline { width: auto; padding: 0 15px; margin: 0 auto; height: 52px; line-height: 52px; font-size: 16px; }

    .who-row { flex-direction: column; gap: 40px; }
    .who-text { max-width: none; }
    .who-visual { width: 100%; min-height: auto; grid-template-columns: repeat(2, 1fr); }
    .who-card { width: auto; height: auto; min-height: 150px; font-size: 16px; }
    .who-card-culture, .who-card-mission, .who-card-vision { grid-column: auto; grid-row: auto; }
    .who-text p { font-size: 16px; }
    .who-text .who-subtitle { font-size: 16px; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 0; margin-top: 60px; }
    .stat-item + .stat-item::before { display: none; }
    /* 四档字号：统计数字 28、单位 16、标签 14 */
    .stat-num { font-size: 28px; }
    .stat-unit { font-size: 16px; }
    .stat-label { font-size: 14px; }

    .about-vision { background-image: none; background-color: var(--primary); }
    .about-vision-row { height: auto; display: block;}
    .about-vision .vision-content { padding: 60px 0; max-width: 640px; }
    .about-vision .vision-content p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
    .about-vision .vision-content .btn { width: 100%; }

    .products-layout { flex-direction: column; }
    .product-tabs { width: 100%; height: auto; }
    .product-tabs .tab-btn,
    .product-tabs .tab-btn2 { height: 64px; }
    /* 窄屏描述文字很长（三乙胺一段十来行），绝对定位的 .product-info 会超出图片
       高度、被 .product-showcase 的 overflow:hidden 裁掉顶部，而且白字压在照片上
       看不清。因此窄屏改成「图片在上、文字卡片在下」的堆叠布局。 */
    .product-showcase {
        display: flex;
        flex-direction: column;
        overflow: hidden;   /* 收住图片视差 scale(1.08) 的溢出；文字已是常规流，不会被裁 */
        background: var(--white);
    }
    .product-showcase img { height: 260px; }
    .product-info {
        position: relative;   /* 原来 static：图片带 transform，绘制层级更高会压到文字卡上 */
        z-index: 1;           /* 与 position 一起抬升层级，图片视差就盖不住标题了 */
        padding: 20px;
        background: var(--white);
        color: #333;
    }
    .product-info h3 { font-size: 20px; margin-bottom: 6px; }
    .product-info p { font-size: 16px; line-height: 1.8; opacity: 1; }

    .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .industry-card { height: auto; padding: 22px; }
    .industry-card h4 { height: auto; margin-bottom: 10px; }
    .industry-card p { font-size: 16px; }
    .industry-card img { height: 160px; }

    /* 移动端副标题统一 16px；段落/内容 16px（含继承 PC 18px 的无覆盖规则） */
    .honor-subtitle { font-size: 16px; }
    .news-subtitle { font-size: 16px; }
    .rd-content li { font-size: 16px; }

    .rd-row { grid-template-columns: 1fr !important; direction: rtl; }
    .rd-content { direction: ltr; padding: 50px 24px; min-height: auto; }
    .rd-content::before { display: none; }
    .rd-image { min-height: 280px; }

    .news { padding: 50px 20px; }
    .news-layout { grid-template-columns: 1fr; }
    .news-feature { height: 280px; }
    .news-top{
        flex-direction: column;
    }

    .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-nav { gap: 16px 24px; }
}

@media (max-width: 576px) {
    .product-tabs .tab-btn{
        font-size: 16px;
    }
    .section { padding: 46px 0; }
    .section-title { font-size: 20px; }
    .section-subtitle { font-size: 16px; }

    .hero { min-height: 480px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline { width: auto;padding: 0 15px; height: 48px; line-height: 48px; font-size: 16px; margin: 0 auto; }

    .who-visual { grid-template-columns: 1fr; }
    .who-card { min-height: 120px; }
    .stats { grid-template-columns: 1fr; gap: 20px; }
    .stat-num { font-size: 28px; }

    .industry-grid { grid-template-columns: 1fr; }
    .industry-card { height: auto; }
    .industry-card h4 { height: auto; margin-bottom: 10px; }

    .product-showcase img { height: 220px; }
    .product-info { padding: 16px; }

    .news-feature { height: 220px; }
    .news-item-main h4 { font-size: 20px; }
    .news-item-main .news-date { font-size: 16px; }
    .news-item-desc { font-size: 16px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-more { align-self: flex-start; }

    .footer-nav a { font-size: 16px; }
}

/* ============================================
   Scroll Reveal 3.0 - homepage motion (stronger / more striking)
   - class names are injected by js/main.js; content stays visible when JS does not run
   - note: images inside .rd-image take part in no animation
   ============================================ */
:root { --ease-expo: cubic-bezier(.16, 1, .3, 1); }

.reveal, .reveal-slide, .reveal-pop, .reveal-blur, .reveal-wipe {
    opacity: 0;
    will-change: opacity, transform, filter, clip-path;
    transition: opacity 1.05s var(--ease-expo),
                transform 1.2s var(--ease-expo),
                filter 1s var(--ease-expo),
                clip-path 1.2s var(--ease-expo);
}

/* Variants: big rise / rise with tilt / pop-scale / blur focus / wipe */
.reveal       { transform: translateY(70px); }
.reveal-slide { transform: translateY(100px) rotate(-1.2deg); }
.reveal-pop   { transform: translateY(46px) scale(.68); }
.reveal-blur  { transform: scale(1.12); filter: blur(26px); }
/* NOTE: never put clip-path on the hidden state again!
      IntersectionObserver measures the "visible area" and counts the element's own clip-path as part of it.
      The old inset(0 100% 0 0) made the visible area permanently 0 -> threshold:0.1 could never be met ->
      the callback never fired -> .reveal-in was never added -> homepage headings stayed hidden forever.
      The wipe is now done by an animation in the .reveal-in stage (the element is unobserved by then, so IO is unaffected). */
.reveal-wipe  { transform: translateY(14px); }

/* Last-resort fallback: whatever stops the reveal logic from firing (lost IO callback / script error / browser difference),
      after 8 seconds everything is forced visible - headings and other content are never left hidden. */
@keyframes lzForceShow { to { opacity: 1; clip-path: none; filter: none; transform: none; } }
html:not(.js-motion) .reveal:not(.reveal-in),
html:not(.js-motion) .reveal-slide:not(.reveal-in),
html:not(.js-motion) .reveal-pop:not(.reveal-in),
html:not(.js-motion) .reveal-blur:not(.reveal-in),
html:not(.js-motion) .reveal-wipe:not(.reveal-in) {
    animation: lzForceShow .01s linear 8s forwards;
}

@keyframes lzWipeIn {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

.reveal.reveal-in,
.reveal-slide.reveal-in,
.reveal-pop.reveal-in,
.reveal-blur.reveal-in,
.reveal-wipe.reveal-in {
    opacity: 1;
    transform: none;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    will-change: auto;
}

/* Wipe-in: clip-path only applies during the entrance animation, so IntersectionObserver is unaffected */
.reveal-wipe.reveal-in { animation: lzWipeIn 1.2s var(--ease-expo) both; }

/* Repeat on scroll: reset instantly when leaving the viewport (avoids a visible fade at the screen edge) and replay on re-entry */
.reveal-reset { transition: none !important; }

/* In repeat mode the reveal transition is always present, so keep card hover snappy here */
.industry-card:hover,
.who-card:hover,
.news-feature:hover,
.news-item:hover,
.stat-item:hover,
.tiltable:hover {
    transition-duration: .3s !important;
}

/* ---------- Top scroll progress bar (with a light dot) ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 1100;
    pointer-events: none;
    background: linear-gradient(90deg, #49aa3d 0%, #8fd06a 100%);
    box-shadow: 0 0 12px rgba(73, 170, 61, .6);
}
.scroll-progress::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px 3px rgba(143, 208, 106, .95);
}

/* ---------- 移动端：进度条不再压住 header ----------
   .scroll-progress 是 position:fixed; top:0; z-index:1100，一直画在 z-index:1000 的 .header
   之上：滚动时那 3px 绿色条（外加 ::after 的白色光点，top:-2px 还往上探 2px）正好盖住
   header 顶部，肉眼就是「往下滑时 header 被遮住一点」。
   移动端把它挪到 header 下沿（64px = .header-inner 高度）并把层级降到 1000 以下，
   进度条照常可见、又永远不会盖住 header。桌面（≥993px）完全不受影响。
   注意：这条必须写在本文件里 .scroll-progress 基础规则之后 —— @media 不增加特异性，
   写在前面会被后面的 top:0/z-index:1100 覆盖掉。 */
@media (max-width: 992px) {
    .scroll-progress { top: 64px; z-index: 999; }
}

/* ---------- Card 3D tilt + cursor-following highlight (desktop hover) ---------- */
.tiltable {
    position: relative;          /* positioning context for the highlight ::after (industry-card / who-card were not positioned before) */
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
               translateY(var(--ty, 0px)) scale(var(--ts, 1));
    transition: transform .28s ease-out, box-shadow .28s ease-out;
    transform-style: preserve-3d;
}
.tiltable:hover { --ty: -10px; --ts: 1.035; box-shadow: 0 24px 54px rgba(0, 0, 0, .22); }
.tiltable::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 62%);
    opacity: 0;
    transition: opacity .28s ease-out;
    pointer-events: none;
    z-index: 3;
}
.tiltable:hover::after { opacity: 1; }

/* ---------- Primary button: sweeping highlight ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    transition: left .55s ease;
    pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

/* ---------- Stronger header shadow after scrolling ---------- */
.header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }

/* ---------- Accessibility: follow the system "reduce motion" setting ---------- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-slide, .reveal-pop, .reveal-blur, .reveal-wipe {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }
    .scroll-progress { display: none; }
    .tiltable, .tiltable::after { transform: none !important; }
    .btn-primary::after { display: none; }
}

/* ============================================================
   Hero carousel  (added for the multi-image home hero)
   Layering contract:
     .hero > .hero-bg x3              stacked images (image via inline style)
     .hero-content > .hero-copy x3    stacked text panels (one grid cell)
     .hero-progress > .hero-dot x3    segmented bottom indicator (short bars)
   js/hero-slider.js toggles .is-active on each group: the backgrounds and
   the text panels cross-fade, and the matching bottom bar lights up.
   main.js is not touched.
   ============================================================ */

/* --- background layers: stacked + cross-faded --- */
.hero-bg { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-bg.is-active { opacity: 1; }

/* --- text panels: all share one grid cell, cross-faded by the slider --- */
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-content > .hero-copy {
    grid-area: 1 / 1 / 2 / 2;      /* every panel sits in the same cell -> stacked */
    align-self: start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* pure cross-fade: no vertical movement, only opacity changes hands */
    /* defensive: never let a leftover animation rule own the panel transition */
    animation: none !important;
    transition: opacity 1.2s ease-in-out,
                visibility 0s linear 1.2s;
}

.hero-content > .hero-copy.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 1.2s ease-in-out,
                visibility 0s;
}

/* --- bottom indicator: a centered row of separate short bars --- */
.hero-progress {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    width: auto;                   /* centered row of short bars, not a full-width track */
    max-width: calc(100% - 40px);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 4;
}
.hero-dot {
    flex: none;                    /* fixed-width short bars, no stretching */
    width: 56px;                   /* the visible short bar (desktop) */
    height: 28px;                  /* fine visually, but a comfortable touch target */
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.hero-dot:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 4px; }
.hero-dot::before,             /* dim short bar (soft dark track, readable on the pale hero) */
.hero-dot-fill {               /* lit short bar on top (brand green) */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 2px;
}
.hero-dot::before { background: rgba(26, 26, 26, .18); box-shadow: none; }
.hero-dot-fill {
    /* on the pale hero, a white bar would be invisible: use the brand green
       for the lit bar and a soft dark track for the dim one, so the
       "this-bar-then-that-bar" cue stays readable */
    background: var(--primary);
    box-shadow: 0 0 8px rgba(73, 170, 61, .45);
    opacity: 0;                    /* faded in only for the active dot */
    transition: opacity .45s ease;
}
/* The lit bar is toggled by js/hero-slider.js through .is-active on the dot.
   This rule is also the no-JS fallback: the active short bar simply shows lit. */
.hero-dot.is-active .hero-dot-fill { opacity: 1; }

/* --- responsive: keep the indicator visible and tappable --- */
@media (max-width: 992px) {
    .hero-progress { bottom: 26px; }
}
@media (max-width: 768px) {
    .hero-progress { bottom: 20px; }
    .hero-dot { width: 36px; height: 30px; }
}

/* --- reduce motion: no autoplay animation, instant manual switching --- */
@media (prefers-reduced-motion: reduce) {
    .hero-bg { transition: none !important; opacity: 0; }
    .hero-bg.is-active { opacity: 1; }
    .hero-content > .hero-copy,
    .hero-content > .hero-copy.is-active { transition: none !important; transform: none !important; }
    .hero-dot-fill { transition: none !important; }
    .hero-dot.is-active .hero-dot-fill { opacity: 1 !important; }
}
