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

img {
  display: inline-block;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 主内容区 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 200px;
}

.content-left {
  flex: 1;
  min-width: 300px;
  padding-right: 20px;
}

.content-right {
  width: 300px;
  margin-bottom: 20px;
}

/* 页面标题 */
.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #212121;
}

/* 简介部分 */
.intro-section {
  display: flex;
  gap: 20px;
  background-color: white;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-section img {
  width: 150px;
  height: 150px;
  background: #d7d7d7;
}

.intro-section p {
  margin-bottom: 15px;
}

/* 精品资料部分 */
.premium-section {
  background: #fbfbff;
  border-radius: 8px 8px 8px 8px;
  border: 1px solid #eff1f1;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-section h3 {
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 24px;
  color: #212121;
}

.premium-features {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.premium-features li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

/* 确保列表项中的图标位置正确 */
.premium-features li .check-icon {
  position: absolute;
  left: 0;
  top: 4px;
}

/* 使用自定义图标替代伪元素 */
/* 原伪元素样式已移除 */

.btn-premium {
  width: 240px;
  height: 40px;
  background: radial-gradient(0% 0% at 0% 0%, #fba319 0%, #fdb725 0%), #ff610f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 14px;
}

.p-premium {
  max-width: 250px;
  text-align: center;
  font-size: 14px;
  color: #575757;
  line-height: 22px;
  white-space: wrap;
}

/* 文件列表 */
.files-section {
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 表格滚动容器 */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* 为移动端提供平滑滚动 */
  margin-bottom: 15px;
  scrollbar-width: thin; /* 为Firefox设置细滚动条 */
  white-space: nowrap; /* 防止容器内元素换行 */
}

/* 优化滚动条样式 */
.table-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background: #002b5c;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #003d80;
  transform: scaleY(1.1);
}

/* 为Firefox提供更美观的滚动条 */
.table-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #002b5c #f0f0f0;
}

.files-section h3 {
  margin-bottom: 20px;
  color: #212121;
}

.files-table {
  min-width: 100%; /* 使用min-width代替width，允许表格超出容器 */
  width: auto;
  border-collapse: collapse;
  white-space: nowrap; /* 防止表格内文本换行 */
}

/* 确保表格单元格内容正常显示 */
.files-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}

/* 文件名列可以稍微宽一些 */
.files-table td:first-child {
  width: 250px; /* 设置最小宽度 */
}

.files-table th,
.files-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.files-table th {
  background-color: #f2f2f2;
}

/* PC端下载按钮列居中对齐 */
.files-table th:nth-child(4),
.files-table td:nth-child(4) {
  text-align: center;
}

.btn-download {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

/* 侧边栏内容 */
.sidebar-card {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
  font-weight: bold;
  font-size: 18px;
  color: #212121;
  line-height: 30px;
}

.sidebar-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 342 / 272;
  background-color: #ccc;
  margin: 15px 0;
  object-fit: cover;
}

.sidebar-card select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  background-color: #efefef;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.sidebar-card select:hover {
  border-color: #002b5c;
}

.sidebar-card select:focus {
  border-color: #002b5c;
  box-shadow: 0 0 0 2px rgba(0, 43, 92, 0.1);
}

.sidebar-card button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}

.btn-test {
  background: radial-gradient(0% 0% at 0% 0%, #fba319 0%, #fdb725 0%), #ff610f;
  border-radius: 4px 4px 4px 4px;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  height: 40px;
  line-height: 20px;
}

.btn-learn-more {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  height: 40px;
  line-height: 20px;
}

.ebook-banner {
  background-color: #333;
  width: 100%;
  min-height: 350px;
}

.btn-get-ebook {
  background-color: #ff9900;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

/* 页脚 */
footer {
  background-color: white;
  padding: 30px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 20px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  color: #666;
  margin: 0 10px;
  font-size: 18px;
}

.footer-copyright {
  font-size: 12px;
  color: #999;
}

/* 表格容器样式 */
.table-container {
  margin-bottom: 20px;
}

/* 为表格容器添加横向滚动，确保在小屏幕上可以滚动查看完整表格 */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格基础样式 */
.files-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* 单元格基础样式 */
.files-table th,
.files-table td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

/* 下载按钮样式 */
.btn-download {
  display: inline-block;
  padding: 5px 15px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.btn-download:hover {
  background-color: #45a049;
}

/* PC端显示控制 */
.table-pc {
  display: block;
}

.table-mobile {
  display: none;
}

/* PC端表格样式 - Download列在最后一位并居中 */
.table-pc .files-table th:nth-child(4),
.table-pc .files-table td:nth-child(4) {
  text-align: center;
  width: 15%;
}

.table-pc .files-table th:nth-child(1),
.table-pc .files-table td:nth-child(1) {
  width: 40%;
  word-break: break-word;
}

.table-pc .files-table th:nth-child(2),
.table-pc .files-table td:nth-child(2),
.table-pc .files-table th:nth-child(3),
.table-pc .files-table td:nth-child(3) {
  width: 22.5%;
}

/* PDF文件图标样式 - 使用background显示 */
.file-icon {
  display: inline-block;
  width: 1.2em; /* 设置为与文字大小相同 */
  height: 1.2em;
  background-image: url("/static/img/pdf.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.check-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-image: url("/static/img/ic-gou.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  margin-right: 8px;
}

/* 移动端媒体查询 */
@media (max-width: 768px) {
  /* 切换表格显示 */
  .table-pc {
    display: none;
  }

  .table-mobile {
    display: block;
  }

  /* 移动端表格样式 - 调整宽度和文本显示 */
  .table-mobile .files-table {
    min-width: auto;
    width: 100%;
  }

  /* 第一列（File Name）样式 - 支持多行显示，最多两行，超出省略 */
  .table-mobile .files-table th:nth-child(1),
  .table-mobile .files-table td:nth-child(1) {
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3.5em; /* 约等于2行文本高度 */
  }

  /* 第二列（Download）样式 - 确保一屏可见 */
  .table-mobile .files-table th:nth-child(2),
  .table-mobile .files-table td:nth-child(2) {
    text-align: center;
    width: 20%; /* 稍微增加宽度确保按钮完整显示 */
    white-space: nowrap;
  }

  /* 第三、四列样式 - 适当调整宽度 */
  .table-mobile .files-table th:nth-child(3),
  .table-mobile .files-table td:nth-child(3) {
    width: 18%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .table-mobile .files-table th:nth-child(4),
  .table-mobile .files-table td:nth-child(4) {
    width: 22%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  /* 确保表格行内元素适应空间 */
  .table-mobile .files-table tr {
    display: table-row;
  }

  .table-mobile .files-table th,
  .table-mobile .files-table td {
    display: table-cell;
    vertical-align: middle;
  }

  /* 优化下载按钮在移动端的显示 */
  .table-mobile .btn-download {
    padding: 4px 8px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 勾图标样式 - 使用background显示 */
  .check-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url("/static/img/ic-gou.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 8px;
  }

  /* PDF文件图标样式 - 使用background显示 */
  .file-icon {
    display: inline-block;
    width: 1.2em; /* 设置为与文字大小相同 */
    height: 1.2em;
    background-image: url("/static/img/pdf.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
  }

  /* PC端图标大小优化 */
  @media (min-width: 769px) {
    .file-icon {
      width: 1em;
      height: 1em;
    }
  }

  /* 确保文件名和图标一起显示 */
  .files-table td:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 在中等屏幕尺寸下隐藏侧边栏中的图片 */
  .sidebar-card img {
    display: none;
  }

  /* 移动端表格样式已在上方媒体查询中定义 */

  /* 调整页面标题在移动端的字体大小，防止错行 */
  .page-title {
    font-size: 20px;
    line-height: 1.3;
  }

  /* 主内容区布局调整 */
  .main-content {
    flex-direction: column;
    padding: 0 15px;
    margin-top: 0px;
  }

  .content-left,
  .content-right {
    width: 100%;
    padding-right: 0;
  }

  /* 导航栏调整 */
  .nav-links {
    display: none;
  }

  .nav-container {
    flex-wrap: wrap;
    padding: 0 15px;
  }

  /* 简介部分调整为垂直排列 */
  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-shadow: none;
    color: #575757;
  }

  .intro-section img {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }

  /* 精品资料部分调整 */
  .premium-section {
    flex-direction: column;
    text-align: left;
    padding: 20px 15px;
  }

  .btn-premium {
    width: 100%;
    max-width: 240px;
    margin-top: 15px;
  }

  /* 侧边栏卡片调整 */
  .sidebar-card {
    padding: 15px;
  }

  /* 按钮和选择框调整 */
  .nav-right select,
  .nav-right button {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 14px;
  }

  /* 表格调整 */
  .files-table {
    font-size: 14px;
  }

  .files-table th,
  .files-table td {
    padding: 8px;
  }

  /* 表格滚动容器调整 */
  .table-scroll-container {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  /* 面包屑导航调整 */
  .breadcrumb {
    padding: 0 15px;
    font-size: 11px;
  }

  /* 页面标题调整 */
  .page-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  /* 页面标题进一步调整 */
  .page-title {
    font-size: 20px;
  }

  /* 顶部通知栏调整 */
  .top-banner {
    font-size: 14px;
    padding: 8px 15px;
  }

  .top-banner .btn-get-now {
    padding: 3px 10px;
    font-size: 12px;
    margin-left: 10px;
    margin-top: 5px;
    display: block;
  }

  /* 容器内边距调整 */
  .nav-container,
  .breadcrumb,
  .main-content {
    padding: 0 10px;
    margin-top: 0px;
  }

  /* 简介部分调整 */
  .intro-section {
    padding: 15px 10px;
  }

  .intro-section img {
    width: 100px;
    height: 100px;
  }

  /* 精品资料部分调整 */
  .premium-section {
    padding: 20px 10px;
  }

  .premium-section h3 {
    font-size: 20px;
  }

  /* 侧边栏卡片调整 */
  .sidebar-card {
    padding: 15px 10px;
  }

  .sidebar-card h3 {
    font-size: 16px;
  }

  /* 按钮调整 */
  .btn-download,
  .btn-test,
  .btn-learn-more,
  .btn-get-ebook {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* 表格调整 */
  .files-table {
    font-size: 13px;
  }

  .files-table th,
  .files-table td {
    padding: 6px 4px;
  }

  /* 表格滚动容器调整 */
  .table-scroll-container {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }

  /* 页脚调整 */
  .footer-content {
    padding: 0 10px;
  }

  .footer-links a {
    margin: 0 5px;
    font-size: 13px;
  }

  /* 整体字体大小调整 */
  body {
    font-size: 14px;
  }
}

.information{
  padding-bottom: 30px;
  font-weight: bold;
  font-size: 22px;
}
.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
}

.tab-item {
  flex: 0 0 calc(20% - 10px);
  min-width: 200px;
  position: relative;
}

.tab-btn {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #e1e5eb;
  font-weight: 500;
  color: #4a5568;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tab-btn img{
  height: 40px;
  width: auto;
}

.tab-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tab-content {
  display: none;
  background: #fff;
  border-radius: 8px;
  margin-top: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s;
  position: absolute;
  z-index: 10;
  border: 1px solid #e2e8f0;
  width: 100%;
  left: 0;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.feature-item {
  /*flex: 1;*/
  min-width: 50px;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
}

.crumbs{
  text-align: center;
  background-color:rgba(0,0,0,0);
  width: 100%;
  margin-top: -20px;
}

/* 手机端一行一个 */
@media (max-width: 768px) {
  .tab-item {
    flex: 0 0 100%;
  }

  .feature-item {
    min-width: 100%;
  }
  .information{
    padding-top: 30px;
  }
  .crumbs{
    margin-top: unset;
  }
}
