/* ==========================================================================
   整合后的 YJXT 样式表
   - 基础样式来自用户提供的CSS文件。
   - 根据要求，当样式规则在HTML文件和基础CSS中同时存在时，采用HTML文件中的定义。
   ========================================================================== */

/* 主内容区 & 页面容器 */
.yjxt-main-content {
  background: #fff;
  color: #444;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}
.html-content.overview {
  color: #444;
}

.yjxt-learning-point-page {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

/* 知识点信息区 */
.yjxt-point-info {
  margin-bottom: 30px;
}

.yjxt-point-header {
  margin-bottom: 15px;
}

.yjxt-point-number {
  color: #1890ff;
  font-size: 14px;
  margin-bottom: 5px;
}

.yjxt-point-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.yjxt-point-meta {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.yjxt-meta-label {
  color: #666;
}

/* 星级评分 (来自 HTML) */
.yjxt-star {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #e8e8e8;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  margin-right: 4px;
}

.yjxt-star.yjxt-active,
.yjxt-star.active {
  background: #ffd700;
}

.yjxt-level-text {
  color: #666;
  margin-left: 8px;
}

/* 独有样式 (来自基础CSS) */
.yjxt-importance,
.yjxt-study-duration {
  display: flex;
  align-items: center;
}

/* 内容卡片 (来自 HTML) */
.yjxt-content-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yjxt-card-title {
  font-size: 18px;
  color: #1890ff;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.yjxt-content-card h4 {
  display: block;
  margin-block-start: 1.33em;
  margin-block-end: 1.33em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}
.yjxt-content-card > p {
  color: #444;
  line-height: 1.6;
  margin-top: 5px;
  margin-bottom: 16px;
}

/* 列表样式 (来自 HTML) - HTML版本具有更高优先级 */
.yjxt-summary-list,
.yjxt-advice-list,
.yjxt-bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.yjxt-summary-list li,
.yjxt-advice-list li,
.yjxt-bullet-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: #444;
  line-height: 1.6;
}

.yjxt-bullet-list ul,
.yjxt-summary-list ul,
.yjxt-advice-list ul {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.yjxt-bullet-list ul li,
.yjxt-summary-list ul li,
.yjxt-advice-list ul li {
  padding-left: 40px;
}

.yjxt-bullet-list ul li:before,
.yjxt-summary-list ul li:before,
.yjxt-advice-list ul li:before {
  left: 20px;
  background: transparent;
  border: 1.5px solid #555;
  width: 6px;
  height: 6px;
}

.yjxt-summary-list li:before,
.yjxt-advice-list li:before,
.yjxt-bullet-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #1890ff;
  border-radius: 50%;
}

/* 5G 特征详解 (来自 HTML) */
.yjxt-features-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.yjxt-feature-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #f0f0f0;
}

.yjxt-feature-header h4 {
  color: #1890ff;
  margin-bottom: 15px;
  font-size: 16px;
}

.yjxt-feature-intro {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.yjxt-feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yjxt-feature-points li {
  color: #444;
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
  line-height: 1.4;
}

.yjxt-feature-points li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #1890ff;
  border-radius: 50%;
}

/* 表格样式 (来自 HTML) */
.yjxt-feature-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 20px 0;
  font-size: 14px;
}

.yjxt-feature-table th {
  font-weight: 600;
  color: #333;
  padding: 12px 15px;
  text-align: left;
}

.yjxt-feature-table td {
  padding: 15px;
  background-color: #fafafa;
}

.yjxt-feature-table td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.yjxt-feature-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.yjxt-feature-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.yjxt-feature-table td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.yjxt-feature-table tr:hover td {
  background-color: #f0f0f0;
}

.yjxt-feature-table ul.yjxt-feature-points {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}

.yjxt-feature-table ul.yjxt-feature-points li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.yjxt-feature-table ul.yjxt-feature-points li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #1890ff;
  border-radius: 50%;
}

/* SVG图表样式 (来自 HTML) */
.yjxt-os-features {
  margin: 20px 0;
}

.yjxt-os-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.yjxt-center-circle {
  fill: #1890ff;
  opacity: 0.1;
  stroke: #1890ff;
  stroke-width: 2;
}

.yjxt-center-text {
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 20px;
  font-weight: bold;
  fill: #1890ff;
}

.yjxt-connection-line {
  stroke: #1890ff;
  stroke-width: 2;
  stroke-dasharray: 4;
}

.yjxt-feature-box {
  fill: white;
  stroke: #1890ff;
  stroke-width: 2;
}

.yjxt-feature-title {
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 18px;
  fill: #1890ff;
  font-weight: 500;
}

.yjxt-feature-desc {
  text-anchor: middle;
  font-size: 16px;
  fill: #666;
}

/* 总结与建议 (来自 HTML) */
.yjxt-point-summary {
  background: #fafafa;
  padding: 24px;
  border-radius: 8px;
  margin-top: 30px;
}

.yjxt-summary-title,
.yjxt-advice-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.yjxt-study-advice {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.yjxt-section-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* 默写/记忆知识点生成的内容样式 */
.yjxt-point-main-content {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 20px auto;
  line-height: 1.6;
  font-size: 14px;
}

.yjxt-point-content-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1890ff;
}

.yjxt-point-content-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.yjxt-point-content-subtitle {
  color: #666;
  font-size: 16px;
}

.yjxt-point-question-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.yjxt-point-question-header {
  background: #f8f9fa;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e9ecef;
}

.yjxt-point-question-number {
  background: #1890ff;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.yjxt-point-question-title {
  flex: 1;
  font-size: 18px;
  color: #333;
  margin: 0;
}

.yjxt-point-knowledge-tag {
  background: #e6f7ff;
  color: #1890ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 答案内容区域 */
.yjxt-point-answer-content {
  /*padding: 24px;*/
  background: #ffffff;
}

.yjxt-point-answer-content p {
  margin-bottom: 16px;
  color: #333;
  line-height: 1.8;
}

.yjxt-point-answer-content table {
  width: 100%;
  border-collapse: collapse;
  /*margin: 20px 0;*/
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.yjxt-point-answer-content th,
.yjxt-point-answer-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}
.yjxt-point-answer-content th:not(:first-child),
.yjxt-point-answer-content td:not(:first-child) {
  border-left: 1px solid #e9ecef;
}

.yjxt-point-answer-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.yjxt-point-answer-content ul,
.yjxt-point-answer-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.yjxt-point-answer-content li {
  margin-bottom: 8px;
  color: #333;
}

/* 填空题样式 */
/* .yjxt-point-fill-blank {
  display: inline-block;
  color: #1890ff;
  font-weight: 500;
  background: #e6f7ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #91d5ff;
  margin: 0 2px;
} */

/* 记忆技巧区域 */
.yjxt-point-memory-tip {
  background: #f6ffed;
  border-left: 3px solid #52c41a;
  padding: 16px 20px;
  margin-top: 20px;
  /* border-radius: 0 6px 6px 0; */
  /* border-radius: 8px; */
  font-size: 14px;
}

.yjxt-point-memory-tip::before {
  content: '记忆技巧：';
  color: #52c41a;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.yjxt-point-memory-tip p {
  color: #389e0d;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 重置样式 */
.yjxt-main-content ul,
.yjxt-main-content ul li,
.yjxt-main-content ol,
.yjxt-main-content ol li,
.yjxt-point-answer-content ul,
.yjxt-point-answer-content ul li,
.yjxt-point-answer-content ol,
.yjxt-point-answer-content ol li {
  list-style: initial;
}

/* 响应式设计 (整合) */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr; /* 来自基础CSS */
  }
}

@media (max-width: 768px) {
  .yjxt-features-detail {
    grid-template-columns: 1fr; /* 来自HTML */
  }

  .yjxt-point-meta {
    flex-direction: column;
    gap: 10px; /* 来自HTML */
  }
  .yjxt-main-content {
    padding: 24px; /* 来自基础CSS */
  }

  /* 记忆知识点、默写样式 */
  .yjxt-point-main-content {
    margin: 10px;
    padding: 20px;
  }

  .yjxt-point-question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yjxt-point-answer-content {
    padding: 16px;
  }

  .yjxt-point-answer-content table {
    font-size: 14px;
  }

  .yjxt-point-answer-content th,
  .yjxt-point-answer-content td {
    padding: 8px 12px;
    white-space: normal;
  }
}
