@font-face {
    font-family: 'Genshin';
    src: url('fonts/genshin.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Common';
    src: url('fonts/common.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Khaenriah';
    src: url('fonts/Khaenriah.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-active {
    opacity: 1;
}

.modal-content {
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 3000;
    position: relative;
}

.modal-active .modal-content {
    transform: scale(1);
}

.modal-header {
    background-color: #4d4f53;
    color: #D3BC8E;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #D3BC8E;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Genshin', serif;
    font-size: 18px;
}

.close-button {
    background: none;
    border: none;
    color: #D3BC8E;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: rgba(211, 188, 142, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Common', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4d4f53;
    z-index: 3000;
    position: relative;
}

/* 可点击行样式 */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #e8e8e8 !important;
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4d4f53;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90%;
    }
    
    .modal-body {
        max-height: 300px;
        font-size: 13px;
    }
}

/* 公告弹窗专用样式 */
.notice-modal .notice-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 3px solid #D3BC8E;
}

.notice-modal .notice-title {
    font-family: 'Genshin', serif;
    font-size: 18px;
    color: #4d4f53;
    margin-bottom: 10px;
    font-weight: bold;
}

.notice-modal .notice-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #8d8f93;
}

.notice-modal .notice-date,
.notice-modal .notice-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-modal .notice-description {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    color: #4d4f53;
    line-height: 1.8;
    white-space: pre-wrap;
}

.notice-modal .notice-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D3BC8E, transparent);
    margin: 25px 0;
}

/* 用户协议弹窗专用样式 */
.user-agreement-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.user-agreement-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-word;
    white-space: normal;
    font-family: 'Common', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #4d4f53;
    min-height: 0;
}

.user-agreement-modal .modal-body h2 {
    font-family: 'Genshin', serif;
    font-size: 22px;
    color: #4d4f53;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #D3BC8E;
}

.user-agreement-modal .modal-body h3 {
    font-family: 'Genshin', serif;
    font-size: 18px;
    color: #4d4f53;
    margin: 18px 0 12px 0;
}

.user-agreement-modal .modal-body p {
    margin: 10px 0;
    text-align: justify;
}

.user-agreement-modal .modal-body ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.user-agreement-modal .modal-body li {
    margin: 6px 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fafafa;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Genshin', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn-agree {
    background-color: #D3BC8E;
    color: #4d4f53;
}

.btn-agree:hover {
    background-color: #c4ad7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 188, 142, 0.3);
}

.btn-decline {
    background-color: #e8e8e8;
    color: #6d6f73;
}

.btn-decline:hover {
    background-color: #d8d8d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #4d4f53;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.site-title {
    font-family: 'Genshin', serif;
    font-size: 24px;
    color: #D3BC8E;
    letter-spacing: 2px;
}

.nav-menu {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
    padding: 10px 18px;
}

.nav-item a {
    font-family: 'Genshin', sans-serif;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
}

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

.nav-item.active a {
    color: #D3BC8E;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #D3BC8E;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.page-content {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* 移动端导航菜单适配 */
@media screen and (max-width: 1012px) {
    .topbar {
        padding: 0 20px;
        height: 60px;
    }

    .topbar-left {
        gap: 10px;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .site-title {
        font-size: 20px;
    }

    /* 移动端导航容器 */
    .nav-menu {
        position: relative;
        flex-grow: 0;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 汉堡菜单按钮样式 */
    .mobile-menu-btn {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 20;
        background: transparent;
        border: none;
        padding: 0;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #D3BC8E;
        margin: 3px 0;
        transition: 0.3s;
        position: relative;
        border-radius: 2px;
    }

    /* 汉堡菜单动画 - 从三条线变成X */
    .nav-menu.active .mobile-menu-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-menu.active .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu.active .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 隐藏桌面版导航列表，改为固定定位以填满屏幕宽度 */
    .nav-list {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #4d4f53;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow-y: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 15;
        gap: 0;
        list-style: none;
        margin: 0;
        
        /* 添加过渡动画 */
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s, padding 0.3s;
    }

    /* 当父容器拥有 active 类时显示菜单 (需JS配合切换类名) */
    .nav-menu.active .nav-list {
        max-height: calc(100vh - 60px);
        opacity: 1;
        visibility: visible;
        padding: 10px 0;
        overflow-y: auto;
    }

    .nav-item {
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        font-size: 16px;
        color: #ffffff;
        display: block;
        padding: 12px 0;
        width: 100%;
        text-decoration: none;
    }

    .nav-item:hover a {
        color: #D3BC8E;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .nav-indicator {
        display: none; /* 在移动端隐藏指示器 */
    }

    /* 前言页面目录导航移动端适配 */
    .toc-sidebar {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
        margin: 20px 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 2px solid #D3BC8E;
    }

    .main-text {
        padding-right: 0 !important;
    }

    .page-content {
        padding: 30px 20px;
    }
}

.page-title {
    font-family: 'Genshin', serif;
    font-size: 42px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #D3BC8E;
    padding-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.khaenriah-font {
    font-family: 'Khaenriah', serif;
}

.intro-text {
    font-family: 'Common', serif;
    font-size: 18px;
    color: #4d4f53;
    text-align: center;
    line-height: 2;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 12px;
    border-left: 4px solid #D3BC8E;
    border-right: 4px solid #D3BC8E;
}

.intro-text p {
    margin: 0;
    padding: 3px 0;
}

.has-footnote {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    margin-left: 0;
    max-width: 100%;
    vertical-align: top;
    white-space: nowrap;
}

.has-footnote sup {
    color: #D3BC8E;
    margin-left: 4px;
}

.footnote {
    color: #D3BC8E;
    margin-left: 4px;
    font-size: 0.8em;
    vertical-align: super;
}

.black-block {
    background-color: black;
    color: black;
    cursor: help;
    padding: 0 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.black-block:hover {
    background-color: transparent;
    color: #4d4f53;
}

.strikethrough {
    text-decoration: line-through;
    opacity: 0.7;
}

.lightrelam-description .has-footnote,
.table-container .has-footnote {
    position: relative;
    display: inline-block;
    cursor: help;
    margin: 0;
    padding: 0;
}

.lightrelam-description .has-footnote sup,
.table-container .has-footnote sup {
    color: #D3BC8E;
    margin-left: 2px;
}

.lightrelam-description .has-footnote:hover .tooltip, .table-container .has-footnote:hover .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: 100%;
    top: 0;
    margin-left: 5px;
    z-index: 10000;
}

.section-subtitle {
    font-family: 'Genshin', serif;
    font-size: 20px;
    color: #4d4f53;
    text-align: center;
    margin: 30px 0 20px;
    line-height: 1.4;
}

.section-subtitle.has-footnote {
    position: relative;
    cursor: help;
    display: inline-block;
    margin-left: 0;
    width: auto;
    max-width: 100%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle.has-footnote:hover .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.section-subtitle.has-footnote .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.section-title.has-footnote {
    position: relative;
    cursor: help;
    display: inline-block;
    margin-left: 0;
    width: auto;
    max-width: 100%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.has-footnote:hover .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.section-title.has-footnote .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.has-footnote:hover .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 5px;
    background-color: #4d4f53;
    color: #D3BC8E;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    white-space: normal;
    width: 350px;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4000;
    pointer-events: auto;
    text-align: left;
    line-height: 1.5;
    font-family: 'Common', sans-serif;
}

.tooltip:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip a {
    color: #D3BC8E;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.tooltip a:hover {
    text-decoration: underline;
}

.intro-text .has-footnote {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: flex-start;
    padding: 0;
    white-space: nowrap;
    vertical-align: top;
}

.intro-text .has-footnote sup {
    color: #D3BC8E;
    margin-left: 4px;
}

.intro-text .has-footnote:hover .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.intro-text .tooltip {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.basiclore-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Genshin', serif;
    font-size: 28px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D3BC8E, transparent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 188, 142, 0.2);
    border-color: #D3BC8E;
}

.card-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.card-content h3 {
    font-family: 'Genshin', serif;
    font-size: 20px;
    color: #4d4f53;
    margin-bottom: 8px;
}

.card-content p {
    font-family: 'Genshin', sans-serif;
    font-size: 14px;
    color: #8d8f93;
    margin: 0;
}

.card-description {
    font-family: 'Common', sans-serif;
    font-size: 12px;
    color: #6d6f73;
    margin-top: 8px;
    line-height: 1.4;
}

.card-description a {
    color: #4d4f53;
    text-decoration: underline;
}

.card-description a:hover {
    color: #D3BC8E;
}

.home-content {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.home-title {
    font-family: 'Genshin', serif;
    font-size: 48px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 20px;
}

.home-subtitle {
    font-family: 'Genshin', sans-serif;
    font-size: 20px;
    color: #6d6f73;
    text-align: center;
    margin-bottom: 40px;
}

.home-subtitle a {
    color: #D3BC8E;
    text-decoration: none;
    font-size: 14px;
}

.home-subtitle a:hover {
    text-decoration: underline;
}

.home-info {
    font-family: 'Genshin', sans-serif;
    font-size: 14px;
    color: #6d6f73;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.8;
}

.home-info p {
    margin: 8px 0;
}

.editor-name {
    font-size: 18px;
    color: #D3BC8E;
}

.editor-info {
    font-size: 18px;
    color: #000000;
    text-align: center;
    margin: 8px 0;
}

.editor-info a {
    color: #000000;
    text-decoration: none;
}

.editor-info a:hover {
    text-decoration: underline;
}

.home-info a {
    color: #D3BC8E;
    text-decoration: none;
}

.table-container {
    max-width: 1200px;
    margin: 20px 50px;
    overflow-x: fixed;
}

.lightrelam-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Common', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.lightrelam-table th {
    background-color: #4d4f53;
    color: #D3BC8E;
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #D3BC8E;
    font-weight: normal;
}

.lightrelam-table td {
    padding: 12px 15px;
    border: 1px solid #D3BC8E;
    text-align: center;
    color: #4d4f53;
}

.lightrelam-table td.text-left {
    text-align: left;
    padding-left: 20px;
}

.lightrelam-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.lightrelam-table tr:hover {
    background-color: #f0f0f0;
}

.lightrelam-description {
    font-family: 'Common', sans-serif;
    font-size: 16px;
    color: #4d4f53;
    text-align: center;
    margin: 20px 0 30px;
    line-height: 1.6;
}

.quote-text {
    font-family: 'Common', sans-serif;
    font-size: 15px;
    color: #5a5c5f;
    background-color: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid #D3BC8E;
    text-align: left;
    line-height: 1.8;
}

.quote-text p {
    margin: 10px 0;
}

.lightrelam-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.lightrelam-content h2 {
    font-family: 'Genshin', serif;
    font-size: 24px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.lightrelam-content p {
    font-family: 'Common', sans-serif;
    font-size: 16px;
    color: #4d4f53;
    text-align: center;
    margin: 10px 0;
    line-height: 1.6;
}

.lightrelam-content p.text-left-indent {
    text-align: left;
    text-indent: 2em;
}

@media (max-width: 768px) {
    .table-container {
        margin: 20px;
    }
    
    .lightrelam-table {
        font-size: 12px;
    }
    
    .lightrelam-table th,
    .lightrelam-table td {
        padding: 8px 10px;
    }
}

.thanks-section {
    font-family: 'Genshin', sans-serif;
    margin-bottom: 40px;
}

.thanks-section h2 {
    font-family: 'Genshin', serif;
    font-size: 28px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #D3BC8E;
    padding-bottom: 10px;
    display: inline-block;
}

.thanks-section > p {
    font-size: 16px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 15px;
}

.contributors {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    font-size: 15px;
    color: #5d5f63;
}

.contributors li {
    padding: 5px 15px;
    background-color: rgba(211, 188, 142, 0.1);
    border-radius: 4px;
}

.thanks-detail {
    font-size: 15px;
    color: #5d5f63;
    text-align: center;
    line-height: 2;
}

.image-text-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.context-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.context-text {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #4d4f53;
    text-align: left;
}

.context-text p {
    margin: 10px 0;
}

.context-text p:first-child {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

.timeline-intro {
    font-family: 'Common', sans-serif;
    font-size: 15px;
    color: #4d4f53;
    text-align: center;
    margin: 30px 0 50px;
    line-height: 1.8;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #D3BC8E, #4d4f53);
    border-radius: 2px;
}

.timeline-section {
    margin-bottom: 60px;
    position: relative;
}

.timeline-period {
    font-family: 'Genshin', sans-serif;
    font-size: 24px;
    color: #D3BC8E;
    margin: 40px 0 30px 70px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D3BC8E;
    position: relative;
}

.timeline-period::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #D3BC8E;
    border-radius: 50%;
    border: 3px solid #4d4f53;
    box-shadow: 0 0 0 3px #D3BC8E;
}

.timeline-main-title {
    font-family: 'Genshin', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #4d4f53;
    margin: 30px 0 30px 70px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    position: relative;
}

.timeline-main-title::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #4d4f53;
    border-radius: 50%;
    border: 2px solid #D3BC8E;
}

.timeline-note {
    font-family: 'Common', sans-serif;
    font-size: 12px;
    color: #8d8f93;
    margin: 0 0 30px 70px;
}

.timeline-item {
    margin-left: 70px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #D3BC8E;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -43px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #4d4f53;
    border-radius: 50%;
    border: 2px solid #D3BC8E;
}

.timeline-title {
    font-family: 'Genshin', sans-serif;
    font-size: 18px;
    color: #4d4f53;
    margin: 30px 0 20px 70px;
    padding-left: 20px;
}

.timeline-content {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    color: #5a5c5f;
    line-height: 1.8;
    margin: 10px 0;
    text-align: left;
}

.timeline-subtitle {
    font-family: 'Genshin', sans-serif;
    font-size: 18px;
    color: #4d4f53;
}

.quote-block {
    background-color: #f5f5f5;
    border-left: 4px solid #D3BC8E;
    padding: 15px 20px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.quote-block:hover {
    background-color: #efefef;
    border-left-color: #4d4f53;
}

.quote-block p {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    color: #5a5c5f;
    line-height: 1.8;
    margin: 8px 0;
    text-align: left;
}

.quote-preview {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    color: #5a5c5f;
    line-height: 1.8;
    margin: 0;
    display: block;
}

/* 只显示第一个预览段落，其他隐藏 */
.quote-preview:not(:first-child) {
    display: none;
}

/* 第一个预览段落单行显示 */
.quote-preview:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quote-link {
    font-family: 'Common', sans-serif;
    font-size: 12px;
    color: #ceae6d !important;
    text-align: right !important;
    margin-top: 10px !important;
}

/* 版本历史记录样式 */
.version-history {
    margin-top: 40px;
}

.version-history-toggle {
    font-family: 'Genshin', serif;
    font-size: 28px;
    color: #4d4f53;
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    cursor: pointer;
    list-style: none;
    display: block;
    transition: all 0.3s ease;
}

.version-history-toggle::-webkit-details-marker {
    display: none;
}

.version-history-toggle:hover {
    color: #D3BC8E;
}

.version-history[open] .version-history-toggle::before {
    content: '▼ ';
    font-size: 0.7em;
    margin-right: 8px;
}

.version-history:not([open]) .version-history-toggle::before {
    content: '▶ ';
    font-size: 0.7em;
    margin-right: 8px;
}

.version-history-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-item {
    margin-bottom: 35px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 10px;
    border-left: 4px solid #D3BC8E;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.version-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    flex-wrap: wrap;
    gap: 10px;
}

.version-date {
    font-family: 'Genshin', serif;
    font-size: 18px;
    color: #4d4f53;
    font-weight: bold;
}

.version-number {
    font-family: 'Genshin', serif;
    font-size: 16px;
    color: #D3BC8E;
    font-weight: bold;
    background-color: rgba(211, 188, 142, 0.15);
    padding: 4px 12px;
    border-radius: 15px;
}

.version-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-changes li {
    font-family: 'Common', sans-serif;
    font-size: 15px;
    color: #4d4f53;
    line-height: 1.9;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.version-changes li:last-child {
    margin-bottom: 0;
}

.version-changes li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #D3BC8E;
    font-size: 20px;
    line-height: 1.6;
}

.version-note {
    display: block;
    margin-top: 10px;
    padding: 12px 15px;
    padding-left: 18px;
    border-left: 3px solid #c0c0c0;
    font-size: 13px;
    color: #8d8f93;
    line-height: 1.8;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0 6px 6px 0;
}

.version-changes del {
    color: #8d8f93;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-item {
        padding: 20px;
    }
    
    .version-date {
        font-size: 16px;
    }
    
    .version-number {
        font-size: 14px;
    }
    
    .version-changes li {
        font-size: 14px;
        padding-left: 20px;
    }
}

/* 编者的话样式 */
.editor-note {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #D3BC8E;
}

.editor-note-title {
    font-family: 'Genshin', serif;
    font-size: 32px;
    color: #4d4f53;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.editor-note-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D3BC8E, transparent);
}

.editor-note-section {
    max-width: 900px;
    margin: 0 auto;
}

.subsection-title {
    font-family: 'Genshin', serif;
    font-size: 24px;
    color: #4d4f53;
    margin: 35px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #D3BC8E;
}

.subsubsection-title {
    font-family: 'Genshin', serif;
    font-size: 20px;
    color: #4d4f53;
    margin: 25px 0 20px;
    padding-left: 20px;
}

.poem-meta {
    margin: 20px 0 25px;
}

.poem-author {
    font-family: 'Common', sans-serif;
    font-size: 15px;
    color: #4d4f53;
    margin-bottom: 12px;
    font-weight: bold;
}

.poem-editor-note {
    font-family: 'Common', sans-serif;
    font-size: 13px;
    color: #8d8f93;
    line-height: 1.8;
    padding: 12px 15px;
    padding-left: 18px;
    border-left: 3px solid #c0c0c0;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0 6px 6px 0;
}

.poem-content {
    font-family: 'Common', sans-serif;
    font-size: 16px;
    color: #4d4f53;
    line-height: 2;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.poem-content p {
    margin: 18px 0;
    text-align: left;
    text-indent: 0;
}

.poem-dedication {
    font-style: italic;
    color: #D3BC8E;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px !important;
    font-size: 17px;
}

.poem-signature {
    text-align: right;
    margin-top: 30px !important;
    font-style: italic;
    color: #8d8f93;
    font-size: 14px;
}

.footnote-ref {
    color: #D3BC8E;
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

.footnote-ref a {
    color: #D3BC8E;
    text-decoration: none;
}

.footnote-ref a:hover {
    text-decoration: underline;
}

.footnotes-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e8e8e8;
}

.footnote-item {
    font-family: 'Common', sans-serif;
    font-size: 13px;
    color: #8d8f93;
    line-height: 1.8;
    margin: 10px 0;
    padding-left: 15px;
}

.footnote-item sup {
    color: #D3BC8E;
    margin-right: 8px;
}

.footnote-item a {
    color: #D3BC8E;
    text-decoration: none;
}

.footnote-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .editor-note-title {
        font-size: 26px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
    
    .subsubsection-title {
        font-size: 18px;
    }
    
    .poem-content {
        font-size: 15px;
        padding: 20px;
    }
    
    .quote-block {
        padding: 20px;
    }
}

.timeline-image {
    text-align: center;
    margin: 20px 0;
}

.timeline-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.image-caption {
    font-family: 'Common', sans-serif;
    font-size: 12px;
    color: #8d8f93;
    margin-top: 10px;
}

.home-footer {
    font-family: 'Genshin', sans-serif;
    text-align: center;
    padding: 40px;
    color: #9d9f93;
    font-size: 14px;
}

.home-footer p {
    margin: 5px 0;
}

.home-footer a {
    color: #9d9f93;
    text-decoration: none;
}

.home-footer a:hover {
    color: #D3BC8E;
    text-decoration: underline;
}

.toc-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 250px;
    max-height: calc(100vh - 140px);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    overflow-y: auto;
    z-index: 900;
    border: 1px solid #e8e8e8;
}

.toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: #D3BC8E;
    border-radius: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #c4a87a;
}

.toc-title {
    font-family: 'Genshin', serif;
    font-size: 18px;
    color: #4d4f53;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D3BC8E;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-toggle-btn {
    background: none;
    border: none;
    color: #D3BC8E;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: rotate(0deg);
}

.toc-toggle-btn:hover {
    background-color: rgba(211, 188, 142, 0.2);
}

.toc-toggle-btn.rotated {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    opacity: 1;
    max-height: none;
    overflow: auto;
}

.toc-list.collapsed {
    opacity: 0;
    max-height: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    font-family: 'Common', sans-serif;
    font-size: 14px;
    color: #4d4f53;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.toc-link:hover {
    background-color: rgba(211, 188, 142, 0.15);
    color: #D3BC8E;
}

.toc-link.active {
    background-color: rgba(211, 188, 142, 0.25);
    color: #D3BC8E;
    font-weight: bold;
}

.toc-link.level-1 {
    font-size: 15px;
    font-weight: bold;
    color: #4d4f53;
}

.toc-link.level-2 {
    padding-left: 20px;
    font-size: 14px;
}

.toc-link.level-3 {
    padding-left: 35px;
    font-size: 13px;
}

@media (max-width: 1400px) {
    .toc-sidebar {
        width: 220px;
        right: 10px;
    }
    
    .toc-link {
        font-size: 13px;
    }
    
    .toc-link.level-1 {
        font-size: 14px;
    }
    
    .toc-link.level-2 {
        font-size: 13px;
    }
    
    .toc-link.level-3 {
        font-size: 12px;
    }
}

/* 引文弹窗样式 */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quote-modal-content {
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
    font-family: 'Common', sans-serif;
    line-height: 1.8;
    font-size: 15px;
    color: #4d4f53;
}

.quote-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #8d8f93;
    cursor: pointer;
    transition: color 0.3s;
}

.quote-modal-close:hover {
    color: #4d4f53;
}

.quote-modal-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}