/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 顶部导航栏 */
.top-bar {
  background-color: #1e88e5;
  color: white;
  font-size: 12px;
  padding: 5px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left a,
.top-right a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-size: 12px;
}

.top-left a:hover,
.top-right a:hover {
  text-decoration: underline;
}

.mobile-version {
  position: relative;
}

.mobile-version i {
  font-size: 10px;
  margin-left: 3px;
}

/* 主头部 */
.main-header {
  background-color: #1976d2;
  padding: 15px 0;
  color: white;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo样式 */
.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 10px;
}

.logo-shape {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ffc107, #ff9800);
  border-radius: 8px;
  position: relative;
}

.logo-shape::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  background: #1976d2;
  border-radius: 4px;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 12px;
  opacity: 0.8;
}

/* 主导航 */
.primary-nav {
  display: flex;
  gap: 20px;
}

.nav-item {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background-color: #1565c0;
}

/* 搜索区域 */
.search-section {
  text-align: right;
}

.search-box {
  display: flex;
  margin-bottom: 8px;
}

.search-input {
  width: 250px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-btn {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover {
  background-color: #f57c00;
}

.hot-keywords {
  font-size: 12px;
  opacity: 0.9;
}

.hot-keywords span {
  margin-right: 5px;
}

.hot-keywords a {
  color: white;
  text-decoration: none;
  margin-right: 10px;
}

.hot-keywords a:hover {
  text-decoration: underline;
}

/* 二级导航栏 */
.secondary-nav {
  background-color: #1565c0;
  padding: 8px 0;
}

.secondary-nav .container {
  display: flex;
  gap: 20px;
}

.secondary-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.secondary-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.secondary-nav a.active {
  background-color: #0d47a1;
}

/* 主要内容区域 */
.main-content {
  padding: 20px 0;
}

.main-content .container {
  display: flex;
  gap: 20px;
}

/* 左侧内容 */
.content-left {
  flex: 1;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #1976d2;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* 文章标题 */
.article-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* 文章元信息 */
.article-meta {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.article-meta span {
  margin-right: 20px;
}

/* 文章内容 */
.article-content {
  margin-bottom: 30px;
}

.article-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

/* 编号列表 */
.numbered-list {
  margin: 20px 0;
}

.list-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.list-item .number {
  background-color: #1976d2;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 5px;
}

.list-item .content {
  flex: 1;
}

.list-item .content p {
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.list-item .content ul {
  margin-left: 20px;
  color: #666;
}

.list-item .content li {
  margin-bottom: 5px;
}

/* 下载区域 */
.download-section {
  background-color: #f8f9fa;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.download-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
}

.download-header i {
  margin-right: 10px;
  font-size: 18px;
}

.download-file {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.download-file i {
  color: #ff9800;
  margin-right: 10px;
  font-size: 20px;
}

.filename {
  font-family: "Courier New", monospace;
  color: #333;
  margin-right: 10px;
  font-weight: 500;
}

.filesize {
  color: #666;
  margin-right: 20px;
}

.download-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #c0392b;
}

/* 文章导航 */
.article-navigation {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-item .label {
  color: #666;
  margin-right: 10px;
}

.nav-item a {
  color: #1976d2;
  text-decoration: none;
}

.nav-item a:hover {
  text-decoration: underline;
}

.nav-item .no-more {
  color: #999;
  font-style: italic;
}

/* 相关文章 */
.related-articles {
  margin-top: 30px;
}

.related-articles h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1976d2;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.related-articles li::before {
  content: "•";
  color: #1976d2;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.related-articles a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.related-articles a:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* 右侧边栏 */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1976d2;
  font-weight: bold;
}

/* 热门资讯 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.news-item .number {
  background-color: #1976d2;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.news-item a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.news-item a:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* 热门教程 */
.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.tutorial-item {
  text-align: center;
}

.tutorial-image {
  margin-bottom: 8px;
}

.tutorial-image img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

.tutorial-item p {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-input {
    width: 200px;
  }

  .main-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .header-center {
    order: 3;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .content-left {
    padding: 15px;
  }

  .article-title {
    font-size: 20px;
  }

  .search-input {
    width: 150px;
  }

  .secondary-nav .container {
    flex-wrap: wrap;
    gap: 10px;
  }
}
