/* Custom styles for sydniconrf-site */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* htmx indicator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* 首页板块标题装饰：左侧竖条（高1em 宽0.5em 距首字1em） */
.section-title::before {
  content: "";
  display: block;
  width: 0.25em;
  height: 1em;
  background-color: #666666;
  margin-right: 0.5em;
  flex-shrink: 0;
}


/* 富文本基础排版 */
.rich-text p {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.rich-text p:last-child {
  margin-bottom: 0;
}
.rich-text ul,
.rich-text ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}
.rich-text ul {
  list-style: disc;
}
.rich-text ol {
  list-style: decimal;
}
.rich-text li {
  margin-bottom: 0.25rem;
}
.rich-text a {
  color: #1a56db;
  text-decoration: underline;
}
.rich-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}
.rich-text h2:first-child {
  margin-top: 0;
}
.rich-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.rich-text h3:first-child {
  margin-top: 0;
}
.rich-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.rich-text h4:first-child {
  margin-top: 0;
}

/* 应用领域富文本：字体变小、加粗 */
.applications-rich-text h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
}

/* 新闻详情页正文图片默认居中 */
.news-rich-text img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  height: auto;
}

/* 新闻详情页正文段落首行缩进 2 字符 */
.news-rich-text p {
  text-indent: 2em;
}

/* 关于我们页正文段落首行缩进 2 字符 */
.about-rich-text p,
.about-rich-text h2,
.about-rich-text h3,
.about-rich-text h4,
.about-rich-text h5,
.about-rich-text h6 {
  text-indent: 2em;
}

/* 关于我们页正文字号：段落与各级标题统一为 24px 大字（如需更大/更小，修改此值即可） */
.about-rich-text,
.about-rich-text h2,
.about-rich-text h3,
.about-rich-text h4,
.about-rich-text h5,
.about-rich-text h6 {
  font-size: 1.5rem;
}

/* Alpine 初始化前隐藏 x-cloak 元素 */
[x-cloak] {
  display: none !important;
}
