/* 基本样式 */
body {
  margin: 0;
  padding: 0;
  background: #f3f5fa;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  text-align: justify !important;
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.content-container {
  background: rgb(255 255 255 / 55%);
  border-radius: 0;
  padding: 10px !important;
  margin: 20px 0;
}

.title {
  top: 20px;
}

p {
  font-size: 1.08em !important;

  white-space: break-spaces;
}

.container {
  background-size: contain !important;
}

/* 容器样式 */
/* 容器样式 */

/* PC端宽度限制 */
@media (min-width: 800px) {
  .content-container {
    background: rgb(255 255 255 / 75%);
    padding: 0px !important;
    padding-top: 10px !important;
    margin-top: 0px;
    border-radius: 0px;
    background: #333;
  }
  .profile-date {
    display: none;
  }

  .profile-slogan {
    display: none;
  }

  .aimoofa {
    margin-top: -10px !important;
  }

  .container {
    background-size: contain;
  }

  .description {
    background: #00000000 !important;
  }
}

/* 移动端适配 */
@media (max-width: 799px) {
  .container {
    padding: 15px;
    /* 移动端背景图片适配 */
    background-size: 100% auto; /* 宽度100%，高度自适应 */
  }
}

.content-container {
  background: rgb(255 255 255 / 75%);
  padding: 15px !important;
  padding-top: 0px !important;
  margin-top: -19px;
  border-radius: 0px;
}
/* 特定组件样式 */
/* 视频容器 */
.aimoofa-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* iframe 样式 */
.aimoofa-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.aimoofa-ad {
  max-width: 100%;
  margin: 30px auto;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

/* 悬停效果 */
.aimoofa-ad:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-color: #ddd;
}

/* 链接样式 */
.aimoofa-ad a {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 8px;
}

/* 图片样式 */
.aimoofa-ad img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* 图片悬停效果 */
.aimoofa-ad:hover img {
  transform: scale(1.02);
}

/* 对话和用户界面样式 */
.user-container,
.user-program {
  margin: 15px 0;
  position: relative;
  background: #f1c1c1;
  padding: 10px;
  border-radius: 15px;
}

.user-label-p {
  display: block; /* 改回block确保独占一行 */
  padding: 4px 12px;
  background-color: #5400d3;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin: 25px 0 8px 0; /* 调整上下间距 */
  width: fit-content;
  position: relative;
  text-align: justify !important;
}

/* 分隔线 */
.user-label-p::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -20px;
  right: -20px;
  border-top: 1px dashed #e0e0e0;
  width: 800px;
  display: block;
}

/* 确保对话内容独立成块 */
.user-container {
  white-space: normal;
  word-wrap: break-word;
  text-align: justify !important;
}

.user-text {
  display: inline;
  line-height: 1.5;
  text-align: justify !important;
}

/* 对话内容中的段落样式 */
.user-container > div:not(.teacher-info) p,
.user-program > div:not(.teacher-info) p {
  margin: 0; /* 移除所有段落的默认边距 */
  padding: 0;
  line-height: 1.5;
}

/* 只给最后一个段落添加底部间距 */
.user-container > div:not(.teacher-info) p:last-child,
.user-program > div:not(.teacher-info) p:last-child {
  margin-bottom: 0; /* 确保最后一个段落没有底部间距 */
}

/* 对话内容容器本身的样式 */
.user-container > div:not(.teacher-info),
.user-program > div:not(.teacher-info) {
  background-color: #f6f6f6;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0;
  color: #333;
  font-size: 1em;
  line-height: 1.5;
  font-weight: normal;
}

/* 教师和评论样式 */
.teacher-avatar,
.teacher-avatar-small,
.teacher-avatar-small2 {
  border-radius: 50%;
}

.teacher-avatar {
  width: 100px;
  height: 100px;
}

.teacher-avatar-small {
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.teacher-avatar-small2 {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.teacher-text {
  color: #333;
  font-size: 1em;
  margin: 0;
  font-weight: normal;
  padding: 0;
  border-radius: 7px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  max-width: calc(100% - 50px);
  text-align: justify !important;
  bottom: -10px;
  margin-bottom: 0px;
}

.teacher-text2 {
  color: #000;
  font-size: 0.8em;
  margin: 0;
  font-weight: normal;
  padding: 0;
  border-radius: 7px;
}

/* 评论区样式 */
.teacher-comment-container.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teacher-comment-container:not(.visible) {
  visibility: hidden;
}

.teacher-comment-container.animate {
  visibility: visible;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.teacher-comment {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  padding: 15px 0px;
  max-width: 100%;
  border-radius: 0px;
  background: linear-gradient(135deg, #ffffff00 -16.29%, #ffffff00 59.89%);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px 1px 0 0 #111;
  color: #ffffff;
  border-top: 2px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* AI标签样式 */
.ai-label-aimoofa {
  font-weight: bold;
  display: block;
  padding: 4px 12px;
  border-radius: 50px;
  background-color: #9400d3;
  margin: 1em 10px 5px 0;
  font-size: 0.8em;
  color: #fff;
  line-height: 1.4;
  width: fit-content;
  transition: background-color 0.2s ease;
  text-align: justify !important;
}

/* 表格和列表样式 */
.instruction-container {
  position: relative;
  margin: 30px 0;
}

.instruction-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.instruction-title-row td {
  padding: 8px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.instruction-prompt-row td {
  padding: 12px;
}

.instruction-action-row td {
  padding: 8px;
  border-top: 1px solid #e0e0e0;
}

.action-cell {
  white-space: nowrap;
}

.help-button,
.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.help-button:hover,
.copy-button:hover {
  opacity: 1;
}

.help-popup {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.help-popup.hidden {
  display: none;
}

.copy-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.content-container li {
  margin-bottom: 0; /* 增加段落之间的间距 */
  line-height: 1.8; /* 增加行高 */
  padding: 0; /* 添加上下内边距 */
}

.content-container ol li {
  margin-bottom: 0;
  line-height: 1.8;
  padding-top: 1em;
}

.content-container li:last-child {
  margin-bottom: 0;
}

.content-container li p {
  margin-bottom: 0em;
  line-height: 1.8;
}

.content-container ul,
.content-container ol {
  margin: 0;
  padding-left: 1em; /* 调整列表项的缩进 */
}

.numbered-item {
  line-height: 1.65em;
  word-spacing: normal;
  text-align: justify;
  margin: auto;
  margin-bottom: 0.5em;
}

.list-item {
  margin-left: 0px;
  margin-bottom: 8px;
}

[class^="list-item-level-"] {
  position: relative;
  padding-left: 0em;
  margin: 0.5em 0;
  line-height: 1.6;
}

.list-item::before {
  position: absolute;
  left: -20px;
}
em {
  display: block;
  padding: 20px;
}
/* 其他样式 */
hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 0 auto;
  max-width: 100%;
  margin-top: 60px;
  box-shadow: #ffffff17 1px 1px 5px 5px;
  margin-bottom: 60px;
}
hr.md-separator {
  border: 0;
  height: 1px;
  background-color: #ffffff;
  margin: 40px 0;
  width: 100%;
}

.aimoofa-dashed-divider {
  border: none !important;
  border-top: 3px dashed #f0f0f0 !important;
  width: 95% !important;
  margin: 0 auto !important;
  height: 1px !important;
}

code {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: #f0f0f0;
  padding: 1em;
  margin: 1em 0;
  box-sizing: border-box;
  overflow-x: auto;
  border-radius: 4px;
  color: #000;
  text-align: left;
  font-size: xx-small;
  font-family: initial;
  font-size: 1em;
}

/* 注意提示框 */
.zhuyi {
  display: block;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.zhuyi_text {
  color: #7900fe;
  font-weight: bold;
}

.aimoofa {
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0%),
    rgba(255, 255, 255, 0.7)
  );
  padding: 20px;
  border-top-right-radius: 12px;
  margin-bottom: 0;
  backdrop-filter: blur(8px);
  margin-top: 50px;
}

/* AI卡片样式 */
.AImoofa_card {
  display: inline-block;
  padding: 15px;
  background-color: #3a3a3a;
  color: #fff;
  border-radius: 7px;
  padding-bottom: 30px;
  margin-top: 3em;
}

/* 头像样式 */
.teacher_avatar2 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  justify-content: flex-end;
  float: right;
}

.teacher_avatar2 img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* 文本样式 */
.w_text {
  color: #ffffff;
  line-height: 1.68em;
  font-weight: 100;
  font-size: larger;
}

/* 页脚 */
footer {
  text-align: center;
}

/* 标题 */
h1 {
  text-align: left;
  font-size: 1.4em;
}

/* 图片样式 */
img.article-image {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  padding: 0px;
  background: #ffffff00;
  display: block;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* 添加到您的CSS文件中 */

/* 图片容器样式 */
.wx-image-container {
  position: relative;
  margin: 15px 0;
  text-align: center;
}

/* 图片样式 */
.wx-image {
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.wx-image:hover {
  opacity: 0.9;
}

/* 图片说明文字 */
.image-caption {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
  text-align: center;
}

/* 非微信浏览器的图片预览模态框 */
.image-preview-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-preview-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.image-preview-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.image-preview-close:hover {
  color: #bbb;
}

.p_img img {
  max-width: 100%;
  width: auto;
  height: auto;

  /* 边框和阴影 */
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 0px;
  background: #ffffff00;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

  /* 居中显示 */
  display: block;
  margin: 0;

  /* 保护措施 */
  user-select: none;
  -webkit-user-drag: none;
  margin: 0 auto;
}

.p_img {
  margin: 0px 0;
  margin-bottom: 20px;
}

.img2 {
  width: 90px;
  display: block;
  margin-right: auto;
}

/* 文章容器样式 */
.article-container {
  position: relative;
  margin: 15px 0;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 添加暗色遮罩，使文字更清晰 */
.article-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgb(219 126 245 / 30%),
    rgb(157 0 169 / 60%)
  );
  z-index: 1;
}

/* 链接样式 */
.article-link {
  display: block;
  text-decoration: none;
  padding: 0px;
  position: relative;
  z-index: 2;
}
/* 标题容器样式 */
.article-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s ease;
}

/* 标题文本样式 */
.title-text {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  flex-grow: 1;
  margin-right: 15px;
  line-height: 1.4;
}

/* 箭头样式 */
.article-arrow {
  width: 40px;
  height: 40px;
  background: #000000;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* 悬停效果 */
.article-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.article-container:hover .article-title {
  transform: translateY(-2px);
}

.article-container:hover .article-arrow {
  transform: translateX(4px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article-container {
    margin: 10px 0;
  }

  .article-title {
    padding: 12px 15px;
  }

  .title-text {
    font-size: 24px;
  }
}

.profile-slogan {
  background: linear-gradient(to right, #5f5f5f, #ffffff96);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.1em;
  font-weight: 600;
  position: absolute;
  top: -20px;
  left: 100px;
}
.profile-date {
  color: #979797;
  font-size: 0.9em;
  position: absolute;
  top: 5px;
  left: 100px;
  font-size: 12px;
}

h2 {
  padding: 0;
  font-size: 2em;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  text-align: left;
  position: relative;
  background: linear-gradient(93.55deg, #f65 -16.29%, #1b0606 59.89%);
  -webkit-background-clip: text;
  color: transparent;
  max-width: calc(100% - 0px);
  bottom: 0em;
  margin-top: 2em;
  font-family: system-ui;
}

/* 在模板文件的 style 标签中添加或更新 */

/* 列表容器样式 */
.list-container {
  margin: 1em 0;
}

/* 列表项基本样式 */
.list-item {
  display: flex;
  align-items: flex-start;
  margin: 0.5em 0;
  line-height: 1.6;
}

/* 列表项缩进 */
.list-indent {
  margin-left: 0em;
}

/* 列表项符号 */
.list-bullet {
  flex: 0 0 1.5em;
  text-align: right;
  padding-right: 0.5em;
  color: #666;
  display: none;
}

.list-number {
  flex: 0em 0em 0em 0em;
  text-align: left;
  padding-right: 0.2em;
  color: #666;
  font-weight: 900 !important;
}

/* 列表内容 */
.list-content {
  flex: 1;
}

/* 精美链接样式 */
/* 精美链接样式 */
/* 精美链接样式 */
.fancy-link {
  display: block;
  align-items: center;
  position: relative;
  padding: 0.5em 1em;
  margin: 1em 1em;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background: linear-gradient(
    93.55deg,
    #ff55df -16.29%,
    #ac21ff 59.89%
  ) !important;
  overflow: auto;
  font-size: 1.1em;
  font-weight: 500;
  padding-left: 2em;
  /* justify-content: center; */
  align-content: space-around;
  flex-wrap: nowrap;
  min-width: 1em;
}
/* 添加闪烁灯光效果 */
.fancy-link::before {
  content: "";
  position: absolute;
  left: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
  animation: blink 2s infinite;
}

/* 闪烁动画 */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-50%) scale(0.8);
  }
}

.fancy-link-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  position: relative; /* 确保内容在灯光上层 */
  z-index: 1;
}

/* 其他样式保持不变 */
.fancy-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fancy-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.fancy-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 悬停效果 */

.fancy-link:hover .fancy-link-icon {
  transform: translateX(2px);
}

.fancy-link-external:hover .fancy-link-icon {
  transform: translate(2px, -2px);
}

/* 边框效果 */
.fancy-link-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.8);
  transition: all 0.2s ease;
}

.fancy-link:hover .fancy-link-border {
  opacity: 0.5;
  transform: scaleX(1);
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .fancy-link {
    background: linear-gradient(
      93.55deg,
      #ff55df -16.29%,
      #ac21ff 59.89%
    ) !important;
  }

  .fancy-link:hover {
    box-shadow: 0 4px 12px rgba(172, 33, 255, 0.3);
  }
}
.fancy-link-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  /* 确保内容在容器内部 */
  max-width: 100%;
}

.fancy-link-text {
  /* 防止文本溢出 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fancy-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 防止图标被压缩 */
  width: 16px; /* 固定宽度 */
  height: 16px; /* 固定高度 */
}

.fancy-link-icon svg {
  width: 100%;
  height: 100%;
  /* 确保 SVG 完全填充容器 */
  display: block;
}

/* 悬停效果 */
.fancy-link:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.fancy-link:hover .fancy-link-icon {
  transform: translateX(2px);
}

.fancy-link-external:hover .fancy-link-icon {
  transform: translate(2px, -2px);
}

/* 边框效果 */
.fancy-link-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.8);
  transition: all 0.2s ease;
}

.fancy-link:hover .fancy-link-border {
  opacity: 0.5;
  transform: scaleX(1);
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .fancy-link {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
  }

  .fancy-link:hover {
    background: rgba(96, 165, 250, 0.15);
  }
}

.teacher-avatar-container {
  position: absolute;
  display: inline-block;
  margin-right: 25px;
  cursor: pointer;
  margin-left: 20px;
  margin-top: 20px;
  z-index: 1000;
}

/* 响应式调整 */
.teacher-avatar-wrapper {
  top: 10px;
  left: 10px;
  position: absolute;
}

.teacher-profile-card {
  position: fixed;
  top: 20px; /* 改为固定距离顶部20px */
  left: 20px; /* 改为固定距离左侧20px */
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  z-index: 1000;
}

.teacher-card-content {
  padding: 20px;
  background: #fff;
}

.teacher-card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  margin-bottom: 20px;
}

.teacher-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.teacher-info {
  flex: 1;
}

.teacher-name {
  margin: 0 0 8px 0;
  font-size: 1.4em;
  color: #333;
}

.teacher-intro {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.share-text {
  margin: 0 0 20px 0;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.contact-item .label {
  color: #666;
  min-width: 70px;
}

.contact-item .value {
  color: #333;
  word-break: break-all;
}

.homepage-link {
  margin-top: 20px;
  text-align: center;
}

.btn-homepage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #4a90e2;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-homepage:hover {
  background: #357abd;
}

.btn-homepage svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.course-button-container {
  margin: 15px 0;
}

.course-button {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #000000 0%, #563f0cdb 100%);
  color: #efc336;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.course-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.course-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.course-icon svg {
  stroke: #d0a510;
}

.course-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.course-arrow {
  margin-left: 12px;
  font-size: 20px;
  font-weight: bold;
}

.course-not-found {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  cursor: not-allowed;
}

.interaction-container {
  border: 1px solid #e9ecef;
}

.interaction-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #e8e8e8;
}

.interaction-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.interaction-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2f20b9;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.interaction-button:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

.button-text {
  font-size: 16px;
  font-weight: 500;
}

.podcast-container {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.podcast-container:hover {
  transform: translateY(-2px);
}

.podcast-content {
  background: linear-gradient(177deg, #25252500 30.29%, #1b0606 280.89%);
}

.podcast-title {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 自定义音频播放器样式 */
.podcast-player audio {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.75;
  height: 45px;
}

.word-bank-link {
  color: #1e88e5;
  text-decoration: none;
  position: relative;
  padding-right: 13px;
  transition: all 0.3s ease;
  font-size: 12px;
  padding-left: 5px;
}

/* 针对移动端的优化 */
@media (max-width: 768px) {
  .podcast-title {
    font-size: 1rem !important;
    line-height: 1.77;
  }

  .podcast-content {
    padding: 15px 15px 5px 15px !important;
  }
}

/* 文章表格样式 */
.content-container table {
  display: inline;
  width: 100%;
  margin: 0px 0;
  border-collapse: separate;
  border-spacing: 0;

  overflow: hidden;
}
/* 表头样式 */
.content-container th {
  background-color: #f9fafb;
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 24px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* 单元格样式 */
.content-container td {
  padding: 12px 24px;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

/* 表格行悬停效果 */
.content-container tr:hover td {
  background-color: #f9fafb;
}

/* 最后一行去除底部边框 */
.content-container tr:last-child td {
  border-bottom: none;
}

/* 表格内的代码样式 */
.content-container td code {
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* 表格内的标记/标签样式 */
.content-container td .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 不同状态的标签颜色 */
.content-container td .tag-green {
  background-color: #ecfdf5;
  color: #059669;
}

.content-container td .tag-yellow {
  background-color: #fffbeb;
  color: #d97706;
}

.content-container td .tag-red {
  background-color: #fef2f2;
  color: #dc2626;
}

/* 表格响应式处理 */
@media (max-width: 768px) {
  .content-container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px #e3e3e3 solid;
  }
  .content-container th,
  .content-container td {
    padding: 10px 16px;
    min-width: 60px;
    text-align: left;
  }

  /* 表格标题样式 */
  .content-container table caption {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: left;
  }

  /* 表格内的链接样式 */

  /* 表格内的数字列对齐 */
  .content-container td.number,
  .content-container th.number {
    text-align: right;
  }

  /* 紧凑型表格样式 */
  .content-container table.compact th,
  .content-container table.compact td {
    padding: 8px 16px;
  }

  /* 斑马纹表格样式 */
  .content-container table.striped tr:nth-child(even) td {
    background-color: #f9fafb;
  }

  .content-paragraph {
  }

  dialog {
    border: none;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.8);
  }

  dialog img {
    max-width: 90%;
    max-height: 90%;
  }
  .word-bank-link {
    color: #1e88e5;
    text-decoration: none;
    position: relative;
    padding-right: 13px;
    transition: all 0.3s ease;
    font-size: 12px;
    padding-left: 5px;
  }

  /* 放大镜图标 */
  .word-bank-link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px; /* 更小的尺寸 */
    height: 7px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transform: translateY(-55%) rotate(-45deg);
    box-shadow: 2px 2px 0 -0.5px currentColor; /* 创建手柄效果 */
    opacity: 0.6;
    transition: all 0.25s ease;
    margin-right: 5px;
  }

  /* 悬停效果 */
  .word-bank-link:hover {
    color: #1565c0;
  }

  .word-bank-link:hover::after {
    opacity: 1;
    transform: translateY(-55%) rotate(-45deg) scale(1.1);
  }

  /* 点击效果 */
  .word-bank-link:active {
    color: #0d47a1;
  }

  .word-bank-link:active::after {
    transform: translateY(-55%) rotate(-45deg) scale(0.95);
  }

  /* 修改教师评论容器的样式 */
  .teacher-dialogue-card {
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0;
    padding: 14px 16px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .teacher-dialogue-text {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
    word-break: break-word;
  }

  .teacher-dialogue-divider {
    height: 1px;
    margin: 12px 0 10px;
    background: #e5e7eb;
  }

  .teacher-dialogue-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 26px;
  }

  .teacher-dialogue-avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    object-fit: cover;
  }

  .teacher-dialogue-name {
    color: #7b8794;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  .teacher-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0;
    padding: 12px 8px;
  }

  .teacher-list-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-align: center;
    text-decoration: none;
  }

  .teacher-list-avatar-wrap {
    display: block;
    width: clamp(48px, 15vw, 62px);
    height: clamp(48px, 15vw, 62px);
    flex: 0 0 clamp(48px, 15vw, 62px);
    border-radius: 50%;
    background: #f3f4f6;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .teacher-list-avatar {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .teacher-list-name {
    display: block;
    width: 100%;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @media (max-width: 360px) {
    .teacher-list-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .teacher-comment {
    display: block;
    padding: 15px 0px;
    max-width: 100%;
    border-radius: 0px;
    background: linear-gradient(135deg, #a3a3a300 -16.29%, #ffffff00 59.89%);
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px 1px 0 0 #111;
    color: #ffffff;
    border-top: 2px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  /* 创建评论内容的包装器 */
  .comment-content-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px; /* 在评论内容和按钮之间添加间距 */
  }

  /* 调整头像样式 */
  .teacher-avatar-small {
    width: 42px;
    height: 42px;
    margin-right: 10px;
    flex-shrink: 0; /* 防止头像被压缩 */
  }

  /* 调整聊天按钮容器样式 */
  .chat-button-container {
    display: flex;
    justify-content: flex-end; /* 靠右对齐 */
    margin-top: 10px; /* 与评论内容保持一定距离 */
  }

  /* 调整聊天按钮样式 */
  .chat-button {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    padding-left: 24px; /* 增加左侧padding来容纳图标 */
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dadada;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-left: 0;
    padding-bottom: 5px;
    position: relative; /* 添加相对定位以支持伪元素定位 */
  }

  /* 添加气泡图标 */
  .chat-button::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #333333;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow:
      -1px -1px 2px rgba(255, 255, 255, 0.8) inset,
      1px 1px 2px rgba(0, 0, 0, 0.2) inset;
  }

  /* 添加气泡的小尾巴 */
  .chat-button::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #333333;
    border-radius: 50%;
    opacity: 0.4;
    transform: translateY(-50%) translateX(2px);
  }

  .chat-button:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .chat-button:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }

  .chat-button:hover::after {
    opacity: 0.6;
    transform: translateY(-50%) translateX(3px) scale(0.9);
  }

  .chat-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .chat-button:active::before {
    transform: translateY(-50%) scale(0.9);
  }

  /* 支付按钮容器 */
  .payment-container {
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    box-sizing: border-box;
  }

  /* 支付按钮基础样式 */
  .payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* 支付按钮图标容器 */
  .payment-button-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
  }

  /* 支付按钮图标 */
  .payment-button-icon svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  /* 支付按钮文字 */
  .payment-button-text {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  /* 支付按钮悬停效果 */
  .payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  /* 支付按钮点击效果 */
  .payment-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* 不同类型的支付按钮样式 */
  .payment-button.primary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
  }

  .payment-button.secondary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
  }

  .payment-button.premium {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
  }

  /* 支付图标动画 */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }

  .payment-button:hover .payment-button-icon {
    animation: pulse 1s infinite;
  }
}

/* 微信风格全宽按钮 - [按钮:文字,URL] 协议 */
.fancy-button-wrapper {
  margin: 20px 0;
  width: 100%;
  display: block;
}

.fancy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  border: none;
  color: #ffffff;
  background: #07c160;
  box-shadow: 0 1px 3px rgba(7, 193, 96, 0.25);
  letter-spacing: 0.5px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.fancy-button-text {
  position: relative;
  z-index: 1;
}

.fancy-button-icon {
  margin-left: 8px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.fancy-button-icon svg {
  vertical-align: middle;
}

.fancy-button:hover {
  background: #06ad56;
  color: white;
  text-decoration: none;
}

.fancy-button:hover .fancy-button-icon {
  transform: translateX(3px);
}

.fancy-button:active {
  background: #059649;
  transform: scale(0.98);
}

/* 深色主题适配 */
body.theme-dark .fancy-button {
  background: #07c160;
}

body.theme-dark .fancy-button:hover {
  background: #06ad56;
}

/* 在模板文件的 <style> 标签中添加 */
.topic-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  overflow: hidden;
}

.topic-item {
  border-bottom: 1px solid #eee;
}

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

.topic-link {
  text-decoration: none;
  color: #333;
  display: block;
  transition: background-color 0.3s;
}

.topic-link:hover {
  background-color: #f5f5f5;
}

.topic-content {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-title {
  font-size: 16px;
  flex-grow: 1;
}

.topic-arrow {
  color: #999;
  margin-left: 12px;
}

.topic-not-found {
  padding: 20px;
  text-align: center;
  color: #999;
}

/* 动画效果 */
.topic-link:hover .topic-arrow {
  transform: translateX(4px);
  transition: transform 0.3s;
}

/* 表格组件容器 */
.table-component {
  margin: 2rem -1rem;
  border-radius: 8px;
  background: #fff;
  left: -15px;
  overflow-x: auto;
  padding: 0px 15px;
}

/* 表格头部 */
.table-header {
  padding: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.table-title {
  font-weight: 600;
  color: #333;
}

/* 表格滚动容器 */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 1rem;
}

/* 表格容器 */
.table-container {
  width: 100%;
  min-width: 100%;
}

/* 表格样式 */
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.md-table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #eaeaea;
}

.md-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
  color: #666;
}

.md-table tr:last-child td {
  border-bottom: none;
}

/* 表格底部 */
.table-footer {
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eaeaea;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.table-info {
  font-size: 0.85rem;
  color: #9a9a9a;
  text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .table-scroll-container {
    margin: 0 -1rem;
    padding: 1px;
  }

  .md-table {
    font-size: 0.9rem;
  }

  .md-table th,
  .md-table td {
    padding: 10px 12px;
  }
}
.prompt-container {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prompt-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.prompt-title-row {
  background: #f5f5f5;
}

.prompt-title-row td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.prompt-content-row td {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.prompt-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-action-row td {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid #eee;
}

.view-result-link {
  display: inline-flex;
  align-items: center;
  color: #2196f3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  padding-top: 10px;
  text-align: right;
}

.view-result-link:hover {
  opacity: 0.8;
}

.prompt-copy-tip {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(calc(100vw - 32px), 420px);
  padding: 14px 16px;
  border: 1px solid rgba(7, 193, 96, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(7, 80, 45, 0.18);
  color: #163b2a;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.prompt-copy-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.prompt-copy-tip__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #07c160;
  font-weight: 800;
}

.prompt-copy-tip__title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.prompt-copy-tip__text {
  margin-top: 4px;
  color: #4f655b;
  font-size: 13px;
  line-height: 1.55;
}

.prompt-text {
  color: #333;
  font-size: 14px;
  padding-top: 10px;
  text-align: justify;
}

/* 提示词表格的tbody样式 */
.prompt-table tbody {
  width: 100%;
  display: table;
  table-layout: fixed;
}

/* 确保tbody内的单元格也是100%宽度 */
.prompt-table tbody td {
  display: table-cell;
}

.linked-image-container {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: 0%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.linked-image-container:hover {
  transform: translateY(-2px);
}

.linked-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.linked-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.linked-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.linked-image-container:hover .linked-image-overlay {
  opacity: 1;
}

.link-icon {
  color: white;
  padding: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

/* 表格组件的基本样式 */
.table-component {
  width: 100%;
  margin: 1em 0;

  border-radius: 0px;
  overflow: hidden;
}

/* 表格滚动容器 */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格基本样式 */
.flexible-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--card-background);
}

/* 表格单元格和表头的基本样式 */
.md-table td,
.md-table th {
  padding: 12px 16px;
  text-align: left;

  line-height: 1.5;
}

/* 表头样式 */
.md-table thead th {
  font-weight: 600;

  white-space: nowrap;
  position: relative;
}

/* 第一列样式 */
.md-table td:first-child,
.md-table th:first-child {
  width: 1%;
  white-space: nowrap;
}

/* 第二列样式 */
.md-table td:nth-child(2),
.md-table th:nth-child(2) {
  width: auto;
  min-width: 200px; /* 确保最小宽度 */
}

/* 表格行悬停效果 */
.md-table tbody tr:hover {
  background-color: var(--row-hover-background);
}

/* 确保第二列内容填充整个空间 */
.second-column-content {
  width: 100%;
  min-height: 100%;
  display: block;
  box-sizing: border-box;
}

/* 响应式布局调整 */
@media screen and (max-width: 768px) {
  .md-table td,
  .md-table th {
    padding: 20px 15px;
  }
}

/* CSS变量定义 */
:root {
  --card-background: #ffffff;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --border-color: #e0e0e0;
  --header-background: #f5f5f5;
  --header-text-color: #333333;
  --first-column-background: #fafafa;
  --row-hover-background: rgba(0, 0, 0, 0.02);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --card-background: #1e1e1e;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --border-color: #333333;
    --header-background: #2d2d2d;
    --header-text-color: #ffffff;
    --first-column-background: #252525;
    --row-hover-background: rgba(255, 255, 255, 0.05);
  }
}

@media (min-width: 768px) {
  .word-bank-link {
    color: #1e88e5;
    text-decoration: none;
    position: relative;
    padding-right: 13px;
    transition: all 0.3s ease;
    font-size: 12px;
    padding-left: 5px;
  }
}

.highlight-text {
  margin: 0 2px;
  color: #ff4747;
  font-weight: 700;
}

.highlight-text:hover {
  background: linear-gradient(
    120deg,
    rgba(255, 193, 7, 0.3) 0%,
    rgba(255, 193, 7, 0.4) 100%
  );
  transform: translateY(-1px);
}

/* 添加小图标（可选） */
.highlight-text::before {
  margin-right: 4px;
  color: #ffa726;
  font-size: 0.9em;
}

.data-sources-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  border-top: 1px solid #999; /* 添加上边框 */
  border-bottom: 1px solid #999; /* 添加下边框 */
}
.data-sources-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #000;
}

.data-sources-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.data-sources-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #000;
  padding: 3px 10px 3px 10px;
}

.data-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-source-item {
  display: flex;
  align-items: flex-start;
  color: #000;
  font-size: 12px;
  line-height: 1.1;
}

.source-number {
  min-width: 24px;
  color: #000;

  font-weight: 500;
}

.source-text {
  flex: 1;
  color: #000;
}

a {
  /* width: auto; */
  word-wrap: break-word;
}

.home-icon {
  margin-right: 6px;
  vertical-align: -3px;
}

.navigation-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 5px 0;
  padding: 0 0px;
  border-radius: 8px;
  font-size: 14px;
}

.article-product-entry {
  margin: 8px 0 16px;
}

.article-product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8f5ef);
  border: 1px solid rgba(24, 34, 44, 0.08);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.article-product-card__media {
  width: 96px;
  min-width: 96px;
  height: 96px;
  min-height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #ece8df;
}

.article-product-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0 !important;
}

.article-product-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8dcc8, #d9c2a0);
  color: rgba(50, 37, 20, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-product-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.article-product-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #9f7a42;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-product-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #1f2937;
}

.article-product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6470;
}

.article-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: #d97706;
}

.article-product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
}

.article-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.video-thumbnail--title-cover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.bilibili-featured-list__item {
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.bilibili-featured-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}

.bilibili-featured-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
}

.video-thumbnail-title-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 22px 88px 22px 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(15, 23, 42, 0.06),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(244, 247, 251, 0.98)
    );
}

.video-thumbnail-title-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.video-thumbnail-title-card__title {
  margin-top: 16px;
  color: #18212c;
  font-size: clamp(24px, 4.2vw, 36px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.nav-link {
  text-decoration: none;
  color: rgb(255, 255, 255);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(33, 150, 243, 0.1);
  transform: translateY(-1px);
}

.nav-separator {
  color: #999;
  font-weight: 300;
}

/* 百分比数字样式 */
.percentage-number {
  font-size: 1.2em;
  font-weight: bold;
  color: #2196f3;
  display: inline-block;
  padding: 0 2px;
  transition: color 0.3s ease;
}

.percentage-number:hover {
  color: #1976d2;
}

/* 为小数点后的数字添加特殊样式 */
.percentage-decimal {
  font-size: 0.9em;
  opacity: 0.9;
}

/* 百分号符号样式 */
.percentage-symbol {
  font-size: 0.9em;
  margin-left: 1px;
  color: #2196f3;
}

/* 在你的CSS文件中添加以下样式 */
.number-wrapper {
  display: inline-flex;
  align-items: baseline;
  font-weight: 500;
  color: #f31111;
  font-size: 1.2em;
}

.number-decimal {
  font-size: 0.9em;
  color: #f31111;
}

.number-unit {
  margin-left: 1px;
  font-size: 0.9em;
  color: #5f6368; /* 基础单位颜色 */
}

.number-unit-currency {
  margin-left: 1px;
  font-size: 0.9em;
  color: #000000; /* 货币单位颜色 */
}

.number-unit-times {
  margin-left: 1px;
  font-size: 0.9em;
  color: #000000; /* 倍数单位颜色 */
}

.number-unit-quantity {
  margin-left: 1px;
  font-size: 0.9em;
  color: #000000; /* 数量单位颜色 */
}

.ai-tool-info {
  margin-top: 10px;
  color: #999;
}
/* 移动端样式 */
@media (max-width: 768px) {
  /* 两列表格样式 - 第一列自适应，第二列全宽 */
  .table-component[data-table-type="double-column"] table {
    width: 100%;
    table-layout: fixed;
  }

  .table-component[data-table-type="double-column"] td.cell-first,
  .table-component[data-table-type="double-column"] th.header-first {
    width: auto;
    white-space: nowrap;
    max-width: 40%;
  }

  .table-component[data-table-type="double-column"] td.cell-second,
  .table-component[data-table-type="double-column"] th.header-second {
    width: 100%;
  }

  .table-component[data-table-type="double-column"] .second-column-content {
    width: 100%;
    display: block;
  }

  /* 多列表格样式 - 所有列平均分配宽度 */
  .table-component[data-table-type="multi-column"] .table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-component[data-table-type="multi-column"] table {
    min-width: 100%;
    table-layout: fixed;
  }

  .table-component[data-table-type="multi-column"] th,
  .table-component[data-table-type="multi-column"] td {
    width: auto; /* 或固定宽度如 min-width: 100px; */
    white-space: normal; /* 允许多行文本 */
  }

  /* 可选：为多列表格添加列最小宽度 */
  .table-component[data-table-type="multi-column"] td {
    min-width: 100px;
  }
}

/* 移动端样式 - 多列表格处理 */
@media (max-width: 768px) {
  .table-mobile-hint {
    color: #aaa;
    font-size: 12px;
  }

  /* 多列表格容器 */
  .table-component[data-table-type="multi-column"] .table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    display: grid;
  }

  /* 多列表格基础样式 */
  .table-component[data-table-type="multi-column"] table {
    min-width: 100%;
    table-layout: auto; /* 关键：改为自动布局 */
    width: auto;
  }

  /* 多列表格所有单元格样式 */
  .table-component[data-table-type="multi-column"] th,
  .table-component[data-table-type="multi-column"] td {
    width: auto; /* 宽度自适应内容 */
    min-width: 80px; /* 最小宽度保证可读性 */
    max-width: 200px; /* 最大宽度限制 */
    white-space: normal !important; /* 强制换行 */
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word; /* 更现代的换行属性 */
  }

  /* 表头样式 */
  .table-component[data-table-type="multi-column"] th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  /* 两列表格样式保持不变 */
  .table-component[data-table-type="double-column"] table {
    width: 100%;
    table-layout: fixed;
  }
  /* ...其他两列表格样式保持不变... */
}

@media (min-width: 768px) {
  .table-component {
    margin: 2rem -1rem;
    border-radius: 8px;
    background: #fff;
    left: -15px;
    overflow-x: auto;
    padding: 0px 0px;
  }
  .table-mobile-hint {
    display: none;
  }
}

/* 第一列特殊样式 */
.table-component[data-table-type="multi-column"] th[data-col-index="0"],
.table-component[data-table-type="multi-column"] td[data-col-index="0"] {
  font-weight: 900;
  color: #000;
}

.table-component[data-table-type="multi-column"] thead th {
  background: #f0f0f0; /* 关键修改 */
  padding: 10px 8px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.two-line-container {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.label-line {
  padding: 8px 15px;
  background-color: #f0f7ff;
  border-bottom: 1px solid #e6f0fd;
}

.label-text {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f0f0f0;
  color: rgb(0, 0, 0);
  border-radius: 4px;
  font-size: 1.2em;
  font-weight: 500;
}

.text-line {
  padding: 12px 15px;
  background-color: #f8f9fa;
  line-height: 1.5;
}
/* 两行容器样式 */
.two-line-container {
  margin: 12px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.label-line {
  padding: 8px 16px;
  display: inline;
}
.label-text {
  display: inline-block;
  font-size: 1.2em;
  font-weight: 500;
  color: #e65100;
  position: relative;
  padding-left: 16px;
}

.label-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: #bbbbbb;
  border-radius: 2px;
}

.text-line {
  padding: 12px 16px;
  background: #ffffff;
}

.content-text {
  display: block;
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  padding: 20px;
}

.two-line-container {
  margin: 30px 0;
}

.two-line-container .label-line {
  display: block;
}

.two-line-container .label-text {
  display: inline-block;
}

.content-container .dropdown-container {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  margin-top: 12px !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .text-line {
    padding: 8px 12px;
  }

  .label-text {
    font-weight: 700;
  }
}

::marker {
  font-weight: 900;
}

/* 将所有无序列表项的标记设置为 - 号 */
/* 取消所有无序列表标记并对齐 */
/* 完全取消所有无序列表标记并左对齐 */
ul {
  list-style-type: none; /* 完全移除列表标记 */
  padding-left: 0; /* 移除默认的左侧内边距 */
  margin-left: 0; /* 移除默认的左侧外边距 */
}

/* 列表项样式 */
ul li {
  position: relative;
  padding-left: 0px; /* 不为标记留空间，完全左对齐 */
  margin-bottom: 0.5em; /* 列表项之间的间距 */
  line-height: 1.6;
}

/* 嵌套列表的样式 */
ul ul {
  padding-left: -1em; /* 为嵌套列表添加缩进 */
}

/* 确保列表内容对齐 */
.list-content {
  flex: 1;
}

/* 隐藏列表项符号 */
.list-bullet {
  display: none;
}

.content-container ul {
  padding-left: 0px;
}

body.theme-dark {
  background: #071014;
  color: #e7ddd1;
}

body.theme-dark .audio-player-container,
body.theme-dark .teacher-profile-card,
body.theme-dark .prompt-container,
body.theme-dark .sticky-box,
body.theme-dark footer,
body.theme-dark .share-content,
body.theme-dark #qrCodeContainer,
body.theme-dark .content-container table,
body.theme-dark .content-container td,
body.theme-dark .content-container th {
  background: rgba(12, 18, 23, 0.88) !important;
  color: #e7ddd1 !important;
  border-color: rgba(205, 173, 124, 0.18) !important;
}

body.theme-dark .content-container tr:hover td,
body.theme-dark .content-container table.striped tr:nth-child(even) td,
body.theme-dark .contact-item,
body.theme-dark .instruction-title-row td {
  background: rgba(20, 28, 34, 0.96) !important;
}

body.theme-dark .title,
body.theme-dark h2,
body.theme-dark h3 {
  background: linear-gradient(180deg, #f7eee1 0%, #d2ab76 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-dark .description,
body.theme-dark .teacher-share-name,
body.theme-dark .share-date,
body.theme-dark .share-description,
body.theme-dark .share-text,
body.theme-dark .teacher-share-text,
body.theme-dark .prompt-content,
body.theme-dark .prompt-ai-tool,
body.theme-dark .prompt-url,
body.theme-dark .content-container td code,
body.theme-dark .page-footer,
body.theme-dark .teacher-card-body,
body.theme-dark .teacher-text,
body.theme-dark .teacher-text2 {
  color: #c6af92 !important;
}

body.theme-dark .prompt-url-link,
body.theme-dark .page-footer a,
body.theme-dark .contact-item,
body.theme-dark .content-container a {
  color: #efbf84 !important;
}

body.theme-dark .teacher-profile-card,
body.theme-dark .teacher-card-content {
  background: linear-gradient(
    180deg,
    rgba(61, 67, 75, 0.94),
    rgba(31, 34, 39, 0.98)
  ) !important;
  border-color: rgba(240, 204, 157, 0.18) !important;
}

body.theme-dark .teacher-card-header,
body.theme-dark .card-header,
body.theme-dark .card-middle,
body.theme-dark .card-footer {
  background: transparent !important;
  border-color: rgba(240, 204, 157, 0.12) !important;
}

body.theme-dark .teacher-name {
  color: #f4e7d7 !important;
}

body.theme-dark .teacher-intro,
body.theme-dark .contact-item .value {
  color: #dbc3a6 !important;
}

body.theme-dark .contact-item .label,
body.theme-dark .close-btn {
  color: #efc995 !important;
}

body.theme-dark .topic-container,
body.theme-dark .table-component,
body.theme-dark .prompt-table,
body.theme-dark .two-line-container,
body.theme-dark .text-line,
body.theme-dark .label-line,
body.theme-dark .dropdown-container,
body.theme-dark .dropdown-trigger {
  background: #1f2329 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.theme-dark .topic-item,
body.theme-dark .prompt-title-row,
body.theme-dark .table-header,
body.theme-dark .table-component[data-table-type="multi-column"] thead th,
body.theme-dark .table-component[data-table-type="multi-column"] th,
body.theme-dark .table-component[data-table-type="double-column"] th,
body.theme-dark .label-text,
body.theme-dark .dropdown-trigger {
  background: #2c313a !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .content-text,
body.theme-dark .table-component td,
body.theme-dark .table-component th,
body.theme-dark .prompt-title-row td,
body.theme-dark .prompt-content-cell,
body.theme-dark .topic-title,
body.theme-dark .topic-content,
body.theme-dark .text-line,
body.theme-dark .label-text {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.theme-dark .article-product-card {
  background: linear-gradient(
    180deg,
    rgba(44, 49, 58, 0.96),
    rgba(28, 32, 38, 0.98)
  ) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
}

body.theme-dark .article-product-card__media {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.theme-dark .article-product-card__media--placeholder {
  background: linear-gradient(
    135deg,
    rgba(206, 171, 121, 0.2),
    rgba(110, 86, 54, 0.3)
  ) !important;
  color: rgba(255, 245, 230, 0.82) !important;
}

body.theme-dark .article-product-card__eyebrow {
  color: #d7b27b !important;
}

body.theme-dark .article-product-card__title {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.theme-dark .article-product-card__desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-dark .article-product-card__price {
  color: #f0c98d !important;
}

body.theme-dark .article-product-card__cta {
  background: rgba(240, 201, 141, 0.12) !important;
  color: #f0c98d !important;
}

body.theme-dark .video-thumbnail--title-cover {
  background: linear-gradient(180deg, #2b313a 0%, #1f252d 100%) !important;
}

body.theme-dark .video-thumbnail-title-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.06),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(43, 49, 58, 0.98), rgba(31, 37, 45, 0.98)) !important;
}

body.theme-dark .video-thumbnail-title-card__eyebrow {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.56) !important;
}

body.theme-dark .video-thumbnail-title-card__title {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.theme-dark .chat-button {
  background-color: #2c313a !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.theme-dark .chat-button::before,
body.theme-dark .chat-button::after {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
}

body.theme-dark .chat-button:hover {
  background-color: #343a44 !important;
}

.poster-view-count {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #f3e7d2;
}

.poster-view-count__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.poster-view-count__value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.poster-share-text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.theme-light .poster-view-count {
  background: rgba(255, 255, 255, 0.72);
  color: #a36c2a;
  border-color: rgba(163, 108, 42, 0.16);
}

body.theme-dark .poster-view-count {
  background: rgba(17, 20, 24, 0.72);
  color: #e9c792;
  border-color: rgba(233, 199, 146, 0.14);
}

body.theme-light .poster-share-text {
  color: #9a6b34;
}

body.theme-dark .poster-share-text {
  color: #d6b88d;
}
