* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans SC', sans-serif;
        }
        
        :root {
            --primary-color: #333;
            --bg-color: #f3f3f1;
            --text-color: #333;
            --border-color: #e0e0e0;
            --accent-color: #7a8c3c;
            --transition: all 0.3s ease;
            --ccopy: hsla(210deg 50% 12% / 0.04);
        }

       ::-webkit-scrollbar {
           background: transparent;
           width: 8px;
           height: 8px;
       }

       ::-webkit-scrollbar-thumb {
           background: rgba(0,0,0,0.3);
           border-radius: 4px;
       }

       ::-webkit-scrollbar-thumb:hover {
           background: rgba(0,0,0,0.5);
        }
        
        .dark-theme {
            --primary-color: #f0f0f0;
            --bg-color: #1a1a1a;
            --text-color: #f0f0f0;
            --border-color: #444;
            --accent-color: #9cb64a;
            --ccopy: hsl(210deg 51.58% 73.74% / 4%);
        }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: var(--transition);
            overflow-x: hidden;
        }
        
        body.modal-open {
            overflow: hidden;
        }
p {
word-wrap: break-word;
}
.article-footer {
    margin: 2rem 1rem 1rem;
    padding: 1rem;
    background: var(--ccopy);
    border-radius: 24px;
    border: 1px solid hsla(210deg 50% 12% / 0.06);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.article-footer .header {
    font-weight: 500;
    font-size: calc(0.9375rem + 2px);
}

.article-footer .body {
    font-size: calc(0.9375rem - 2px);
}

.article-footer .body p {
    margin: 0.5rem 0;
}

li:not([class]) a:not([class]), 
p:not([class]) a:not([class]), 
table a:not([class]) {
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    border-radius: 0;
    background: linear-gradient(0deg, hsla(210deg 50% 12% / 0.06), hsla(210deg 50% 12% / 0.06)) no-repeat left 100% / 100% 2px;
}

.article-footer .body p a {
    font-weight: unset;
}

a {
    text-decoration: none;
    color: hsla(207deg 90% 54% / 1);
}
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 15px 5%;
display: flex;
align-items: center;
justify-content: space-between;
z-index: 1000;
transition: var(--transition);
background-color: transparent;
}
.post-detail-content {
padding: 10px;
}   
.anime-status.watching {
    background: #4CAF50;
    color: white;
}

.anime-status.completed {
    background: #2196F3;
    color: white;
}

.anime-status.paused {
    background: #FF9800;
    color: white;
}

.anime-status.dropped {
    background: #F44336;
    color: white;
}

.anime-progress,
.anime-rating,
.completed-date {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.completed-date {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
    margin-top: 5px;
}

.anime-notes {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .dark-theme .navbar.scrolled {
        background-color: rgba(26, 26, 26, 0.9);
    }
        
        .logo {
            font-weight: bold;
            font-size: 1.5rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }
        
        .logo img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin: 0 15px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--primary-color);
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .nav-links a:hover {
            color: var(--accent-color);
        }
        
        .nav-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .search-bar {
            background-color: rgba(240, 240, 240, 0.8);
            border-radius: 20px;
            padding: 8px 15px;
            margin-right: 15px;
            display: flex;
            align-items: center;
        }
        
        .dark-theme .search-bar {
            background-color: rgba(60, 60, 60, 0.8);
        }
        
        .search-bar input {
            border: none;
            background: transparent;
            outline: none;
            color: var(--text-color);
            width: 150px;
        }
        
        .search-bar i {
            color: #888;
            margin-right: 5px;
        }
        
        .theme-toggle {
            background: none;
            border: none;
            color: var(--primary-color);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            border-radius: 4px;
        }
        .tools-btn, .login-btn, .logout-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 8px 12px;
            border-radius: 4px;
        }
        
        .theme-toggle:hover, .tools-btn:hover, .login-btn:hover {
            background-color: rgba(0,0,0,0.05);
        }
        
        .login-btn {
            display: flex;
            align-items: center;
        }
        
        .login-btn i {
            margin-right: 5px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .username {
            margin-right: 10px;
            font-weight: 500;
        }
        
        .logout-btn {
            background-color: rgba(255, 0, 0, 0.1);
            color: #ff4444;
        }
        
        .logout-btn:hover {
            background-color: rgba(255, 0, 0, 0.2);
        }
        
        .banner {
            height: 650px;
            background-image: url('index2.png');
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .banner::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(to bottom, transparent, var(--bg-color));
        }
        
        .banner-content {
            text-align: center;
            color: white;
            z-index: 1;
            font-size: 50px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .x {
            font-size: 35px;
        } 

        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 40px 5%;
            display: flex;
            gap: 40px;
        }
        
        .sidebar {
            flex: 1;
            position: sticky;
            top: var(--sideheight);
            height: fit-content;
        }
        
        .main-content {
            flex: 4;
        }
        
        .profile-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }
        
        .dark-theme .profile-card {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .profile-header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .profile-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            margin: 0 auto 15px;
            overflow: hidden;
            border: 3px solid #adb091;
        }
        
        .profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .profile-name {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .profile-line {
            width: 60px;
            height: 3px;
            background-color: var(--accent-color);
            margin: 0 auto 15px;
        }
        
        .profile-bio {
            color: #888;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .social-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
        }
        
        .social-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }
        
        .social-btn:hover {
            background-color: var(--accent-color);
            color: white;
        }
        
        .announcement, .tags {
            margin-top: 20px;
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .announcement-content {
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            background-color: rgba(7, 193, 96, 0.1);
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
        }
        
        .post-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .post-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            transition: var(--transition);
            border: 1px solid var(--border-color);
            cursor: pointer;
        }
        
        .dark-theme .post-card {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .post-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .post-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .post-meta {
            display: flex;
            gap: 15px;
            font-size: 0.8rem;
            color: #888;
        }
        
        .post-excerpt {
            color: var(--text-color);
            line-height: 1.6;
            margin-top: 5px;
        }
        
        .read-more {
            display: inline-block;
            margin-top: 15px;
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 500;
        }
        
        .tools-page, .anime-page {
            display: none;
            padding: 100px 5% 50px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .tools-grid, .anime-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .tool-card, .anime-card {
            background-color: var(--bg-color);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            text-align: center;
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }
        
        .dark-theme .tool-card, .dark-theme .anime-card {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .tool-card:hover, .anime-card:hover {
            transform: translateY(-5px);
        }
        
        .tool-icon {
            font-size: 2rem;
            margin-bottom: 15px;
            color: var(--accent-color);
        }
        
        .anime-cover {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .anime-status {
            display: inline-block;
            padding: 4px 10px;
            background-color: var(--accent-color);
            color: white;
            border-radius: 15px;
            font-size: 0.8rem;
            margin-top: 10px;
        }
        
        .back-btn {
            display: inline-block;
            margin-bottom: 20px;
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 4px;
            background-color: rgba(0,0,0,0.05);
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }
        
        .modal-content {
            background: var(--bg-color);
            margin: 50px auto;
            padding: 30px;
            border-radius: 10px;
            max-width: 1024px;
            box-shadow: 0 5px 30px rgba(0,0,0,0.3);
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 15px;
        }
        .file-download-box {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.file-download-box:hover {
    border-color: #0366d6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
    color: #0366d6;
    min-width: 24px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 600;
    word-break: break-word;
}

.file-type {
    font-size: 12px;
    color: #586069;
    text-transform: uppercase;
    background: #f6f8fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    max-width: fit-content;
}

.download-btn {
    background: #2ea44f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover:not(:disabled) {
    background: #2c974b;
    transform: translateY(-1px);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-btn i {
    font-size: 14px;
}
        .close-modal {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--text-color);
            line-height: 1;
        }
        
        .post-content {
            line-height: 1.8;
            margin-bottom: 30px;
        }
        
        .comments-section {
            margin-top: 30px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }
        
        .comment-form {
            margin: 20px 0;
        }
        
        .comment-form textarea {
            width: 100%;
            height: 100px;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            background: var(--bg-color);
            color: var(--text-color);
            resize: vertical;
        }
        
        .btn-primary {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        
        .comment-item {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .comment-author {
            font-weight: bold;
        }
        
        .comment-time {
            color: #888;
            font-size: 0.9rem;
            margin-left: 10px;
        }
        
        .comment-content {
            margin: 10px 0;
            max-width: 400px;
        }
        
        .comment-reply {
            background: rgba(235, 239, 206, 0.1);
            border-left: 3px solid var(--accent-color);
            padding: 10px;
            margin: 10px 0 10px 20px;
        }
        
        .reply-btn {
            background: none;
            border: none;
            color: var(--accent-color);
            cursor: pointer;
            font-size: 0.9rem;
            margin-top: 5px;
        }
        
        .reply-form {
            margin-top: 10px;
            display: block;
        }
        
        .reply-form textarea {
            width: 100%;
            height: 80px;
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            background: var(--bg-color);
            color: var(--text-color);
            resize: vertical;
        }
        
        .reply-to {
            color: var(--accent-color);
            font-size: 0.9rem;
            margin-left: 10px;
        }
        .fot {
            text-align: center;
            margin: 10px;
            font-size: 14px;
        }
.post-detail {
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.post-detail-title {
font-size: 40px;
margin-bottom: 15px;
}
 .github-ref-box {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 800px;
}

.github-ref-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.repo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.repo-icon {
    color: #6e7781;
    font-size: 1.2rem;
}

.repo-name {
    text-decoration: none;
    font-weight: 600;
}

.repo-name:hover {
    text-decoration: underline;
}

.repo-visibility {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.repo-description {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2b7489;
}

.stars, .forks, .updated {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    font-size: 0.9rem;
}
        @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tools-page, .anime-page {
    animation: fadeIn 0.5s ease-out;
}

.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideInDown 0.4s ease-out;
}
#post-list.fading-out {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(50px);
    opacity: 0;
}

/* 详情页滑入动画 */
.post-detail.slide-in-up {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-detail.slide-in-up.active {
    transform: translateY(0);
    opacity: 1;
}

/* 详情页滑出动画 */
.post-detail.slide-out-down {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* 列表淡入动画 */
#post-list.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 目录样式 */
.toc-container {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 300px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: calc(100vh - 150px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-theme .toc-container {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(122, 140, 60, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toc-content {
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.toc-content.collapsed {
    max-height: 0;
}

.toc-list {
    list-style: none;
    padding: 15px;
    margin: 0;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dropdown-toggle:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}
.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.translate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.translate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.translate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.translated {
    border-left: 3px solid #667eea;
    padding-left: 10px;
    font-style: italic;
    color: #555;
}


.dropdown-menu {
    margin-top: 20px;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(5px);
    visibility: visible;
}

/* 搜索下拉菜单 */
.search-dropdown .dropdown-menu {
    min-width: 320px;
    padding: 20px;
}

.search-box {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
    border-radius: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.search-result-item:hover {
    background-color: var(--hover-color);
    transform: translateX(5px);
}

.search-result-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.search-result-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-tags {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.search-result-item.empty,
.search-result-item.error {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    cursor: default;
}

.search-result-item.empty:hover,
.search-result-item.error:hover {
    background: var(--bg-color);
    transform: none;
}

/* 工具下拉菜单 */
.tools-dropdown .dropdown-menu {
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 12px;
}

.dropdown-item:hover {
    background-color: var(--hover-color);
    padding-left: 25px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.dropdown-item span {
    font-size: 14px;
}

/* 搜索关键词高亮 */
mark {
    background-color: rgba(255, 235, 59, 0.3);
    color: inherit;
    padding: 1px 3px;
    border-radius: 2px;
}

.search-highlight {
    background-color: rgba(255, 235, 59, 0.5);
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        background-color: rgba(255, 235, 59, 0.3);
    }
    50% {
        background-color: rgba(255, 235, 59, 0.7);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-dropdown-toggle {
        font-size: 12px;
    }
    
    .search-dropdown .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        min-width: auto;
        width: calc(100% - 20px);
    }
    
    .tools-dropdown .dropdown-menu {
        position: fixed;
        top: 70px;
        right: 10px;
        min-width: 180px;
    }
    
    .dropdown-menu {
        animation: dropdown-mobile 0.3s ease;
    }
    
    @keyframes dropdown-mobile {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
.toc-list li {
    margin: 8px 0;
    padding-left: 0;
    position: relative;
    line-height: 1.5;
}

.toc-level-1 {
    margin-left: 0;
    font-weight: 600;
    font-size: 1rem;
}

.toc-level-2 {
    margin-left: 15px;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 12px;
}

.toc-level-3 {
    margin-left: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
    border-left: 1px dashed var(--border-color);
    padding-left: 12px;
}

.toc-link {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 6px 10px;
}

.toc-link:hover {
    color: var(--accent-color);
    background: rgba(122, 140, 60, 0.1);
    transform: translateX(5px);
}

.toc-link.active {
    color: var(--accent-color);
    background: rgba(122, 140, 60, 0.15);
    border-left: 3px solid var(--accent-color);
    font-weight: 500;
}

/* 目录滚动条样式 */
.toc-content::-webkit-scrollbar {
    width: 6px;
}

.toc-content::-webkit-scrollbar-track {
    background: transparent;
}

.toc-content::-webkit-scrollbar-thumb {
    background: rgba(122, 140, 60, 0.3);
    border-radius: 3px;
}

.toc-content::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 140, 60, 0.5);
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .toc-container {
        display: none;
    }
}
.anime-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.anime-card:nth-child(1) { animation-delay: 0.1s; }
.anime-card:nth-child(2) { animation-delay: 0.2s; }
.anime-card:nth-child(3) { animation-delay: 0.3s; }
.anime-card:nth-child(4) { animation-delay: 0.4s; }
.anime-card:nth-child(5) { animation-delay: 0.5s; }
.anime-card:nth-child(6) { animation-delay: 0.6s; }

.tool-card {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeIn 0.5s ease-out forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }

.post-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.back-to-list-btn:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.back-to-list-btn {
    margin-bottom: 10px;
    border: none;
    background-color: rgb(92 255 0 / 9%);
    padding: 10px 20px;
    border-radius: 10%;
    color: var(--text-color);
    cursor: pointer;
}

.post-content.markdown-content {
    line-height: 1.8;
    font-size: 16px;
}

.post-content.markdown-content h1,
.post-content.markdown-content h2,
.post-content.markdown-content h3,
.post-content.markdown-content h4 {
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
    color: var(--text-color);
}

.post-content.markdown-content h1 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.3em;
}

.post-content.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

.post-content.markdown-content h3 {
    font-size: 1.3em;
}

.post-content.markdown-content p {
    margin: 1em 0;
}

.post-content.markdown-content code {
    background-color: rgba(122, 140, 60, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.post-content.markdown-content pre {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.post-content.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content.markdown-content blockquote {
    border-left: 4px solid var(--accent-color);
    margin: 1em 0;
    padding-left: 1em;
    color: #666;
    font-style: italic;
}

.post-content.markdown-content ul,
.post-content.markdown-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-content.markdown-content li {
    margin: 0.5em 0;
}

.post-content.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.post-content.markdown-content th,
.post-content.markdown-content td {
    border: 1px solid var(--border-color);
    padding: 0.5em;
    text-align: left;
}

.post-content.markdown-content th {
    background-color: rgba(122, 140, 60, 0.1);
    font-weight: 600;
}

.post-content.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.post-content.markdown-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content.markdown-content a:hover {
    text-decoration: underline;
}

.page-transition-container {
    position: relative;
}

.tools-page,
.anime-page,
.container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tools-page.hiding,
.anime-page.hiding,
.container.hiding {
    opacity: 0;
    transform: translateY(20px);
}

.tools-page.showing,
.anime-page.showing,
.container.showing {
    opacity: 1;
    transform: translateY(0);
}

.comment-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(122, 140, 60, 0.2);
}
.comment-item.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.anime-status.watching {
    background-color: #ff6b6b;
}

.anime-status.finished {
    background-color: #51cf66;
}

.modal {
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}
.anime-modal .modal-content {
    max-width: 1024px;
    overflow-y: auto;
    padding: 15px;
    overflow: hidden;
}

.anime-modal-content {
    padding: 30px;
}

.anime-modal .modal-body {
    padding: 20px;
}

.anime-modal .anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.anime-modal .anime-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.anime-modal .anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.anime-modal .anime-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.anime-modal .anime-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.anime-modal .anime-status {
    display: block;
    text-align: center;
    padding: 8px 0;
    margin: 0 15px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.anime-modal .anime-status.watching {
    background-color: #ff6b6b;
    color: white;
}

.anime-modal .anime-status.finished {
    background-color: #51cf66;
    color: white;
}

.anime-modal .modal-content {
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.anime-modal.showing .modal-content {
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anime-modal.hiding .modal-content {
    animation: slideOutUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anime-modal .anime-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .navbar {
         padding: 10px 5%;
         height: 65px;
    }
    .logo {
         font-size: 1rem;
         white-space: nowrap;
     }
    .search-bar {
         display: none;
     }
    .user-info {
         display: none;
     }
    .theme-toggle, .tools-btn, .login-btn, .logout-btn {
         padding: 8px 4px;
        height: 12px;
    margin-bottom: 7px;
     }
    .profile-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
   }
.section-title {
    font-size: 0.9rem;
}
.h1m {
    font-size: 45px;
}
    .x {
        font-size: 18px;
    }
.section-title {
    padding: 5px;
}
.announcement-content {
    font-size: 0.7rem;
    padding: 5px;
}
.tag {
    font-size: 0.6rem;
}
.post-title {
    font-size: 0.9rem;
}
.post-meta {
    display: flex;
    gap: 5px;
    font-size: 0.6rem;
    margin-bottom: 0px;
    flex-wrap: wrap;
}
.post-excerpt {
    font-size: 11px;
}
.modal-header {
    font-size: 13px;
    margin-bottom: 10px;
}
.modal-content {
    padding: 15px;
}
.post-content.markdown-content {
    font-size: 13px;
}
.nav-links {
    white-space: nowrap;
    font-size: 12px;
}
.theme-toggle, .tools-btn, .login-btn, .logout-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 0px;
}
.nav-links li {
    margin: 0 7px;
}
.sidebar {
    position: static;
}
.container {
    flex-direction: column;
}
.read-more {
font-size: 0.9rem;
}
.banner {
    height: 350px;
}
.comment-form textarea {
    height: 80px;
    font-size: 10px;
}
.comment-time {
    font-size: 11px;
}
.comment-author {
    font-size: 13px;
}
.comment-avatar {
    width: 30px;
    height: 30px;
}
.comment-content {
    font-size: 11px;
}
.reply-btn {
    font-size: 0.7rem;
}
        .fot {
            text-align: center;
            margin-bottom: 10px;
            font-size: 10px;
        }
 .github-ref-box {
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.05rem;
    margin: 1.05rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 800px;
}

.github-ref-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.repo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.repo-icon {
    color: #6e7781;
    font-size: 0.84rem;
}

.repo-name {
    color: #0969da;
    text-decoration: none;
    font-weight: 600;
}

.repo-name:hover {
    text-decoration: underline;
}

.repo-visibility {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 0.15rem 0.6rem;
    font-size: 0.6rem;
    color: #6e7781;
    font-weight: 500;
}

.repo-description {
    color: #57606a;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 10px;
    gap: 0.6rem;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.6rem;
    color: #6e7781;
    margin-top: 0.7rem;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.language-color {
    width: 8.4px;
    height: 8.4px;
    border-radius: 50%;
    background-color: #2b7489;
}

.stars, .forks, .updated {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.meta-icon {
    color: #6e7781;
    font-size: 0.63rem;
}
.post-detail-title {
font-size: 25px;
}
.back-to-list-btn {
    padding: 8px 15px;
    font-size: 10px;
}
}
