/* 华鑫智能科技有限公司 - 响应式样式表 */
/* Mobile-First Design for Yandex & Bing SEO Optimization */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a5fb4 0%, #0d47a1 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-top {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: #ffd54f;
}

.header-contact {
    font-size: 0.875rem;
    display: none;
}

.header-contact a {
    color: #ffd54f;
}

/* Navigation */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.main-nav {
    display: none;
    width: 100%;
    background: rgba(0,0,0,0.1);
}

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

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

.nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list a {
    display: block;
    padding: 12px 15px;
    font-size: 0.9375rem;
    transition: background 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255,255,255,0.1);
    color: #ffd54f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #1a237e 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: #ffd54f;
    color: #1a237e;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,213,79,0.4);
}

/* Section Styles */
.section {
    padding: 40px 0;
    background: #fff;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

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

.section-title h2 {
    font-size: 1.5rem;
    color: #1a5fb4;
    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: #ffd54f;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 0.9375rem;
    margin-top: 15px;
}

/* Company Introduction */
.company-intro {
    padding: 40px 0;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-text h3 {
    font-size: 1.25rem;
    color: #1a5fb4;
    margin-bottom: 15px;
}

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

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

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a5fb4;
}

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

/* Products & Services */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-img {
    height: 180px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1a5fb4;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
}

.product-link {
    display: inline-block;
    color: #1a5fb4;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-link:hover {
    color: #0d47a1;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5fb4 0%, #0d47a1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.advantage-content p {
    font-size: 0.875rem;
    color: #666;
}

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

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

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

.news-img {
    height: 160px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f51b5;
    font-size: 2.5rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 8px;
}

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

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

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

.news-more {
    display: inline-block;
    margin-top: 15px;
    color: #1a5fb4;
    font-size: 0.875rem;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.solution-item {
    padding: 25px 20px;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border-left: 4px solid #1a5fb4;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease;
}

.solution-item:hover {
    transform: translateX(5px);
}

.solution-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.solution-item p {
    font-size: 0.875rem;
    color: #666;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1a5fb4 0%, #0d47a1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 3px;
}

.contact-text p {
    font-size: 0.9375rem;
    color: #333;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background: #ffd54f;
    color: #1a237e;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a237e;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #ffd54f;
}

.footer-info p {
    font-size: 0.875rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ffd54f;
}

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

.footer-links a {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ffd54f;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

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

.breadcrumb {
    font-size: 0.875rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #ffd54f;
}

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

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

.about-section h2 {
    font-size: 1.375rem;
    color: #1a5fb4;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

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

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e3f2fd;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #1a5fb4;
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 1rem;
    color: #1a5fb4;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

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

.news-page-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-page-img {
    height: 180px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f51b5;
    font-size: 3rem;
}

.news-page-content {
    padding: 25px;
}

.news-page-content h2 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 10px;
}

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

.news-meta {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 15px;
}

.news-page-content p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #1a5fb4;
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

.news-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.news-detail-meta {
    font-size: 0.8125rem;
    color: #999;
}

.news-detail-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

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

.news-detail-body h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 30px 0 15px;
}

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

.news-nav a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #666;
    transition: background 0.3s ease;
}

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

.news-nav span {
    display: block;
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 5px;
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 1.25rem;
    color: #1a5fb4;
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.submit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a5fb4 0%, #0d47a1 100%);
    color: #fff;
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-details {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-details h2 {
    font-size: 1.25rem;
    color: #1a5fb4;
    margin-bottom: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5fb4;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 0.9375rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-detail-text p {
    font-size: 0.875rem;
    color: #666;
}

/* Products Page */
.products-page {
    padding: 40px 0;
}

.products-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.product-detail-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.product-detail-img {
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #1a5fb4;
}

.product-detail-info {
    padding: 25px;
}

.product-detail-info h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
}

.product-detail-info p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 15px;
}

.product-features {
    margin-top: 15px;
}

.product-features h4 {
    font-size: 0.9375rem;
    color: #333;
    margin-bottom: 10px;
}

.product-features ul {
    padding-left: 20px;
}

.product-features li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #666;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a5fb4;
}

/* Solutions Page */
.solutions-page {
    padding: 40px 0;
}

.solution-detail {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.solution-detail h3 {
    font-size: 1.25rem;
    color: #1a5fb4;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

.solution-detail p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 15px;
}

.solution-detail ul {
    padding-left: 20px;
}

.solution-detail li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
    color: #555;
}

.solution-detail li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #1a5fb4;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .header-contact {
        display: block;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        width: auto;
        background: none;
    }
    
    .nav-list {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-list li {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 15px 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .intro-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item {
        flex-direction: row;
    }
    
    .news-img {
        width: 200px;
        height: auto;
        flex-shrink: 0;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-item {
        flex: 1 1 calc(50% - 10px);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-info {
        flex: 2;
    }
    
    .footer-links {
        flex: 1;
    }
    
    .news-page-item {
        flex-direction: row;
    }
    
    .news-page-img {
        width: 250px;
        height: auto;
    }
    
    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .news-nav a {
        flex: 1;
    }
    
    .contact-grid {
        flex-direction: row;
    }
    
    .contact-form-section {
        flex: 2;
    }
    
    .contact-details {
        flex: 1;
    }
    
    .products-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: row;
        align-items: center;
    }
    
    .intro-text {
        flex: 1;
    }
    
    .intro-stats {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-img {
        height: 200px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .news-list {
        flex-direction: row;
    }
    
    .news-item {
        flex: 1;
        flex-direction: column;
    }
    
    .news-img {
        width: 100%;
        height: 160px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-item {
        flex: 1 1 calc(25% - 15px);
    }
    
    .products-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
    }
}
