/* ===== Home 页面专属样式 ===== */

/* 横幅区域 */
.banner-section {
    margin-top: 50px;
    padding: 40px 60px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    background: #fff;
}
.banner-text h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
}
.banner-text .subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}
.banner-image {
    width: 90%;
    max-width: 4000px;
    aspect-ratio: 936 / 562;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* 固定文字区域 */
.fixed-text-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gallery-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: #333;
    margin-bottom: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-label.visible {
    opacity: 1;
}
.monument-title {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}
.monument-subtitle {
    font-size: 15px;
    color: #666;
    transition: opacity 0.3s ease;
}

/* 产品展示区域 - 滚动切换 */
.products-section {
    position: relative;
    z-index: 5;
    background: #fff;
    margin-top: 600px;
    padding: 0 20px;
    height: 500vh; /* 4个产品 + 额外1屏停留 */
}
.products-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-showcase {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 1600px;
}
.product-info {
    padding-top: 0;
}
.product-name {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.explore-all-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 2px;
    transition: background 0.3s;
}
.explore-all-btn:hover {
    background: #444;
}
.product-size {
    margin-top: 15px;
}
.product-size p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}
.product-main-image {
    width: 100%;
    height: 75vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    transition: filter 0.4s ease;
    filter: brightness(0.85);
}
.product-main-image:hover {
    filter: brightness(1.05);
}

/* 产品指示器（完整文本） */
.product-indicators {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
    pointer-events: none;
}
.indicator {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    color: #ccc;
    transition: color 0.4s ease;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.indicator-num {
    flex-shrink: 0;
    width: 16px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.indicator-text {
    white-space: nowrap;
}
.indicator.active {
    color: #333;
}

/* 项目展示区域 */
.projects-section {
    position: relative;
    z-index: 5;
    background: #fff;
    padding: 60px;
}
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.project-item {
    text-align: left;
    cursor: pointer;
    transition: opacity 0.3s;
}
.project-item:hover {
    opacity: 0.85;
}
.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
}
.blue-placeholder {
    background: #4a7fb5;
}
.project-item h3 {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #333;
}
.project-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* ===== Services 流动线段动画区域 ===== */
.service-flow-section {
    position: relative;
    z-index: 5;
    background: #fff;
    height: 1000vh;
}
.service-flow-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
.service-flow-label {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: 6px;
    color: #ddd;
    font-weight: bold;
    z-index: 10;
    margin: 0;
}
.service-flow-svg {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}
.service-flow-nodes {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 2;
}
.service-flow-node {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    padding-top: 18px; /* 内容统一显示在黑点下方 */
}
.node-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aaa;
    white-space: nowrap;
    height: 16px;
    line-height: 16px;
    margin-bottom: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}
.service-flow-node.active .node-label {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    height: 22px;
    line-height: 22px;
}
.node-content {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.service-flow-node.active .node-content {
    opacity: 1;
    transform: translateY(0);
}
.node-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.node-icon svg {
    width: 56px;
    height: 56px;
}
.node-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    white-space: nowrap;
}
.node-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}
.service-flow-bottom {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.service-flow-bottom.visible {
    opacity: 1;
}
.service-flow-gear-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: block;
}
.service-flow-gear-icon svg {
    display: block;
    width: 60px;
    height: 60px;
}
.service-flow-bottom-text {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
    margin: 0;
}

/* ===== 响应式 - 平板/手机 ≤768px ===== */
@media (max-width: 768px) {
    /* 横幅区域 */
    .banner-section {
        padding: 20px 16px 0;
    }
    .banner-text h1 {
        font-size: 22px;
    }
    .banner-image {
        width: 100%;
    }

    /* 固定文字区域 */
    .monument-title {
        font-size: 24px;
    }
    .monument-subtitle {
        font-size: 13px;
    }
    .gallery-label {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 30px;
    }

    /* 产品展示区域 */
    .products-section {
        margin-top: 350px;
        padding: 0 16px;
        height: 500vh;
    }
    .products-sticky {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-main-image {
        height: 50vh;
    }
    .product-indicators {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    .indicator {
        font-size: 11px;
        white-space: nowrap;
    }

    /* 项目展示区域 */
    .projects-section {
        padding: 40px 16px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Services 流动线段区域 - 手机端字体适配 */
    .service-flow-label {
        font-size: 11px;
        letter-spacing: 4px;
    }
    .node-label {
        font-size: 7px;
    }
    .service-flow-node.active .node-label {
        font-size: 11px;
    }
    .node-title {
        font-size: 13px;
        white-space: normal;
    }
    .node-icon {
        font-size: 26px;
    }
    .node-icon svg {
        width: 30px;
        height: 30px;
    }
    .node-desc {
        max-width: 200px;
        font-size: 10px;
    }
    .service-flow-gear-icon {
        width: 40px;
        height: 40px;
    }
    .service-flow-bottom-text {
        font-size: 10px;
    }
}

/* ===== 响应式 - 小手机 ≤480px ===== */
@media (max-width: 480px) {
    .banner-section {
        padding: 16px 12px 0;
    }
    .banner-text h1 {
        font-size: 18px;
    }
    .banner-image {
        width: 100%;
    }
    .products-section {
        margin-top: 280px;
        padding: 0 12px;
        height: 500vh;
    }
    .product-main-image {
        height: 40vh;
    }
    /* Services 小手机字体适配 */
}
