/* 首页专属样式 */

/* === BANNER 区域 === */
.banner {
    position: relative;
    height: 500px !important;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.banner-slide .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.banner-slide.slide-in-next .banner-text {
    animation: bannerTextInNext 0.45s ease;
}

.banner-slide.slide-in-prev .banner-text {
    animation: bannerTextInPrev 0.45s ease;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.banner-overlay-dark {
    background: linear-gradient(90deg, rgba(17, 25, 39, 0.48) 0%, rgba(17, 25, 39, 0.2) 52%, rgba(17, 25, 39, 0.3) 100%);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.banner-text {
    color: var(--text-white);
}

.banner-text.align-right {
    text-align: right;
    max-width: 520px;
}

.banner-text.align-left {
    text-align: left;
    max-width: 520px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.banner-title .highlight {
    color: #ffd700;
    display: block;
    font-size: 50px;
    margin-bottom: 4px;
}

body.page-index .banner .product-model,
body.page-index .banner .product-name {
    color: #ffffff;
}

.product-name {
    color: var(--text-white);
    display: block;
    font-size: 42px;
    font-weight: 600;
    margin-top: 8px;
}

.product-features {
    margin: 24px 0;
    text-align: left;
}

.feature-item {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.9;
}

.banner-actions {
    display: inline-flex;
    gap: 16px;
    justify-content: flex-start;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.banner-btn.primary {
    background: var(--secondary-green);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
}

.banner-btn.primary:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.banner-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    transition: background 0.25s ease;
}

.banner-nav:hover {
    background: rgba(17, 154, 249, 0.85);
}

.banner-nav-prev {
    left: 30px;
}

.banner-nav-next {
    right: 30px;
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.25s ease;
}

.banner-dot.active,
.banner-dot:hover {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

@keyframes bannerTextInNext {
    from {
        opacity: 0;
        transform: translateX(26px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bannerTextInPrev {
    from {
        opacity: 0;
        transform: translateX(-26px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === 推荐产品区域 === */
.recommended-products {
    padding: 56px 0 44px;
    background: var(--bg-white);
}

.recommended-products .section-title {
    color: #119AF9;
}

.recommended-products .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 235px;
    height: 2px;
    background: linear-gradient(90deg, #FFEE57 0%, #79AA63 100%), linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0px 0px 0px 0px;
}

/* === 应用行业区域 === */
.industry-applications {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.industry-bg {
    position: relative;
    width: 100%;
    min-height: 360px;
}

.industry-bg-img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0;
}

.industry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: stretch;
    min-height: 300px;
    padding: 24px 0 10px;
}

.industry-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    padding-left: 60px;
}

.industry-header {
    margin-bottom: 24px;
}

.industry-title {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
}

.industry-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.industry-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 360px;
}

.industry-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    width: fit-content;
}

.industry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.industry-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.industry-menu .menu-item {
    display: block;
    padding: 12px 16px;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-normal);
    cursor: pointer;
    box-shadow: none;
    position: relative;
    text-decoration: none;
}

.industry-menu .menu-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(4px);
    box-shadow: none;
}

.industry-menu .menu-item.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: none;
}

.industry-menu .menu-item::after {
    content: '>';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.industry-menu .menu-item:hover::after,
.industry-menu .menu-item.active::after {
    color: white;
}

.industry-right {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-right: 0;
    padding-top: 85px;
}

.application-showcase {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 1;
    min-height: 200px;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

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

.showcase-item:first-child {
    margin-top: 0;
    padding-top: 0;
}

.showcase-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.showcase-image {
    width: 260px;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
    margin-left: 0;
}

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

.showcase-content {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 32px 0 24px;
}

.showcase-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.showcase-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === 公司介绍区域 === */
.company-intro {
    padding: 44px 0 52px;
    background: white;
}

.brand-wrapper {
    width: 55%;
    margin-top: 32px;
    margin-bottom: 8px;
}

.cambrian-brand {
    width: 100%;
    height: auto;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 60px;
    color: rgba(17, 154, 249, 0.2);
    line-height: 1.1;
    text-align: left;
    font-style: normal;
    text-transform: none;
    letter-spacing: 18px;
    margin-bottom: 12px;
    padding-left: 20px;
}

.company-main-content {
    position: relative;
    z-index: 2;
    margin-top: 0;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    display: flex;
    min-height: 340px;
}

.company-left {
    flex: 1.0;
    padding: 0;
}

.company-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.company-right {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #F9F9F9;
}

.company-title {
    font-size: 32px;
    font-weight: 700;
    color: #119AF9;
    margin-bottom: 24px;
    line-height: 1.2;
}

.brand-name {
    color: var(--primary-blue);
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.company-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    column-gap: 40px;
    margin-top: 48px;
    align-items: center;
    padding-left: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0;
    justify-self: center;
}

/* 复位此前位移 */
.company-stats .stat-item:nth-of-type(3) {
    transform: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1;
}

/* 数字主色，单位次色 */
.stat-digit {
    color: #119AF9 !important;
    display: inline-block;
}

.stat-number .stat-digit {
    color: #119AF9 !important;
}

.stat-unit {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
    color: #1F2329 !important;
}

.stat-unit-small {
    font-size: 14px;
    color: #1F2329 !important;
}

/* 强制桌面端颜色覆盖移动样式 */
.company-intro .company-stats .stat-number {
    color: #119AF9 !important; /* 数字行默认蓝色 */
}

.company-intro .company-stats .stat-number .stat-digit {
    color: #119AF9 !important; /* 数字保持蓝色 */
}

.company-intro .company-stats .stat-unit,
.company-intro .company-stats .stat-unit-small {
    color: var(--text-secondary) !important; /* 单位/符号为次色 */
}

.stat-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-subtitle-en {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 2px;
}

.news-tabs {
    margin-top: 12px;
    display: inline-flex;
    gap: 12px;
}

.news-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 60px;
    border: 1px solid #119AF9;
    background: transparent;
    color: #119AF9;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-tab.active {
    background: linear-gradient(90deg, #FFEE57 0%, #79AA63 100%), linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    color: #FFFFFF;
    border: none;
}

.news-tab:not(.active):hover {
    color: #0e87e6;
}

/* === 新闻中心区域 === */
.news-center {
    padding: 60px 0;
    background: url('../images/pc/index/新闻底图.png') center/cover no-repeat;
}

.news-content {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 40px;
    margin-top: 36px;
    align-items: start;
}

.news-left {
    display: flex;
}

.news-main {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0;
    box-shadow: var(--shadow-medium);
    padding: 0;
    overflow: hidden;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.news-main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.news-main-content {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 6px 10px 6px;
    margin-top: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.news-main-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-main:hover .news-main-title,
.news-main:focus .news-main-title,
.news-main:active .news-main-title {
    color: var(--primary-blue);
}

.news-main-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 0;
    justify-content: flex-start;
}

.news-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.news-category {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
}

.news-main-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-right {
    display: flex;
    flex-direction: column;
    align-self: start;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.news-item {
    padding: 16px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: var(--shadow-small);
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .news-date {
    display: block;
    margin-top: 8px;
}

.news-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFEE57 0%, #79AA63 100%), linear-gradient(90deg, #60B83C 0%, #109AFC 100%);
    border-radius: 0;
    transition: width 0.3s ease;
}

.news-item:hover::after,
.news-item.active::after {
    width: 636px;
    max-width: 100%;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item:hover .news-title,
.news-item:focus .news-title,
.news-item:active .news-title {
    color: var(--primary-blue);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-controls {
    display: flex;
    gap: 20px;
}

.news-more,
.news-all {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.news-more:hover,
.news-all:hover {
    color: var(--primary-blue-dark);
}

/* === 响应式设计 === */
    @media (max-width: 1024px) {
        .banner-content {
            justify-content: center;
        }
        
        .industry-content {
            grid-template-columns: 1fr;
            gap: 40px;
            padding: 0 40px;
        }
        
        .company-content {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        
        .news-content {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

@media (max-width: 768px) {
    .banner {
        height: 360px !important;
    }

    .banner-slide .container {
        padding-bottom: 30px;
    }

    .banner-nav {
        display: none;
    }

    .banner-dots {
        bottom: 14px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-title .highlight {
        font-size: 36px;
    }
    
    .carousel-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .company-title {
        font-size: 28px;
    }
}
