* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.logo:hover {
    color: #1976D2;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 主标题区域样式 */
.hero {
    background: linear-gradient(135deg, #2962FF, #00E5FF);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: #FF4081;
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* 通用部分标题样式 */
section {
    padding: 5rem 5%;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* 特性卡片样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    margin-bottom: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2196F3;
    margin-bottom: 1rem;
}

/* 产品卡片样式 */
.product-grid, .case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card, .case-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #2196F3;
    margin-bottom: 1rem;
}

.product-card ul {
    list-style: none;
}

.product-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 案例卡片样式 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card h3 {
    color: #2196F3;
    margin-bottom: 1rem;
}

/* 联系我们样式 */
.contact {
    background: #f5f5f5;
}

.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    flex: 1;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

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

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form {
    flex: 1;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-info h3,
.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

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

.submit-btn {
    width: 100%;
    background: #2196F3;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* 消息提示框样式 */
.message-box {
    display: none;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.message-box.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.message-box.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        margin: 0.5rem 0;
    }

    .feature-grid, .product-grid, .case-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .contact-content {
        flex-direction: column;
        padding: 1rem;
    }

    .contact-info, .contact-form {
        width: 100%;
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links a {
        margin: 0.5rem;
        display: inline-block;
    }
}
