/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a5fb4;
}

.logo-domain {
    font-size: 12px;
    color: #888;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #1a5fb4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a5fb4;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 首页横幅 */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 50%, #62a0ea 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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='%23ffffff' 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");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-slogan {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.85;
    letter-spacing: 3px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #1a5fb4;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 通用标题样式 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1a5fb4;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 50px;
}

/* 公司简介 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    line-height: 2;
    color: #555;
}

.about-text p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #777;
    font-size: 14px;
}

/* 产品展示 */
.products {
    padding: 100px 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 95, 180, 0.15);
    border-color: #1a5fb4;
}

.product-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.product-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-detail h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    font-weight: normal;
}

.contact-detail p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.contact-map {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #aaa;
}

.map-placeholder span {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 18px;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0;
}

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

.footer-company {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-domain {
    color: #888;
    font-size: 14px;
}

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

.footer-copyright p {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a5fb4;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(26, 95, 180, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    background: #1552a0;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-slogan {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 26px;
    }
}
