/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 顶部栏 */
.top-bar {
    background: #1e3a8a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #1e3a8a;
    background-color: #eff6ff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e3a8a;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-text p {
    font-size: 20px;
    margin-bottom: 30px;
}

.banner-text .btn {
    display: inline-block;
    padding: 14px 40px;
    background: #1e3a8a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-text .btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary {
    background: #1e3a8a;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #1a1a1a;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

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

/* 服务/产品网格 */
.service-grid,
.product-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card,
.product-card,
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.service-card:hover,
.product-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card .img,
.product-card .img,
.news-card .img {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card img,
.product-card img,
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover img,
.product-card:hover img,
.news-card:hover img {
    transform: scale(1.08);
}

.service-card .content,
.product-card .content,
.news-card .content {
    padding: 25px;
}

.service-card h3,
.product-card h3,
.news-card h3 {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-card .date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card h3 a:hover {
    color: #1e40af;
}

.service-card p,
.product-card p,
.news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 公司简介 */
.company-intro {
    background: #fff;
    padding: 80px 0;
}

.intro-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.intro-img {
    flex: 1;
}

.intro-content {
    flex: 1;
}

.intro-content h3 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.intro-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #cbd5e0;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.9;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #2d2d4a;
    font-size: 14px;
}

.footer-bottom a {
    color: #cbd5e0;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #3b82f6;
}

/* 联系我们 */
.contact-flex {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 25px;
    padding: 15px 0;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-item span {
    color: #666;
    font-size: 14px;
}

.contact-form {
    flex: 1.2;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 新闻详情 */
.news-detail {
    background: #fff;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-detail h1 {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.news-detail .meta {
    color: #999;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.news-detail .content {
    line-height: 2;
    color: #444;
}

.news-detail .content h3 {
    color: #1e3a8a;
    margin: 30px 0 15px;
    font-size: 20px;
}

.news-detail .content ul {
    margin-left: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.news-detail .content li {
    margin-bottom: 8px;
}

/* 招聘 */
.job-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.job-item h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 22px;
}

.job-meta {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 18px;
}

.job-item ul {
    margin-left: 20px;
    color: #555;
    line-height: 2;
}

/* 关于我们 */
.about-section {
    background: #fff;
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 35px 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.feature-item h3 {
    font-size: 36px;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 15px;
}

/* 技术支持 */
.tech-item {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tech-item h3 {
    color: #1e3a8a;
    margin-bottom: 18px;
    font-size: 22px;
}

.tech-item p {
    color: #555;
    line-height: 1.9;
}

/* 响应式 */
@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-list.open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .service-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-flex,
    .contact-flex {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-text h1 {
        font-size: 26px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .service-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail {
        padding: 30px 20px;
    }
}
