/* EEG Page Styles */

/* Banner */
.eeg-banner {
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
}

.eeg-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro + Tech (shared background) */
.eeg-intro {
    padding: 100px 0 120px;
    background: url(../images/eeg/product_bg.png) center/cover no-repeat;
}

.eeg-intro-content {
    position: relative;
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
}

.eeg-intro-img {
    width: 100%;
    height: auto;
    display: block;
}

.eeg-intro-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 120px 60px;
}

.eeg-intro-overlay h2 {
    font-size: clamp(28px, 2.2vw, 40px);
    font-weight: 600;
    color: #fff;
}

.eeg-intro-bar {
    width: 80px;
    height: 6px;
    background: #3b8dff;
    border-radius: 3px;
    margin: 30px 0;
}

.eeg-intro-overlay p {
    font-size: clamp(16px, 1.5vw, 30px);
    color: #fff;
    line-height: 1.8;
}

.eeg-tech-title {
    margin-top: 100px;
}

/* Tech Cards */
.eeg-tech-subtitle {
    max-width: 1100px;
    margin: 50px auto 0;
    text-align: center;
    font-size: clamp(16px, 1.5vw, 30px);
    color: #333;
    line-height: 1.8;
}

.eeg-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 33px;
    margin-top: 80px;
}

.eeg-tech-card {
    background: #fff;
    border-radius: 42px;
    overflow: hidden;
    text-align: center;
}

.eeg-tech-card img {
    width: 100%;
    aspect-ratio: 386 / 294;
    object-fit: cover;
    display: block;
}

.eeg-tech-card h3 {
    font-size: clamp(18px, 1.8vw, 34px);
    font-weight: 600;
    color: #333;
    margin-top: 50px;
    padding: 0 30px;
}

.eeg-tech-card p {
    font-size: clamp(14px, 1.3vw, 24px);
    color: #333;
    line-height: 1.9;
    padding: 40px 30px 60px;
}

/* Modules Section */
.eeg-modules {
    padding: 100px 0 0;
}

.eeg-modules > .container {
    padding-bottom: 44px;
}

.eeg-modules-mobile-head,
.eeg-modules-tabs,
.eeg-modules-dots {
    display: none;
}

.eeg-modules-track {
    display: block;
}

.eeg-module-item {
    padding: 90px 0;
    background: #f3f6fb;
}

.eeg-module-item--alt {
    background: #fff;
}

.eeg-module-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.eeg-module-inner--reverse {
    flex-direction: row-reverse;
}

.eeg-module-image {
    flex: 1.4;
    min-width: 0;
}

.eeg-module-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.eeg-module-text h3 {
    font-size: clamp(24px, 2.2vw, 40px);
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.eeg-module-text p {
    font-size: clamp(15px, 1.3vw, 24px);
    color: #333;
    line-height: 1.9;
}

/* System Section */
.eeg-system {
    padding: 80px 0 100px;
}

.eeg-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    margin-top: 55px;
}

.eeg-system-track,
.eeg-system-dots {
    display: block;
}

.eeg-system-card {
    background: #f3f6fb;
    border-radius: 42px;
    overflow: hidden;
}

.eeg-system-card img {
    width: calc(100% - 44px);
    margin: 22px auto 0;
    aspect-ratio: 474 / 309;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

.eeg-system-card h3 {
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 600;
    color: #333;
    padding: 40px 50px 0;
}

.eeg-system-card p {
    font-size: clamp(14px, 1.3vw, 24px);
    color: #333;
    line-height: 1.9;
    padding: 10px 50px 50px;
}

/* Platform Section */
.eeg-platform {
    padding: 80px 0 100px;
}

.eeg-platform-card {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 55px;
    background: #f3f6fb;
    border-radius: 42px;
    padding: 37px 60px 37px 31px;
}

.eeg-platform-img {
    width: 30%;
    flex-shrink: 0;
    aspect-ratio: 474 / 309;
    object-fit: cover;
    border-radius: 20px;
}

.eeg-platform-text {
    font-size: clamp(14px, 1.3vw, 24px);
    color: #333;
    line-height: 1.9;
}

/* Data Section */
.eeg-data {
    padding: 0 0 100px;
}

.eeg-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 55px;
}

.eeg-data-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f3f6fb;
    border-radius: 42px;
    padding: 37px 40px 37px 31px;
}

.eeg-data-card-img {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 20px;
}

.eeg-data-card-body h3 {
    font-size: clamp(16px, 1.3vw, 24px);
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.eeg-data-card-body p {
    font-size: clamp(14px, 1.3vw, 24px);
    color: #333;
    line-height: 1.9;
}

/* News Section */
.eeg-news {
    padding: 80px 0 120px;
}

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

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

.eeg-news-grid {
    display: flex;
    gap: 24px;
    margin-top: 60px;
    min-height: 480px;
}

/* 左侧大图：占 1/2 宽度 */
.eeg-news-card-large {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

/* 右侧容器：占 1/2 宽度，纵向排列 */
.eeg-news-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 右侧小卡片：均分高度 */
.eeg-news-card-small {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.eeg-news-card-large:hover,
.eeg-news-card-small:hover {
    transform: translateY(-4px);
}

.eeg-news-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eeg-news-card-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 55px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
}

.eeg-news-card-text h3 {
    font-size: clamp(20px, 1.9vw, 36px);
    font-weight: 600;
    margin-bottom: 16px;
}

.eeg-news-card-text p {
    font-size: clamp(14px, 1.2vw, 22px);
    line-height: 1.6;
    opacity: 0.92;
}

.eeg-news-more-wrapper {
    padding: 30px 0 80px 0;
}

.eeg-news-more-wrapper .container {
    display: flex;
    justify-content: flex-end;
}

.eeg-news-more-link {
    font-size: 18px;
    color: #666;
    transition: color 0.3s;
}

.eeg-news-more-link:hover {
    color: #1a3fb7;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .eeg-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .eeg-module-inner {
        gap: 40px;
    }

    .eeg-system-grid {
        gap: 24px;
    }

    .eeg-platform-card {
        gap: 40px;
        padding: 30px;
    }

    .eeg-data-grid {
        gap: 24px;
    }

    .eeg-data-card {
        gap: 24px;
        padding: 24px;
    }

    .eeg-data-card-img {
        width: 150px;
        height: 150px;
    }

    .eeg-news-grid {
        height: 500px;
        gap: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .eeg-intro {
        padding: 60px 0 80px;
    }

    .eeg-intro-content {
        overflow: visible;
    }

    .eeg-intro-overlay {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 24px 0 0;
    }

    .eeg-intro-overlay h2 {
        font-size: 22px;
        color: #333;
    }

    .eeg-intro-bar {
        margin: 16px 0;
    }

    .eeg-intro-overlay p {
        color: #333;
    }

    .eeg-tech-title {
        margin-top: 60px;
    }

    .eeg-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 40px;
    }

    .eeg-tech-card {
        border-radius: 24px;
    }

    .eeg-tech-card h3 {
        margin-top: 20px;
        padding: 0 16px;
    }

    .eeg-tech-card p {
        padding: 16px 16px 24px;
        line-height: 1.7;
    }

    .eeg-modules {
        padding: 60px 0 0;
    }

    .eeg-modules > .container {
        padding-bottom: 28px;
    }

    .eeg-modules-mobile-head {
        display: block;
        overflow: hidden;
        padding-bottom: 20px;
    }

    .eeg-modules-tabs {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .eeg-modules-tabs::-webkit-scrollbar {
        display: none;
    }

    .eeg-modules-tab {
        flex: 0 0 auto;
        min-width: 128px;
        padding: 0 24px;
        height: 52px;
        border-radius: 999px;
        border: 2px solid #2d5fe8;
        background: #fff;
        color: #2d5fe8;
        font-size: 16px;
        font-weight: 600;
        line-height: 48px;
        text-align: center;
        white-space: nowrap;
    }

    .eeg-modules-tab.is-active {
        background: linear-gradient(180deg, #3a6cff 0%, #2a57df 100%);
        color: #fff;
    }

    .eeg-modules-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .eeg-modules-track::-webkit-scrollbar {
        display: none;
    }

    .eeg-module-item {
        padding: 50px 0;
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
    }

    .eeg-module-inner,
    .eeg-module-inner--reverse {
        flex-direction: column;
        gap: 30px;
    }

    .eeg-modules-dots {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 24px;
        padding-bottom: 10px;
    }

    .eeg-modules-dot {
        width: 12px;
        height: 12px;
        border: 0;
        padding: 0;
        border-radius: 50%;
        background: rgba(112, 128, 144, 0.35);
    }

    .eeg-modules-dot.is-active {
        background: #315de8;
    }

    .eeg-system {
        padding: 60px 0;
    }

    .eeg-system-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 40px;
        padding: 0 22px;
    }

    .eeg-system-track::-webkit-scrollbar {
        display: none;
    }

    .eeg-system-grid {
        display: flex;
        gap: 16px;
        margin-top: 0;
    }

    .eeg-system-card {
        flex: 0 0 calc(100% - 88px);
        width: calc(100% - 88px);
        scroll-snap-align: center;
        border-radius: 24px;
        transform: scale(0.88);
        opacity: 0.78;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .eeg-system-card.is-active {
        transform: scale(1);
        opacity: 1;
    }

    .eeg-system-card img {
        width: calc(100% - 32px);
        margin-top: 16px;
        border-radius: 20px;
    }

    .eeg-system-card h3 {
        padding: 24px 24px 0;
    }

    .eeg-system-card p {
        padding: 10px 24px 28px;
    }

    .eeg-system-dots {
        display: none;
    }

    .eeg-platform {
        padding: 60px 0;
    }

    .eeg-platform-card {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
        border-radius: 24px;
    }

    .eeg-platform-img {
        width: 100%;
    }

    .eeg-data {
        padding: 0 0 60px;
    }

    .eeg-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .eeg-data-card {
        flex-direction: column;
        text-align: center;
        border-radius: 24px;
        padding: 20px 16px;
    }

    .eeg-data-card-img {
        width: 96px;
        height: 96px;
    }

    .eeg-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;
        border: 0;
        border-radius: 50%;
        background: #2f53d6;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 8px 18px rgba(47, 83, 214, 0.2);
    }

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

    .news-mobile-carousel {
        display: block;
        margin-top: 20px;
    }

    .news-mobile-track {
        display: flex;
        flex-direction: column;
        gap: 18px;
        max-height: 398px;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .news-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .news-mobile-card {
        position: relative;
        flex: 0 0 190px;
        width: 100%;
        height: 190px;
        overflow: hidden;
        scroll-snap-align: start;
        background: #d7e2f7;
        box-shadow: 0 8px 24px rgba(17, 29, 71, 0.12);
    }

    .news-mobile-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 21, 48, 0.02) 12%, rgba(6, 21, 48, 0.82) 100%);
        pointer-events: none;
    }

    .news-mobile-card-img {
        width: 100%;
        height: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .news-mobile-card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding: 18px 18px 20px;
        color: #fff;
    }

    .news-mobile-card-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .news-mobile-card-desc {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.95);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .eeg-news-grid {
        display: none;
    }
}
