/* 字体声明 */
@font-face {
    font-family: 'LXGWWenKaiMono';
    src: url('../fonts/LXGWWenKaiMonoLite-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Dark Mode Variables */
:root[data-theme="dark"] {
    --primary-color: #B13BFF;
    --secondary-color: #471396;
    --text-color: #FFCC00;
    --text-light: #E6E6FA;
    --background-color: #090040;
    --surface-color: #471396;
    --border-color: #B13BFF;
    --hover-color: rgba(177, 59, 255, 0.3);
    --accent-color: rgba(177, 59, 255, 0.2);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow: 0 1px 3px 0 rgba(177, 59, 255, 0.15), 0 1px 2px -1px rgba(177, 59, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(177, 59, 255, 0.2), 0 4px 6px -4px rgba(177, 59, 255, 0.15);
}

/* Dark mode navigation styles */
:root[data-theme="dark"] .main-nav {
    background: rgba(71, 19, 150, 0.9);
    border: 1px solid rgba(177, 59, 255, 0.5);
    box-shadow: 0 8px 32px rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .nav-tab {
    color: #FFCC00;
}

:root[data-theme="dark"] .nav-tab:hover {
    color: #090040;
    background: rgba(177, 59, 255, 0.6);
}

:root[data-theme="dark"] .nav-tab-active {
    color: #090040;
    background: rgba(177, 59, 255, 0.7);
    box-shadow: 0 4px 16px rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .mobile-menu-toggle {
    background: rgba(71, 19, 150, 0.6);
    border: 1px solid rgba(177, 59, 255, 0.4);
}

:root[data-theme="dark"] .mobile-menu-toggle:hover {
    background: rgba(177, 59, 255, 0.3);
    border-color: rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .hamburger {
    background: #FFCC00;
}

:root[data-theme="dark"] .nav-tabs {
    background: rgba(71, 19, 150, 0.95);
    border: 1px solid rgba(177, 59, 255, 0.5);
    box-shadow: 0 8px 32px rgba(177, 59, 255, 0.2);
}

:root[data-theme="dark"] .search-panel {
    background: rgba(71, 19, 150, 0.95);
    border: 1px solid rgba(177, 59, 255, 0.5);
    box-shadow: 0 8px 32px rgba(177, 59, 255, 0.2);
}

:root[data-theme="dark"] .search-input {
    background: #090040;
    border: 1px solid rgba(177, 59, 255, 0.5);
    color: #FFCC00;
}

:root[data-theme="dark"] .search-input::placeholder {
    color: #E6E6FA;
}

:root[data-theme="dark"] .search-result-item {
    background: #090040;
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .search-result-item:hover {
    background: rgba(177, 59, 255, 0.3);
    border-color: #B13BFF;
}

:root[data-theme="dark"] .language-dropdown-menu {
    background: rgba(71, 19, 150, 0.95);
    border: 1px solid rgba(177, 59, 255, 0.5);
    box-shadow: 0 8px 32px rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .language-option {
    color: #FFCC00;
}

:root[data-theme="dark"] .language-option:hover {
    background: rgba(177, 59, 255, 0.6);
    color: #090040;
}

:root[data-theme="dark"] .language-option.active {
    background: rgba(177, 59, 255, 0.7);
    color: #090040;
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(162, 170, 219, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(192, 201, 238, 0.5);
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(137, 138, 196, 0.3);
    width: auto;
    max-width: 90vw;
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    height: auto;
    gap: 1rem;
}

.nav-brand {
    display: none; /* 隐藏品牌标识以保持简洁 */
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border-radius: 50px;
    padding: 0;
    border: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    color: #4A4B73;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.nav-tab:hover {
    color: #FFF2E0;
    background: rgba(137, 138, 196, 0.6);
    transform: translateY(-1px);
}

.nav-tab-active {
    color: #FFF2E0;
    background: rgba(137, 138, 196, 0.7);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.nav-tab-active::after {
    display: none; /* 移除小圆点 */
}

.nav-tab-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    opacity: 0.05;
    border-radius: 8px;
    z-index: -1;
}

/* Navigation animations */
.nav-tab {
    overflow: hidden;
}

.nav-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.nav-tab:hover::before {
    left: 100%;
}

.tab-icon {
    font-size: 1rem;
}

.tab-text {
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 全局button重置，确保theme-toggle不受默认样式影响 */
.nav-tabs button.theme-toggle {
    all: unset;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
}

/* Theme toggle button styles with higher specificity */
.nav-tabs .nav-tab.theme-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    font-family: inherit;
    color: #4A4B73 !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    margin-left: 0.25rem;
    min-width: 80px;
    height: auto;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    /* 强制重置button的所有默认样式 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    overflow: hidden;
}

.nav-tabs .nav-tab.theme-toggle:hover {
    color: #FFF2E0 !important;
    background: rgba(137, 138, 196, 0.6) !important;
    background-color: rgba(137, 138, 196, 0.6) !important;
    background-image: none !important;
    transform: translateY(-1px);
    border: none !important;
    box-shadow: none !important;
}

.nav-tabs .nav-tab.theme-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.nav-tabs .nav-tab.theme-toggle:hover::before {
    left: 100%;
}

.theme-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .nav-tabs .nav-tab.theme-toggle {
    color: #FFCC00 !important;
}

:root[data-theme="dark"] .nav-tabs .nav-tab.theme-toggle:hover {
    color: #090040 !important;
    background: rgba(177, 59, 255, 0.6) !important;
    background-color: rgba(177, 59, 255, 0.6) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}



.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(51, 65, 85, 0.6);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.hamburger {
    width: 14px;
    height: 2px;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Modern Blog Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #898AC4;
    --secondary-color: #A2AADB;
    --text-color: #4A4B73;
    --text-light: #6B6D8F;
    --background-color: #FFF2E0;
    --surface-color: #F5EDD6;
    --border-color: #E8DCC6;
    --hover-color: #C0C9EE;
    --accent-color: #C0C9EE;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow: 0 1px 3px 0 rgba(137, 138, 196, 0.15), 0 1px 2px -1px rgba(137, 138, 196, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(137, 138, 196, 0.2), 0 4px 6px -4px rgba(137, 138, 196, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-family-sans: 'LXGWWenKaiMono', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-family-mono: 'LXGWWenKaiMono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Content Container Styles */
.content-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* New Hero Section Styles */
.hero-new {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-gentle 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 10%;
    left: 10%;
    opacity: 0.3;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 60%;
    right: 15%;
    opacity: 0.25;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, var(--secondary-color), var(--accent-color));
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    animation-delay: 4s;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

.particle-1 { left: 10%; animation-delay: 0s; }
.particle-2 { left: 20%; animation-delay: 3s; }
.particle-3 { left: 60%; animation-delay: 6s; }
.particle-4 { left: 80%; animation-delay: 9s; }
.particle-5 { left: 40%; animation-delay: 12s; }
.particle-6 { left: 70%; animation-delay: 1.5s; }

.hero-content-new {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: pulse-glow 3s ease-in-out infinite;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.hero-title-new {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite;
}

.hero-subtitle-new {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--border-color);
}

.hero-actions-new {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(137, 138, 196, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.button-icon {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--primary-color);
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Animations */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes particle-float {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 0 20px rgba(137, 138, 196, 0.3); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-divider {
        width: 2rem;
        height: 1px;
    }
    
    .hero-actions-new {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .orb-1, .orb-2, .orb-3 {
        filter: blur(40px);
    }
}

/* Additional Responsive Improvements */
@media (max-width: 640px) {
    .hero-new {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-title-new {
        font-size: 2rem;
    }
    
    .hero-subtitle-new {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-preview {
        padding: 1.5rem;
    }
    
    .recent-posts .section-title,
    .content-card .section-title {
        font-size: 2rem;
    }
    
    .gradient-orb {
        filter: blur(30px);
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .orb-3 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-content-new {
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-divider {
        width: 2rem;
        height: 1px;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* About Section Styles */
.about-section {
    padding: 4rem 0;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Recent Posts Section - Updated */
.recent-posts {
    margin-bottom: 4rem;
    margin-top: 2rem;
    position: relative;
}

.recent-posts .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.recent-posts .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-preview {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(137, 138, 196, 0.15);
    border-color: var(--primary-color);
}

.post-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.post-preview:hover::before {
    transform: scaleX(1);
}

.post-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.post-preview:hover::after {
    top: -60%;
    left: -60%;
    opacity: 1;
}

.post-preview-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-preview-meta::before {
    content: '📅';
    font-size: 0.75rem;
}

.post-preview-title {
    margin-bottom: 1rem;
}

.post-preview-title a {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: block;
}

.post-preview-title a:hover {
    color: var(--primary-color);
}

.post-preview-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.post-preview-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(137, 138, 196, 0.1);
    position: relative;
    z-index: 10;
}

.post-preview-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.view-all-posts {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.view-all-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.view-all-button:hover::before {
    left: 100%;
}

.view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(137, 138, 196, 0.3);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Main Content Styles */
.main-content {
    min-height: calc(100vh - 80px);
    padding-top: 6rem; /* 为固定导航留出空间 */
}

/* Blog Post Styles */
.blog-post {
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date::before {
    content: "📅";
    font-size: 1rem;
}

.word-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.word-count::before {
    content: "📄";
    font-size: 1rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.reading-time::before {
    content: "⏱️";
    font-size: 1rem;
}

.meta-divider {
    color: var(--border-color);
    font-weight: bold;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.blog-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Blog Taxonomies Styles */
.blog-post-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-preview-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-preview-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.post-preview-tag:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Blog Content Styles */
.blog-content {
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content h4 {
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--surface-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--primary-color);
    background: var(--surface-color);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin: 1.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-content th,
.blog-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.blog-content th {
    background: var(--surface-color);
    font-weight: 600;
    color: var(--text-color);
}

.blog-content tbody tr:hover {
    background: var(--hover-color);
}

/* Code Styles */
.blog-content code {
    background: rgba(74, 75, 115, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    color: #FFF2E0;
    border: 1px solid rgba(137, 138, 196, 0.5);
    font-weight: 500;
}

.blog-content pre {
    background: rgba(74, 75, 115, 0.95);
    padding: 1.5rem;
    border: 1px solid rgba(137, 138, 196, 0.5);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    box-shadow: var(--shadow);
    position: relative;
    color: #FFF2E0;
}

.blog-content pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* 确保代码块内的code标签不受内联代码样式影响 */
.blog-content pre code {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}



/* Code block */
pre mark {
    display: block;
    color: inherit;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    background: rgba(255, 242, 224, 0.2);
    border-left: 3px solid #FFF2E0;
}

pre table {
    margin: 0px !important;
    width: 100% !important;
    border-collapse: collapse;
    font-size: 0.875rem;
}

pre table tr {
    border-width: 0px !important;
    border-style: none !important;
}

pre table td {
    padding: 0px !important;
}

pre table td:nth-of-type(1) {
    min-width: 0.5rem;
    padding-right: 1rem !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    color: var(--text-light);
    text-align: right;
}

/* Math Styles */
.katex {
    font-size: 1.1em !important;
}

.katex-display {
    margin: 1.5rem 0 !important;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* KaTeX 移动端适配 - 修复tag定位问题 */
@media (max-width: 768px) {
    .katex-display {
        position: relative;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    /* 重置tag样式 - 只显示数字，无任何装饰 */
    .katex-display .katex-html .tag {
        position: absolute !important;
        top: 50% !important;
        left: 100% !important;
        transform: translate(0.5rem, -50%) !important;
        background: none !important;
        color: var(--text-color) !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 0.8em !important;
        white-space: nowrap !important;
        z-index: 10 !important;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
        outline: none !important;
    }
    
    /* 确保公式内容容器作为tag的定位基准 */
    .katex-display .katex-html {
        position: relative !important;
        display: block !important;
        min-width: fit-content !important;
        padding-right: 3rem !important;
    }
    
    /* 公式基础元素需要相对定位 */
    .katex-display .katex-html .base {
        position: relative !important;
        display: inline-block !important;
    }
    
    /* 包含tag的公式需要额外的右边距 */
    .katex-display .katex-html:has(.tag) {
        padding-right: 4rem !important;
    }
}

/* 深色主题下的tag样式 - 只显示数字 */
:root[data-theme="dark"] .katex-display .tag {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFCC00 !important;
    padding: 0 !important;
    outline: none !important;
}

/* Blog Footer Styles */
.blog-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-link {
    display: block;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.nav-next {
    text-align: right;
    grid-column: 2;
}

.nav-direction {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.back-to-blog {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Blog List Styles */
.blog-list {
    max-width: 100%;
    margin: 0 auto;
}

.blog-list-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

.blog-list-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-list-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.blog-post-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-post-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-content {
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-date::before {
    content: "📅";
    font-size: 1rem;
}

.blog-post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-reading-time::before {
    content: "⏱️";
    font-size: 1rem;
}

.blog-post-title {
    margin-bottom: 0.75rem;
}

.blog-post-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-post-tag {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.blog-post-tag:hover {
    background: var(--primary-color);
    color: white;
}

.blog-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(137, 138, 196, 0.1);
    position: relative;
    z-index: 10;
}

.blog-post-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.blog-post-read-more {
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 搜索按钮样式 */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.search-toggle.search-active {
    background: rgba(59, 130, 246, 0.4);
    color: rgba(255, 255, 255, 1);
}

/* 搜索面板样式 */
.search-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 500px;
    max-width: 90vw;
    background: rgba(245, 237, 214, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(137, 138, 196, 0.2);
    z-index: 999;
}

.search-panel.search-panel-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(137, 138, 196, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    font-size: 0.875rem;
    font-weight: 600;
}

.search-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    color: rgba(248, 113, 113, 1);
}

.search-input:not(:placeholder-shown) ~ .search-clear {
    opacity: 1;
    visibility: visible;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.search-placeholder-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.search-result-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    animation: searchResultFadeIn 0.3s ease-out;
}

.search-result-item:hover {
    background: var(--hover-color);
    border-color: #B13BFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(137, 138, 196, 0.15);
}

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

.search-result-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
}

.search-result-excerpt {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

.search-result-date::before {
    content: "📅";
    margin-right: 0.25rem;
}

.search-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(148, 163, 184, 0.7);
}

.search-no-results-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* 搜索高亮样式 */
mark {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.search-results-header {
    padding: 0.75rem 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.search-results-header p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
}

.search-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-link:hover {
    color: inherit;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .blog-navigation,
    .back-to-blog {
        display: none;
    }
    
    .blog-post {
        box-shadow: none;
    }
    
    .blog-content a {
        color: inherit;
        text-decoration: underline;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        grid-column: 1;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-list-title {
        font-size: 2.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-post-title a {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-tabs {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        flex-direction: column;
        background: rgba(245, 237, 214, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 0.75rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(137, 138, 196, 0.2);
        min-width: 200px;
        gap: 0.25rem;
    }
    
    .nav-tabs-open {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-tab {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        border-radius: 15px;
        color: var(--text-color);
    }
    
    .nav-tab:hover {
        background: rgba(137, 138, 196, 0.3);
        color: #FFF2E0;
    }
    
    .nav-tab-active {
        background: rgba(137, 138, 196, 0.4);
        color: #FFF2E0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .tab-text {
        white-space: normal;
    }
    
    .main-content {
        padding-top: 6rem; /* 为固定导航留出空间 */
    }
}

@media (max-width: 480px) {
    .main-nav {
        top: 15px;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
    }
    
    .hamburger {
        width: 12px;
    }
}

/* 椭圆形磨砂玻璃导航栏增强样式 */
.main-nav::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.2), 
        rgba(99, 102, 241, 0.1), 
        rgba(59, 130, 246, 0.2));
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-nav:hover::before {
    opacity: 1;
}

/* 标签页发光效果 */
.nav-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-tab:hover::after {
    opacity: 1;
}

/* 活跃标签页的脉动效果 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
}

.nav-tab-active {
    animation: pulse 3s ease-in-out infinite;
}

/* 滚动时导航栏的变化 */
.main-nav.scrolled {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) scale(0.95);
}

/* 导航栏的悬浮效果 */
.main-nav:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Smooth scrolling for navigation */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-tab:focus,
.nav-tabs .nav-tab.theme-toggle:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mermaid图表样式 */
.mermaid-container {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    overflow: auto;
    border: 1px solid var(--border-color);
}

.mermaid {
    display: flex;
    justify-content: center;
    font-family: var(--font-family-sans);
    font-size: 16px;
}

/* 增强Mermaid图表的样式 */
.mermaid-container {
    position: relative;
    transition: all 0.3s ease;
}

.mermaid-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 为Mermaid SVG设置样式 */
.mermaid svg {
    max-width: 100%;
    height: auto !important;
}

/* 改进线条末端箭头样式 */
.mermaid .arrowMarkerPath {
    stroke-width: 2px !important;
}

/* 调整图表内文字间距 */
.mermaid .messageText {
    dominant-baseline: middle;
    letter-spacing: 0.03em;
}

/* 调整actor底部箭头 */
.mermaid .actor-line {
    stroke: #64748b !important;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .mermaid text {
        font-size: 12px !important;
    }
    
    .mermaid .actor {
        width: 120px !important;
    }
    
    .mermaid-container {
        padding: 10px;
        margin: 20px 0;
    }
}

/* About Page Styles */
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-header {
    margin-bottom: 3rem;
}

.about-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.about-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 500px;
}

.about-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(137, 138, 196, 0.3);
    animation: float 6s ease-in-out infinite;
    overflow: hidden; /* 确保图像不会溢出圆形边界 */
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个区域且保持比例 */
    border-radius: 50%; /* 保持圆形 */
    transition: transform 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05); /* 悬停时轻微放大，增加交互感 */
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
}

.content-card .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.skill-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Timeline Section */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.contact-card .section-title {
    color: white;
}

.contact-card .section-title::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

/* About Page Animations */
.about-intro {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.about-contact {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.about-avatar {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 1.25rem;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .avatar-container {
        width: 150px;
        height: 150px;
    }
    
    .avatar-image {
        width: 150px;
        height: 150px;
    }
    
    
    .avatar-placeholder {
        width: 130px;
        height: 130px;
        font-size: 3rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        left: 0.25rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .avatar-container {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .avatar-image {
        width: 120px;
        height: 120px;
    }
}

/* TOC目录样式 */
.toc-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 0 0 2rem 0;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.toc-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.toc-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

.toc-content {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 1000px; /* 足够大的值以容纳所有内容 */
}

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

.toc-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.toc-content li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.toc-content li li {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.toc-content li li::before {
    content: "◦";
}

.toc-content li li li::before {
    content: "▪";
    font-size: 0.7em;
}

.toc-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    font-size: 0.95rem;
}

.toc-content a:hover {
    color: var(--primary-color);
    background: transparent;
    border-left-color: var(--primary-color);
    padding: 0.125rem 0.25rem 0.125rem 0.5rem;
}

/* 当前可见标题的高亮样式 */
.toc-content a.active {
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
    background-color: rgba(177, 59, 255, 0.2);
}

@media (max-width: 768px) {
    .toc-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .toc-title {
        font-size: 1.1rem;
    }
    
    .toc-content a {
        font-size: 0.9rem;
    }
}

/* 分页样式 */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pagination-prev,
.pagination-next,
.pagination-page {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-page:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-page.current {
    background: #B13BFF;
    color: #090040;
    border-color: #B13BFF;
}

.pagination-ellipsis {
    margin: 0 0.25rem;
    color: var(--text-light);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-total {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

@media (max-width: 640px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-page,
    .pagination-prev,
    .pagination-next {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* 分类页面样式 */
.taxonomy-list {
    padding: 2rem 0;
}

.taxonomy-header {
    margin-bottom: 2rem;
    text-align: center;
}

.taxonomy-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.taxonomy-description {
    color: var(--text-color);
    font-size: 1.1rem;
}

.taxonomy-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.taxonomy-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 2rem;
}

.taxonomy-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.taxonomy-overview .taxonomy-section {
    margin-bottom: 2.5rem;
}

.taxonomy-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.taxonomy-overview .taxonomy-terms,
.taxonomy-list .taxonomy-terms {
    padding: 0.5rem 0;
}

.taxonomy-term {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.taxonomy-term:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
}

.term-name {
    flex: 1;
}

.term-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.taxonomy-term:hover .term-count {
    background: white;
    color: var(--primary-color);
}

/* 单个分类页面样式 */
.taxonomy-single {
    padding: 2rem 0;
}

.taxonomy-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.taxonomy-count,
.taxonomy-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.taxonomy-type::before {
    content: "🏷️";
    margin-right: 0.25rem;
}

.taxonomy-count::before {
    content: "📚";
    margin-right: 0.25rem;
}

.back-link-container {
    margin-top: 2rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .taxonomy-sections {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .taxonomy-sections {
        grid-template-columns: 1fr;
    }
    
    .taxonomy-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 无分类时的样式 */
.no-terms {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.blog-authors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.blog-authors::before {
    content: "👤";
    font-size: 1rem;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.language-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.language-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.language-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--surface-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.language-link:hover::before {
    left: 100%;
}

.language-link:hover {
    background: #B13BFF;
    color: #090040;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Language Dropdown Styles */
.language-switcher-nav {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(192, 201, 238, 0.3);
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(192, 201, 238, 0.3);
    min-width: 80px;
    justify-content: space-between;
}

.language-toggle:hover {
    background: rgba(137, 138, 196, 0.6) !important;
    border-color: var(--primary-color);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(162, 170, 219, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(192, 201, 238, 0.5);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(137, 138, 196, 0.3);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown-menu.dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #4A4B73;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    margin: 0.25rem;
}

.language-option:hover {
    background: rgba(177, 59, 255, 0.6);
    color: #090040;
}

.language-option.active {
    background: rgba(177, 59, 255, 0.7);
    color: #090040;
}

.language-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.8rem;
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-name {
    flex: 1;
}

/* Mobile responsive for language dropdown */
@media (max-width: 768px) {
    .language-switcher-nav {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .language-toggle {
        min-width: 60px;
    }
    
    .language-toggle .tab-text {
        display: none;
    }
    
    .nav-tabs .nav-tab.theme-toggle .tab-text {
        display: none;
    }
    
    .nav-tabs .nav-tab.theme-toggle {
        min-width: 50px;
    }
    
    .language-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 120px;
    }
}

/* Dark mode styles for main content areas */
:root[data-theme="dark"] .hero-new {
    background: var(--background-color);
}

:root[data-theme="dark"] .hero-badge {
    background: rgba(71, 19, 150, 0.9);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .hero-stats {
    background: rgba(71, 19, 150, 0.8);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .cta-button.secondary {
    background: rgba(71, 19, 150, 0.9);
    color: #FFCC00;
    border: 2px solid #B13BFF;
}

:root[data-theme="dark"] .cta-button.secondary:hover {
    background: #B13BFF;
    color: #090040;
}

:root[data-theme="dark"] .post-preview {
    background: rgba(71, 19, 150, 0.8);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .post-preview:hover {
    border-color: #B13BFF;
    box-shadow: 0 20px 40px rgba(177, 59, 255, 0.15);
}

:root[data-theme="dark"] .blog-post-card {
    background: var(--background-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .blog-post-card:hover {
    border-color: #B13BFF;
    box-shadow: 0 10px 15px -3px rgba(177, 59, 255, 0.2);
}

:root[data-theme="dark"] .blog-meta {
    background: rgba(71, 19, 150, 0.8);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .content-card {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .about-section {
    background: var(--surface-color);
}

:root[data-theme="dark"] .skill-item {
    background: var(--background-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .skill-item:hover {
    border-color: #B13BFF;
}

:root[data-theme="dark"] .taxonomy-section {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .taxonomy-term {
    background: rgba(9, 0, 64, 0.8);
    border: 1px solid rgba(177, 59, 255, 0.5);
    color: #B13BFF;
}

:root[data-theme="dark"] .taxonomy-term:hover {
    background: #B13BFF;
    color: #090040;
}

:root[data-theme="dark"] .pagination-prev,
:root[data-theme="dark"] .pagination-next,
:root[data-theme="dark"] .pagination-page {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .pagination-page.current {
    background: #B13BFF;
    color: #090040;
    border-color: #B13BFF;
}

:root[data-theme="dark"] .blog-content blockquote {
    background: var(--surface-color);
    border-left: 4px solid #B13BFF;
}

:root[data-theme="dark"] .blog-content pre {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .blog-content table th {
    background: var(--surface-color);
    color: var(--text-color);
}

:root[data-theme="dark"] .blog-content table td {
    border-bottom: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .blog-content tbody tr:hover {
    background: rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .blog-content code {
    background: rgba(177, 59, 255, 0.2);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .katex-display {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .nav-link {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .nav-link:hover {
    border-color: #B13BFF;
}

:root[data-theme="dark"] .back-link {
    background: #B13BFF;
    color: #090040;
}

:root[data-theme="dark"] .back-link:hover {
    background: #FFCC00;
    color: #090040;
}

:root[data-theme="dark"] .toc-container {
    background: var(--surface-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .toc-content li::before {
    color: #B13BFF;
}

:root[data-theme="dark"] .toc-content a:hover {
    border-left-color: #B13BFF;
}

:root[data-theme="dark"] .toc-content a.active {
    color: #B13BFF;
    border-left-color: #B13BFF;
    background-color: rgba(177, 59, 255, 0.2);
}

:root[data-theme="dark"] .mermaid-container {
    background: var(--background-color);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

/* Update Mermaid theme for dark mode */
:root[data-theme="dark"] .mermaid svg {
    filter: brightness(0.9) contrast(1.1);
}

/* Dark mode specific Mermaid colors */
:root[data-theme="dark"] .mermaid .node rect,
:root[data-theme="dark"] .mermaid .node circle,
:root[data-theme="dark"] .mermaid .node ellipse,
:root[data-theme="dark"] .mermaid .node polygon {
    fill: #471396 !important;
    stroke: #B13BFF !important;
    stroke-width: 2px !important;
}

:root[data-theme="dark"] .mermaid .node .label {
    color: #FFCC00 !important;
    fill: #FFCC00 !important;
}

:root[data-theme="dark"] .mermaid .edgePath .path {
    stroke: #B13BFF !important;
    stroke-width: 2px !important;
}

:root[data-theme="dark"] .mermaid .arrowheadPath {
    fill: #B13BFF !important;
}

:root[data-theme="dark"] .mermaid .edgeLabel {
    background-color: #090040 !important;
    color: #FFCC00 !important;
}

/* Dark theme for language switcher */
:root[data-theme="dark"] .language-switcher {
    background: rgba(71, 19, 150, 0.8);
    border: 1px solid rgba(177, 59, 255, 0.5);
}

:root[data-theme="dark"] .language-label {
    color: var(--dark-text-light);
}

:root[data-theme="dark"] .language-link {
    background: var(--dark-surface-color);
    color: var(--dark-primary-color);
    border-color: var(--dark-border-color);
}

:root[data-theme="dark"] .language-link::before {
    background: linear-gradient(90deg, transparent, rgba(177, 59, 255, 0.3), transparent);
}

:root[data-theme="dark"] .language-link:hover {
    background: #FFCC00;
    color: #090040;
    box-shadow: var(--dark-shadow-lg);
}
