.center {
    display: block;
    margin: 0 auto;
}
@page {
    size: A4;
    margin: 20mm 10mm 20mm 10mm;
    counter-increment: page;
    font-family: "Material Icons", "Roboto", Arial, sans-serif;
    white-space: pre;
    color: grey;
    @top-right {
        content: 'Chipintelli';
    }
    @top-center {
        content: string(chapter);
    }
    @bottom-center {
        content: 'page ' counter(page);
    }
}


/*margin去除多余间距*/
/* 强制移除 md-nav__container 的 margin */
.md-nav__link.md-nav__container {
    margin: 0 !important;  /* 用 !important 确保覆盖 */
}


/*在 MkDocs 中，要实现点击按钮或链接即可将当前页面下载为 PDF 的功能-样式*/
/* 打印样式 */
@media print {
    .md-sidebar, .md-header, .md-footer {
        display: none;
    }
    .md-content {
        margin: 0;
        padding: 0;
    }
}

/* 按钮样式 */
button[onclick="window.print()"] {
    color: rgb(32, 148, 243);  /* 蓝色（Google Blue） */
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

button[onclick="window.print()"]:hover {
    color: rgb(66, 135, 255);  /* 浅紫色（Lilac） */
}


/* 语言切换按钮 */
.lang-switch-container {
    position: relative;
    display: inline-block;
    width: 116px;
}

.lang-switch-button {
    background: #2094F3;
    border: 1px solid #2094F3;
    border-radius: 4px;
    height: 45px;
    min-width: 80px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s;
}

.lang-switch-button:hover {
    border-color: #2094F3;
    color: #D2EAFD;
}

.lang-icon {
    margin-right: 6px;
    font-size: 14px;
}

.lang-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.lang-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.lang-flag {
    margin-right: 8px;
    font-size: 16px;
}