/* ========== Typography 主题样式 - 完整版 ========== */

/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fbf9f3;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="1" /%3E%3CfeColorMatrix type="saturate" values="0" /%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.03" /%3E%3C/svg%3E');
    color: #33302b;
    font-family: "Noto Serif SC", "Georgia", "Times New Roman", serif;
    line-height: 1.8;
    font-weight: 350;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- 布局 ----- */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ----- 侧边栏（隐藏滚动条）----- */
.sidebar {
    width: 220px;
    padding: 36px 24px;
    border-right: 1px solid #e0d8cc;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background: inherit;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

/* 博客标题 */
.blog-title {
    font-size: 2.2rem;
    font-weight: 380;
    letter-spacing: 3px;
    line-height: 1.3;
    margin-bottom: 36px;
    font-family: "Noto Serif SC", "Times New Roman", serif;
    color: #2a2520;
}

.blog-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: none;
}

/* 导航菜单 */
.nav-menu {
    list-style: none;
    margin-bottom: 24px;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-item a {
    text-decoration: none;
    color: #6b6258;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.2s;
    border-bottom: none;
}

.nav-item a:hover {
    color: #2a2520;
}

.nav-pages {
    margin-top: -8px;
    padding-top: 16px;
    border-top: 1px solid #e8e0d5;
}

/* 侧边栏底部 */
.sidebar-footer {
    font-size: 0.8rem;
    color: #9a9186;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e8e0d5;
    line-height: 1.8;
}

.copyright {
    margin-top: 8px;
}

/* ----- 主内容区 ----- */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 60px 48px;
    max-width: 720px;
    min-height: 100vh;
}

/* 视图切换 */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* 页面标题 */
.page-title {
    font-size: 2rem;
    font-weight: 380;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0d8cc;
    color: #2a2520;
}

.empty-message {
    color: #9a9186;
    text-align: center;
    padding: 48px 0;
    font-style: italic;
}

/* ----- 文章列表（首页）----- */
.post-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e0d5;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item-title {
    font-size: 1.5rem;
    font-weight: 380;
    line-height: 1.4;
    margin-bottom: 6px;
}

.post-item-title a {
    text-decoration: none;
    color: #2a2520;
    border-bottom: none;
    transition: color 0.2s;
}

.post-item-title a:hover {
    color: #8b7e6c;
}

.post-item-date {
    font-size: 0.9rem;
    color: #9a9186;
    letter-spacing: 0.5px;
}

/* 分页 */
.pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.95rem;
}

.pagination a {
    text-decoration: none;
    color: #6b6258;
    border-bottom: 1px solid #d0c7bc;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.pagination a:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

.pagination span {
    color: #9a9186;
}

/* ----- 文章详情页 ----- */
.post-full {
    max-width: 100%;
}

.post-full-title {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #2a2520;
}

.post-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0d8cc;
    font-size: 0.9rem;
    color: #7a6e63;
}

.post-full-meta a {
    text-decoration: none;
    color: #7a6e63;
    border-bottom: 1px dotted #c9bcab;
    margin: 0 2px;
}

.post-full-meta a:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

/* 文章正文样式 */
.post-full-content,
.page-full-content {
    font-size: 1rem;
}

.post-full-content h1,
.page-full-content h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 36px 0 20px;
    color: #2a2520;
}

.post-full-content h2,
.page-full-content h2 {
    font-size: 1.5rem;
    font-weight: 450;
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0d8cc;
    color: #2a2520;
}

.post-full-content h3,
.page-full-content h3 {
    font-size: 1.25rem;
    font-weight: 450;
    margin: 32px 0 16px;
    color: #3a322c;
    position: relative;
    padding-left: 0;
}

.post-full-content h3::before,
.page-full-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 30px;
    height: 2px;
    background: #c9bcab;
}

.post-full-content h4,
.page-full-content h4 {
    font-size: 1.1rem;
    font-weight: 450;
    margin: 28px 0 12px;
    color: #4a423c;
}

.post-full-content p,
.page-full-content p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6,
.post-full-content blockquote p,
.post-full-content li p,
.post-full-content pre,
.post-full-content hr,
.page-full-content h1,
.page-full-content h2,
.page-full-content h3,
.page-full-content h4,
.page-full-content h5,
.page-full-content h6,
.page-full-content blockquote p,
.page-full-content li p,
.page-full-content pre,
.page-full-content hr {
    text-indent: 0;
}

.post-full-content a,
.page-full-content a {
    color: #6b6258;
    text-decoration: none;
    border-bottom: 1px solid #c9bcab;
    transition: all 0.2s;
}

.post-full-content a:hover,
.page-full-content a:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

.post-full-content ul,
.post-full-content ol,
.page-full-content ul,
.page-full-content ol {
    margin: 0 0 1.5em 1.5em;
}

.post-full-content li,
.page-full-content li {
    margin-bottom: 0.5em;
}

.post-full-content blockquote,
.page-full-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.5em;
    border-left: 3px solid #c9bcab;
    color: #5e554b;
    font-style: italic;
}

.post-full-content blockquote p:last-child,
.page-full-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-full-content code,
.page-full-content code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.9em;
    background: #f0ebe3;
    padding: 2px 6px;
    border-radius: 3px;
    color: #4a423c;
}

.post-full-content pre,
.page-full-content pre {
    margin: 1.5em 0;
    padding: 20px;
    background: #f0ebe3;
    border-radius: 4px;
    overflow-x: auto;
    line-height: 1.6;
}

.post-full-content pre code,
.page-full-content pre code {
    background: none;
    padding: 0;
}

.post-full-content hr,
.page-full-content hr {
    border: none;
    border-top: 1px solid #e0d8cc;
    margin: 2em 0;
}

.post-full-content img,
.page-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-full-content table,
.page-full-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.post-full-content th,
.post-full-content td,
.page-full-content th,
.page-full-content td {
    padding: 10px 12px;
    border: 1px solid #e0d8cc;
    text-align: left;
}

.post-full-content th,
.page-full-content th {
    background: #f0ebe3;
    font-weight: 400;
}

/* 文章前后导航 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0d8cc;
}

.post-nav a {
    text-decoration: none;
    color: #6b6258;
    border-bottom: 1px solid #d0c7bc;
    transition: all 0.2s;
    max-width: 45%;
}

.post-nav a:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

/* ----- 页面详情页 ----- */
.page-full-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0d8cc;
    color: #2a2520;
}

/* ----- 归档页 ----- */
.archive-year {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 32px 0 16px;
    color: #2a2520;
}

.archive-year:first-child {
    margin-top: 0;
}

.archive-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e8e0d5;
}

.archive-date {
    width: 70px;
    font-size: 0.9rem;
    color: #9a9186;
    flex-shrink: 0;
}

.archive-item a {
    text-decoration: none;
    color: #4a423c;
    border-bottom: none;
    transition: color 0.2s;
}

.archive-item a:hover {
    color: #8b7e6c;
}

/* ----- 分类/标签页 ----- */
.taxonomy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.taxonomy-item {
    font-size: 1.1rem;
}

.taxonomy-item a {
    text-decoration: none;
    color: #4a423c;
    border-bottom: 1px dotted #c9bcab;
    transition: all 0.2s;
}

.taxonomy-item a:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

.taxonomy-item .count {
    font-size: 0.9rem;
    color: #9a9186;
    margin-left: 6px;
}

.taxonomy-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tag-item {
    text-decoration: none;
    color: #6b6258;
    border-bottom: 1px dotted #c9bcab;
    transition: all 0.2s;
    display: inline-block;
    padding: 4px 0;
    font-size: 0.95rem !important;
}

.tag-item:hover {
    color: #2a2520;
    border-bottom-color: #8b7e6c;
}

/* ----- 移动端菜单按钮 ----- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #5e554b;
    padding: 4px 8px;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 150;
}

.sidebar-overlay.active {
    display: block;
}

/* ----- 悬浮按钮组 ----- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fbf9f3;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    color: #6b6258;
    transition: all 0.2s;
}

.fab:hover {
    background: #f0ebe3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #2a2520;
    transform: translateY(-1px);
}

/* 目录侧边栏 */
.toc-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: #fbf9f3;
    border-left: 1px solid #e0d8cc;
    z-index: 200;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.toc-sidebar.open {
    right: 0;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e0d8cc;
    font-size: 1.1rem;
    color: #2a2520;
}

.toc-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #9a9186;
    padding: 4px;
    transition: color 0.2s;
}

.toc-close:hover {
    color: #2a2520;
}

.toc-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.toc-content::-webkit-scrollbar {
    display: none;
}

.toc-item {
    display: block;
    text-decoration: none;
    color: #6b6258;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: none;
    transition: color 0.2s;
    line-height: 1.5;
}

.toc-item:hover {
    color: #2a2520;
}

.toc-h2 {
    padding-left: 0;
    font-weight: 400;
}

.toc-h3 {
    padding-left: 16px;
    font-size: 0.85rem;
}

.toc-h4 {
    padding-left: 32px;
    font-size: 0.8rem;
    color: #9a9186;
}

/* ========== 暗色主题 ========== */
body.dark {
    background: #1a1816;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="1" /%3E%3CfeColorMatrix type="saturate" values="0" /%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.05" /%3E%3C/svg%3E');
    color: #c9bcab;
}

body.dark .sidebar {
    border-right-color: #3a322c;
}

body.dark .blog-title a {
    color: #e0d8cc;
}

body.dark .nav-item a {
    color: #a3917e;
}

body.dark .nav-item a:hover {
    color: #e0d8cc;
}

body.dark .sidebar-footer {
    color: #7a6e63;
    border-top-color: #3a322c;
}

body.dark .post-item-title a {
    color: #d0c7bc;
}

body.dark .post-item-title a:hover {
    color: #e0d8cc;
}

body.dark .post-item-date {
    color: #7a6e63;
}

body.dark .post-item {
    border-bottom-color: #3a322c;
}

body.dark .pagination a {
    color: #a3917e;
    border-bottom-color: #5e554b;
}

body.dark .pagination a:hover {
    color: #e0d8cc;
}

body.dark .pagination span {
    color: #7a6e63;
}

body.dark .page-title {
    color: #d0c7bc;
    border-bottom-color: #3a322c;
}

body.dark .post-full-title {
    color: #e0d8cc;
}

body.dark .post-full-meta {
    color: #a3917e;
    border-bottom-color: #3a322c;
}

body.dark .post-full-meta a {
    color: #a3917e;
}

body.dark .post-full-meta a:hover {
    color: #e0d8cc;
}

body.dark .post-full-content,
body.dark .page-full-content {
    color: #c9bcab;
}

body.dark .post-full-content a,
body.dark .page-full-content a {
    color: #a3917e;
    border-bottom-color: #5e554b;
}

body.dark .post-full-content a:hover,
body.dark .page-full-content a:hover {
    color: #e0d8cc;
    border-bottom-color: #8b7e6c;
}

body.dark .post-full-content h2,
body.dark .page-full-content h2 {
    color: #e0d8cc;
    border-bottom-color: #5e554b;
}

body.dark .post-full-content h3,
body.dark .page-full-content h3 {
    color: #d0c7bc;
}

body.dark .post-full-content h3::before,
body.dark .page-full-content h3::before {
    background: #8b7e6c;
}

body.dark .post-full-content h4,
body.dark .page-full-content h4 {
    color: #c9bcab;
}

body.dark .post-full-content blockquote,
body.dark .page-full-content blockquote {
    border-left-color: #5e554b;
    color: #b9aa9a;
}

body.dark .post-full-content code,
body.dark .page-full-content code {
    background: #2a2520;
    color: #d0c7bc;
}

body.dark .post-full-content pre,
body.dark .page-full-content pre {
    background: #2a2520;
}

body.dark .post-full-content hr,
body.dark .page-full-content hr {
    border-top-color: #3a322c;
}

body.dark .post-full-content th,
body.dark .page-full-content th {
    background: #2a2520;
    border-color: #4a423c;
}

body.dark .post-full-content td,
body.dark .page-full-content td {
    border-color: #4a423c;
}

body.dark .post-nav {
    border-top-color: #3a322c;
}

body.dark .post-nav a {
    color: #a3917e;
    border-bottom-color: #5e554b;
}

body.dark .post-nav a:hover {
    color: #e0d8cc;
}

body.dark .archive-year {
    color: #d0c7bc;
}

body.dark .archive-item {
    border-bottom-color: #3a322c;
}

body.dark .archive-date {
    color: #7a6e63;
}

body.dark .archive-item a {
    color: #c9bcab;
}

body.dark .archive-item a:hover {
    color: #e0d8cc;
}

body.dark .taxonomy-item a {
    color: #c9bcab;
}

body.dark .taxonomy-item .count {
    color: #7a6e63;
}

body.dark .tag-item {
    color: #c9bcab;
    border-bottom-color: #5e554b;
}

body.dark .tag-item:hover {
    color: #e0d8cc;
    border-bottom-color: #8b7e6c;
}

body.dark .toc-sidebar {
    background: #1a1816;
    border-left-color: #3a322c;
}

body.dark .toc-header {
    color: #d0c7bc;
    border-bottom-color: #3a322c;
}

body.dark .toc-close {
    color: #7a6e63;
}

body.dark .toc-close:hover {
    color: #e0d8cc;
}

body.dark .toc-item {
    color: #a3917e;
}

body.dark .toc-item:hover {
    color: #e0d8cc;
}

body.dark .mobile-menu-toggle {
    color: #c9bcab;
}

body.dark .empty-message {
    color: #7a6e63;
}

body.dark .fab {
    background: #2a2520;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #c9bcab;
}

body.dark .fab:hover {
    background: #3a322c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #e0d8cc;
    transform: translateY(-1px);
}

/* ========== 移动端适配 ========== */
@media (max-width: 680px) {
    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -220px;
        top: 0;
        bottom: 0;
        z-index: 200;
        background: #fbf9f3;
        transition: left 0.3s;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    }

    body.dark .sidebar {
        background: #1a1816;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 72px 24px 48px;
        max-width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .blog-title {
        font-size: 2rem;
    }

    .post-full-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .post-nav {
        flex-direction: column;
        gap: 16px;
    }

    .post-nav a {
        max-width: 100%;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .fab {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .toc-sidebar {
        width: 240px;
        right: -240px;
    }
}

/* ========== 彩蛋提示浮层 ========== */
.secret-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(42, 37, 32, 0.88);
    color: #d0c7bc;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 999;
    font-family: "Noto Serif SC", serif;
}

.secret-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#secretTrigger {
    cursor: default;
    user-select: none;
}

/* ========== 隐藏文章标签 ========== */
.secret-tag {
    font-size: 0.8rem;
    color: #9a9186;
    margin-left: 8px;
    letter-spacing: 1px;
}

body.dark .secret-tag {
    color: #7a6e63;
}

/* ========== 隐藏文章密码遮罩 ========== */
.secret-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.secret-lock-box {
    text-align: center;
    padding: 48px 32px;
}

.secret-lock-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 380;
}

.secret-lock-hint {
    color: #9a9186;
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.secret-lock-input {
    display: block;
    width: 240px;
    margin: 0 auto 16px;
    padding: 10px 16px;
    border: 1px solid #d0c7bc;
    border-radius: 4px;
    background: #fbf9f3;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 4px;
    color: #2a2520;
    font-family: "Noto Serif SC", serif;
    outline: none;
}

.secret-lock-input:focus {
    border-color: #a3917e;
}

.secret-lock-btn {
    display: block;
    width: 240px;
    margin: 0 auto;
    padding: 10px 0;
    border: none;
    border-radius: 4px;
    background: #c9bcab;
    color: #fbf9f3;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 2px;
    font-family: "Noto Serif SC", serif;
    transition: background 0.2s;
}

.secret-lock-btn:hover {
    background: #a3917e;
}

.secret-lock-error {
    color: #c0604a;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

/* 暗色主题 */
body.dark .secret-lock-input {
    background: #2a2520;
    border-color: #5e554b;
    color: #d0c7bc;
}

body.dark .secret-lock-btn {
    background: #5e554b;
    color: #d0c7bc;
}

body.dark .secret-lock-btn:hover {
    background: #8b7e6c;
}

/* ========== 全局密码遮罩（小博客 Typography 风格）========== */
#globalPasswordOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 37, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.global-password-box {
    background: #fbf9f3;
    padding: 44px 36px 36px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0d8cc;
    position: relative;
}

/* 装饰线 */
.global-password-box::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #c9bcab;
}

.global-password-box h2 {
    font-family: "Noto Serif SC", "Georgia", "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 380;
    letter-spacing: 4px;
    color: #2a2520;
    margin-bottom: 8px;
    margin-top: 8px;
}

.global-password-subtitle {
    font-family: "Noto Serif SC", serif;
    font-size: 0.9rem;
    color: #9a9186;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.global-password-box input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #fbf9f3;
    color: #2a2520;
    border: none;
    border-bottom: 1px solid #d0c7bc;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 4px;
    font-family: "Noto Serif SC", "Georgia", serif;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}

.global-password-box input:focus {
    border-bottom-color: #8b7e6c;
}

.global-password-box input::placeholder {
    color: #c9bcab;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.global-password-box button {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    color: #6b6258;
    border: 1px solid #d0c7bc;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 3px;
    font-family: "Noto Serif SC", "Georgia", serif;
    transition: all 0.2s;
    border-radius: 0;
}

.global-password-box button:hover {
    color: #2a2520;
    border-color: #8b7e6c;
    background: rgba(139, 126, 108, 0.04);
}

#globalPasswordError {
    color: #c0604a;
    font-size: 0.85rem;
    margin-top: 14px;
    min-height: 20px;
    letter-spacing: 1px;
}

/* 暗色模式 */
body.dark #globalPasswordOverlay {
    background: rgba(10, 8, 6, 0.65);
}

body.dark .global-password-box {
    background: #1a1816;
    border-color: #3a322c;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}

body.dark .global-password-box::before {
    background: #5e554b;
}

body.dark .global-password-box h2 {
    color: #e0d8cc;
}

body.dark .global-password-subtitle {
    color: #7a6e63;
}

body.dark .global-password-box input {
    background: #1a1816;
    color: #d0c7bc;
    border-bottom-color: #5e554b;
}

body.dark .global-password-box input:focus {
    border-bottom-color: #8b7e6c;
}

body.dark .global-password-box input::placeholder {
    color: #6b6258;
}

body.dark .global-password-box button {
    color: #a3917e;
    border-color: #5e554b;
}

body.dark .global-password-box button:hover {
    color: #e0d8cc;
    border-color: #8b7e6c;
    background: rgba(139, 126, 108, 0.06);
}

body.dark #globalPasswordError {
    color: #d0806a;
}

/* 移动端适配 */
@media (max-width: 680px) {
    .global-password-box {
        padding: 36px 24px 28px;
    }
    .global-password-box h2 {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}