/* 创欣隆 V2 首页：红色品牌 + 制造业信息密度 + 大幅轮播 */

/* Hero */
.hero-slider {
    position: relative;
    height: clamp(520px, 47vw, 690px);
    overflow: hidden;
    color: var(--cxl-ink);
    background: #f0f1f2;
}
.hero-slider__track { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .65s ease, visibility .65s ease, transform 5.8s ease;
}
.hero-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide picture { position: absolute; inset: 0; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--cxl-focal-x, 50%) var(--cxl-focal-y, 50%);
}
.hero-slide__copy {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 40px), var(--cxl-container));
    height: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
}
.hero-slide__copy > * { max-width: 620px; }
.hero-slide__copy::before {
    content: "";
    width: 54px;
    height: 4px;
    margin-bottom: 22px;
    background: var(--cxl-red);
}
.hero-slide__kicker {
    margin: 0 0 14px;
    color: #545b61;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .055em;
    text-shadow: 0 1px 4px rgba(255,255,255,.92), 0 0 12px rgba(255,255,255,.58);
}
.hero-slide__kicker strong { color: var(--cxl-red); font-weight: 600; }
.hero-slide h1 {
    max-width: 680px;
    margin: 0;
    color: #20252a;
    font-size: clamp(40px, 4.25vw, 62px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.03em;
    text-shadow: 0 1px 0 rgba(255,255,255,.72), 0 2px 16px rgba(255,255,255,.72);
}
.hero-slide h1 span { color: #20252a; }
.hero-slide h1 strong { color: #20252a; }
.hero-slide h1 em, .hero-slide h1 span { font-style: normal; }
.hero-slide__description {
    max-width: 590px;
    margin: 20px 0 0;
    color: #394047;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.82;
    text-shadow: 0 1px 4px rgba(255,255,255,.96), 0 0 12px rgba(255,255,255,.68);
}
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-button {
    min-width: 148px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.hero-button:hover { transform: translateY(-2px); }
.hero-button--primary { color: #fff; background: var(--cxl-red); border-color: var(--cxl-red); }
.hero-button--primary:hover { background: var(--cxl-red-dark); border-color: var(--cxl-red-dark); }
.hero-button--accent { color: #30363b; background: rgba(255,255,255,.72); border-color: #6d747a; }
.hero-button--accent:hover { color: #fff; background: #353b41; border-color: #353b41; }
.hero-slider__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 64px;
    margin-top: -32px;
    padding: 0;
    border: 1px solid rgba(35,40,45,.14);
    color: #4d555c;
    background: rgba(255,255,255,.56);
    font-family: Arial, sans-serif;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: .78;
    transition: .2s ease;
}
.hero-slider__arrow:hover { color: #fff; background: var(--cxl-red); border-color: var(--cxl-red); opacity: 1; }
.hero-slider__arrow--prev { left: max(16px, calc((100vw - var(--cxl-container))/2 - 68px)); }
.hero-slider__arrow--next { right: max(16px, calc((100vw - var(--cxl-container))/2 - 68px)); }
.hero-slider__dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 28px;
    width: min(calc(100% - 40px), var(--cxl-container));
    transform: translateX(-50%);
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}
.hero-slider__dot {
    position: relative;
    width: 54px;
    height: 30px;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 2px solid rgba(35,40,45,.22);
    color: #747b82;
    background: transparent;
    text-align: left;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .03em;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.hero-slider__dot.is-active { color: #252a2f; border-color: var(--cxl-red); }
.hero-slider__dot.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: var(--cxl-red);
    transform-origin: left;
    animation: cxlHeroProgress 6s linear;
}
@keyframes cxlHeroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slider__dot.is-active::after { transition: none; animation: none; } }

/* Why */
.why-us { background: #fff; }
.why-us > .cxl-container { width: min(calc(100% - 40px), var(--cxl-container)); }
.why-us__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); grid-template-rows: auto 1fr; column-gap: 64px; align-items: center; }
.why-us__intro { grid-column: 1; grid-row: 1; align-self: end; }
.why-us__lead { margin: 18px 0 0; color: #626871; font-size: 16px; line-height: 1.9; }
.why-us__about-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: #343a40; font-size: 14px; font-weight: 600; line-height: 1.5; transition: color .2s ease; }
.why-us__about-link span { color: var(--cxl-red); font-family: Arial, sans-serif; transition: transform .2s ease; }
.why-us__about-link:hover { color: var(--cxl-red); }
.why-us__about-link:hover span { transform: translateX(3px); }
.value-grid { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 34px; border-top: 1px solid var(--cxl-line); border-left: 1px solid var(--cxl-line); }
.value-card { position: relative; min-height: 142px; padding: 24px 24px 20px; overflow: hidden; border-right: 1px solid var(--cxl-line); border-bottom: 1px solid var(--cxl-line); background: #fff; transition: border-color .2s ease, background-color .2s ease; }
.value-card:hover { z-index: 2; border-color: #d9dde1; background: #fdfdfd; }
.value-card__index { position: absolute; right: 10px; bottom: 4px; z-index: 0; color: rgba(28,33,39,.035); font-family: Arial, sans-serif; font-size: 72px; font-weight: 700; line-height: .9; letter-spacing: -.07em; pointer-events: none; user-select: none; }
.value-card__head { position: relative; z-index: 1; display: block; }
.value-card__head span { display: block; color: var(--cxl-ink); font-size: 20px; font-weight: 800; }
.value-card p { position: relative; z-index: 1; max-width: 76%; margin: 10px 0 0; color: var(--cxl-muted); font-size: 13px; line-height: 1.7; }
.factory-card { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 500px; overflow: hidden; background: #dedfe1; box-shadow: var(--cxl-shadow); }
.factory-card::before { content: "自有厂房"; position: absolute; z-index: 2; left: 0; bottom: 0; padding: 10px 18px; color: #fff; background: var(--cxl-red); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.factory-card::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.factory-card picture, .factory-card img { width: 100%; height: 100%; }
.factory-card img { min-height: 500px; object-fit: cover; object-position: var(--cxl-focal-x,50%) var(--cxl-focal-y,50%); transition: transform .55s ease; }
.factory-card:hover img { transform: scale(1.025); }

/* Products */
.products-section { background: var(--cxl-soft); border-top: 1px solid #eceef0; border-bottom: 1px solid #eceef0; }
.product-categories { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: -12px 0 34px; }
.product-categories a { min-width: 94px; padding: 8px 16px; border: 1px solid #d9dce0; color: #50565e; background: #fff; text-align: center; font-size: 14px; transition: .2s ease; }
.product-categories a:hover, .product-categories a.is-active { color: #fff; border-color: var(--cxl-red); background: var(--cxl-red); }
.product-carousel { position: relative; }
.product-carousel__viewport { overflow: hidden; }
.product-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px)/4); grid-template-rows: 1fr; gap: 20px; transition: transform .45s ease; }
.product-card { min-width: 0; background: #fff; border: 1px solid #e6e8ea; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #d8dadc; box-shadow: 0 16px 38px rgba(20,24,30,.09); }
.product-card > a { display: block; }
.product-card > a > img { width: 100%; aspect-ratio: 1.1/1; object-fit: cover; background: #f1f2f3; }
.product-card__body { position: relative; min-height: 92px; padding: 18px 18px 16px; border-top: 1px solid #eceef0; }
.product-card__body::after { content: "→"; position: absolute; right: 18px; bottom: 18px; color: #9ba0a7; font-family: Arial, sans-serif; transition: color .2s ease, transform .2s ease; }
.product-card:hover .product-card__body::after { color: var(--cxl-red); transform: translateX(3px); }
.product-card__category { display: block; margin-bottom: 5px; color: var(--cxl-red); font-size: 12px; font-weight: 700; }
.product-card h3 { margin: 0; padding-right: 26px; color: #282c31; font-size: 17px; line-height: 1.45; }
.product-carousel__arrow { position: absolute; z-index: 5; top: 40%; width: 42px; height: 56px; margin-top: -28px; border: 0; color: #fff; background: rgba(22,25,29,.78); font-size: 32px; cursor: pointer; transition: .2s ease; }
.product-carousel__arrow:hover { background: var(--cxl-red); }
.product-carousel__arrow--prev { left: -20px; }
.product-carousel__arrow--next { right: -20px; }
.product-carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.product-carousel__dots button { width: 24px; height: 3px; padding: 0; border: 0; background: #c9ccd0; cursor: pointer; }
.product-carousel__dots button.is-active { width: 42px; background: var(--cxl-red); }

/* Applications */
.applications-section { position: relative; color: #fff; background: #1c1f24; overflow: hidden; }
.applications-section::before { content: "CXL"; position: absolute; right: -30px; top: -80px; color: rgba(255,255,255,.025); font-family: Arial, sans-serif; font-size: 300px; font-weight: 900; line-height: 1; pointer-events: none; }
.applications-heading { position: relative; z-index: 1; max-width: 760px; margin: 0 auto 42px; text-align: center; }
.applications-heading__eyebrow { justify-content: center; color: #ff6963; }
.applications-heading h2 { color: #fff; }
.applications-heading p { margin: 14px 0 0; color: #a8aeb7; }
.application-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.application-card { position: relative; min-height: 270px; overflow: hidden; background: #292d33; }
.application-card picture, .application-card picture::after { position: absolute; inset: 0; }
.application-card picture::after { content: ""; background: linear-gradient(0deg, rgba(9,11,14,.92) 0%, rgba(9,11,14,.26) 64%, rgba(9,11,14,.04) 100%); }
.application-card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--cxl-focal-x,50%) var(--cxl-focal-y,50%); transition: transform .5s ease; }
.application-card:hover img { transform: scale(1.045); }
.application-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px; }
.application-card__body h3 { margin: 0 0 6px; color: #fff; font-size: 20px; }
.application-card__body p { margin: 0; color: #b3b8c0; font-size: 13px; }
.application-card:hover .application-card__body h3 { color: #ff6d67; }

/* News */
.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card { border: 1px solid var(--cxl-line); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 15px 36px rgba(20,24,30,.08); }
.news-card__media { overflow: hidden; background: #eee; }
.news-card__media img { width: 100%; aspect-ratio: 1.9/1; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__body { padding: 20px 22px 24px; }
.news-card__meta { color: var(--cxl-red); font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.news-card h3 { min-height: 52px; margin: 8px 0 9px; color: #2a2e34; font-size: 18px; line-height: 1.5; }
.news-card p { margin: 0; color: var(--cxl-muted); font-size: 13px; line-height: 1.75; }
/* Inquiry */
.home-inquiry { position: relative; overflow: hidden; padding: 58px 0; color: #fff; background: var(--cxl-red); }
.home-inquiry::after { content: ""; position: absolute; right: -110px; top: -110px; width: 380px; height: 380px; border: 72px solid rgba(255,255,255,.07); border-radius: 50%; }
.home-inquiry__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.home-inquiry__copy { max-width: 710px; }
.home-inquiry__eyebrow { color: rgba(255,255,255,.76); }
.home-inquiry__eyebrow::before { background: #fff; }
.home-inquiry h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); }
.home-inquiry__copy > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.78); }
.home-inquiry__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.home-inquiry__button { min-width: 156px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(255,255,255,.9); font-size: 14px; font-weight: 700; transition: .2s ease; }
.home-inquiry__button--primary { color: var(--cxl-red); background: #fff; }
.home-inquiry__button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90,0,0,.14); }

@media (max-width: 1120px) {
    .hero-slider { height: 590px; }
    .why-us__grid { column-gap: 40px; grid-template-columns: 1fr .9fr; }
    .factory-card, .factory-card img { min-height: 450px; }
    .product-carousel__arrow--prev { left: 4px; }
    .product-carousel__arrow--next { right: 4px; }
}

@media (max-width: 900px) {
    .hero-slider { height: min(72vh, 620px); min-height: 520px; }
    .why-us > .cxl-container { width: min(calc(100% - 32px), var(--cxl-container)); }
    .hero-slide__copy { width: min(calc(100% - 32px), var(--cxl-container)); padding: 20px 44px 24px 0; }
    .hero-slide h1 { font-size: clamp(36px, 7vw, 52px); }
    .hero-slide__description { font-size: 15px; }
    .hero-slider__arrow { width: 38px; height: 50px; font-size: 30px; }
    .hero-slider__arrow--prev { left: 8px; }
    .hero-slider__arrow--next { right: 8px; }
    .hero-slider__dots { width: min(calc(100% - 32px), var(--cxl-container)); bottom: 20px; }
    .why-us__grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 28px; }
    .why-us__intro { grid-column: 1; grid-row: auto; order: 1; }
    .factory-card { grid-column: 1; grid-row: auto; order: 2; min-height: 390px; }
    .value-grid { grid-column: 1; grid-row: auto; order: 3; margin-top: 0; }
    .factory-card img { min-height: 390px; }
    .product-grid { grid-auto-columns: calc((100% - 20px)/2); }
    .application-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2,1fr); }
    .home-inquiry__inner { align-items: flex-start; flex-direction: column; gap: 26px; }
    .home-inquiry__actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .hero-slider { height: 520px; min-height: 520px; }
    .why-us > .cxl-container { width: min(calc(100% - 24px), var(--cxl-container)); }
    .hero-slide__copy { width: min(calc(100% - 24px), var(--cxl-container)); padding-right: 24px; padding-bottom: 38px; }
    .hero-slide__copy::before { width: 40px; margin-bottom: 16px; }
    .hero-slide__kicker { margin-bottom: 10px; font-size: 12px; }
    .hero-slide h1 { font-size: 34px; line-height: 1.26; }
    .hero-slide__description { margin-top: 16px; font-size: 14px; line-height: 1.75; }
    .hero-slide__actions { margin-top: 22px; gap: 8px; }
    .hero-button { min-width: 126px; height: 44px; padding-inline: 17px; font-size: 14px; }
    .hero-slider__arrow { display: none; }
    .hero-slider__dots { bottom: 14px; }
    .hero-slider__dot { width: 42px; }
    .why-us__grid { gap: 24px; }
    .factory-card, .factory-card img { min-height: 270px; }
    .value-grid { grid-template-columns: 1fr; }
    .value-card { min-height: 118px; padding: 18px; }
    .value-card__index { right: 8px; bottom: 4px; font-size: 58px; }
    .value-card__head span { font-size: 18px; }
    .value-card p { max-width: 78%; }
    .product-categories { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .product-categories::-webkit-scrollbar { display: none; }
    .product-categories a { flex: 0 0 auto; }
    .product-carousel__viewport { overflow: visible; }
    .product-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 12px; scrollbar-width: none; transform: none !important; }
    .product-grid::-webkit-scrollbar { display: none; }
    .product-card { scroll-snap-align: start; }
    .product-carousel__arrow, .product-carousel__dots { display: none; }
    .application-grid { grid-template-columns: 1fr; gap: 12px; }
    .application-card { min-height: 230px; }
    .applications-heading { text-align: left; }
    .applications-heading__eyebrow { justify-content: flex-start; }
    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news-card h3 { min-height: 0; }
    .section-action--mobile { display: block; }
    .home-inquiry { padding: 48px 0; }
    .home-inquiry__actions { width: 100%; display: flex; }
    .home-inquiry__button { width: auto; min-width: 148px; }
}
