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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1D2129;
    background-color: #F2F3F5;
}

/* 导航栏样式 */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 英雄区样式 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
}

/* 部分通用样式 */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #86909C;
    max-width: 35rem;
    margin: 0 auto 4rem;
}

/* 卡片样式 */
.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #165DFF;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #0E42D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(22, 93, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #165DFF;
    border: 2px solid #165DFF;
}

.btn-secondary:hover {
    background-color: #165DFF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-white {
    background-color: #FFFFFF;
    color: #165DFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-orange {
    background-color: #FF7D00;
    color: #FFFFFF;
}

.btn-orange:hover {
    background-color: #E66E00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 125, 0, 0.3);
}

/* 图标样式 */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
    margin-bottom: 1.5rem;
}

/* 响应式导航菜单动画 */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 300px;
}

/* 滚动到顶部按钮 */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #165DFF;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #0E42D2;
    transform: translateY(-3px);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* SVG 科技背景动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate 60s linear infinite;
}

/* 产品类别卡片 */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 联系卡片 */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 资料下载卡片 */
.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 页脚样式 */
footer {
    background-color: #1D2129;
    color: #FFFFFF;
}

.footer-link {
    color: #86909C;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .icon-box {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .text-[clamp(2rem,5vw,3.5rem)] {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .text-[clamp(1.5rem,3vw,2.5rem)] {
        font-size: clamp(1.25rem, 3vw, 2rem);
    }
    
    .text-[clamp(1rem,2vw,1.25rem)] {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .icon-box {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 印刷样式 */
@media print {
    header, footer, .btn {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .card, .contact-card, .product-card {
        border: 2px solid currentColor;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}