/* 首页特有样式 - PC端 */

.hero {
    position: relative;
    height: 720px;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 720px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding: 0;
    padding-left: calc((100% - 1200px) / 2 + 40px);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-item > * {
    position: relative;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item:nth-child(1) {
    background-image: url('../images/hero1.jpg');
}

.carousel-item:nth-child(2) {
    background-image: url('../images/hero2.jpg');
}

.carousel-item:nth-child(3) {
    background-image: url('../images/hero3.jpg');
}

.carousel-item:nth-child(4) {
    background-image: url('../images/hero4.jpg');
}

.carousel-content {
    max-width: 800px;
    text-align: left;
}

.carousel-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.95;
}

.carousel-btn {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: #333;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-controls-container {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 1120px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

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

.carousel-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.carousel-controls button:hover {
    opacity: 0.8;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-color);
    width: 24px;
}

.news-section {
    position: relative;
    margin-top: -120px;
    z-index: 10;
    margin-bottom: 80px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-right: 20px;
}

.news-divider {
    flex: 1;
    height: 2px;
    background: #ffffff;
}

.news-grid.top,
.news-grid.bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.news-grid.middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-grid.top .news-card:first-child {
    background: #ffffff;
}

.news-grid.top .news-card:last-child {
    background: rgb(0, 169, 206);
}

.news-grid.middle .news-card:nth-child(1) {
    background: #0052d9;
}

.news-grid.middle .news-card:nth-child(2) {
    background: #ffffff;
}

.news-grid.middle .news-card:nth-child(3) {
    background: #ccc;
}

.news-grid.bottom .news-card:first-child {
    background: #ffffff;
}

.news-grid.bottom .news-card:last-child {
    background: #0052d9;
}

.news-content {
    padding: 24px 20px;
}

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

.news-grid.top .news-card:first-child .news-image,
.news-grid.bottom .news-card:first-child .news-image {
    height: 340px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date-badge {
    display: inline-block;
    background: transparent;
    border: 2px solid white;
    border-radius: 4px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.news-grid.top .news-card:first-child .news-date-badge,
.news-grid.middle .news-card:nth-child(2) .news-date-badge,
.news-grid.middle .news-card:nth-child(3) .news-date-badge,
.news-grid.bottom .news-card:first-child .news-date-badge {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-grid.top .news-card:first-child .news-content {
    background: #ffffff;
}

.news-grid.top .news-card:last-child .news-content {
    background: rgb(0, 169, 206);
}

.news-grid.middle .news-card:nth-child(1) .news-content {
    background: #0052d9;
}

.news-grid.middle .news-card:nth-child(2) .news-content {
    background: #ffffff;
}

.news-grid.middle .news-card:nth-child(3) .news-content {
    background: #ccc;
}

.news-grid.bottom .news-card:first-child .news-content {
    background: #ffffff;
}

.news-grid.bottom .news-card:last-child .news-content {
    background: #0052d9;
}

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

.news-grid.top .news-card:last-child .news-card-title,
.news-grid.top .news-card:last-child .news-card-desc,
.news-grid.middle .news-card:nth-child(1) .news-card-title,
.news-grid.middle .news-card:nth-child(1) .news-card-desc,
.news-grid.bottom .news-card:last-child .news-card-title,
.news-grid.bottom .news-card:last-child .news-card-desc {
    color: var(--white);
}

.news-grid.middle .news-card:nth-child(3) .news-card-title,
.news-grid.middle .news-card:nth-child(3) .news-card-desc {
    color: var(--text-color);
}

.news-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.about-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,82,217,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.about-card:hover::after {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.about-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.about-card:hover .about-image img {
    transform: scale(1.1);
}

.about-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 2;
}

.about-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.about-card:hover .about-title::after {
    width: 100%;
}

.business-section {
    background: #1a1a1a;
    padding: 80px 0;
}

.business-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.business-left {
    flex: 1;
}

.business-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
    transition: var(--transition);
    cursor: pointer;
}

.business-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 2px;
    height: 40px;
    background: rgba(0, 82, 217, 0.3);
    transition: background 0.3s ease;
}

.business-item.active::before {
    background: var(--primary-color);
    width: 4px;
}

.business-item.active {
    position: relative;
    transform: translateX(10px);
}

.business-item h3, .business-item p {
    transition: var(--transition);
}

.business-item:not(.active) h3 {
    color: rgba(255,255,255,0.7);
}

.business-item:not(.active) p {
    color: rgba(255,255,255,0.5);
}

.business-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.business-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

.business-right {
    flex: 2;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.business-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.business-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.business-card:hover .business-image img {
    transform: scale(1.1);
}

.business-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0,0,0,0.5);
}

.business-card-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.business-card-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 5px 0 0;
}

.pc-only {
    display: block;
}

.esg-section {
    margin-bottom: 80px;
}

.esg-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.esg-left {
    flex: 1;
    position: relative;
}

.esg-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.esg-slide {
    display: none;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    max-height: 420px;
    overflow: hidden;
}

.esg-slide.active {
    display: block;
}

.esg-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.esg-slide-text {
    position: absolute;
    bottom: 45px;
    left: 30px;
    color: white;
    max-width: 80%;
}

.esg-slide-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.esg-slide-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.esg-controls {
    position: absolute;
    bottom: 0;
    right: 30px;
    display: flex;
    gap: 0;
}

.esg-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.esg-controls button:hover {
    opacity: 0.8;
}

.esg-right {
    flex: 1;
    position: relative;
    padding-left: 20px;
}

.esg-main-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.esg-main-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.esg-arrow {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
}

.esg-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--primary-color);
}

.employees-section {
    position: relative;
}

.employees-slides {
    position: relative;
    overflow: hidden;
}

.employees-slide {
    display: none;
    position: relative;
}

.employees-slide.active {
    display: block;
}

.employees-slide img {
    width: 100%;
    height: 704px;
    object-fit: cover;
    display: block;
}

.employees-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
}

.employees-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.employees-content p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.employees-arrow {
    width: 50px;
    height: 2px;
    background: white;
    position: relative;
}

.employees-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid white;
}

.arrow-left {
    width: 50px;
    height: 2px;
    background: white;
    position: relative;
}

.arrow-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid white;
}

.arrow-right {
    width: 50px;
    height: 2px;
    background: white;
    position: relative;
}

.arrow-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid white;
}

.employees-controls {
    position: absolute;
    bottom: 30px;
    left: 10%;
    display: flex;
    gap: 20px;
    z-index: 5;
}

.employees-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.employees-controls button:hover {
    opacity: 0.8;
}

.employees-pagination {
    position: absolute;
    bottom: 35px;
    right: 10%;
    display: flex;
    gap: 8px;
    z-index: 5;
    align-items: center;
}

.employees-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.employees-dot.active {
    background: #0052d9;
    width: 24px;
    border-radius: 2px;
}

/* 手机端样式 */
@media (max-width: 768px) {
    /* 轮播图 */
    .carousel-item {
        padding: 0 20px;
        padding-left: 20px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .carousel-content {
        text-align: left;
        max-width: 100%;
    }
    
    .carousel-content h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .carousel-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .carousel-controls-container {
        width: 90%;
        bottom: 150px;
    }
    
    .carousel-controls button {
        width: 40px;
    }
    
    /* 新闻部分 */
    .news-container {
        padding: 0 20px;
    }
    
    .news-grid.top,
    .news-grid.bottom {
        grid-template-columns: 1fr;
    }
    
    .news-grid.middle {
        grid-template-columns: 1fr;
    }
    
    .news-grid.top .news-card:first-child .news-image,
    .news-grid.bottom .news-card:first-child .news-image {
        height: 220px;
    }
    
    /* 关于部分 */
    .about-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 业务部分 */
    .business-content {
        flex-direction: column;
        text-align: left;
        gap: 0;
    }
    
    .business-left {
        display: none;
    }
    
    .business-item {
        display: none;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-card {
        aspect-ratio: 4/3;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        position: relative;
    }
    
    .business-image {
        height: 100%;
        width: 100%;
    }
    
    .business-card-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 30px;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
    }
    
    .business-card-title {
        font-size: 24px;
        font-weight: 600;
        color: white;
        margin-bottom: 10px;
    }
    
    .business-card-subtitle {
        font-size: 16px;
        color: rgba(255,255,255,0.8);
        margin: 0;
    }
    
    .pc-only {
        display: none;
    }
    
    /* ESG部分 */
    .esg-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .esg-right {
        order: -1;
        margin-bottom: 10px;
        padding-left: 0;
    }

    .esg-main-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .esg-main-desc {
        font-size: 14px;
    }

    .esg-arrow {
        margin: 15px auto 0;
    }

    .esg-carousel {
        max-width: 100%;
        width: 100%;
    }

    .esg-slide {
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
        max-height: 350px;
        overflow: hidden;
        width: 100%;
    }

    .esg-slide img {
        height: 350px;
        object-fit: cover;
        width: 100%;
    }

    .esg-slide-text {
        bottom: 80px;
        left: 20px;
        right: auto;
        max-width: calc(100% - 80px);
        text-align: left;
    }

    .esg-slide-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .esg-slide-desc {
        font-size: 12px;
        line-height: 1.5;
        margin: 0;
    }

    .esg-controls {
        bottom: 30px;
        right: 20px;
    }
    
    /* 员工部分 */
    .employees-content {
        left: 5%;
        right: 5%;
        max-width: none;
        text-align: center;
    }

    .employees-content h2 {
        font-size: 32px;
    }

    .employees-arrow {
        margin: 0 auto;
    }

    .employees-slide img {
        height: 500px;
    }

    .employees-controls,
    .employees-pagination {
        bottom: 20px;
    }
}