:root {
    --text: #1a1a1a;
    --muted: #7f8790;
    --accent: #f58600;
    --bg: #f4f8fc;
}

/* Scroll-reveal animation */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate][data-delay="300"] {
    transition-delay: 0.3s;
}

[data-animate][data-delay="600"] {
    transition-delay: 0.6s;
}

[data-animate][data-delay="900"] {
    transition-delay: 0.9s;
}

main *,
main *::before,
main *::after {
    box-sizing: border-box;
}

main {
    font-family: "Inter", "Noto Sans SC", sans-serif;
    color: var(--text);
    background: #fff;
}

main a {
    color: inherit;
    text-decoration: none;
}

main .wrap {
    width: calc(100vw - 240px);
    margin: 0 auto;
}

main .section-bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Homepage: remove body padding so hero goes to top */
body {
    padding-top: 0 !important;
}

/* ========== 1. Hero Carousel ========== */
main .hero {
    position: relative;
}

main .hero-swiper {
    width: 100%;
    height: clamp(500px, 50vw, 948px);
}

main .hero-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

main .hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 26, 45, 0.1) 0%, rgba(12, 26, 45, 0.3) 100%);
}

main .hero-slide .content {
    position: relative;
    z-index: 2;
    height: clamp(500px, 50vw, 948px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

main .hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 96px);
    line-height: 1;
    letter-spacing: -0.04em;
}

main .hero p {
    margin: 14px 0 34px;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
}

main .hero-stats {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

main .hero-stats div {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 14px;
}

main .hero-stats strong {
    display: block;
    font-size: clamp(24px, 2.5vw, 40px);
    font-weight: 900;
}

main .hero-stats span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

main .hero .swiper-button-prev,
main .hero .swiper-button-next {
    color: #fff;
}

main .hero .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

main .hero .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ========== 2. Solutions ========== */
main .solutions {
    /* min-height: 948px; */
    width:100%;
    background-image: url("../images/第二节背景.jpg");
    padding: 120px 120px 80px;
    box-sizing: border-box;
}

main .solutions .wrap {
    display: grid;
    grid-template-columns: 510px 1fr;
    gap: 40px;
    align-items: start;
}

main .solution-panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

main .solution-panel h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

main .solution-panel p {
    margin: 0;
    color: #6a7582;
    line-height: 1.6;
}

main .solution-tabs {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 24px;
    justify-items: start;
}

main .solution-tabs li {
    height: 56px;
    border-radius: 30px;
    background: #fff;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    cursor: pointer;
    width: 288px;
    transition: all 0.3s ease;
    position: relative;
}

main .solution-tabs.link li {
   padding: 0px 24px;
}
main .solution-tabs.link li a{
  height:100%;
  line-height:56px;
  
}

/* --- placeholder icon on non-active tabs --- */
main .solution-tabs li::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-right: 18px;
    flex-shrink: 0;
    background-image: url("/skins/default/images/jia.png");
    background-size: contain;
    background-repeat: no-repeat;
}

main .solution-tabs li.active::before {
    background-image: url("/skins/default/images/jia-white.png");
}

main .solution-tabs li.active {
    color: #fff;
    background: var(--accent);
    border-radius: 30px;
    font-size: 18px;
    width: 288px;
    height: 56px;
}

/* --- "了解更多" on active tab top-right --- */
main .solution-tabs li::after {
    display: none;
}

main .solution-tabs li span {
    display: none;
}

main .solution-visual h3 {
    margin: 6px 0;
    text-align: right;
    font-size: clamp(34px, 4vw, 48px);
}

main .solution-visual p {
    margin: 0 0 22px;
    text-align: right;
    color: #1a1a1a;
    font-size: 18px;
}

main .solution-link-wrap {
    text-align: right;
    margin-bottom: 28px;
}

main .solution-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    transition: gap 0.3s ease, background 0.3s ease, color 0.3s ease;
}

main .solution-link:hover {
    gap: 8px;
    background: var(--accent);
    color: #fff;
}

main .solution-link:hover {
    gap: 8px;
}

main .solution-link .arrow-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

main .solution-link:hover .arrow-icon {
    transform: translateX(4px);
}

main .solution-img-wrap {
    position: relative;
}

main .solution-img-wrap .img-a,
main .solution-img-wrap .img-b {
    width: 100%;
    transition: opacity 0.8s ease;
}

main .solution-img-wrap .img-b {
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobile-only solution panel (hidden on desktop) */
main .solution-panel-mobile {
    display: none;
}

/* ========== 3. Products ========== */
main .products {
    min-height: clamp(500px, 50vw, 948px);
    position: relative;
    background-image: url("../images/第三节背景.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-image 0.8s ease;
}

main .products.products1 {
    background-image: url("../images/第三节背景.jpg");
}

main .products.products2 {
    background-image: url("../images/粉体处理底图.png");
}

main .products.products3 {
    background-image: url("../images/信息化系统底图.png");
}

main .product-grid {
    position: absolute;
    z-index: 2;
    display: flex;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
}

main .product-item {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
}

main .product-item:last-child {
    border-right: 0;
}

main .product-item.expanded {
    /* flex: 5.8; */
     flex: 4;
    padding: 60px 60px 30px;
    justify-content: center;
   
}
/* main #select2.expanded{
    border-right:0;
} */

main .product-item.shrunk {
    flex: 0.6;
    padding: 40px 20px;
    text-align: center;
}

main .product-item.shrunk .product-text small {
    align-self: center;
}

main .product-item.shrunk .product-bottom {
    justify-content: center;
}

/* --- Text section --- */
main .product-item .product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
}

main .product-item.expanded .product-text {
    flex: 1;
    justify-content: center;
    padding-top: 60px;
    margin-left: 60px;
    margin-right: 60px;
    animation: fadeInText 0.4s ease 0.3s both;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Divider --- */
main .product-item .product-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.26);
    width: 100%;
    margin: 16px 0;
}

main .product-item.expanded .product-divider {
    width: calc(100% + 120px);
    margin-left: -60px;
    margin-bottom: 30px;
}

main .product-item.shrunk .product-divider {
    display: none;
}

/* --- Bottom row (image + arrow) --- */
main .product-item .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .product-item.expanded .product-bottom {
    margin-left: 60px;
    margin-right: 60px;
}


main .product-item small {
    font-size: 22px;
    opacity: 0.95;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    align-self: flex-start;
}

main .product-item small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: #fff;
}

main .product-item h3 {
    margin: 16px 0;
    font-size: clamp(44px, 4.5vw, 68px);
    line-height: 1.1;
}

main .product-item.shrunk h3 {
    font-size: clamp(22px, 2vw, 32px);
}

main .product-item .product-desc {
    display: none;
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 520px;
}

main .product-item.expanded .product-desc {
    display: block;
}

main .product-item .product-img {
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: 0s;
    border-radius: 12px;
}

main .product-item.expanded .product-img {
    opacity: 1;
    transition-delay: 0.6s;
    max-width: 960px;
}

main .product-item.shrunk .product-img {
    display: none;
}

main .product-item .arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #26313d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease;
}

main .product-item.expanded .arrow {
    width: 56px;
    height: 56px;
}

/* ========== 4. About ========== */
main .about {
    min-height: 948px;
    background-image: url("../images/第四节背景.jpg");
    position: relative;
    padding: 120px 0 90px;
}

main .play-btn-wrap {
    text-align: center;
    margin: 60px auto 40px;
}

main .play-btn {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

main .play-btn:hover {
    transform: scale(1.1);
}

main .center-copy {
    text-align: center;
}

main .center-copy h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
}

main .center-copy p {
    margin: 20px auto 18px;
    max-width: 1040px;
    font-size: clamp(16px, 2vw, 24px);
}

main .link-btn {
    color: var(--accent);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
}

main .metrics {
    margin-top: 90px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    background: transparent;
}

main .metrics::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    pointer-events: none;
}

main .metrics div {
    padding: clamp(16px, 2vw, 28px) clamp(10px, 1.2vw, 18px);
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

main .metrics div::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 1px;
    height: 70%;
    background: rgba(255, 255, 255, 0.25);
}

main .metrics div:last-child::after {
    display: none;
}

main .metrics strong {
    display: block;
    font-size: clamp(28px, 3.75vw, 72px);
    font-weight: 800;
}

main .metrics div:not(:first-child) strong::after {
    content: "+";
}

main .metrics span {
    display: inline-block;
    margin-top: clamp(6px, 1vw, 10px);
    font-size: clamp(12px, 0.9vw, 16px);
    border-bottom: 1px solid #fff;
    padding-bottom: clamp(4px, 0.6vw, 8px);
}

main .metric-icon {
    vertical-align: middle;
    margin-right: 6px;
}

/* ========== 5. News ========== */
main .news {
    background-image: url("../images/第五节背景.jpg");
    padding: 120px 0 85px;
}

main .center-copy.dark h2,
main .center-copy.dark p {
    color: #1a1a1a;
}

main .card-row {
    margin-top: 54px;
    overflow: hidden;
    padding-bottom: 50px;
}

main .card-row .swiper-slide {
    height: auto;
}

main .news-pagination {
    bottom: 0 !important;
}

main .news-wrap {
    position: relative;
}

main .news-nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #26313d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

main .news-nav:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

main .news-prev {
    left: -28px;
}

main .news-next {
    right: -28px;
}

main .news-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.6;
}

main .news-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

main .card {
    min-height: 370px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 10px;
    transition: background 0.8s ease, color 0.8s ease, box-shadow 0.8s ease;
    cursor: pointer;
}

main .card .card-readmore {
    display: none;
}

main .card-active .card-readmore {
    display: inline-block;
    margin-top: 24px;
    font-weight: 700;
}

main .card time {
    font-weight: 700;
    color: #364351;
}

main .card h3 {
    font-size: 24px;
    margin: 20px 0 14px;
    line-height: 1.35;
}

main .card p {
    margin: 0;
    color: #667383;
    font-size: 18px;
    line-height: 1.6;
}

main .card-active {
    background: linear-gradient(180deg, #f69b2f, #f58600);
    color: #fff;
}

main .card-active time,
main .card-active h3,
main .card-active p {
    color: #fff;
}

/* ========== 6. Join ========== */
main .join {
    position: relative;
     background-image:  url("../images/第六节背景.jpg");
     display: grid;
    place-items: start center;
   padding:150px 0;
}

main .join .center-copy {
    position: relative;
    z-index: 2;
}

/* ========== Header Fixed + Transparent ========== */
.top-nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 120px;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.6s ease;
    box-shadow: none;
}

.top-nav.top-nav-hidden {
    transform: translateY(-100%);
}

.top-nav .logo {
    filter: brightness(0) invert(1);
}

.top-nav .menu a {
    color: #fff;
}

.top-nav .tools button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.top-nav.nav-solid {
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.top-nav.nav-solid .logo {
    filter: none;
}

.top-nav.nav-solid .menu a {
    color: #1a1a1a;
}

.top-nav.nav-solid .tools button {
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

.top-nav.header-transparent {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.top-nav.header-transparent .logo {
    filter: brightness(0) invert(1);
}

.top-nav.header-transparent .menu a {
    color: #fff;
}

.top-nav.header-transparent .tools button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .top-nav {
        padding: 0 60px;
    }

    main .solutions .wrap {
        /* grid-template-columns: 1fr; */
         grid-template-columns: 310px 1fr;
    }

    main .product-item {
        padding: 28px;
    }

}

@media (max-width: 900px) {
    main .join .center-copy.dark h2,
main .join .center-copy.dark p {
    color: #fff;
}
    main .hero{
        min-height:200px !important;
    }
    .swiper-slide.swiper-slide-active{
        width:100% !important;
      
    }
    main .card-row .swiper-slide{
        height:220px !important;
    }
       main .card-row .swiper-slide a{
        height:220px !important;
        display: block;
    }
          main .card-row .swiper-slide a .card{
        height:220px !important;
        display: block;
    }

    .top-nav {
        padding: 0 24px;
    }
   main .join{
     background:  linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url("../images/第六节背景.jpg") no-repeat;
     background-size:100% 250px;
     height:250px;
     padding: 50px 16px 60px !important;

   }
    main .wrap {
        width: min(1680px, calc(100vw - 32px));
    }

    main .hero-swiper,
    main .hero-slide .content {
        height: clamp(350px, 55vw, 720px);
    }

    main .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    main .product-grid {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        width: 100%;
    }

    main .product-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.26);
    }

    main .product-item:last-child {
        border-bottom: 0;
    }

    main .product-item.expanded,
    main .product-item.shrunk {
        flex: 1;
        padding: 28px;
    }

    main .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: transparent;
        border-radius: 0;
    }

    main .metrics div {
        border-right: 0;
        background: rgba(65, 148, 224, 0.75);
    }

    main .card-row {
        padding-bottom: 44px;
    }

    /* Mobile solutions layout */
    main .solutions .wrap {
        display: block;
    }

    main .solution-panel,
    main .solution-visual {
        display: none;
    }

    main .solution-panel-mobile {
        display: block;
    }

    main .solution-mobile-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    main .solution-mobile-tabs button {
        padding: 10px 8px;
        border: 1px solid #d8e1eb;
        border-radius: 999px;
        background: #fff;
        color: #1a1a1a;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        line-height: 1.3;
    }

    main .solution-mobile-tabs button.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

    main .solution-mobile-content h3 {
        margin: 16px 0 8px;
        font-size: 22px;
        color: #1a1a1a;
    }

    main .solution-mobile-content p {
        margin: 0 0 16px;
        font-size: 14px;
        color: #333;
        line-height: 1.6;
    }

    main .solution-mobile-img img {
        width: 100%;
        border-radius: 12px;
    }

    main .solution-panel-mobile .solution-link-wrap {
        text-align: left;
    }
}

.nav-dropdown .dropdown-col a {
    /* background: red !important; */
    position: relative;

}

.dropdown-col {
    padding: 0 40px;
    width: 300px;
}

.nav-dropdown .dropdown-col a:after {
    display: block;
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-left: 2px solid #999;
    border-top: 2px solid #999;
    left: -50px;
    top: 18px;
    transform: rotate(135deg);
}

.active .dropdown-col a:hover {

    color: #f69b2f !important;
}

.nav-dropdown .dropdown-col a:hover:after {
    border-left: 2px solid #f69b2f;

    border-top: 2px solid #f69b2f;

}