/* 基础变量与字号尺寸（默认大字号） */
:root {
  --module-font-size: 48px;
  --module-line-height: 1.2;
  --card-w: 20rem;
  --card-h: 12rem;
}
h1,h2,h3,h4{margin:0;padding:0;font-weight: normal!important;}

/* 页面布局 */
.page {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.toolbarIndex{
  position: absolute;
  top: 3rem;
  right: 2rem;
}
/* 右上角工具栏 */
.toolbar {
  display: flex;
  justify-content: center;
}
.toolbar .btn,.bbtn{
  font-size: 16px;
  padding-top:10px;
  padding-bottom:10px;
  background:#dbeafe!important;
  color: #333!important;
}
.toolbar .btn:hover,.bbtn:hover{
  background-color: #bdd8fa!important;
}

/* 切换按钮样式 */
.btn-toggle {
  background: #dbeafe;
  /* color: #1d4ed8; */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #93c5fd;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.btn-toggle{font-size: 16px;}
.btn-toggle:hover {
  background: #bfdbfe;
  border-color: #60a5fa;
}

/* 首页网格容器（宽度 60%） */
.grid {
  width: 60%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* 首页卡片 */
.card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: var(--card-w);
  height: var(--card-h);
}
.card:hover { opacity: 0.8; }
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.card-title {
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  padding: 0 1.25rem;
  margin-bottom: 0;
  white-space: nowrap;
  font-size: var(--module-font-size);
  line-height: var(--module-line-height);
}
/* 下面是模块页通用样式（纯原生 CSS 类） */
/* 页面容器 */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
}
/* 标题与提示 */
.title-lg {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937; /* gray-800 */
  text-align: center;
  margin: 0 0 0.5rem;
}
.hint {
  color: #295dfc;
  margin: 0.25rem 0 1rem;
}
.subtitle{
  text-align: center;
  background: orange;
  color: #fff;
  padding:10px 0;
  border-radius: 10px;
  margin-bottom:30px;
}
.stitle {
  color: #374151; /* gray-700 */
  text-align: center;
  font-size:36px;
  margin: 2rem 0;
}
.answer{
  background-color: #eff6ff; /* bg-blue-50 对应的背景色 */
  border-radius: 0.5rem;     /* rounded-lg 对应的圆角 */
  padding: 1.5rem;           /* p-6 对应的内边距 */
  margin-bottom: 1rem;       /* mb-4 对应的下边距 */
  border-width: 1px;         /* border 对应的边框宽度 */
  border-color: #bfdbfe;     /* border-blue-200 对应的边框颜色 */
  font-size: 22px;
  line-height: 1.8;
}
.img-wrap {
  text-align: center;
  margin-bottom: 1rem;
}
.img-wrap .img{
  max-width: 80%;
  border-radius: 0.5rem;
}
/* 列表网格（两列） */
.grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
/* 列表项卡片 */
.list-item {
  background: #eff6ff;           /* blue-50 */
  border: 1px solid #bae6fd;      /* blue-200 */
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}
.list-item:hover {
  background: #dbeafe;            /* blue-100 */
  border-color: #93c5fd;          /* blue-300 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* 通用按钮 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #93c5fd;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1d4ed8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn:hover {
  background: #f0f9ff;
  border-color: #60a5fa;
}
/* 文案状态 */
.progress { color: #111827; margin: 0.5rem 0; } /* gray-900 */
.error { color: #dc2626; margin: 0.5rem 0; }    /* red-600 */
/* 明文与图片容器 */
.answer { white-space: pre-wrap; }
.content { white-space: normal; }
.img-wrap img {
  max-width: 100%;
  border-radius: 0.5rem;
}
/* 对齐辅助 */
.text-center { text-align: center; }
/* 大/小字号切换变量定义 */
body.fs-small {
  --module-font-size: 22px;
  --module-line-height: 1.5;
  --card-w: 16rem;
  --card-h: 10rem;
}
body.fs-large {
  --module-font-size: 48px;
  --module-line-height: 1.2;
  --card-w: 20rem;
  --card-h: 12rem;
}

.fs-large .prompt-text{
  font-size:48px!important;
  margin-bottom: 20px;
}

.fs-large .answer{
  font-size:48px!important;
  margin-bottom: 20px;
}
.fs-large .stitle{
  font-size:48px!important;
  margin: 1.5rem 0;
}
.fs-small .prompt-text{
  font-size:22px!important;
  margin-bottom: 20px;
}

.qa-image img{
  max-width: 300px!important;
}