@charset "utf-8";

/* ==========================================================================
   1. 全局重置与基础样式 (科技蓝风格)
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif; 
    background-color: #f4f6f9; /* 淡灰蓝背景 */
    color: #333; 
    line-height: 1.8; 
}
a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: #1E88E5; /* 科技蓝悬停 */ }
ul { list-style: none; }
img { max-width: 100%; display: block; margin: 0 auto; }

/* 布局容器 */
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ==========================================================================
   2. 顶部导航 & 面包屑
   ========================================================================== */
.top-nav { background: #0D47A1; height: 50px; line-height: 50px; } /* 深蓝导航 */
.nav-inner { width: 1200px; margin: 0 auto; display: flex; }
.nav-item { padding: 0 25px; color: #fff; font-size: 16px; display: block; font-weight: bold; }
.nav-item:hover, .nav-item.active { background: #1565C0; }

.breadcrumb { width: 1200px; margin: 0 auto; padding: 15px 0; color: #666; font-size: 14px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #1E88E5; }

/* ==========================================================================
   3. 通用布局结构
   ========================================================================== */
.main-wrapper { width: 1200px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: flex-start; }

/* 左侧内容容器 */
.left-content { width: 880px; background: #fff; padding: 25px; border-radius: 4px; border-top: 3px solid #1E88E5; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }

/* 右侧侧边栏容器 */
.sidebar { width: 300px; }
.sidebar-widget { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.widget-title { font-size: 16px; font-weight: bold; color: #333; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 15px; position: relative; }
.widget-title::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: #1E88E5; }

/* Banner 图片组 */
.banner-box { display: flex; justify-content: space-between; margin: 15px auto; width: 1200px; }
.banner-box img { width: 49.5%; height: auto; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* ==========================================================================
   4. 文章列表样式 (首页 & 列表页)
   ========================================================================== */
.section-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.section-title, .page-title { font-size: 22px; font-weight: bold; color: #0D47A1; border-left: 5px solid #1E88E5; padding-left: 15px; }
.more-link { font-size: 14px; color: #666; }
.more-link:hover { color: #1E88E5; }

.news-list-item { display: flex; padding: 20px 0; border-bottom: 1px dashed #eee; transition: background 0.3s; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: #fcfdff; }

.news-info { flex: 1; }
.news-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: #333; display: block; }
.news-title:hover { color: #1E88E5; }
.news-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 10px; text-align: justify; height: 50px; overflow: hidden; }
.news-meta { font-size: 12px; color: #999; display: flex; align-items: center; }
.tag-badge { background: #e3f2fd; color: #1565c0; padding: 2px 8px; border-radius: 2px; margin-right: 15px; font-size: 12px; }
.read-btn { border: 1px solid #ddd; padding: 2px 10px; border-radius: 10px; font-size: 12px; margin-left: auto; color: #666; }
.read-btn:hover { border-color: #1E88E5; color: #1E88E5; }

/* ==========================================================================
   5. 文章详情页样式
   ========================================================================== */
.article-header { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 30px; text-align: center; }
.article-h1 { font-size: 26px; font-weight: bold; color: #0D47A1; margin-bottom: 15px; line-height: 1.4; }
.article-meta { font-size: 12px; color: #999; }
.article-meta span { margin: 0 10px; }

.article-body { font-size: 16px; color: #444; text-align: justify; }
.article-body p { margin-bottom: 20px; text-indent: 2em; }
.article-body h2 { font-size: 20px; color: #1E88E5; margin: 30px 0 15px; border-left: 4px solid #1E88E5; padding-left: 10px; font-weight: bold; background: #f0f7ff; line-height: 2; }
.article-body h3 { font-size: 18px; color: #333; margin: 20px 0 10px; font-weight: bold; }
.article-body ul { margin-left: 20px; margin-bottom: 20px; }
.article-body li { list-style: disc; margin-bottom: 5px; color: #555; }
.article-link { color: #1E88E5; text-decoration: underline; font-weight: bold; }

.prev-next-box { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; font-size: 14px; color: #666; }
.prev-next-box a { color: #555; }
.prev-next-box a:hover { color: #1E88E5; }

/* --- 5.1 特色组件 (表格与框) --- */
/* 科技蓝表格 */
.tech-table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; }
.tech-table th { background-color: #1565C0; color: #fff; padding: 12px; text-align: center; font-weight: bold; }
.tech-table td { border: 1px solid #e0e0e0; padding: 12px; text-align: center; color: #555; }
.tech-table tr:nth-child(even) { background-color: #f5f9ff; }
.tech-table tr:hover { background-color: #e3f2fd; }

/* 蓝色重点框 */
.blue-box { background-color: #e3f2fd; border: 1px solid #bbdefb; padding: 20px; margin: 20px 0; border-radius: 4px; border-left: 5px solid #2196f3; color: #0d47a1; }
.blue-box-title { font-weight: bold; font-size: 16px; margin-bottom: 10px; display: block; }

/* 步骤框 (用于教程) */
.step-box { background-color: #f0f7ff; border: 1px solid #bae7ff; padding: 20px; margin: 25px 0; border-radius: 4px; }
.step-item { margin-bottom: 15px; position: relative; padding-left: 30px; }
.step-num { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: #1890ff; color: #fff; border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px; font-weight: bold; }

/* ==========================================================================
   6. 侧边栏小部件
   ========================================================================== */
/* 联系方式 */
.contact-box { text-align: center; }
.contact-phone { font-size: 24px; color: #d32f2f; font-weight: bold; margin: 10px 0; display: block; }
.contact-desc { font-size: 13px; color: #666; margin-bottom: 15px; }
.wx-thumb { width: 150px; margin: 0 auto; border: 1px solid #eee; padding: 5px; cursor: zoom-in; }

/* 热门列表/快捷链接 */
.hot-list li, .quick-links li, .rec-list li { margin-bottom: 12px; padding-left: 15px; position: relative; border-bottom: 1px dashed #f5f5f5; padding-bottom: 5px; }
.hot-list li::before, .rec-list li::before { content: "•"; color: #1E88E5; position: absolute; left: 0; top: 0; }
.hot-list a, .quick-links a, .rec-list a { font-size: 14px; color: #555; display: block; }
.hot-list a:hover, .quick-links a:hover, .rec-list a:hover { color: #1E88E5; padding-left: 5px; }

/* ==========================================================================
   7. 底部 (Footer)
   ========================================================================== */
.footer-links { background: #fff; padding: 30px 0; margin-top: 20px; border-top: 1px solid #ddd; }
.link-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 1200px; margin: 0 auto; }
.link-grid a { font-size: 13px; color: #666; display: block; padding: 5px; background: #f9f9f9; text-align: center; border-radius: 2px; }
.link-grid a:hover { background: #1E88E5; color: #fff; }

.copyright { background: #333; color: #aaa; text-align: center; padding: 20px 0; font-size: 13px; }
.copyright a { color: #ccc; margin: 0 5px; }

/* ==========================================================================
   8. 悬浮组件与模态框
   ========================================================================== */
/* 左侧客服 */
.float-left { position: fixed; left: 10px; top: 60%; width: 50px; height: 50px; background: #1E88E5; border-radius: 50%; color: #fff; text-align: center; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; box-shadow: 0 2px 10px rgba(30, 136, 229, 0.3); line-height: 1.2; }

/* 右侧二维码 */
.float-right { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); width: 130px; background: #fff; padding: 10px; box-shadow: 0 2px 15px rgba(0,0,0,0.1); border-radius: 4px; text-align: center; z-index: 999; border: 1px solid #e0e0e0; }
.float-right img { width: 100%; margin-bottom: 5px; cursor: zoom-in; }
.float-right .ph { font-size: 15px; font-weight: bold; color: #1E88E5; }
.float-right .txt { font-size: 12px; color: #999; }

/* 模态框 */
.modal-mask { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 10000; justify-content: center; align-items: center; }
.modal-body { background: #fff; padding: 10px; border-radius: 5px; max-width: 90%; position: relative; }
.close-btn { position: absolute; top: -15px; right: -15px; width: 30px; height: 30px; background: #fff; border-radius: 50%; text-align: center; line-height: 30px; cursor: pointer; font-weight: bold; border: 2px solid #333; }

/* 手机端组件 (默认隐藏) */
.mobile-bar { display: none; }
.mobile-qr-popup { display: none; }

/* ==========================================================================
   9. 404 页面样式
   ========================================================================== */
.error-box { background: #fff; padding: 60px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid #1E88E5; max-width: 800px; width: 100%; margin: 50px auto; }
.error-code { font-size: 120px; font-weight: bold; color: #1E88E5; line-height: 1; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(30, 136, 229, 0.2); }
.error-title { font-size: 28px; margin-bottom: 20px; color: #333; font-weight: bold; }
.error-desc { font-size: 16px; color: #666; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; justify-content: center; gap: 20px; }
.btn { padding: 12px 35px; border-radius: 30px; font-size: 16px; font-weight: bold; transition: all 0.3s; cursor: pointer; display: inline-block; }
.btn-primary { background: #1E88E5; color: #fff; border: 1px solid #1E88E5; }
.btn-primary:hover { background: #1565C0; box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3); }
.btn-secondary { background: #fff; color: #1E88E5; border: 1px solid #1E88E5; }
.btn-secondary:hover { background: #e3f2fd; }

/* ==========================================================================
   10. 响应式适配 (Media Queries)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 容器通栏 */
    .container, .nav-inner, .banner-box, .main-wrapper, .left-content, .sidebar, .link-grid, .breadcrumb { width: 100%; }
    
    /* 布局调整 */
    .banner-box, .main-wrapper { flex-direction: column; }
    .banner-box img { width: 100%; margin-bottom: 5px; height: auto; }
    .left-content { margin-bottom: 15px; border-top: none; padding: 15px; }
    
    /* 侧边栏下沉 */
    .sidebar { width: 100%; margin-top: 20px; }
    
    /* 列表与文字调整 */
    .news-title { font-size: 16px; }
    .news-desc { height: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; }
    .link-grid { grid-template-columns: repeat(3, 1fr); padding: 0 10px; }
    .article-h1 { font-size: 22px; }
    
    /* 表格横向滚动 */
    .tech-table { display: block; overflow-x: auto; white-space: nowrap; }
    
    /* 404 调整 */
    .error-box { padding: 40px 20px; margin: 20px; }
    .error-code { font-size: 80px; }
    .btn-group { flex-direction: column; gap: 15px; }
    
    /* 悬浮组件切换 */
    .float-right { display: none; }
    .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 55px; background: #fff; border-top: 1px solid #ddd; z-index: 999; justify-content: space-around; align-items: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
    .m-item { flex: 1; text-align: center; border-right: 1px solid #eee; font-size: 14px; }
    .m-item:last-child { border: none; background: #1E88E5; color: #fff; height: 100%; line-height: 55px; }
    .m-item a { display: block; width: 100%; height: 100%; color: inherit; }
    
    .mobile-qr-popup { display: none; position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); width: 200px; background: #fff; padding: 10px; border: 1px solid #ccc; z-index: 998; border-radius: 5px; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
}