* {
    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;
    }
}
/* overrides and enhancements */
.navbar {
    background: rgba(255,255,255,0.6);
    backdrop-filter: saturate(1.2) blur(8px);
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #2196F3;
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.logo-img {
    filter: drop-shadow(0 0 8px rgba(33,150,243,0.35));
    transition: transform 0.3s, filter 0.3s;
}
.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(33,150,243,0.55));
}
/* footer logo should blend with dark footer */
.footer-logo .logo-img {
    height: 48px;
    filter: none;
    mix-blend-mode: normal;
}
.hero {
    background-image:
        linear-gradient(135deg, rgba(18,32,68,0.55), rgba(18,32,68,0.55)),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=1920&auto=format&fit=crop');
    background-size: 200% 200%, cover;
    background-position: 50% 50%, center;
    background-repeat: no-repeat, no-repeat;
    animation: heroGrad 12s ease infinite;
    position: relative;
    overflow: hidden;
}
@keyframes heroGrad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 20% 20%, rgba(255,64,129,0.35) 0%, transparent 60%),
        radial-gradient(500px 250px at 80% 30%, rgba(0,229,255,0.25) 0%, transparent 60%);
    filter: blur(30px);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.primary-btn {
    background: linear-gradient(90deg, #FF4081, #FFB300);
    box-shadow: 0 10px 25px rgba(255,64,129,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255,64,129,0.45);
}
.secondary-btn {
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.secondary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255,255,255,0.25);
}
.feature-card, .product-card, .case-card, .contact-info, .contact-form {
    backdrop-filter: saturate(1.1) blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
}
.feature-card:hover, .product-card:hover, .case-card:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}
section h2 {
    position: relative;
}
section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #2962FF, #00E5FF);
    border-radius: 2px;
}
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}
footer::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #2962FF, #FF4081);
    opacity: 0.6;
}

