/* Hero 区域 */
.hero {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* padding: 100px 5% 60px; */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    min-height: 548px;
}

/* 默认隐藏视频，仅 PC 端显示 */
.hero-video {
    display: none;
}

@media (max-width: 768px) {
    .hero-content {
        min-height: 548px;
        background-size: auto 100%;
        background-position: center center;
    }
}

/* PC 端（≥769px）：用视频替代图片背景 */
@media (min-width: 769px) {
    .hero {
        min-height: auto;
        padding: 0;
    }
    .hero .hero-content {
        display: none;
    }
    .hero-video {
        display: block;
        width: 100%;
        height: auto;
        max-height: 100vh;
        object-fit: cover;
        background: #000;
        /* 关闭任何可能的缩放/动画 */
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Hero1 区域 */
.hero1 {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content1 {
    width: 100%;
    /* max-width: 1200px; */
    min-height: 862px;
    transform: none !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 默认隐藏视频，仅 PC 端显示 */
.hero1-video {
    display: none;
}

/* 视频上方左侧标题覆盖层：默认隐藏，PC 端显示 */
.hero1-overlay {
    display: none;
}

@media (max-width: 768px) {
    .hero-content1 {
        min-height: 541px;
        background-size: auto 100%;
        background-position: center center;
    }
}

/* PC 端（≥769px）：用视频替代背景图 */
@media (min-width: 769px) {
    .hero-content1 {
        background: #000 !important;     /* 兜底色 */
    }
    .hero1-video {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        pointer-events: none;
    }
    .hero-content1 > .hero1-inner {
        position: relative;
        z-index: 1;
        width: 100%;
    }
    /* 视频左侧中部覆盖标题 */
    .hero1-overlay {
        display: block !important;
        position: absolute;
        left: 14%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        color: #fff;
        text-align: left;
        max-width: 480px;
        pointer-events: none;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
        opacity: 1 !important;
    }
    .hero1-overlay-title {
        font-size: clamp(32px, 4vw, 56px);
        font-weight: 700;
        line-height: 1.15;
        margin: 0 0 12px 0;
        color: #fff !important;
        letter-spacing: 1px;
    }
    .hero1-overlay-subtitle {
        font-size: clamp(16px, 1.6vw, 22px);
        font-weight: 400;
        line-height: 1.4;
        margin: 0;
        color: #fff !important;
        opacity: 0.95;
        letter-spacing: 0.5px;
    }
}

.hero1-inner {
    /* max-width: 800px; */
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero1 h1 {
    font-size: clamp(20px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    margin-top: 20px;
}

.hero1 p {
    font-size: clamp(16px, 2.5vw, 20px);
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 12px;
    padding: 0 25px;
    text-align: left;
    font-weight: 500;
}

.hero1-btns {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, auto);
    justify-content: center;
    gap: 0;
}

.hero1-btns > div {
    text-align: center;
    padding: 15px 30px;
    width: 170px;
    border-right: 1px solid rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.7);
}

.hero1-btns > div:nth-child(2n) {
    border-right: none;
}
.hero1-btns > div:nth-child(5),.hero1-btns > div:nth-child(6) {
    border-bottom: none;
}

@media (min-width: 769px) {
    .hero1-btns {
        display: flex;
        gap: 36px;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero1-btns > div {
        text-align: center;
        width: 140px;
        flex-shrink: 0;
        padding: 0;
        border: none;
    }

    .hero1 p {
        text-align: center;
    }
}

.hero1-btns div .number {
    display: inline-block;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    
}
.hero1-btns div .unit {
    font-size: 16px;
    display: inline-block;
}
.hero1-btns p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Hero2 区域 */
.hero2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.hero-content2 {
    flex: 1 1 50%;
    min-height: 500px;
    order: 2; /* 图片在右边 */
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (min-width: 769px) {
    .hero-content2 {
        background-image: var(--pc-bg) !important;
    }
    .hero1-btns {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .hero1-btns > div {
        text-align: center;
        flex-shrink: 0;
    }
    
    .hero1-btns span {
        display: block;
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        
    }
    
    .hero1-btns p {
        font-size: 12px;
        color: rgba(255,255,255,0.8);
        margin: 0;
        padding: 0;
    }
}

.hero2-inner {
    flex: 1 1 50%;
    margin: 0;
    text-align: center;
    color: var(--white);
    padding: 20px 30px;
    order: 1; /* 文字在左边 */
}

@media (max-width: 768px) {
    .hero2 {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content2 {
        flex: 0 0 auto;
        width: 100%;
        min-height: 320px;
        order: 1; /* 移动端图片在上 */
    }

    .hero2-inner {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        order: 2; /* 移动端文字在下 */
        border-top: 1px solid rgba(159,159,159,0.7);
    }
}

.hero2 h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero2 p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 32px;
    padding: 0 25px;
}

.hero2-btns {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    max-width: 420px;
}

.hero2-btns > div {
    text-align: left;
    width: 120px;
    flex-shrink: 0;
}

.hero2-btns > div:last-child {
    width: 264px;
}

@media (min-width: 769px) {
    .hero2-btns {
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: flex-start;
        row-gap: 28px;
    }

    .hero2-btns > div {
        width: 35%;
        min-width: auto;
        text-align: left;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .hero2-btns > div:last-child {
        width: 50%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .hero2-btns {
        max-width: 380px;
        gap: 8px;
        margin-top: 10px;
    }

    .hero2-btns > div {
        width: 90px;
    }

    .hero2-btns > div:last-child {
        width: 190px;
    }
}

.hero2-btns span {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #f5c244;
}

.hero2-btns p {
    font-size: 12px;
    color: rgba(0,0,0,0.8);
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .hero2-btns span {
        font-size: 30px;
    }

    .hero2-btns p {
        font-size: 20px;
    }
}

/* 成功案例轮播 */
.success-cases {
    background: #eaf3fb; /* 浅蓝色背景 */
    padding: 60px 0;
}

.success-cases-title {
    text-align: center;
    font-size: 43px;
    font-weight: 700;
    color: #2c3e50; /* 深灰 */
    margin: 0 0 50px;
    line-height: 1.2;
    position: relative;
}

.success-cases-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #f5c244; /* 黄色 */
    border-radius: 2px;
}

.success-cases-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.success-cases-viewport {
    overflow: hidden;
    width: 100%;
}

.success-cases-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.success-cases-track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.success-case-card {
    /* 宽度由 JS 动态算 = (容器 - (n-1)*gap) / n，所有卡尺寸一致 */
    flex: 0 0 auto;
    margin-right: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.18);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: auto;
}

.success-case-card:last-child {
    margin-right: 0;
}

.success-case-img {
    width: 100%;
    padding: 19px 19px 0 19px;
    height: 170px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .success-case-img {
        height: 280px;
        padding: 19px;
    }
}

.success-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.success-case-location {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.success-cases-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 0 12px;
}

.success-cases-dots {
    display: none;
    gap: 10px;
    align-items: center;
}

.success-cases-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.success-cases-dots .dot:hover {
    background: rgba(44, 62, 80, 0.5);
}

.success-cases-dots .dot.is-active {
    background: #f5c244;
    transform: scale(1.3);
}

.success-cases-arrows {
    display: flex;
    align-items: center;
    gap: 14px;
}

.success-arrow {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s, opacity 0.3s;
    /* 用 font-size: 0 隐藏按钮内的 "<" ">" 文字，图片才是可视内容 */
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: 100%;
    overflow: hidden;
}

/* 左箭头（左边有数据/能往前） */
.success-arrow.left {
    background-image: url('/images/yes-l.png');
}
.success-arrow.left:disabled {
    background-image: url('/images/no-l.png');
    cursor: not-allowed;
}

/* 右箭头（右边有数据/能往后） */
.success-arrow.right {
    background-image: url('/images/yes-r.png');
}
.success-arrow.right:disabled {
    background-image: url('/images/no-r.png');
    cursor: not-allowed;
}

.success-arrow:hover:not(:disabled) {
    transform: scale(1.08);
}

.success-arrow:disabled {
    opacity: 0.6;
}
.hero-content3 {
    width: 100%;
    min-height: 720px;
}
@media (max-width: 768px) {
    .success-cases {
        padding: 20px 0 20px;
    }

    .success-cases-title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .success-cases-title::after {
        width: 44px;
        height: 3px;
        bottom: -10px;
    }

    .success-cases-carousel {
        /* 移动端左右各 15px 留白；JS 改用 viewport.offsetWidth 算卡片宽度，所以 padding 不会让卡片溢出 */
        padding: 0 15px;
    }

    .success-cases-viewport {
        /* viewport 宽度 = carousel 内容区宽度（已扣除 15+15 padding） */
        width: 100%;
    }

    .success-case-card {
        aspect-ratio: auto;
        min-height: 220px;
    }

    .success-case-img {
        padding: 19px 19px 0 19px;
        height: 170px;
        background-color: #fff;

    }
    .success-case-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .success-case-location {
        font-size: 14px;
        padding: 10px 24px;
    }

    .success-arrow {
        width: 36px;
        height: 36px;
        /* font-size 0 已在基础规则设置，移动端不要用文字符 */
    }
    .hero-content3 {
        min-height: 630px;
        margin-top: -30px;
    }
}

/* Hero3 区域 */
.hero3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f9fa;
}

.hero3-title {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 24px;
    color: var(--text-dark, #222);
    line-height: 1.2;
    
}
.hero3-subtitle {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #979797;
    background-color: #f7f9fa;
}

.hero3-grid {
    width: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    margin: 0 18px;
    background-color: #f7f9fa;
}


.hero-content4 {
    width: 100%;
    min-height: 200px;
    
    position: relative;

}
.hero-content-title {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    z-index: 2;
}
.hero4-title {
    display: none;
    text-align: center;
    font-size: 43px;
    font-weight: 700;
    color: #070806;
    margin: 50px 0 30px;
    line-height: 1.2;
    position: relative;
}

@media (min-width: 769px) {
    .hero4-title {
        display: block;
    }
}

.hero4-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #f5c244;
    border-radius: 2px;
}

.hero4-content {
    width: 100%;
    min-height: 310px;
}

/* PC 端：高度 250px + 切到 pc-8.png */
@media (min-width: 769px) {
    .hero4-content {
        height: 250px;
        min-height: 250px;
        background-image: var(--pc-bg) !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }
    
}
.hero-content5 {
    width: 100%;
    min-height: 220px;
    position: relative;
}

/* PC 端：上方大图 100%，下方左右两图 50/50 */
@media (min-width: 769px) {
    .hero3-title {
        font-size: 43px;
        margin: 40px 0 28px;
    }

    .hero3-row {
        display: flex;
        flex-direction: row;
        /* gap: 20px; */
        width: 100%;
    }

    .hero3-row .hero-content4,
    .hero3-row .hero-content5 {
        flex: 1 1 50%;
        width: 50%;
    }

    .hero3 .hero-content3,
    .hero3 .hero-content4,
    .hero3 .hero-content5 {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
        cursor: pointer;
        background-size: 100% auto !important;
    }

    /* PC 端切换为 PC 专用图 */
    .hero-content3,
    .hero-content4,
    .hero-content5 {
        background-image: var(--pc-bg) !important;
    }

    /* 悬停放大（用 !important 压过 chy-reveal-zoom 入场动画的 transform） */
    .hero3 .hero-content3:hover,
    .hero3 .hero-content4:hover,
    .hero3 .hero-content5:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    .hero-content4 {
        width: 100%;
        min-height: 420px;
    }
}

/* 移动端：保持单列堆叠，悬停效果不适用 */
@media (max-width: 768px) {
    .hero3-title {
        font-size: 18px;
        margin: 20px 0 0;
        
    }
    .hero-content4 {
        margin-top: -30px;
    }
    .hero3-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: #667eea;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: #667eea;
}

/* 服务区域 */
.section {
    padding: 80px 5%;
    background-color: #F7F9FA;
}

.section-header {
    text-align: center;
    max-width: 600px;
}

.section-header h2 {
    font-size: clamp(22px, 4vw, 40px);
    color: var(--text-dark);
}

.section-header p {
    color: #979797;
    font-size: 14px;
}

.services {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* 关于区域 */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 100px;
}

/* 产品展示 */
.products {
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--white);
}

.product-info {
    padding: 24px;
    background: var(--white);
}

.product-info h3 {
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.product-link:hover {
    text-decoration: underline;
}

/* 联系区域 */
.contact {
    background: var(--text-dark);
    color: var(--white);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item span {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}



/* @media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
    }
} */

/* 响应式适配 */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        /* padding: 120px 5% 60px; */
    }

    .section {
        padding: 10px 5%;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}