/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

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

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

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

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.logo-sub {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.18s ease, transform 0.08s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.18s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* 避免页面切换时active态参与过渡，造成导航闪一下 */
.nav-link.active {
    transition: none;
}

.nav-link.active::after {
    transition: none;
}

/* PC端统一导航点击反馈，避免各页面点击动画不一致 */
@media (min-width: 769px) {
    .nav-link.nav-clicking {
        transform: translateY(0.5px);
    }
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
}

.nav-contact i {
    font-size: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1002;
}

.nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 移动端导航菜单样式 */
@media (max-width: 768px) {
    .nav-contact {
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 15px;
        z-index: 1001;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-link {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1565106430482-8f6e74349ca1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 70px;
}

.hero-overlay {
    width: 100%;
    padding: 40px 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

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

.btn-secondary:hover {
    background-color: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* 核心优势 */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

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

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.advantage-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* 产品概览 */
.products-preview {
    padding: 80px 0;
    background-color: #f1f5f9;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: #1f2937;
}

.product-card p {
    padding: 0 20px 20px;
    color: #6b7280;
    line-height: 1.6;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background-color: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
    transition: background-color 0.3s;
}

.product-link:hover {
    background-color: #dbeafe;
}

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

/* 应用领域 */
.applications {
    padding: 80px 0;
    background-color: white;
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.application-tag {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.application-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

/* 公司简介 */
.about-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 页脚 - 优化版 */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #3b82f6);
}

.footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #60a5fa;
}

.contact-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #60a5fa;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
    position: relative;
    font-size: 1.05rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    padding: 25px 0;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.icp-number {
    margin: 0;
}

.icp-number a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.05);
}

.icp-number a:hover {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-text {
        font-size: 1rem;
    }
}

/* 浮动按钮 */
.float-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.phone {
    background: linear-gradient(135deg, #059669, #10b981);
}

.float-btn.email {
    background: linear-gradient(135deg, #60a5fa, #818cf8);
}

.float-btn.website {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* 移动端通用优化 - 合并重复的媒体查询 */
    
.stat-number {
    font-size: 2.5rem;
}


/* 移动端通用优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* 触摸区域优化 */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation;
    }
    
    /* 链接触摸优化 */
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation;
    }
    
    /* 网格布局优化 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 浮动按钮优化 */
    .float-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
        min-width: 44px;
        min-height: 44px;
        position: relative;
    }
    
    /* 通过伪元素增大触摸区域，不影响视觉大小 */
    .float-btn::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .float-contact {
        bottom: 15px;
        right: 15px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 微信浏览器专用修复 */
/* 微信内置浏览器（X5内核）需要特殊的CSS处理 */
@media (max-width: 768px) {
    /* 微信中修复fixed定位问题 */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        z-index: 1000;
    }
    
    /* 微信中消除点击延迟 */
    .nav-link,
    .btn,
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 微信中需要更大的触摸区域 */
    .nav-toggle {
        min-width: 60px;
        min-height: 60px;
        padding: 15px;
    }
    
    /* 防止微信中的弹性滚动 */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* 微信中修复图片显示 */
    img {
        -webkit-touch-callout: none;
    }
}