/* 
 * 华信达科技集团官方网站样式
 * 移动端优先响应式设计
 * 符合Yandex和Bing SEO优化标准
 */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: #1a5fb4;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

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

.header-top .hotline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top .hotline strong {
    color: #ffd700;
    font-size: 16px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1a5fb4;
}

.logo-text span {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a5fb4;
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation */
.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav.active {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
}

.nav-list li {
    border-bottom: 1px solid #eee;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 15px;
    transition: all 0.3s;
}

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

/* Banner */
.banner {
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-content {
    padding: 20px;
}

.banner-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Common */
.section {
    padding: 50px 0;
}

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

.section-title h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1a5fb4;
}

.section-title p {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

/* About Section */
.about-section {
    background: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text h3 {
    font-size: 22px;
    color: #1a5fb4;
    margin-bottom: 15px;
}

.about-text p {
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-item .number {
    font-size: 36px;
    font-weight: bold;
    color: #1a5fb4;
}

.stat-item .number span {
    font-size: 16px;
}

.stat-item .label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* Business Section */
.business-section {
    background: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.business-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1a5fb4;
}

.business-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.business-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.business-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* News Section */
.news-section {
    background: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.news-content {
    padding: 20px;
}

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

.news-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content h3 a:hover {
    color: #1a5fb4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background: #154a8f;
}

/* Partners Section */
.partners-section {
    background: #fff;
}

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

.partner-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.partner-item:hover {
    border-color: #1a5fb4;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* Contact Section */
.contact-section {
    background: #1a5fb4;
    color: #fff;
}

.contact-section .section-title h2 {
    color: #fff;
}

.contact-section .section-title h2::after {
    background: #ffd700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0d2f5c;
    color: #fff;
}

.footer-main {
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1a5fb4;
}

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    background: #091f3d;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

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

/* Page Header */
.page-header {
    margin-top: 120px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Content */
.page-content {
    padding: 50px 0;
}

.content-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-box h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a5fb4;
}

.content-box h3 {
    font-size: 18px;
    color: #1a5fb4;
    margin: 25px 0 15px;
}

.content-box p {
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

/* News List Page */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-list-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-list-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-list-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.news-list-content h3 a:hover {
    color: #1a5fb4;
}

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

.news-list-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* News Detail Page */
.news-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-detail-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-detail-header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-meta {
    color: #999;
    font-size: 13px;
}

.news-meta span {
    margin: 0 10px;
}

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

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content h2 {
    font-size: 18px;
    color: #333;
    margin: 30px 0 15px;
}

.news-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-nav a {
    color: #666;
    font-size: 14px;
}

.news-nav a:hover {
    color: #1a5fb4;
}

/* Jobs Page */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #1a5fb4;
}

.job-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.job-info span {
    color: #666;
    font-size: 13px;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
}

.job-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Contact Page */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
}

.contact-info-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

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

.map-placeholder {
    background: #f0f0f0;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    font-size: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #154a8f;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .banner-slide {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: row;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 0 0 40%;
        height: auto;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-list-item {
        flex-direction: row;
    }
    
    .news-list-image {
        width: 250px;
        height: 150px;
        flex-shrink: 0;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .nav {
        display: block;
        position: static;
        box-shadow: none;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 5px;
    }
    
    .nav-list li {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 10px 18px;
        border-radius: 5px;
    }
    
    .banner-slide {
        height: 500px;
    }
    
    .banner-content h1 {
        font-size: 42px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .business-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-box {
        padding: 40px;
    }
    
    .news-detail {
        padding: 40px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top {
        display: none;
    }
    
    .page-header {
        margin-top: 0;
    }
}
