/*
Theme Name: Novelist Ultimate Final
Author: Expert
Version: 5.1
*/
@font-face {
    font-family: 'xile';
    src: url('fonts/xileti.woff2') format('woff2'),
       url('fonts/xileti.woff') format('woff'),
       url('fonts/xileti.ttf') format('truetype'),
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    cursor: url('./assets/cursor/Alternate.cur'), auto;
}

a,
button,
input[type="submit"],
input[type="button"],
label,
select,
.nav-link,
.hover-btn,
.info-card,
.card-link-wrapper,
.back-btn,
.back-home-link,
.totop-btn,
.search-icon,
.nav-item,
.chapter-navigation a,
.paper-tags a,
.comment-reply-link,
[role="button"],
[onclick] {
    cursor: url('./assets/cursor/Link.cur'), pointer !important;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
[contenteditable="true"] {
    cursor: url('./assets/cursor/Text.cur'), text !important;
}

.paper-content,
.paper-content p,
.paper-content blockquote {
    cursor: url('./assets/cursor/Handwriting.cur'), auto;
}

button:disabled,
input:disabled,
.disabled,
[aria-disabled="true"] {
    cursor: url('./assets/cursor/Unavailable.cur'), not-allowed !important;
}

.paper-content img,
.gallery img,
img[data-zoomable],
.zoom-in {
    cursor: url('./assets/cursor/Zoom-in.cur'), zoom-in !important;
}

.zoom-out {
    cursor: url('./assets/cursor/Zoom-out.cur'), zoom-out !important;
}

[draggable="true"] {
    cursor: url('./assets/cursor/Move.cur'), move !important;
}

[draggable="true"]:active {
    cursor: url('./assets/cursor/Grabbing.cur'), grabbing !important;
}

[title],
abbr[title],
.help,
.tooltip {
    cursor: url('./assets/cursor/Help.cur'), help;
}

.resize-horizontal {
    cursor: url('./assets/cursor/Horz.cur'), ew-resize !important;
}

.resize-vertical {
    cursor: url('./assets/cursor/Vert.cur'), ns-resize !important;
}

.crosshair,
.color-picker {
    cursor: url('./assets/cursor/Cross.cur'), crosshair !important;
}



:root {
    --bg-color: #F0EFEB;
    --text-main: #2C2C2C;
    --text-light: #666666;
    --layer-1: #E3E5E1; --layer-2: #CDD1CA; --layer-3: #B5BAB1; --layer-4: #9CA396;
    --anim-final: #838A7B; 
    --hover-text: #ffffff;
    --accent-color: #838A7B;
    --grid-gap: 25px;
    --card-min-width: 260px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); font-family: 'Lato', sans-serif; color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.site-header { 
    position: absolute; top: 0; left: 0; width: 100%; 
    padding: 25px 50px; z-index: 100; 
    display: flex; justify-content: space-between; align-items: center; 
}
.nav-left { display: flex; gap: 15px; align-items: center; }
.nav-item { position: relative; }

.header-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.header-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.header-btn::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 50%;
    width: 0; height: 2px;
    background-color: white;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-btn:hover::after {
    width: 60%;
    left: 20%;
}

.arrow-icon { font-size: 0.7rem; margin-left: 5px; transition: transform 0.3s ease; display: inline-block; }
.nav-item:hover .arrow-icon { transform: rotate(180deg); }

.dropdown-list {
    position: absolute; top: calc(100% + 10px); left: -10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px; padding: 10px 0;
    min-width: 180px; list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 101;
}
.nav-item:hover .dropdown-list { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-list li { position: relative; }
.dropdown-list li a { display: flex; justify-content: space-between; padding: 12px 20px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.dropdown-list li a:hover { background: #f0f0f0; color: var(--anim-final); padding-left: 25px; }
.dropdown-list .children {
    position: absolute; top: 0; left: 100%; margin-left: 5px;
    background: rgba(255, 255, 255, 0.98); border-radius: 8px; padding: 10px 0;
    min-width: 160px; list-style: none; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateX(-10px); transition: all 0.3s; z-index: 102;
}
.dropdown-list li:hover > .children { opacity: 1; visibility: visible; transform: translateX(0); }

.site-tools { display: flex; align-items: center; gap: 15px; }
.login-link { order: 1; }

.hero-section { 
    height: 70vh; 
    background-size: cover; background-position: center; 
    position: relative; 
    display: flex; align-items: center; justify-content: center; 
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 60%, var(--bg-color)); }
.hero-content { z-index: 2; text-align: center; color: white; }

.site-title { 
    font-family: 'xile', serif; 
    font-size: 4.5rem; 
    text-shadow: 0 5px 20px rgba(0,0,0,0.4); 
    letter-spacing: 8px; 
    cursor: default;
}

.artist-credit { 
    position: absolute; 
    bottom: 100px; 
    right: 40px; 
    z-index: 50; 
    text-decoration: none;
}

.credit-text {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.85rem; 
    font-weight: 500; 
    letter-spacing: 1px;
    position: relative;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.credit-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.4);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.artist-credit:hover .credit-text {
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.artist-credit:hover .credit-text::after {
    width: 100%;
    left: 0;
}

.main-grid-container { max-width: 94%; margin: -80px auto 50px; position: relative; z-index: 10; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--text-main); }
.section-title h2 { font-family: 'Noto Serif SC', serif; font-size: 2rem; }

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr)); 
    gap: var(--grid-gap); 
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 8px; overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s ease;
    height: 300px; 
}
.card-link-wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; width: 100%; padding: 30px; text-decoration: none; position: relative; z-index: 2; }
.card-content { position: relative; z-index: 50; width: 100%; }
.card-content h3 { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; color: var(--text-main); margin-bottom: 15px; transition: color 0.3s ease-in-out; text-align: center; }
.card-content .excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; transition: color 0.3s ease-in-out; text-align: center; }
.read-more { margin-top: 20px; font-size: 1rem; font-weight: bold; color: transparent; transition: all 0.4s; position: relative; z-index: 50; display: block; text-align: center; }

.hover-layers { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 10; pointer-events: none; 
}
.hover-layers span {
    position: absolute; left: 0; display: block;
    width: 0; 
    height: 40%;  
    border-radius: 0 100px 100px 0; 
    opacity: 1;
}
.hover-layers span:nth-child(1) { top: 0;   z-index: 1; --c: var(--layer-1); }
.hover-layers span:nth-child(2) { top: 20%; z-index: 2; --c: var(--layer-2); }
.hover-layers span:nth-child(3) { top: 40%; z-index: 3; --c: var(--layer-3); }
.hover-layers span:nth-child(4) { top: 60%; z-index: 4; --c: var(--layer-4); height: 40%; }

@keyframes shadowStack {
    0% {
        width: 0;
        background-color: var(--c);
        border-radius: 0 100px 100px 0;
        box-shadow: none;
    }
    60% {
        width: 120%;
        background-color: var(--c);
        border-radius: 0 100px 100px 0;
        box-shadow: -5px -8px 20px rgba(0,0,0,0.25); 
    }
    100% {
        width: 120%;
        background-color: var(--anim-final);
        border-radius: 0;
        box-shadow: none; 
    }
}
.info-card:hover .hover-layers span {
    animation: shadowStack 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.info-card:hover .hover-layers span:nth-child(1) { animation-delay: 0s; }
.info-card:hover .hover-layers span:nth-child(2) { animation-delay: 0.1s; }
.info-card:hover .hover-layers span:nth-child(3) { animation-delay: 0.2s; }
.info-card:hover .hover-layers span:nth-child(4) { animation-delay: 0.3s; }
.info-card:hover .card-content h3, 
.info-card:hover .card-content .excerpt, 
.info-card:hover .read-more { color: var(--hover-text); }
.info-card:hover .read-more { color: var(--hover-text); transform: translateY(-5px); }
.info-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.2); }

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap; 
}
.search-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 20; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; 
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-container:hover .search-icon {
    transform: scale(1.15); 
}
.search-icon svg {
    width: 20px;
    height: 20px;
    color: white; 
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}
.search-container.active .search-icon svg {
    transform: rotate(360deg) !important;
}
.search-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 50%;
    z-index: -1; 
    transform: scale(0);
    opacity: 0; 
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), 
                clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.3s ease-out; 
}
.search-container:hover .search-icon::before {
    transform: scale(1);
    opacity: 1; 
    clip-path: circle(75% at 50% 50%);
}
.search-container:not(:hover):not(.active) .search-icon::before {
    transform: scale(0);
    opacity: 0; 
    clip-path: circle(75% at 100% 0%); 
    transition-duration: 0.6s, 0.5s, 0.4s; 
    transition-delay: 0.2s;
}
.search-input {
    box-sizing: border-box; 
    position: absolute;
    right: 0; 
    width: 240px; 
    height: 40px;
    border: 2px solid black;
    border-radius: 20px;
    padding: 0 20px 0 20px; 
    background-color: transparent;
    background-image: linear-gradient(180deg, black 0%, black 100%);
    background-size: 100% 0%;
    background-repeat: no-repeat;
    background-position: top center;
    opacity: 0; 
    pointer-events: none;
    font-size: 1rem;
    z-index: 10; 
    color: black; 
    clip-path: circle(20px at calc(100% - 20px) 50%);
    transition: clip-path 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.2s ease-out, 
                opacity 0.2s ease 0.4s; 
}
.search-input::placeholder {
    color: black;
    opacity: 1;
    transition: color 0.3s ease;
}
.search-input:focus {
    outline: none;
}
.search-container.active .search-input {
    opacity: 1;
    pointer-events: auto;
    clip-path: circle(300px at calc(100% - 20px) 50%);
    transition-delay: 0s; 
}
.search-container.active .search-input:hover {
    background-size: 100% 100%;
    color: #e0e0e0;
}
.search-container.active .search-input:hover::placeholder {
    color: #e0e0e0;
}
.search-container.active .search-input:hover {
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease 0.15s,
                clip-path 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.search-container.active .search-input:hover::placeholder {
    transition: color 0.3s ease 0.15s;
}
.search-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    opacity: 0; 
    border: 2px solid white; 
    transform: scale(0.8);
}
.search-container:not(.active):hover .search-icon::after {
    border: none; 
    animation: ghost-burst 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.search-container.active .search-icon::after {
    border: 2px solid white; 
    animation: radar-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes ghost-burst {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), 
                    0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1.4); 
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 
                    0 0 0 20px rgba(255, 255, 255, 0);
    }
}
@keyframes radar-pulse {
    0%   { transform: scale(0.8); opacity: 0; }
    50%  { opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

.site-footer { text-align: center; padding: 60px 0; font-size: 0.8rem; color: #888; }

@media (max-width: 1200px) {
    :root {
        --card-min-width: 220px;
    }
}
@media (max-width: 992px) {
    :root {
        --card-min-width: 250px;
    }
    .info-card {
        height: 280px;
    }
}
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    .nav-left {
        gap: 5px;
    }
    .header-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .site-tools {
        gap: 10px;
    }
    .hero-section {
        height: 55vh;
        background-position: 50% 30%;
    }
    .site-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
    .site-description {
        font-size: 0.95rem;
    }
    .artist-credit {
        bottom: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .main-grid-container {
        max-width: 95%;
        margin-top: -50px;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    :root {
        --card-min-width: 160px;
        --grid-gap: 15px;
    }
    .info-card {
        height: 240px;
    }
    .card-link-wrapper {
        padding: 20px;
    }
    .card-content h3 {
        font-size: 1.1rem;
    }
    .card-content .excerpt {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .read-more {
        font-size: 0.9rem;
    }
    .search-input {
        width: 180px;
        font-size: 0.9rem;
    }
    
    .dropdown-list {
        left: 0;
        min-width: 160px;
    }
    .dropdown-list .children {
        position: static;
        margin-left: 0;
        margin-top: 5px;
        box-shadow: none;
        border-left: 2px solid var(--accent-color);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
@media (max-width: 480px) {
    .site-header {
        padding: 10px 15px;
    }
    .header-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .arrow-icon {
        display: none; 
    }
    .hero-section {
        height: 50vh;
    }
    .site-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .site-description {
        font-size: 0.85rem;
        padding: 0 20px;
    }
    :root {
        --card-min-width: 140px;
        --grid-gap: 12px;
    }
    .info-card {
        height: 220px;
    }
    .card-content h3 {
        font-size: 1rem;
    }
    .card-content .excerpt {
        -webkit-line-clamp: 2;
    }
    .search-input {
        width: 150px;
        padding: 0 15px;
    }
}
@media (max-width: 380px) {
    .nav-left {
        gap: 2px;
    }
    .header-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    .site-title {
        font-size: 1.8rem;
    }
    :root {
        --card-min-width: 130px;
    }
    .info-card {
        height: 200px;
    }
}

.global-top-nav {
    position: absolute; 
    top: 40px;      
    left: 50px;     
    z-index: 100;   
    width: auto;
    height: auto;
    pointer-events: auto; 
}

.global-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    background-color: var(--bg-color, #F0EFEB);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main, #333);
    background: transparent;
    padding: 8px;
    border-radius: 30px;
    border: 1px solid transparent; 
    transition: all 0.4s ease;
}
.back-home-link .link-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
}
.back-home-link .link-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.back-home-link:hover {
    background: rgba(0,0,0,0.05); 
    padding-right: 20px; 
}
.back-home-link:hover .link-icon {
    transform: scale(0.9);
}
.back-home-link:hover .link-text {
    max-width: 100px; 
    opacity: 1;
    margin-left: 10px;
}

.bookshelf-body .back-home-link,
.manuscript-body .back-home-link {
    color: rgba(232, 228, 220, 0.8);
}
.bookshelf-body .back-home-link:hover,
.manuscript-body .back-home-link:hover {
    background: rgba(212, 175, 125, 0.15); 
    color: #d4af7d;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    color: white;
    background: #000;
    border: 2px solid #000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.donate-btn:hover {
    background: var(--anim-final, #838A7B);
    border-color: var(--anim-final, #838A7B);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.donate-btn .btn-icon {
    transition: transform 0.3s ease;
}

.donate-btn:hover .btn-icon {
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .global-top-nav {
        top: 20px;
        left: 20px;
    }
    
    .back-home-link .link-text {
        font-size: 0.95rem; 
        letter-spacing: 1px;
    }
    
    .back-home-link .link-icon {
        width: 18px;
        height: 18px;
    }

    .global-footer-nav {
        padding: 25px 20px;
    }
    
    .donate-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .global-footer-nav {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .donate-btn {
        align-self: flex-end;
    }
}

.single-post-body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.single-container {
    width: 100%;
    padding: 120px 20px 100px; 
    display: flex;
    justify-content: center;
}

.paper-card {
    background: #ffffff;
    width: 100%;
    max-width: 1060px; 
    padding: 80px 100px; 
    border-radius: 4px;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.05), 
        0 10px 30px rgba(0,0,0,0.05);
    
    animation: cardFloatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes cardFloatUp {
    to { opacity: 1; transform: translateY(0); }
}

.paper-header {
    text-align: center;
    margin-bottom: 60px;
}

.paper-meta {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.paper-meta a { color: #999; text-decoration: none; transition: 0.3s; }
.paper-meta a:hover { color: var(--anim-final); }

.paper-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem; 
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 30px;
}

.title-divider {
    width: 50px;
    height: 3px;
    background-color: var(--anim-final);
    margin: 0 auto;
    border-radius: 2px;
}

.paper-content {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.15rem; 
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.paper-content p, .paper-content li {
    font-weight: 450;
    text-indent: 2em; 
    line-height: 1.8;
    margin-bottom: 0.6em;
    min-height: 1.8em; 
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.8em;
    text-align: justify;
    color: #333;
}

.paper-content img {
    text-indent: 0;
    display: block;
    margin: 20px auto;
}

.paper-content blockquote {
    max-width: 750px;
    margin: 2em auto;
    border-left: 3px solid var(--anim-final);
    padding-left: 20px;
    color: var(--text-light);
    font-style: italic;
}

.paper-footer {
    max-width: 800px; 
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.paper-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 20px;
    margin: 0 5px;
    transition: 0.3s;
}
.paper-tags a:hover { background: var(--anim-final); color: white; }

.end-mark {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

#comments {
    max-width: 800px;
    margin: 80px auto 0; 
    padding-top: 50px;
    border-top: 2px dashed #eee; 
}

.comments-title {
    font-size: 1.5rem;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

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

.comment-body {
    margin-bottom: 40px;
    position: relative;
    padding-left: 60px; 
}

.comment-body .avatar {
    position: absolute;
    left: 0;
    top: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #f0f0f0; 
}

.comment-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.fn { 
    font-style: normal;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-right: 10px;
}

.comment-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 100%; 
}

.reply {
    font-size: 0.8rem;
}
.comment-reply-link {
    text-decoration: none;
    color: var(--anim-final);
    font-weight: bold;
}

.comment-respond {
    margin-top: 60px;
    padding: 0; 
    background: transparent; 
}
.comment-reply-title {
    font-size: 1.4rem;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center; 
    letter-spacing: 2px;
}
.comment-reply-title small { display: none; } 
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 25px; 
    max-width: 700px;
    margin: 0 auto;
}
.comment-form label {
    display: none;
}
.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    background-color: transparent; 
    border: none;
    border-bottom: 2px solid #eee; 
    border-radius: 4px 4px 0 0; 
    
    padding: 18px 25px; 
    font-family: 'Lato', sans-serif; 
    font-size: 1rem;
    color: var(--text-main);
    
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #ccc;
    font-family: 'Noto Serif SC', serif; 
    transition: color 0.3s;
}
.comment-form input[type="text"]:hover,
.comment-form textarea:hover {
    background-color: #f7f7f5; 
    border-bottom-color: #d1d1d1;
    padding-left: 30px; 
}
.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    background-color: #f0f0ed; 
    border-bottom-color: var(--anim-final); 
    padding-left: 30px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); 
}
.comment-form input:focus::placeholder,
.comment-form textarea:focus::placeholder {
    color: transparent;
}
.form-submit {
    text-align: center; 
    margin-top: 10px;
}
.form-submit .submit {
    background-color: transparent;
    color: var(--text-light); 
    border: 1px solid #ddd;
    padding: 12px 50px;
    border-radius: 50px; 
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}
.form-submit .submit:hover {
    background-color: var(--anim-final);
    border-color: var(--anim-final);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(131, 138, 123, 0.4); 
}

@media (max-width: 768px) {
    .single-container {
        padding: 80px 15px 40px; 
    }
    .paper-card {
        padding: 40px 20px; 
    }
    .paper-title {
        font-size: 1.8rem;
    }
    .paper-content {
        font-size: 1.05rem; 
        text-align: left; 
    }
    .paper-content p, .paper-content blockquote {
        margin-bottom: 1.5em; 
    }
    .comment-body {
        padding-left: 0; 
    }
    .comment-body .avatar {
        position: relative; 
        width: 35px;
        height: 35px;
        margin-bottom: 10px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
    }
    .fn {
        display: inline-block;
        vertical-align: middle;
    }
}

.comment-metadata a,
.comment-meta a {
    pointer-events: none; 
    cursor: text;
    color: #bbb !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: normal;
    font-family: 'Lato', sans-serif;
}
.comment-awaiting-moderation {
    display: inline-block;
    background: #f0f0f0; /* 改成柔和的灰底 */
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 5px;
}
.comment-edit-link {
    pointer-events: auto !important; 
    color: var(--anim-final) !important;
    margin-left: 10px;
    font-size: 0.8rem;
    border: 1px solid var(--anim-final);
    padding: 0 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.comment-edit-link:hover {
    background: var(--anim-final);
    color: white !important;
}
.comment-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.fn {
    font-style: normal;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-right: 15px; /* 名字和日期拉开一点距离 */
}

.fn a, 
.fn a.url {
    color: var(--text-main) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}
.fn a:hover {
    color: var(--anim-final) !important;
}
.fn a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--anim-final);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1 !important;
}
.fn a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.category-archive-body {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.archive-container {
    width: 100%;
    padding: 120px 20px 100px;
    display: flex;
    justify-content: center;
}

.archive-card {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 70px 80px 60px;
    border-radius: 4px;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.05), 
        0 10px 30px rgba(0,0,0,0.05);
    animation: cardFloatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-meta {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.archive-type {
    position: relative;
}

.archive-type::after {
    content: '·';
    position: absolute;
    right: -12px;
    color: #ccc;
}

.archive-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.archive-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.sort-controller {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sort-label {
    font-size: 0.8rem;
    color: #bbb;
    letter-spacing: 1px;
}

.sort-toggle {
    display: flex;
    position: relative;
    background: #f5f5f3;
    border-radius: 25px;
    padding: 4px;
}

.sort-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    color: #999;
    transition: color 0.3s ease;
}

.sort-btn .btn-icon {
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.sort-btn.active {
    color: var(--text-main);
}

.sort-btn.active .btn-icon {
    opacity: 1;
}

.sort-btn:hover:not(.active) {
    color: #666;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1;
}

.sort-btn[data-order="asc"].active ~ .toggle-slider {
    transform: translateX(100%);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 25px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    
    opacity: 0;
    transform: translateX(-20px);
    animation: itemSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--delay);
}

@keyframes itemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes itemFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.item-hover-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--layer-1) 0%, var(--anim-final) 100%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease;
    z-index: 0;
    border-radius: 4px;
}

.archive-item:hover .item-hover-layer {
    opacity: 1;
    transform: scaleX(1);
}

.item-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding-right: 30px;
    transition: transform 0.4s ease;
}

.archive-item:hover .item-content {
    transform: translateX(10px);
}

.item-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.archive-item:hover .item-title {
    color: #fff;
}

.item-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease 0.1s;
}

.archive-item:hover .item-excerpt {
    color: rgba(255,255,255,0.85);
}

.item-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.archive-item:hover .item-meta {
    transform: translateX(-5px);
}

.item-date {
    font-size: 0.8rem;
    color: #bbb;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.archive-item:hover .item-date {
    color: rgba(255,255,255,0.7);
}

.item-arrow {
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.3s ease, transform 0.4s ease;
}

.archive-item:hover .item-arrow {
    color: #fff;
    transform: translateX(5px);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
}

.archive-pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-pagination a {
    color: var(--text-light);
    background: #f5f5f3;
}

.archive-pagination a:hover {
    background: var(--anim-final);
    color: #fff;
    transform: translateY(-2px);
}

.archive-pagination .current {
    background: var(--text-main);
    color: #fff;
}

.archive-pagination .prev,
.archive-pagination .next {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .archive-container {
        padding: 80px 15px 50px;
    }
    .archive-card {
        padding: 50px 25px 40px;
    }
    .archive-title {
        font-size: 1.8rem;
    }
    .archive-description {
        font-size: 0.9rem;
    }
    .sort-controller {
        justify-content: center;
    }
    .archive-item {
        flex-direction: column;
        padding: 22px 15px;
        gap: 15px;
    }
    .item-content {
        padding-right: 0;
    }
    .archive-item:hover .item-content {
        transform: translateX(0);
    }
    .item-meta {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .archive-item:hover .item-meta {
        transform: translateX(0);
    }
    .item-title {
        font-size: 1.1rem;
    }
    .item-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 380px) {
    .archive-card {
        padding: 40px 18px 30px;
    }
    .archive-title {
        font-size: 1.5rem;
    }
    .sort-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.bookshelf-body {
    background-color: #1a1a1f;
    min-height: 100vh;
    overflow-x: hidden;
}

.bookshelf-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 115, 85, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(85, 107, 139, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a1f 0%, #252529 50%, #1a1a1f 100%);
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bookshelf-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 80px;
}

.bookshelf-header {
    text-align: center;
    margin-bottom: 80px;
    animation: headerFadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes headerFadeIn {
    to { opacity: 1; }
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.deco-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 125, 0.6), transparent);
}

.deco-diamond {
    color: rgba(212, 175, 125, 0.8);
    font-size: 0.8rem;
    animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.bookshelf-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #e8e4dc;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.bookshelf-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: rgba(212, 175, 125, 0.6);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
    perspective: 1000px;
}

.book-card {
    position: relative;
    display: flex;
    height: 380px;
    text-decoration: none;
    color: inherit;
    transform-style: preserve-3d;
    
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    animation: bookLanding 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay);
}

@keyframes bookLanding {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.book-spine {
    width: 20px;
    background: linear-gradient(180deg, #8b7355 0%, #6b5a47 50%, #4a3f35 100%);
    border-radius: 3px 0 0 3px;
    position: relative;
    transform: rotateY(-30deg);
    transform-origin: right center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
}

.spine-pattern {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        180deg,
        rgba(212, 175, 125, 0.3) 0px,
        rgba(212, 175, 125, 0.3) 2px,
        transparent 2px,
        transparent 8px
    );
}

.book-content {
    flex: 1;
    background: linear-gradient(135deg, #2a2a30 0%, #1f1f24 100%);
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 35px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        5px 5px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.corner-deco {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: rgba(212, 175, 125, 0.3);
    border-style: solid;
    border-width: 0;
    transition: all 0.4s ease;
}

.corner-deco.tl { top: 15px; left: 15px; border-top-width: 1px; border-left-width: 1px; }
.corner-deco.tr { top: 15px; right: 15px; border-top-width: 1px; border-right-width: 1px; }
.corner-deco.bl { bottom: 15px; left: 15px; border-bottom-width: 1px; border-left-width: 1px; }
.corner-deco.br { bottom: 15px; right: 15px; border-bottom-width: 1px; border-right-width: 1px; }

.book-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8e4dc;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.book-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.book-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.divider-dot {
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 125, 0.4);
    border-radius: 50%;
    position: relative;
}

.divider-dot::before,
.divider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 125, 0.3), transparent);
}

.divider-dot::before { right: 15px; transform: translateY(-50%); }
.divider-dot::after { left: 15px; transform: translateY(-50%) rotate(180deg); }

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.meta-label {
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

.meta-value {
    color: rgba(212, 175, 125, 0.7);
    font-family: 'Lato', sans-serif;
}

.chapter-title {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 0%, rgba(212, 175, 125, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 0 4px 4px 0;
}

.book-card:hover { z-index: 10; }
.book-card:hover .book-spine { transform: rotateY(-15deg); }
.book-card:hover .book-content {
    transform: translateX(8px) translateY(-5px);
    box-shadow: 
        15px 15px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    border-color: rgba(212, 175, 125, 0.3);
}
.book-card:hover .book-glow { opacity: 1; }
.book-card:hover .book-title { color: #d4af7d; }
.book-card:hover .book-description { color: rgba(255,255,255,0.6); }
.book-card:hover .corner-deco {
    width: 20px;
    height: 20px;
    border-color: rgba(212, 175, 125, 0.5);
}
.book-card:hover .corner-deco.tl { top: 10px; left: 10px; }
.book-card:hover .corner-deco.tr { top: 10px; right: 10px; }
.book-card:hover .corner-deco.bl { bottom: 10px; left: 10px; }
.book-card:hover .corner-deco.br { bottom: 10px; right: 10px; }

@media (max-width: 768px) {
    .bookshelf-container { padding: 80px 20px 60px; }
    .bookshelf-title { font-size: 2rem; letter-spacing: 4px; }
    .bookshelf-subtitle { font-size: 0.75rem; letter-spacing: 3px; }
    .bookshelf-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    .book-card { height: 340px; }
    .book-spine { width: 15px; }
    .book-content { padding: 28px 22px; }
    .book-title { font-size: 1.2rem; }
    .book-description { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .bookshelf-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    .book-card { height: 320px; }
}

.bookshelf-body .global-top-nav .back-home-link,
.manuscript-body .global-top-nav .back-home-link,
.bookshelf-body .global-footer-nav .back-home-link,
.manuscript-body .global-footer-nav .back-home-link {
    color: rgba(212, 175, 125, 0.6);
}

.bookshelf-body .global-top-nav .back-home-link:hover,
.manuscript-body .global-top-nav .back-home-link:hover,
.bookshelf-body .global-footer-nav .back-home-link:hover,
.manuscript-body .global-footer-nav .back-home-link:hover {
    color: #d4af7d;
}

.bookshelf-body .global-footer-nav {
    background-color: #1a1a1f;
    border-top-color: rgba(212, 175, 125, 0.1);
}

.bookshelf-body .global-footer-nav .donate-btn {
    background: transparent;
    border-color: rgba(212, 175, 125, 0.5);
    color: rgba(212, 175, 125, 0.8);
}

.bookshelf-body .global-footer-nav .donate-btn:hover {
    background: rgba(212, 175, 125, 0.2);
    border-color: #d4af7d;
    color: #d4af7d;
}

.manuscript-body {
    background-color: #1a1a1f;
    min-height: 100vh;
    overflow-x: hidden;
}

.manuscript-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 40px 80px;
}

.manuscript-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manuscript-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #2a2a30 0%, #232328 100%);
    border: 1px solid rgba(212, 175, 125, 0.1);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
  
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: manuscriptSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--delay);
  
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes manuscriptSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.manuscript-number {
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 125, 0.08);
    border-right: 1px solid rgba(212, 175, 125, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.number-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(212, 175, 125, 0.4);
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.manuscript-content {
    flex: 1;
    padding: 28px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manuscript-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.manuscript-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(212, 175, 125, 0.7);
    letter-spacing: 1px;
    padding: 4px 12px;
    background: rgba(212, 175, 125, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.cat-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.manuscript-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.time-date {
    letter-spacing: 1px;
}

.time-hour {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 0.75rem;
}

.manuscript-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e8e4dc;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.manuscript-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.manuscript-arrow {
    width: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.arrow-line {
    width: 0;
    height: 1px;
    background: rgba(212, 175, 125, 0.5);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.arrow-head {
    font-size: 1.2rem;
    color: rgba(212, 175, 125, 0.4);
    transition: all 0.4s ease;
    transform: translateX(-10px);
    opacity: 0;
}

.manuscript-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(212, 175, 125, 0.05) 0%, 
        rgba(212, 175, 125, 0.1) 50%,
        rgba(212, 175, 125, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.manuscript-card:hover {
    transform: translateX(8px);
    border-color: rgba(212, 175, 125, 0.25);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 125, 0.1);
}

.manuscript-card:hover .manuscript-hover-bg { opacity: 1; }
.manuscript-card:hover .manuscript-number { background: rgba(212, 175, 125, 0.15); }
.manuscript-card:hover .number-text {
    color: rgba(212, 175, 125, 0.8);
    transform: scale(1.1);
}
.manuscript-card:hover .manuscript-category {
    background: rgba(212, 175, 125, 0.15);
    color: #d4af7d;
}
.manuscript-card:hover .manuscript-title { color: #d4af7d; }
.manuscript-card:hover .manuscript-excerpt { color: rgba(255, 255, 255, 0.6); }
.manuscript-card:hover .arrow-line { width: 25px; }
.manuscript-card:hover .arrow-head {
    transform: translateX(0);
    opacity: 1;
    color: #d4af7d;
}
.manuscript-card:active { transform: translateX(8px) scale(0.99); }

.manuscript-footer-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    opacity: 0;
    animation: footerFadeIn 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes footerFadeIn {
    to { opacity: 1; }
}

.footer-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 125, 0.3), transparent);
}

.footer-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    color: rgba(212, 175, 125, 0.4);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .manuscript-container {
        padding: 80px 20px 60px;
    }
    .manuscript-card {
        flex-direction: column;
    }
    .manuscript-number {
        width: 100%;
        min-width: unset;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 125, 0.1);
        justify-content: flex-start;
    }
    .number-text {
        font-size: 1.2rem;
    }
    .manuscript-content {
        padding: 22px 20px;
    }
    .manuscript-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .manuscript-title {
        font-size: 1.15rem;
    }
    .manuscript-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    .manuscript-arrow {
        width: 100%;
        min-width: unset;
        padding: 15px 20px;
        justify-content: flex-end;
        border-top: 1px solid rgba(212, 175, 125, 0.05);
    }
    .arrow-line {
        width: 20px;
    }
    .arrow-head {
        transform: translateX(0);
        opacity: 0.5;
    }
    .manuscript-card:hover {
        transform: translateX(0) translateY(-3px);
    }
}

@media (max-width: 480px) {
    .manuscript-content {
        padding: 18px 15px;
    }
    .manuscript-title {
        font-size: 1.05rem;
    }
    .manuscript-category {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

.manuscript-body .global-footer-nav {
    background-color: #1a1a1f; 
    border-top-color: rgba(212, 175, 125, 0.1);
}