@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css');

body {
    font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: normal;
}

/* 加粗文字强化显示（霞鹜文楷粗体差异小，增大字号） */
.md-typeset .md-typeset strong,
.md-typeset .md-typeset b {
    font-weight: 700;
    font-size: 1.1em;
}

[data-md-color-scheme="slate"] .md-typeset .md-typeset strong,
[data-md-color-scheme="slate"] .md-typeset .md-typeset b {
    color: #f0f0f0;
}

/* 代码块字体保持不变 */
code, pre {
    font-family: "Roboto Mono", "Consolas", monospace;
}

/* 返回顶部按钮 */
button.md-top {
    font-family: "LXGW WenKai";
    font-size: 16px;
    font-weight: bold;
}

/* =============================================
   首页卡片：把 admonition.note 改造成白色阴影卡片
   ============================================= */
.md-typeset .admonition.note {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px 32px 16px 32px;
    margin: 24px 0;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 隐藏默认的 admonition 标题背景，保留图标空间 */
.md-typeset .admonition.note > .admonition-title {
    background: none;
    border-radius: 0;
    padding: 0 0 0 28px;
    margin: 0 0 16px 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #333;
}

/* 卡片内图片浮动到右侧 */
.md-typeset .admonition.note .hero-img {
    float: right;
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 0 12px 24px;
    border-radius: 8px;
}

/* 联系我们页面二维码图片，比 hero-img 更大 */
.md-typeset .admonition.note .contact-qr {
    float: right;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 0 12px 24px;
    border-radius: 8px;
}

/* 确保列表内容不被浮动图片遮挡 */
.md-typeset .admonition.note .hero-list-wrap {
    overflow: hidden;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note > .admonition-title {
    color: #eee;
}

/* =============================================
   无圆点列表
   ============================================= */
.md-typeset .admonition.note ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;
}

.md-typeset .admonition.note ul li {
    padding-left: 0;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note ul li {
    color: #ccc;
}

/* 卡片内标签页样式优化 */
.md-typeset .admonition.note .tabbed-labels {
    border-bottom: 1px solid #e0e0e0;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note .tabbed-labels {
    border-bottom-color: #444;
}

/* =============================================
   联系我们页面 - 网格卡片布局
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    margin-top: 0 !important;
    font-size: 1.1em;
}

.contact-card img {
    margin: 12px auto;
    display: block;
}

.contact-card p:last-child {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9em;
}

[data-md-color-scheme="slate"] .contact-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .contact-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-md-color-scheme="slate"] .contact-card p:last-child {
    color: #aaa;
}

/* 移动端单列显示 */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   居中标题样式
   ============================================= */
.hero-title {
    text-align: center;
    font-size: 2em;
    color: #555;
    font-weight: 500;
    margin-top: 24px;
}

[data-md-color-scheme="slate"] .hero-title {
    color: #ccc;
}
/* =============================================
   隐藏首页由 frontmatter title 生成的 h1
   ============================================= */
.md-typeset:has(> .hero-title) > h1 {
    display: none;
}

/* =============================================
   SweetAlert2 弹窗样式
   ============================================= */
.swal-popup-custom {
    font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 16px;
}

.swal-confirm-btn {
    font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1em;
    font-weight: 500;
}
