.menu-series-title {
    display: block;
    padding: 8px 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-series-title:hover {
    color: var(--accent);
    background-color: var(--tertiary);
    border-radius: 4px;
}

/* ==============================================
   自定义容器样式 - 用于 markdown 的 ::: 语法
   ============================================== */

/* 基础容器样式 */
.md-content .callout {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: var(--tertiary);
}

.md-content .callout-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tip 提示 */
.md-content .callout-tip {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.md-content .callout-tip .callout-title {
    color: #10b981;
}

/* Note 笔记 */
.md-content .callout-note {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.md-content .callout-note .callout-title {
    color: #3b82f6;
}

/* Warning 警告 */
.md-content .callout-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.md-content .callout-warning .callout-title {
    color: #f59e0b;
}

/* Danger 危险 */
.md-content .callout-danger {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.md-content .callout-danger .callout-title {
    color: #ef4444;
}

/* Success 成功 */
.md-content .callout-success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.md-content .callout-success .callout-title {
    color: #10b981;
}

/* Info 信息 */
.md-content .callout-info {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.md-content .callout-info .callout-title {
    color: #06b6d4;
}

/* ==============================================
   增强的 markdown 内容样式
   ============================================== */

/* 分隔线样式 */
.md-content hr {
    margin: 2rem 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    border: none;
}

/* 列表样式优化 */
.md-content ul,
.md-content ol {
    padding-inline-start: 1.5rem;
}

.md-content li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.md-content li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* 表格样式优化 */
.md-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.md-content table th {
    background: var(--tertiary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.md-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.md-content table tr:last-child td {
    border-bottom: none;
}

.md-content table tr:hover td {
    background: var(--tertiary);
}

/* 标题装饰 */
.md-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.md-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: 2px;
}

.md-content h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.md-content h3::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--primary);
    border-radius: 2px;
}

/* 强调文本 */
.md-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* 图片容器 */
.md-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.md-content figure img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.md-content figcaption {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-style: italic;
}
