/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #333;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* 首页横幅样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1, .hero h2 {
    font-size: 4rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2.8rem;
    color: #444;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 1.2rem;
    font-weight: 500;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 关于我们样式 */
.about {
    padding: 6rem 0;
    background: var(--light-gray);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.015em;
    color: #444;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    margin-bottom: 0;
}

/* 产品样式 */
.products {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.products h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.product-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.product-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.product-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.product-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.product-link:hover::after {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    .products {
        padding: 5rem 0;
    }

    .products h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-content {
        padding: 2rem;
    }

    .product-content h3 {
        font-size: 1.5rem;
    }
}

/* 服务样式 */
.services {
    padding: 7rem 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.service-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* 联系我们样式 */
.contact {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #f3f4f6, #fff);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 0.25rem;
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-color);
    background: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    text-align: center;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
    background: #1e293b;
    color: #f8fafc;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    margin-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo div {
        font-size: 24px !important;
    }
    
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        height: auto;
        padding: 7rem 0 4rem;
    }
    
    .hero h1, .hero h2 {
        font-size: 2.7rem;
        margin-bottom: 1.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .about {
        padding: 4rem 0;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-text {
        padding: 0 1rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature {
        padding: 2rem;
    }

    .products {
        padding: 4rem 0;
    }

    .products h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .product-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-content h3 {
        font-size: 1.5rem;
    }

    .product-content p {
        font-size: 1rem;
    }

    .services {
        padding: 4rem 0;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-form {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-info, .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .about h2, .products h2, .services h2, .contact h2 {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* 屏幕阅读器专用类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .container {
        max-width: 1024px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .hero h1, .hero h2 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 25px;
    }
    
    .hero h1, .hero h2 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .about h2, .products h2, .services h2, .contact h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
} 