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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

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

.logo img {
    max-height: 60px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-contact p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 导航栏样式 */
.main-nav {
    background-color: #165DFF;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #1451d0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    min-width: 150px;
}

.dropdown-menu a {
    color: #333;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: #165DFF;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 侧边栏样式 */
.product-sidebar {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-title h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #165DFF;
}

.product-categories {
    list-style: none;
}

.product-categories li {
    margin-bottom: 10px;
}

.category-link {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-link:hover {
    background-color: #f5f7fa;
    color: #165DFF;
}

.sidebar-download {
    margin-top: 30px;
}

.sidebar-download h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #165DFF;
}

.sidebar-download ul {
    list-style: none;
}

.sidebar-download li {
    margin-bottom: 10px;
}

.sidebar-download a {
    color: #165DFF;
    text-decoration: none;
}

/* 页脚样式 */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    margin-right: 40px;
}

.footer-col:last-child {
    margin-right: 0;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 12px;
    color: #aaa;
}

/* 主内容区域样式 */
.main-content {
    display: flex;
    margin-top: 20px;
}

.content-wrapper {
    flex: 1;
    margin-left: 20px;
}

/* 首页样式 */
.banner {
    position: relative;
    height: 400px;
    background-color: #f5f7fa;
    margin-bottom: 30px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #165DFF;
}

/* 产品卡片样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #165DFF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1451d0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .content-wrapper {
        margin-left: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-col {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .banner {
        height: 250px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 联系我们页面样式 */
.contact-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.contact-details {
    flex: 1;
    margin-right: 40px;
}

.contact-form {
    flex: 1;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-primary {
    background-color: #165DFF;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1451d0;
}

/* 关于我们页面样式 */
.about-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 14px;
}

/* 新闻页面样式 */
.news-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #165DFF;
}

.news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 解决方案页面样式 */
.solution-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.solution-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 技术支持页面样式 */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    cursor: pointer;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

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

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #165DFF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

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

/* 技术支持页面图标样式 */
.tech-support-content h3 i,
.tech-support-content h4 i,
.tech-support-content h5 i {
    margin-right: 10px;
    color: #165DFF;
    font-size: 1.2em;
}

.tech-support-content h3 i {
    font-size: 1.5em;
}

.tech-support-content h4 i {
    font-size: 1.3em;
}

/* 图标动画效果 */
.tech-support-content i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-support-content h3:hover i,
.tech-support-content h4:hover i,
.tech-support-content h5:hover i {
    transform: scale(1.1);
    color: #1451d0;
}

/* 技术指南和应用笔记项目中的图标特殊样式 */
.guide-item h5 i,
.note-item h5 i {
    color: #165DFF;
    margin-right: 8px;
}

/* 表单字段中的图标样式 */
.form-group i {
    margin-right: 8px;
    color: #666;
}

/* 技术参数列表中的图标 */
.tech-section ul li i {
    color: #165DFF;
    margin-right: 10px;
}