/* 全局样式 */

/* 新闻摘要两行显示 */
.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 首页新闻区域样式 */
.news-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}

.news-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news-item {
    flex: 0 0 calc(33.333% - 14px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666;
    font-size: 48px;
}

.news-title {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ffc107;
}

.no-news {
    flex: 1;
    text-align: center;
    padding: 60px 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-item {
        flex: 0 0 100%;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

.text-center {
    text-align: center;
}

/* 黄色顶部导航栏 */
.header-top.yellow-nav {
    background-color: #ffc107;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon .logo-text {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.top-nav-links a:hover {
    color: #666;
}

.nav-separator {
    color: #333;
    font-size: 14px;
}

/* 主横幅区域 */
.hero-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 主要导航栏 */
.main-nav {
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #ffc107;
    color: #333;
}

/* 主横幅区域 */
.hero-section {
    position: relative;
}

.hero-image-container {
    position: relative;
    height: 340px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 0 40px;
}

.company-name,
.page-main-title {
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.yellow-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffc107;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.yellow-btn:hover {
    background-color: #e0a800;
}

/* 公司介绍区域 */
.intro-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 服务范围区域 */
.services-section {
    padding: 60px 0;
    background-color: #000000;
}

.section-title {
    color: #ffffff;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

/* 服务范围网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 
        "item1 item2"
        "item3 item3";
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
}

.services-grid .service-item:first-child {
    grid-area: item1;
}

.services-grid .service-item:nth-child(2) {
    grid-area: item2;
}

.services-grid .service-item.full-width {
    grid-area: item3;
}

.service-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-item {
    background-color: #333;
    overflow: hidden;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-name {
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 公司资质区域 */
.qualification-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.qualification-section .section-title {
    color: #333333;
    margin-bottom: 40px;
}

.qualification-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.qualification-logo {
    flex: 0 0 150px;
    margin-right: 30px;
}

.logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #333;
}

.logo-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #333;
}

.logo-inner i {
    font-size: 48px;
    color: #333;
}

.qualification-images {
    flex: 1;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.qualification-image {
    width: 100%;
    max-width: 250px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.qualification-text {
    flex: 1 1 100%;
    text-align: center;
    padding: 0 20px;
}

.qualification-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 加入我们横幅样式 */
.join-us-banner .banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.join-us-banner {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 40px;
}

.join-us-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    text-align: center;
}

.banner-text h3 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.banner-text p {
    color: #fff;
    font-size: 18px;
    margin: 0;
    font-style: italic;
}

/* 底部区域样式 */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info {
    margin-bottom: 15px;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.social-section {
    margin-bottom: 15px;
}

.social-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #f5a623;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #f5a623;
}

.footer-copyright {
    margin-top: 10px;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

/* 服务范围 */
.services {
    background-color: #f8f9fa;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card-icon {
    font-size: 48px;
    color: #0056b3;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* 新闻动态 */
.news {
    background-color: white;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

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

.news-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.news-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-card-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.news-card-more:hover {
    text-decoration: underline;
}

/* 招聘信息 */
.recruit {
    background-color: #f8f9fa;
}

.recruit-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.job-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.job-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-tag {
    font-size: 14px;
    color: #0056b3;
    background-color: #e7f0fd;
    padding: 4px 12px;
    border-radius: 20px;
}

.job-details {
    margin: 20px 0;
}

.job-details p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.job-requirements {
    margin-top: 20px;
}

.job-requirements h4 {
    margin-bottom: 10px;
    color: #333;
}

.job-requirements ul {
    padding-left: 20px;
    color: #666;
}

.job-requirements li {
    margin-bottom: 8px;
}

/* 联系我们 */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    color: #0056b3;
    margin-right: 20px;
    min-width: 24px;
}

.contact-text p {
    color: #666;
    line-height: 1.7;
}

.contact-form {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

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

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

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

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

.btn-submit {
    padding: 12px 30px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #004494;
}

/* 页面标题样式 */
.page-header {
    height: 340px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    text-align: center;
}

.page-header h2 {
    color: #fff;
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-right: 15px;
}

.footer-logo h3 {
    font-size: 24px;
    color: white;
}

.footer-info p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    color: white;
    margin-right: 20px;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #0056b3;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #0056b3;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul li {
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .service-cards, .news-cards, .recruit-jobs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }
    
    .banner-content {
        left: 10%;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 10px 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}