/* 
 * 华盛达工业集团官网样式表
 * 移动端优先响应式设计
 * 符合Yandex和Bing SEO优化标准
 */

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

:root {
    --primary-color: #1a5fb4;
    --primary-dark: #0d3a7a;
    --primary-light: #3584e4;
    --secondary-color: #e65100;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

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

/* Header Styles */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Navigation */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 15px;
}

.main-nav.active {
    display: block;
}

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

.nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: block;
    padding: 12px 0;
    color: var(--text-color);
    font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

/* Banner Slider */
.banner {
    position: relative;
    overflow: hidden;
    background: var(--bg-gray);
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.banner-content h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: #fff;
}

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

.section-alt {
    background: var(--bg-light);
}

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

.section-title h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* About Section */
.about-content {
    display: grid;
    gap: 30px;
}

.about-text h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

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

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-number span {
    font-size: 1rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 5px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* News Section */
.news-grid {
    display: grid;
    gap: 20px;
}

.news-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 180px;
    background: var(--bg-gray);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text-color);
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Cases Section */
.cases-grid {
    display: grid;
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.case-overlay h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.case-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

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

.partner-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: var(--transition);
}

.partner-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.partner-item span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 30px;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.contact-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-text span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-map {
    background: var(--bg-gray);
    border-radius: 8px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding-top: 40px;
}

.footer-main {
    display: grid;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-links ul a {
    color: #aaa;
    font-size: 0.9rem;
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* News List Page */
.news-list {
    padding: 40px 0;
}

.news-list-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

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

.news-list-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-list-content h3 a {
    color: var(--text-color);
}

.news-list-content h3 a:hover {
    color: var(--primary-color);
}

.news-list-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* News Detail Page */
.news-detail {
    padding: 40px 0;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.news-detail-content {
    line-height: 1.8;
}

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

.news-detail-content img {
    margin: 20px auto;
    border-radius: 8px;
}

.news-detail-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.news-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-color);
}

.news-nav a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* About Page */
.about-page {
    padding: 40px 0;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-light);
}

.about-features {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 25px;
    height: 25px;
    fill: #fff;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive - Tablet */
@media (min-width: 576px) {
    .services-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .banner-slide img {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .news-list-item {
        flex-direction: row;
    }
    
    .news-list-image {
        width: 250px;
        height: 150px;
        flex-shrink: 0;
    }
    
    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .news-nav a {
        flex: 1;
    }
}

/* Responsive - Desktop */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 5px;
    }
    
    .nav-list li {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 10px 18px;
        border-radius: 5px;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        background: var(--primary-color);
        color: #fff;
    }
    
    .banner-slide img {
        height: 500px;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-detail-header h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .section {
        padding: 80px 0;
    }
    
    .banner-slide img {
        height: 550px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Print Styles */
@media print {
    .header, .footer, .banner, .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
