/* 调整整个页面容器 */
.md-grid {
    max-width: 100%;
    margin: 0;
}
.md-header__title,
.md-header__title .md-header__ellipsis,
.md-header__title .md-header__topic {
    display: none !important;
}
.md-header__inner .md-header__title {
    display: none !important;
}
/* 调整主要内容区域 */
.md-main__inner {
    margin: 0;
    margin-left: 232px;  /* 与导航栏宽度相同 */
    max-width: none;
}

/* 调整导航栏 */
.md-sidebar {
    left: 0;
    margin: 0;
    padding: 1rem;  /* 添加内边距 */
    position: fixed;  /* 改为固定定位 */
    width: 232px;    /* 设置固定宽度 */
    display: block !important; /* 强制显示 */
    visibility: visible !important; /* 确保可见 */
    opacity: 1 !important;    /* 确保不透明 */
}

/* 头部区域样式 */
.md-header {
    background: transparent;
    height: 80px;
}

/* logo样式 */
.md-header__button.md-logo {
    margin: 0;
    padding: 0;
}
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    width: auto;
    height: 70px;
}
/* 文字颜色设置 */
.md-header__title,
.md-header__button,
.md-tabs__link,
.md-header__source {
    color: #000000 !important;
}
.md-header__button.md-icon {
    color: #000000;
}
/* 标签栏样式 */
.md-tabs {
    background: transparent;
    height: 48px;
    width: 100%;
    justify-content: center;
    display: flex;
}

/* 底部栏样式 */
.md-footer {
    background: #424242;
}

.md-footer-meta {
    background: #424242;
    padding: 0 0;
}

.md-footer-copyright {
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* 外部链接在新标签页打开的图标提示 */
.md-nav__link[href^="http"]::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.6;
}

/* 只对首页添加固定背景图 */
body.home-background {
    /* extra.css 在 docs/assets/stylesheets/，图片在 docs/1.png，所以是 ../../1.png */
    background-image: url('../images/2.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 首页内容和侧栏略带白底，让背景能透出一点 */
body.home-background .md-main,
body.home-background .md-sidebar {
    background-color: rgba(255, 255, 255, 0.35);
}
/* 隐藏插件自带的语言切换器 */
.md-header__option {
    display: none !important;
}
/* 自定义语言切换按钮 */
#custom-lang-switch {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}

#custom-lang-switch a {
    color: #666;
    text-decoration: none;
    padding: 4px 6px;
}

#custom-lang-switch a:hover {
    color: #1976d2;
}

#custom-lang-switch a.active {
    color: #1976d2;
}

#custom-lang-switch span {
    color: #999;
}


/* 段落两端对齐 */
p {
    text-align: justify;
    text-justify: inter-word;
}

/* 可选：改善英文两端对齐的断词效果 */
p {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
