/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* ===== BUTTONS ===== */

/* ===== IMAGE FALLBACK STYLES ===== */
.image-fallback {
    opacity: 0.8;
    filter: grayscale(10%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.image-fallback:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Loading state for images */
img {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                      linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    min-height: 50px;
    transition: all 0.3s ease;
}

/* Remove loading background when image loads */
img.loaded {
    background: none;
}

/* Specific styles for different image types */
.product-image img.image-fallback,
.hero-image img.image-fallback,
.series-image img.image-fallback {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.case-image img.image-fallback,
.app-image img.image-fallback {
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.company-image img.image-fallback,
.factory-image img.image-fallback {
    border: 2px solid #007bff;
    border-radius: 10px;
    opacity: 0.9;
}

/* Customer logo fallback styles */
.company-logo img.image-fallback,
.customer-logo img.image-fallback {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

/* Blog image fallback styles */
.blog-image img.image-fallback {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== BUTTONS CONTINUED ===== */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

/* ===== HEADER & NAVIGATION ===== */
.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;
    transition: none; /* 移除过渡效果避免闪动 */
}

.navbar {
    padding: 1rem 0;
}

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

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

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px; /* 统一字体大小 */
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #007bff;
}

.nav-cta {
    background: #007bff !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-size: 16px !important; /* 确保CTA按钮字体大小一致 */
}

.nav-cta:hover {
    background: #0056b3 !important;
    color: white !important;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0.5rem 1rem;
    margin: 0;
}

.dropdown-menu a {
    padding: 0.5rem 0;
    color: #333;
    font-weight: 400;
}

.dropdown-menu a:hover {
    color: #007bff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 70px;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PRODUCT MATRIX ===== */
.product-matrix {
    padding: 80px 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.product-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
}

.product-features li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.product-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #0056b3;
}

/* ===== APPLICATIONS SECTION ===== */
.applications-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 4-item grid layout for better visual balance */
.applications-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.app-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
}

.app-icon img {
    width: 30px;
    height: 30px;
}

.app-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.app-item p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.app-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* ===== TRUST SIGNALS ===== */
.trust-signals {
    padding: 80px 0;
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 4-item grid layout for better visual balance */
.trust-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem;
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
}

.trust-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.trust-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.trust-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
}

.info-detail {
    font-size: 0.9rem;
    color: #666;
}

.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f5f5f5; /* 统一灰色背景 */
    font-family: inherit;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
    appearance: none;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,123,255,0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,123,255,0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(3px);
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 防止表单验证时的布局跳动 */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 80px; /* 为标签和输入框预留空间 */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0; /* 移除margin，由form-group控制 */
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #28a745;
}

/* Required field indicator */
.form-group label[for="name"]:after,
.form-group label[for="email"]:after,
.form-group label[for="product_interest"]:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links-bottom {
    display: flex;
    gap: 2rem;
}

.footer-links-bottom a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ===== FLOATING CONTACT ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.floating-icon {
    font-size: 1.2rem;
}

.floating-text {
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
        padding: 20px 0;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: #f8f9fa;
        border-left-color: #007bff;
        color: #007bff;
    }
    
    .nav-menu .nav-cta {
        background: #007bff;
        color: white !important;
        margin: 10px 20px;
        border-radius: 6px;
        text-align: center;
        border-left: 4px solid #007bff !important;
    }
    
    .nav-menu .nav-cta:hover {
        background: #0056b3;
        border-left-color: #0056b3 !important;
    }
    
    /* Dropdown menus on mobile */
    .nav-menu .dropdown {
        position: relative;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 12px 40px;
        font-size: 14px;
        color: #666;
        border-left: 4px solid transparent;
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: #e9ecef;
        color: #007bff;
        border-left-color: #007bff;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .inquiry-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-btn {
        padding: 10px 16px;
    }
    
    .floating-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .inquiry-form {
        padding: 1.5rem 1rem;
    }
    
    .inquiry-form h3 {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
/* Contact Page Styles */
.contact-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.contact-form-section {
    padding: 80px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f5f5f5; /* 统一灰色背景 */
    color: #333;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

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

.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-loading {
    display: none;
}

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

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.info-item p {
    color: #666;
    margin: 4px 0;
    line-height: 1.5;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.contact-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
}

.contact-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-info h1 {
        font-size: 2.5rem;
    }
    
    .contact-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* Contact Section Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .form-header h3 {
        font-size: 1.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
/* Case Studies Page Styles */
.case-studies-filter {
    padding: 60px 0 40px;
    background: #f8f9fa;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.case-studies-grid {
    padding: 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.case-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.case-meta .company {
    font-weight: 600;
}

.case-meta .location {
    color: #007bff;
}

.case-content > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-highlights {
    margin: 20px 0;
}

.case-highlights .highlight {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.case-highlights .highlight strong {
    color: #333;
}

.case-specs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.case-specs .spec {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #0056b3;
}

.case-link:after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.case-link:hover:after {
    transform: translateX(3px);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: #007bff;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin-top: 20px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info strong {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

.company-logo img {
    height: 40px;
    opacity: 0.7;
}

/* Case Study CTA Section */
.case-study-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
}

.case-study-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.case-study-cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design for Case Studies */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .case-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .case-study-cta h2 {
        font-size: 2rem;
    }
    
    .cta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item strong {
        font-size: 2rem;
    }
}

/* ===== FORM ERROR HANDLING STYLES ===== */

/* Form error notifications */
.form-error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #e74c3c;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.form-error-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.form-error-notification.with-fallback {
    padding: 20px;
}

.form-error-notification .error-icon {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-error-notification .error-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-error-notification .error-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.form-error-notification .email-fallback-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.form-error-notification .email-fallback-btn:hover {
    background: #c0392b;
}

.form-error-notification .error-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.form-error-notification .error-close:hover {
    color: #666;
}

/* Form success notifications */
.form-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #27ae60;
    border-left: 4px solid #27ae60;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-success.show {
    transform: translateX(0);
    opacity: 1;
}

.form-success .success-icon {
    color: #27ae60;
    font-size: 20px;
    font-weight: bold;
}

.form-success .success-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Field errors */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.field-warning {
    color: #f39c12;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-style: italic;
}

/* Form errors container */
.form-errors {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.form-errors .error-header {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-errors li {
    color: #666;
    margin-bottom: 4px;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quick quote modal */
.quick-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-quote-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-quote-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.quick-quote-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.quick-quote-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-quote-modal .modal-header h3 {
    margin: 0;
    color: #333;
}

.quick-quote-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.quick-quote-modal .modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.quick-quote-modal .quick-quote-form {
    padding: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-error-notification,
    .form-success {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .quick-quote-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .quick-quote-modal .modal-header {
        padding: 16px 20px;
    }
    
    .quick-quote-modal .quick-quote-form {
        padding: 20px;
    }
}
/* ===== MOBILE NAVIGATION FIX ===== */
@media (max-width: 768px) {
    /* Ensure header is fixed and visible */
    .header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    /* Mobile menu toggle improvements */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
    }
    
    /* Enhanced mobile menu styles */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        display: flex !important;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Dropdown indicators */
    .nav-menu .dropdown > a::after {
        content: '+';
        float: right;
        font-size: 18px;
        font-weight: bold;
        transition: transform 0.3s ease;
        line-height: 1;
    }
    
    .nav-menu .dropdown.active > a::after {
        transform: rotate(45deg);
    }
    
    /* Touch-friendly tap targets */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Ensure content doesn't overlap with fixed header */
    .hero-section,
    .main-content {
        margin-top: 70px;
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    .nav-menu {
        top: 60px !important;
        height: calc(100vh - 60px);
    }
    
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-brand .brand-text {
        font-size: 16px;
    }
    
    .logo {
        height: 35px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .nav-menu {
        height: -webkit-fill-available;
    }
}


/* ===== NEWSLETTER FORM STYLES ===== */
.newsletter-form input[type="email"] {
    background: #f5f5f5 !important; /* 统一灰色背景 */
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 12px 16px;
    border-radius: 8px;
}

.newsletter-form input[type="email"]:focus {
    background: #fff !important;
    border-color: #007bff;
    outline: none;
}
