/* Banner */
.banner {
    margin-top: 80px;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000 url(../images/index/banner.png) center/cover no-repeat;
}

.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #000;
}

.banner-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner.video-ready .banner-video {
    opacity: 1;
}

.banner.video-ready .banner-poster {
    opacity: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: clamp(32px, 6vw, 82px);
    font-weight: 600;
    line-height: 1.2;
}

.banner-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 80px;
    font-size: clamp(20px, 2.5vw, 32px);
}

.banner-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
}

/* About */
.about {
    padding: 100px 0 80px;
    background: url(../images/index/about_bg.png) center/cover no-repeat;
}

.about-video {
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.about-video video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-video {
    background: url(../images/index/about-detail.png) center/cover no-repeat;
    position: relative;
}

.about-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-video.video-ready .about-media {
    opacity: 1;
}

.about-video.video-ready .about-poster {
    opacity: 0;
}

.about-subtitle {
    font-size: clamp(24px, 3vw, 40px);
    text-align: center;
    margin: 60px 0 80px;
    color: #000;
}

/* About Detail */
.about-detail {
    background: url(../images/index/about-detail.png) center/cover no-repeat;
    padding: 120px 0;
    position: relative;
}

.about-detail-content {
    max-width: 1000px;
    margin-left: auto;
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.54);
    border-radius: 8px;
}

.about-detail-content p {
    color: #003869;
    font-size: clamp(16px, 1.8vw, 28px);
    line-height: 1.8;
    text-indent: 2em;
    margin-bottom: 16px;
}

.about-detail-content p:last-child {
    margin-bottom: 0;
}

/* Solutions */
.solutions {
    padding: 100px 0;
    background: url(../images/index/plan_bg.png) center/cover no-repeat;
}

.solutions-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
    position: relative;
}

.solutions-toggle {
    display: none;
}

.solutions-panel {
    display: contents;
}

.btn-box {
    padding: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    display: flex;
    align-items: center;
    border-radius: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
    cursor: pointer;
}

.btn-box-right {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    left: auto;
    right: 0;
}

.btn-left {
    height: clamp(60px, 6vw, 100px);
    padding: 0 clamp(16px, 2vw, 30px);
    font-size: clamp(16px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #49a8ff, #2179ff);
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    border-bottom-right-radius: 0;
    white-space: nowrap;
}

.btn-right {
    height: clamp(60px, 6vw, 100px);
    width: clamp(60px, 6vw, 100px);
    padding: 0;
    background: linear-gradient(to right, #49a8ff, #2179ff);
    border-radius: 50%;
    border-top-left-radius: 0;
    font-size: clamp(28px, 3vw, 50px);
    color: #fff;
    font-weight: bold;
    margin-left: clamp(10px, 1.5vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solutions-item--reverse {
    flex-direction: row-reverse;
}

.solutions-text {
    flex: 1;
    min-width: 0;
}

.solutions-text p {
    color: #003869;
    font-size: clamp(16px, 1.5vw, 26px);
    line-height: 1.8;
    margin-bottom: 20px;
}

.solutions-text p:last-child {
    margin-bottom: 0;
}

.solutions-image {
    flex: 1.8;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
}

.solutions-image img {
    width: 100%;
    height: auto;
}

/* News */
.news {
    padding: 100px 0;
    background: url(../images/index/news.png) center/cover no-repeat;
}

.news-section-heading {
    position: relative;
}

.news-mobile-controls {
    display: none;
}

.news-swiper-wrap {
    position: relative;
    max-width: 1640px;
    margin: 60px auto 0;
    padding: 0 70px;
}

.news-swiper {
    overflow: hidden;
}

.news-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-img .news-date {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.news-card-body {
    padding: 24px;
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 121, 192, 0.92);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

@media (hover: none) {
    .news-card:active .news-card-overlay {
        opacity: 1;
    }
}

.news-card-overlay .news-date {
    color: #fff;
    margin-bottom: 16px;
}

.news-card-overlay .news-card-title {
    color: #fff;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-overlay .news-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.news-date {
    display: block;
    margin-bottom: 12px;
}

.news-date-month {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 600;
}

.news-date-day {
    font-size: clamp(16px, 1.5vw, 22px);
}

.news-card-title {
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-desc {
    font-size: clamp(13px, 1vw, 16px);
    color: #666;
    line-height: 1.6;
    height: calc(1.6em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
}

.news-nav-prev,
.news-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-nav-prev {
    left: 10px;
}

.news-nav-next {
    right: 10px;
}

.news-nav-prev::after,
.news-nav-next::after {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
}

.news-nav-prev::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.news-nav-next::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .banner-keywords {
        gap: 20px;
        margin-top: 50px;
    }

    .about-detail-content {
        margin: 0 auto;
        padding: 40px 50px;
    }

    .solutions-item {
        gap: 30px;
    }

    .news-swiper-wrap {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .news {
        padding: 60px 0;
    }

    .news-section-heading {
        margin-bottom: 24px;
    }

    .news-mobile-controls {
        position: absolute;
        top: calc(100% - 20px);
        right: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .news-mobile-arrow {
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #2f53d6;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 14px rgba(47, 83, 214, 0.2);
    }

    .news-mobile-current {
        min-width: 14px;
        color: #111;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .news-swiper-wrap {
        margin-top: 20px;
        padding: 0 24px;
    }

    .news-swiper {
        height: 396px;
    }

    .news-card {
        height: 190px;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(17, 29, 71, 0.12);
    }

    .news-card-img {
        height: 100%;
    }

    .news-card-img .news-date,
    .news-card-body,
    .news-card-overlay .news-date,
    .news-read-more {
        display: none;
    }

    .news-card-overlay {
        inset: auto 0 0;
        min-height: 45%;
        padding: 22px 16px 16px;
        justify-content: flex-end;
        background: linear-gradient(180deg, rgba(6, 21, 48, 0) 0%, rgba(6, 21, 48, 0.84) 100%);
        opacity: 1;
    }

    .news-card-overlay .news-card-title {
        margin-bottom: 6px;
        color: #fff;
        font-size: 20px;
    }

    .news-card-overlay .news-card-desc {
        height: calc(1.55em * 2);
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        line-height: 1.55;
    }

    .news-nav-prev,
    .news-nav-next {
        display: none;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .banner {
        min-height: 0;
        height: calc((100vw - 40px) * 9 / 16);
        max-height: 56vh;
        padding: 0 20px;
        background-color: #000;
        background-position: center center;
        background-size: contain;
    }

    .banner::after {
        content: "";
        position: absolute;
        inset: 0 20px;
        background: rgba(0, 0, 0, 0.18);
        z-index: 0;
        pointer-events: none;
    }

    .banner-poster,
    .banner-video {
        display: block;
        inset: 0 20px;
        width: calc(100% - 40px);
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }

    .banner-content {
        position: absolute;
        inset: 0 20px;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 24px 28px;
    }

    .banner-title {
        font-size: clamp(28px, 10vw, 52px);
    }

    .banner-keywords {
        gap: 16px;
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .banner-divider {
        height: 20px;
    }

    .about {
        padding: 60px 0 50px;
    }

    .about-subtitle {
        margin: 40px 0 50px;
    }

    .about-detail {
        padding: 60px 0;
    }

    .about-detail-content {
        padding: 30px 24px;
    }

    .about-detail-content p {
        font-size: 16px;
        line-height: 1.9;
    }

    .solutions {
        padding: 60px 0;
    }

    .solutions-item,
    .solutions-item--reverse {
        display: block;
        margin-top: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0;
        background: #eef4ff;
        border-radius: 0;
        overflow: hidden;
        border: 1px solid rgba(68, 154, 255, 0.16);
        border-left: 0;
        border-right: 0;
    }

    .solutions-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        min-height: 58px;
        padding: 12px 64px 12px 20px;
        border: 0;
        background: #d9e6ff;
        color: #214fbf;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        cursor: pointer;
    }

    .solutions-toggle::before {
        content: "";
        position: absolute;
        right: 22px;
        top: 50%;
        width: 29px;
        height: 29px;
        margin-top: -14px;
        background: url("../images/index/xiala.png") center / contain no-repeat;
        transition: transform 0.25s ease;
    }

    .solutions-item.is-open .solutions-toggle::before {
        transform: rotate(180deg);
    }

    .solutions-panel {
        display: none;
        padding: 0 0 20px;
    }

    .solutions-item.is-open .solutions-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 18px 16px;
        padding: 18px 20px 24px;
    }

    .solutions-image {
        order: 1;
        flex: 0 0 calc(48% - 8px);
        width: calc(48% - 8px);
        border-radius: 18px;
    }

    .solutions-text {
        order: 2;
        flex: 1 1 calc(52% - 8px);
        width: calc(52% - 8px);
    }

    .btn-box,
    .btn-box-right {
        order: 3;
        position: static;
        width: auto;
        margin-top: 6px;
        margin-left: calc(48% + 8px);
        padding: 0;
        background: none;
        justify-content: flex-start;
    }

    .btn-left {
        flex: none;
        min-width: 0;
        height: 50px;
        padding: 0 22px;
        font-size: 14px;
        white-space: nowrap;
        line-height: 50px;
        border-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .btn-right {
        display: none;
    }

    .solutions-text p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .solutions-text p:last-child {
        margin-bottom: 0;
    }

    .solutions .section-title,
    .solutions .section-bar {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .solutions .section-title {
        width: 100%;
    }

    .solutions .section-bar {
        margin-bottom: 28px;
    }

    .solutions-item:not(.is-open) .solutions-panel {
        padding: 0;
    }

    .solutions-item + .solutions-item {
        margin-top: 12px;
    }

    .news {
        padding: 60px 0;
    }

    .news-swiper-wrap {
        padding: 0 40px;
    }

    .news-nav-prev,
    .news-nav-next {
        width: 36px;
        height: 36px;
    }

    .news-nav-prev {
        left: 4px;
    }

    .news-nav-next {
        right: 4px;
    }

    .news-nav-prev::after,
    .news-nav-next::after {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}
