*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --navy-primary: #1e3a5f;
    --navy-secondary: #2d4a6f;
    --navy-accent: #3d5a8f;
    --navy-dark: #0f2440;
    
    --slate-primary: #374151;
    --slate-secondary: #4b5563;
    --slate-accent: #6b7280;
    --slate-dark: #1f2937;
    
    --forest-primary: #1e4d3d;
    --forest-secondary: #2d6b57;
    --forest-accent: #3d8a71;
    --forest-dark: #0f2f25;
    
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    
    --border-color: #e2e8f0;
    --border-light: #f7fafc;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(30, 58, 95, 0.15);
    
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary-color); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

.theme-navy {
    --primary-color: var(--navy-primary);
    --primary-secondary: var(--navy-secondary);
    --primary-accent: var(--navy-accent);
    --primary-dark: var(--navy-dark);
}

.theme-slate {
    --primary-color: var(--slate-primary);
    --primary-secondary: var(--slate-secondary);
    --primary-accent: var(--slate-accent);
    --primary-dark: var(--slate-dark);
}

.theme-forest {
    --primary-color: var(--forest-primary);
    --primary-secondary: var(--forest-secondary);
    --primary-accent: var(--forest-accent);
    --primary-dark: var(--forest-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8,
.col-lg-4,
.col-md-12 {
    padding: 0 15px;
}

.col-lg-8 {
    width: 66.6667%;
}

.col-lg-4 {
    width: 33.3333%;
}

.col-md-12 {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

img:hover {
    transform: scale(1.02);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--primary-accent);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-fast);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    transition: padding var(--transition-normal);
}

.site-header.scrolled .header-content {
    padding: 0.75rem 0;
}

.site-branding {
    flex-shrink: 0;
}

#logo {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

#logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left var(--transition-slow);
}

#logo:hover::after {
    left: 100%;
}

#logo img {
    max-height: 50px;
    vertical-align: middle;
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.main-navigation {
    flex: 1;
    margin: 0 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.375rem;
    transition: transform var(--transition-fast);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 1px;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

#primary-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all var(--transition-normal);
}

#primary-menu a:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.05;
}

#primary-menu a:hover,
#primary-menu .current-menu-item a {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.header-search {
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.search-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-close svg {
    width: 28px;
    height: 28px;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    text-align: center;
    transform: translateY(-20px);
    transition: transform var(--transition-normal);
}

#search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.3);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1rem;
    flex-shrink: 0;
}

#search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.25rem;
    color: white;
    padding: 0.5rem 0;
}

#search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-hints {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hint-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.hint-tags a {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hint-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.search-submit {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-secondary));
    color: white;
    border: none;
    padding: 0.875rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.search-results {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.search-results li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.search-results li:hover {
    background-color: var(--bg-secondary);
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color var(--transition-fast);
}

.search-results a:hover {
    color: var(--primary-color);
}

.search-results time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.site-body {
    padding: 2rem 0;
}

#main {
    min-height: calc(100vh - 300px);
}

.post {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-accent));
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.post:hover::before {
    transform: scaleY(1);
}

.post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.post-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-sans);
    position: relative;
}

.post-title a {
    color: var(--text-primary);
    display: inline-block;
}

.post-title a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.post-title a:hover::after {
    width: 100%;
}

.post-title a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all var(--transition-fast);
}

.meta-item:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.meta-item svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.meta-item:hover svg {
    transform: rotate(10deg);
}

.post-content-wrapper {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-thumbnail a:hover img {
    transform: scale(1.05);
}

.post-excerpt {
    flex: 1;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.post-excerpt p {
    margin: 0 0 1rem;
    text-indent: 2em;
}

.read-more {
    margin-top: 1rem;
    text-align: right;
}

.read-more a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.read-more a:hover {
    background-color: var(--primary-secondary);
    transform: translateX(5px);
    color: white;
}

.read-more a::after {
    margin-left: 0.25rem;
}

.post-content {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.post-content p {
    margin: 0 0 1.25rem;
    text-indent: 2em;
}

.post-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    font-family: var(--font-sans);
    position: relative;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--primary-accent);
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    font-family: var(--font-sans);
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.post-content h4,
.post-content h5,
.post-content h6 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-sans);
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}

.post-content li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 0.5rem;
}

.post-content li::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.post-content code {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.875em;
    color: var(--primary-dark);
    transition: all var(--transition-fast);
}

.post-content code:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-content pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: var(--primary-dark);
    border-radius: 12px;
    overflow-x: auto;
    position: relative;
}

.post-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-accent), var(--primary-color));
    border-radius: 12px 12px 0 0;
}

.post-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

.post-content hr {
    margin: 2.5rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.post-content a {
    border-bottom: 2px solid transparent;
    padding-bottom: 0.125rem;
    position: relative;
}

.post-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.post-content a:hover::after {
    width: 100%;
}

.post-tags {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.tags-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    line-height: 1.4;
    text-decoration: none;
    border-bottom: none;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
}

.post-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags-inline a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags-inline a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.post-meta-row .read-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.post-meta-row .read-more:hover {
    background: var(--primary-secondary);
    transform: translateY(-2px);
}

.banner-top,
.banner-bottom {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.banner-label {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.banner-link {
    display: block;
    width: 100%;
    max-width: 728px;
}

.banner-link img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.featured-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.featured-post {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.featured-post:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.featured-title {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-meta {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.archive-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.archive-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 40%;
    height: 3px;
    background-color: var(--primary-accent);
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.page-navigator {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.page-navigator li {
    display: inline-block;
}

.page-navigator a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.page-navigator a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 95, 0.1), transparent);
    transition: left var(--transition-slow);
}

.page-navigator a:hover::before {
    left: 100%;
}

.page-navigator a:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.page-navigator .current a {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-secondary));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

#sidebar {
    padding-left: 2rem;
}

.widget {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.widget:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    font-family: var(--font-sans);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 2px;
    background-color: var(--primary-color);
}

.widget-title svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.widget:hover .widget-title svg {
    transform: rotate(15deg);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
    position: relative;
    padding-left: 1rem;
}

.widget li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-fast);
}

.widget li:hover::before {
    transform: scale(2);
    background-color: var(--primary-accent);
}

.widget li a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-block;
}

.widget li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.widget-recent-comments p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    padding: 0.375rem 1rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    position: relative;
}

.tag-cloud a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tag-cloud a:hover::before {
    border-color: rgba(255,255,255,0.3);
}

.author-info {
    text-align: center;
}

.author-avatar {
    margin-bottom: 0.75rem;
    position: relative;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
}

.author-info:hover .author-avatar img {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.author-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #10b981;
    border: 3px solid white;
}

.author-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.comments-area {
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    font-family: var(--font-sans);
    position: relative;
    padding-left: 1rem;
}

.comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
}

.comment-list li:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.comment-list li:hover .comment-author .avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.comment-author cite {
    font-weight: 600;
    font-style: normal;
    font-family: var(--font-sans);
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-reply {
    margin-top: 0.75rem;
    text-align: right;
}

.comment-reply a {
    font-size: 0.8125rem;
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.comment-reply a:hover {
    background-color: var(--primary-color);
    color: white;
}

.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    font-family: var(--font-sans);
}

#comment-form .form-group {
    margin-bottom: 1.25rem;
}

#comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

#comment-form label.required::after {
    content: " *";
    color: #e53e3e;
}

#comment-form input,
#comment-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    background-color: var(--bg-primary);
}

#comment-form input:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

#comment-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    margin-top: 1.25rem;
}

.form-submit .submit {
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-secondary));
    color: white;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit .submit:active {
    transform: translateY(0);
}

.comments-closed {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateX(-5px);
}

.nav-next:hover {
    transform: translateX(5px);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-weight: 500;
    position: relative;
}

.post-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.post-navigation a:hover::after {
    width: 100%;
}

.site-footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
}

.footer-content {
    padding: 3rem 0;
}

.footer-widgets {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widgets .widget {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
}

.footer-widgets .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.footer-about h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: white;
    font-family: var(--font-sans);
}

.footer-about p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links ul,
.footer-rss ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-rss li {
    margin: 0.375rem 0;
}

.footer-links a,
.footer-rss a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
}
    padding-left: 1rem;
}

.footer-links a::before,
.footer-rss a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover,
.footer-rss a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.footer-links a:hover::before,
.footer-rss a:hover::before {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-rss-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-rss-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-rss-icons a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-rss-icons svg {
    width: 14px;
    height: 14px;
}

.tags-cloud {
    margin-top: 2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-primary);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tag-count {
    font-size: 0.75rem;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.tag-item:hover .tag-count {
    background-color: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.recent-posts {
    margin-top: 2rem;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-list a:hover {
    color: var(--primary-color);
}

.post-list time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.archive-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.categories-list {
    margin-top: 2rem;
}

.category-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.category-title a:hover {
    color: var(--primary-color);
}

.category-count {
    font-size: 0.875rem;
    font-weight: normal;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.category-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-posts li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.category-posts li:hover {
    background-color: var(--bg-secondary);
}

.category-posts li:last-child {
    border-bottom: none;
}

.category-posts a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.category-posts a:hover {
    color: var(--primary-color);
}

.category-posts time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.category-posts .view-more {
    background-color: transparent;
    padding-top: 0.5rem;
}

.category-posts .view-more a {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.no-posts {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.archive-list {
    margin-top: 2rem;
}

.post-archive {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-archive li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: background-color var(--transition-fast);
}

.post-archive li:hover {
    background-color: var(--bg-secondary);
}

.post-archive li:last-child {
    border-bottom: none;
}

.post-archive time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    flex-shrink: 0;
    width: 100px;
}

.post-archive a {
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
    transition: color var(--transition-fast);
}

.post-archive a:hover {
    color: var(--primary-color);
}

.post-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.error-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    animation: float 3s ease-in-out infinite;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    font-family: var(--font-sans);
}

.error-message {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.error-link {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-secondary));
    color: white;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.error-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.back-to-top::before {
    content: '↑';
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 992px) {
    .col-lg-8,
    .col-lg-4 {
        width: 100%;
    }
    
    #sidebar {
        padding-left: 15px;
        margin-top: 2rem;
    }
    
    .footer-widgets {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        margin: 0;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #primary-menu {
        display: none;
        flex-direction: column;
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    #primary-menu.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }
    
    #primary-menu li {
        margin: 0;
    }
    
    #primary-menu a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .header-search {
        display: none;
    }
    
    .post {
        padding: 1.25rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content p {
        text-indent: 1.5em;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Hide ThemeSwitch language switch button in Serene theme */
.lang-switch {
    display: none !important;
}