/* 自定义CSS样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 主要字体设置 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0077B6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00B4D8;
}

/* 导航栏悬停效果 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0077B6;
    transition: width 0.3s ease;
}

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

/* 产品卡片悬停效果 */
.product-card {
    transition: all 0.3s ease;
}

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

/* 解决方案卡片悬停效果 */
.solution-card {
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0077B6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #00B4D8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0077B6;
    border: 2px solid #0077B6;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #0077B6;
    color: white;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .text-4xl {
        font-size: 1.8rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}

/* 产品表格样式 */
.product-table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.product-table th {
    background-color: #0077B6;
    color: white;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

.product-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.product-table tr:last-child td {
    border-bottom: none;
}

.product-table tr:hover {
    background-color: #f9fafb;
}

/* 筛选器样式 */
.filter-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6b7280;
}

/* 文章内容样式 */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 代码块样式 */
pre {
    background-color: #1e293b;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

code {
    font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 产品详情页规格表格 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.spec-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.spec-table tr:last-child td,
.spec-table tr:last-child th {
    border-bottom: none;
}

/* 侧边栏样式 */
.sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* 推荐产品样式 */
.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recommended-product {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.recommended-product:hover {
    border-color: #0077B6;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommended-product h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.recommended-product p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* CTA区域样式 */
.cta-section {
    background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
    color: white;
    padding: 3rem 0;
    border-radius: 12px;
    margin: 2rem 0;
}

/* 页脚链接悬停效果 */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00B4D8;
}

/* 移动端菜单动画 */
.slide-in {
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}