/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局移除所有链接的下划线 */
a {
    text-decoration: none !important;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 5px;
}

.logo span {
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone {
    display: flex;
    align-items: center;
    color: #0066cc;
    font-weight: bold;
    font-size: 16px;
}

.phone i {
    margin-right: 5px;
}

.language a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    font-size: 14px;
}

.language a.active {
    color: #0066cc;
    font-weight: bold;
}

.main-nav {
    background-color: #fff;
    padding: 0;
}

.main-nav .container {
    background-color: #0066cc;
    padding: 0;
    width: 900px;
    margin: 0 auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-nav ul li {
    position: relative;
    flex: 1;
    text-align: center;
}

.main-nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #0052a3;
}

/* 主横幅轮播 */
.banner {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

/* Aspect box to keep a consistent responsive height (16:9). */
.banner .aspect-box {
    width: 100%;
    padding-top: 56.25%; /* default 16:9 */
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* 21:9 ultra-wide: height = 9/21 = 42.8571% */
.banner .aspect-box--21-9 {
    padding-top: 42.8571%;
}

/* Narrower or cinematic wide (example 3:1 -> 33.33%) */
.banner .aspect-box--3-1 {
    padding-top: 33.3333%;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure banner uses the same centered container width as other sections */
.banner .container {
    padding: 0;
    height: 100%;
    width: 900px;
    margin: 0 auto;
}

.banner-slider {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.slide-content {
	position: absolute;
	top: 9px;
	right: 69px;
	transform: translateY(-50%);
	text-align: center;
	max-width: 420px;
	padding: 8px;
	width: 339px;
	height: 191px;
}

/* Mobile / small screens: move text to bottom, left-aligned, increase readability */
@media (max-width: 768px) {
    .banner .aspect-box,
    .banner .aspect-box--21-9,
    .banner .aspect-box--3-1 {
        padding-top: 56.25%; /* make mobile height more balanced */
    }

    .slide-content {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 14px;
        top: auto;
        transform: none;
        text-align: left;
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(4px);
        padding: 12px;
        border-radius: 8px;
        max-width: none;
    }

    .slide-content img { /* hide decorative logo on small screens to save space */
        display: none;
    }

    .slide-content h2 {
        font-size: 18px;
        color: #0b4a78;
        margin-bottom: 6px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 6px;
        color: #333;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

/* Larger screens: allow a slightly larger content block for very wide banners */
@media (min-width: 1400px) {
    .slide-content {
	max-width: 520px;
	right: 24px;
}
}

.slide-content img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    background-color: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
}

.slide-content h2 {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 10px;
    background-color: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 5px;
}

.slide-content p {
    font-size: 20px;
    color: #333;
    background-color: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 5px;
}

.slide-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #386796;
}

/* 通用区块样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.section-title h3 {
    font-size: 24px;
    color: #1f4d7a;
    margin-bottom: 10px;
}

.title-bar {
    width: 80px;
    height: 3px;
    background-color: #215080;
}

.section-more {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.section-more:hover {
    color: #f3f5f8;
}

.section-more i {
    margin-left: 5px;
    font-size: 18px;
}

/* 公司简介 */
.about {
    padding: 60px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 40px;
}

.about-image {
    position: relative;
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #1a4977;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-align: center;
}

.about-badge h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.about-badge p {
    font-size: 14px;
    opacity: 0.9;
}

.about-text {
    flex: 1;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}



/* 产品展示 */
.products {
    padding: 60px 0;
    background-color: #fff;
}

/* 产品展示页面 */
.products-showcase {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.product-layout {
    display: flex;
    gap: 30px;
}

/* 左侧分类导航 */
.product-categories {
    width: 280px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-categories h3 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 15px;
}

.category-item.active > .category-title {
    color: #0066cc;
    font-weight: bold;
}

.category-title {
    display: block;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    transition: all 0.3s;
    font-size: 16px;
}

.category-title:hover {
    background-color: #f0f7ff;
    border-left-color: #0066cc;
}

.category-item.active .category-title {
    background-color: #f0f7ff;
    border-left-color: #0066cc;
}

.subcategory-list {
    list-style: none;
    margin-left: 20px;
    margin-top: 8px;
}

.subcategory-list li {
    margin-bottom: 8px;
}

.subcategory-list a {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.subcategory-list a:hover {
    color: #0066cc;
    background-color: #f0f7ff;
    padding-left: 20px;
}

/* 右侧产品展示区 */
.product-display {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.display-header h2 {
    font-size: 24px;
    color: #333;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    position: relative;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
    border-bottom: 1px solid #eee;
    border-radius: 5px 5px 0 0;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 15px;
    text-align: center;
    background-color: #fff;
    border-top: none;
    border-radius: 0 0 5px 5px;
    position: relative;
    z-index: 1;
}

.product-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-link:hover {
    text-decoration: none !important;
}

.product-link * {
    text-decoration: none !important;
}

.product-link .product-item .product-info h4 {
    font-size: 22px;
    color: #0066cc;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.product-info p {
    font-size: 14px;
    color: #0066cc;
    margin: 0;
    font-weight: bold;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #f0f7ff;
    border-color: #0066cc;
    color: #0066cc;
}

.page-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination span {
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-categories {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .display-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}



/* 确保产品名称没有下划线 */
.product-link .product-item .product-info h4 {
    font-size: 22px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

/* 项目展示 */
.projects {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 10px;
}

.project-info p {
    color: #666;
    font-size: 14px;
}

/* 项目详情页面样式 */
.project-details {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.project-details .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-details .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-details .section-title h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.project-details .title-bar {
    width: 60px;
    height: 3px;
    background-color: #0052a3;
    margin: 0 auto;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-description h4 {
    font-size: 20px;
    color: #0052a3;
    margin-bottom: 15px;
}

.project-description p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.project-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-description li {
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

/* 项目链接样式 */
.project-link {
    color: #333;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateY(-5px);
}

/* 服务联系 */
.contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    color: #374204;
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    color: #666;
    font-size: 14px;
}

.contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.contact-form h4 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0052a3;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.footer-info p {
    color: #ccc;
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #0066cc;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
}

.footer-contact i {
    color: #0066cc;
    margin-right: 10px;
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .main-nav ul li a {
        padding: 15px 20px;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li a {
        padding: 10px 20px;
        text-align: center;
    }
    
    .slide-content {
        right: 5%;
        left: 5%;
    }
    
    .customer-logos {
        flex-wrap: wrap;
    }
    
    .logo-item {
        flex: 1 1 45%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .logo-item {
        flex: 1 1 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
