/* Custom styles for Edgekit documentation */

/* 主题色 */
:root {
  --edgekit-primary: #2E7D32;
  --edgekit-secondary: #1565C0;
  --edgekit-accent: #F57C00;
  --edgekit-warning: #FF6F00;
  --edgekit-danger: #C62828;
}

/* 标题样式 */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 1.5em;
}

h1 {
  border-bottom: 3px solid var(--edgekit-primary);
  padding-bottom: 0.5em;
}

/* Callout 样式优化 */
.callout {
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.callout-important {
  border-left: 5px solid var(--edgekit-primary);
}

.callout-warning {
  border-left: 5px solid var(--edgekit-warning);
}

.callout-caution {
  border-left: 5px solid var(--edgekit-danger);
}

/* 代码块样式 */
pre {
  border-radius: 6px;
  padding: 1em;
  background-color: #f5f5f5;
}

code {
  font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
}

/* 表格样式 */
table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
}

table th {
  background-color: var(--edgekit-primary);
  color: white;
  padding: 0.75em;
  text-align: left;
}

table td {
  padding: 0.75em;
  border-bottom: 1px solid #ddd;
}

table tr:hover {
  background-color: #f9f9f9;
}

/* 数学公式居中 */
.display-math {
  margin: 1.5em 0;
  text-align: center;
}

/* 链接样式 */
a {
  color: var(--edgekit-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

a:hover {
  border-bottom: 1px solid var(--edgekit-secondary);
}

/* TOC 样式 */
#TOC {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1em;
}

/* 引用块样式 */
blockquote {
  border-left: 4px solid var(--edgekit-accent);
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
  color: #555;
}
