/* ==============================
   汇睿光电知识库 - 自定义样式
   ============================== */

/* 首页 Hero 横幅 */
.hero-banner {
  background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #0277bd 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero-banner h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff !important;
  border: none;
}

.hero-banner p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
}

/* 首页快速入口卡片区 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.card-item {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none !important;
  display: block;
}

.card-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-item .card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.card-item .card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.3rem;
}

.card-item .card-desc {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
}

/* 导航标签页加粗 */
.md-tabs__link {
  font-weight: 500;
}

/* 侧边栏章节标题加粗 */
.md-nav__title {
  font-weight: 600;
}

/* 表格美化 */
.md-typeset table:not([class]) {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* 提示框图标更明显 */
.md-typeset .admonition {
  border-radius: 6px;
}

/* 代码块圆角 */
.md-typeset pre {
  border-radius: 6px;
}

/* 页脚版权区微调 */
.md-footer-meta {
  background-color: var(--md-footer-bg-color--dark);
}
