/* ✅ 全局基础样式，重置内外边距和盒模型 */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: "Arial", sans-serif;
  font-size: 16px; /* 默认字体大小，rem 适配 */
}

.component {
  margin-bottom: 1rem; /* ✅ 默认组件间距 */
}

body {
  background: #ffffff;
  padding: 0;
}

/* ✅ Header 样式优化 */
header {
  background-color: #8b0012;
  background-image: url("https://www.transparenttextures.com/patterns/60-lines.png");
  margin: 0;
  padding: 0em 0em;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
  width: 100%;
}

header h1 {
  color: #fff;
  font-family: "Arial", cursive;
  font-weight: 300;
  font-size: 2em;
  padding: 1.8em 1em;
  text-align: center; /* ✅ 保证标题居中 */
}

header h1 small {
  color: #fff;
  font-weight: 100;
}

/* ✅ 标题优化 */
h2 {
  padding: 2rem 0 1rem;
  color: #333;
  font-weight: 400;
  text-align: left;
  font-size: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 small {
  color: #8b0012;
  text-transform: uppercase;
  font-weight: 400;
}

/* ✅ 图片适配 */
.headerImg {
  width: 100%;
  object-fit: cover;
}

/* ✅ 组件通用背景 */
.whiteBG {
  background-color: #fff;
  padding: 1em 1em;
}

/* ✅ 时间信息 */
.updateDate {
  text-align: center;
  font-size: 0.5em;
}

/* ✅ 按钮居中 */
.centerButton {
  margin: 10px 0px -10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ✅ 介绍部分（INTRO） */
.intro {
  background-color: #fff;
  color: #333;
  margin: 40px auto;
  padding: 1rem;
  max-width: 1200px;
  text-align: left;
  font-size: 1rem;
}

/* ✅ 介绍内容区域（INTRO CONTENT） */
.introContent {
  padding: 1rem;
  background-color: #8b0012;
  color: #ffffff;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ✅ 相关研究 */
.relaResearch {
  padding: 1rem;
  background-color: #f8f5f1;
  color: #333;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1rem;
}

.faqs-container {
  font-size: 1rem !important; /* 和 introContent 保持一致 */
  line-height: 1.6 !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ✅ MUI Typography 内部字体统一 */
.faqs-container .MuiTypography-root {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* ✅ PageHeader 组件 */
.page-header {
  background-color: #f8f9fa;
  color: #333;
  margin: 40px auto;
  padding: 1rem;
  text-align: left;
  width: 100%;
}

/* 标题部分 */
.page-header-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
}

/* 图标 */
.icon {
  font-size: 40px;
  color: #333;
}

/* 主标题 */
.page-title {
  font-weight: bold;
  color: #333;
  font-size: 2.5rem;
}

/* 副标题 */
.sub-title {
  color: #8b0012;
  font-size: 2rem;
  margin-top: 0.2rem;
}

/* ✅ 指标、更新、研究区域 */
.page-header-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  gap: 0.5rem;
}

/* ✅ 指标、更新、研究的标题 */
.header-text {
  font-weight: bold;
  color: #333;
  font-size: 1.5rem;
}

/* ✅ 英文翻译 */
.sub-header {
  color: #8b0012;
  font-size: 1.2rem;
}

/* ✅ 详细文本 */
.details-text {
  color: #333;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.details-text:hover {
  color: #0057b7;
  text-decoration: underline;
}

@media (min-width: 500px) {
  .largeCharts {
    margin: 50px 0px;
  }
  .smallCharts {
    display: none;
  }
}

/* ✅ 适配超小屏幕（如 iPhone SE） */
@media (max-width: 500px) {
  header h1 {
    font-size: 1.4rem !important;
    padding: 1rem;
  }

  header h1 small {
    font-size: 0.8rem !important;
  }

  h1 {
    font-size: 1.4rem !important;
  }

  h2 {
    font-size: 1.2rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }
  .component {
    margin-bottom: 2rem;
  }
  .intro {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .introContent {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .faqs-container {
    font-size: 0.8rem !important;
    padding: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .faqs-container .MuiTypography-root {
    font-size: 0.8rem !important; /* ✅ 小屏幕字体同步缩小 */
    line-height: 1.5 !important;
  }

  .largeCharts {
    display: none;
  }
  .smallCharts {
    margin: 5px -10px;
  }

  .whiteBGSmall {
    background-color: #fff;
    padding: 0em 0em;
  }
  .smallBarChart {
    margin: 0px -16px;
  }
  .page-title {
    font-size: 1.2rem !important;
  }
  .sub-title {
    font-size: 1.2rem !important;
  }
  .header-text {
    font-size: 1rem !important;
  }
  .sub-header {
    font-size: 0.9rem !important;
  }
  .details-text {
    font-size: 0.85rem !important;
  }

  .relaResearch {
    font-size: 0.8rem !important;
    padding: 1rem !important;
    line-height: 1.4 !important;
  }

  .relaResearch a {
    font-size: 0.8rem !important;
  }
}
