/* 首页样式 */

/* 首页 Hero 区域 */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移动端视频适配 */
@media screen and (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
        background: #000;
    }
    
    .hero-bg {
        width: 100%;
        height: 100%;
    }
    
    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content .container {
    text-align: center;
}

.hero-content h1 {
    font-size: 78px;
    color: white;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.8;
    margin: 0 auto;
}

/* 关于我们区域 */
.about {
    padding: 0;
    background: url('img/home/about/background.png') center/cover;
    position: relative;
    overflow: hidden;
}

.about .container {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    min-height: 600px;
    justify-content: space-between;
    width: 90%;
    max-width: 100%;
}

.about-left {
    flex: 0 0 50%;
    position: relative;
    z-index: 3;
    margin-left: 0;
    display: flex;
    align-items: center;
}

.about-left img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-right {
    flex: 0 0 45%;
    padding: 60px 0;
}

.about-right h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.about-right h3 {
    font-size: 14px;
    color: #4ade80;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-right p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 60px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 18px;
    color: #333;
    font-weight: normal;
}

.stat-desc {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* 服务范围 */
.services {
    padding: 80px 0;
    background: white;
    height: 890px;
}

.services .container {
    width: 90%;
    max-width: 100%;
}

.services h2 {
    font-size: 28px;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.services-desc {
    text-align: center;
    color: #666;
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.service-card {
    position: relative;
    height: 580px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-image {
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px;
    color: white;
}

.service-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 12px;
    opacity: 0.9;
}

/* 产品展示 */
.products {
    height: 800px;
    background: #f5f5f5;
}

.products-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    height: 100%;
}

.products-left {
    flex: 0 0 33%;
    padding: 80px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f6c544;
}

.products-left h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.products-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.products-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 100%;
}

.products-left .btn {
    background: white;
    color: #1a4b94;
    font-weight: 500;
    padding: 15px 40px;
    font-size: 16px;
    width: fit-content;
}

.products-left .btn:hover {
    background: #f0f5f9;
    color: #0d3b7a;
}

.products-center {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: white;
}

.products-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-right {
    flex: 0 0 15%;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

.products-menu {
    list-style: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products-menu li {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 30px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    background: rgba(255,255,255,0.1);
    margin-bottom: 2px;
}

.products-menu li:hover,
.products-menu li.active {
    background: #1a4b94;
    color: white;
    border-left-color: #4ade80;
}

/* 资质荣誉 */
.honors {
    background: url('img/home/CoH/background.png') center/cover;
    position: relative;
    height: 890px;
    position: relative;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.honors .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    max-width: 85%;
    height: 100%;
}

.honors-left {
    flex: 0 0 55%;
    padding-left: 0;
    width: 70%;
}

.honors-left h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.honors-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.honors-left p {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    max-width: 90%;
}

.honors-gallery {
    overflow: hidden;
    width: 100%;
    height: 320px;
}

.honors-track {
    display: flex;
    gap: 20px;
    animation: scrollRightToLeft 20s linear infinite;
}

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.honors-track:hover {
    animation-play-state: paused;
}

.honor-item {
    flex-shrink: 0;
    width: 200px;
}

.honor-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 4px solid #d4af37;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.honors-right {
    flex: 1;
}

.honors-right img {
    width: 100%;
    height: auto;
}

/* 新闻中心 */
.news {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    height: 1000px;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(26,75,148,0.05) 0%, transparent 100%);
}

.news .container {
    width: 90%;
    max-width: 100%;
}

.news h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

.news-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-item img {
    width: 40%;
    object-fit: cover;
    height: 280px;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.news-header h3 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
    margin: 0;
}

.news-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    padding-top: 2px;
}

.news-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex: 1;
}

.news-link {
    font-size: 14px;
    color: #1a4b94;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    padding: 0;
    background: none;
    border-radius: 0;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.news-link::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s;
}

.news-link:hover {
    color: #0d3b7a;
    text-decoration: none;
}

.news-link:hover::after {
    transform: translateX(4px);
}

/* 联系我们 */
.contact {
    padding: 200px 0;
    background: url('img/home/contact/HeroBackGround.png') center/cover;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.85);
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.contact-subtitle {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-align: center;
    color: white;
}

.contact-icon {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-item h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-container {
        flex-direction: column;
    }
    
    .about .container,
    .honors .container {
        flex-direction: column;
    }
    
    .about {
        background: white;
    }
}

@media (max-width: 768px) {
    /* Hero 区域适配 */
    .hero {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
        background: #000;
    }
    
    .hero-bg {
        width: 100%;
        height: 100%;
    }
    
    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .hero-content h1 {
        font-size: 28px;
        padding: 0 20px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.8;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .services {
        height: auto;
        padding: 60px 20px;
    }
    
    .services h2 {
        font-size: 24px;
    }
    
    .services-desc {
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-card {
        height: 350px;
    }
    
    .service-content h3 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 12px;
    }
    
    .about-stats {
        gap: 30px;
    }
    
    /* 产品服务适配 */
    .products {
        height: auto;
    }
    
    .products-container {
        flex-direction: column;
    }
    
    .products-left {
        flex: 0 0 100%;
        padding: 40px 20px;
        text-align: center;
    }
    
    .products-left h2 {
        font-size: 24px;
    }
    
    .products-subtitle {
        font-size: 14px;
    }
    
    .products-desc {
        font-size: 13px;
    }
    
    .products-center {
        flex: 0 0 100%;
        height: 300px;
    }
    
    .products-right {
        flex: 0 0 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .products-menu {
        flex-direction: row;
        width: auto;
    }
    
    .products-menu li {
        flex: 0 0 auto;
        padding: 15px 20px;
        font-size: 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        margin-bottom: 0;
        margin-right: 2px;
    }
    
    .products-menu li:hover,
    .products-menu li.active {
        border-left: none;
        border-bottom-color: #4ade80;
    }
    
    /* 资质荣誉适配 */
    .honors {
        height: auto;
        padding: 40px 0;
    }
    
    .honors .container {
        flex-direction: column;
        max-width: 100%;
        padding: 20px;
    }
    
    .honors-left {
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
    }
    
    .honors-left h2 {
        font-size: 22px;
        text-align: center;
    }
    
    .honors-subtitle {
        font-size: 12px;
        text-align: center;
    }
    
    .honors-left p {
        font-size: 13px;
        max-width: 100%;
    }
    
    .honors-gallery {
        height: 200px;
    }
    
    .honor-item {
        width: 150px;
    }
    
    .honor-item img {
        height: 200px;
        border-width: 2px;
    }
    
    /* 新闻中心适配 */
    .news {
        height: auto;
        padding: 40px 0;
    }
    
    .news h2 {
        font-size: 24px;
    }
    
    .news-subtitle {
        font-size: 13px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-header h3 {
        font-size: 18px;
    }
    
    .news-content p {
        font-size: 14px;
    }
    
    /* 联系我们适配 */
    .contact {
        padding: 60px 0;
    }
    
    .contact h2 {
        font-size: 24px;
    }
    
    .contact-subtitle {
        font-size: 13px;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .contact-icon {
        width: 100px;
        height: 100px;
    }
    
    .contact-item h3 {
        font-size: 18px;
    }
    
    .contact-item p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Hero 区域小屏适配 */
    .hero {
        height: 70vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 22px;
        padding: 0 15px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.6;
        max-width: 95%;
    }
    
    .services {
        padding: 40px 15px;
    }
    
    .services h2 {
        font-size: 20px;
    }
    
    .services-desc {
        font-size: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        height: 300px;
        border-radius: 12px;
    }
    
    .service-content {
        padding: 20px 15px;
    }
    
    .service-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .service-content p {
        font-size: 11px;
    }
    
    .products-left {
        padding: 30px 15px;
    }
    
    .products-left h2 {
        font-size: 20px;
    }
    
    .products-center {
        height: 200px;
    }
    
    .products-menu li {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .honors-left h2 {
        font-size: 20px;
    }
    
    .honor-item {
        width: 120px;
    }
    
    .honor-item img {
        height: 160px;
    }
    
    .news-header h3 {
        font-size: 16px;
    }
    
    .news-content p {
        font-size: 13px;
    }
    
    .contact-icon {
        width: 80px;
        height: 80px;
    }
    
    .contact-item h3 {
        font-size: 16px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
}
