/* 华信达科技有限公司 - 响应式企业网站样式 */
/* Mobile-First Design for Yandex & Bing SEO Optimization */

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

:root {
    --primary-color: #1a5fb4;
    --secondary-color: #26a269;
    --accent-color: #e5a50a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
}

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

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

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

ul, ol {
    list-style: none;
}

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

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

.header-top {
    background: var(--bg-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

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

.header-top-left a {
    color: var(--white);
    margin-right: 15px;
}

.header-top-right {
    display: flex;
    align-items: center;
}

.header-top-right .phone {
    color: var(--accent-color);
    font-weight: bold;
}

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

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

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

.logo span {
    color: var(--secondary-color);
}

/* 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: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation */
.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav.active {
    display: block;
}

.nav-list {
    padding: 10px 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    background: var(--bg-light);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: var(--white);
}

/* Banner Section */
.banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.banner p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

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

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

/* Keywords Section */
.keywords {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.keywords-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.keywords-label {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keywords-list a {
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.keywords-list a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

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

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

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

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

/* Services Section */
.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--bg-light);
}

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

.about-text h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

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

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

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

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

.about-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    padding: 40px;
    color: var(--white);
    text-align: center;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cases Section */
.cases {
    background: var(--white);
}

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

.case-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.case-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 3px;
    margin-top: 10px;
}

/* News Section */
.news {
    background: var(--bg-light);
}

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

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news-image {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.5;
}

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

.news-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.news-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Partners Section */
.partners {
    background: var(--white);
    padding: 40px 0;
}

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

.partner-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

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

/* Contact Section */
.contact {
    background: var(--bg-dark);
    color: var(--white);
}

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

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

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

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

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

.form-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: #1a252f;
    color: var(--white);
    padding: 40px 0 20px;
}

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

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

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

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

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

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

.breadcrumb a {
    color: var(--white);
}

.breadcrumb span {
    margin: 0 8px;
}

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

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

.main-content {
    flex: 1;
}

.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-light);
}

.sidebar-links a:hover {
    color: var(--primary-color);
}

/* Article Styles */
.article {
    background: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
}

.article h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.article p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

.article h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article ul {
    margin: 15px 0;
    padding-left: 20px;
}

.article ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.article ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* News Detail */
.news-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
}

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

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

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-detail-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-color);
}

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

.news-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* News List */
.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;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

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

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

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

.news-list-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* Responsive Styles - Desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .nav {
        display: block;
        position: static;
        box-shadow: none;
    }
    
    .nav-list {
        display: flex;
        padding: 0;
    }
    
    .nav-item {
        position: relative;
    }
    
    .nav-link {
        padding: 10px 15px;
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        background: var(--white);
        box-shadow: var(--shadow);
        border-radius: 0 0 8px 8px;
        z-index: 100;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
    }
    
    .banner {
        padding: 100px 0;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: row;
        align-items: stretch;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 0 0 350px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-wrapper {
        flex-direction: row;
    }
    
    .sidebar {
        width: 280px;
        flex-shrink: 0;
    }
    
    .news-list-item {
        flex-direction: row;
    }
    
    .news-list-image {
        width: 200px;
        height: 140px;
        flex-shrink: 0;
    }
}

/* Responsive Styles - Large Desktop */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-image {
        flex: 0 0 400px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
}
