/* 曲悠阁主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-lighter: #334155;
    --light-bg: #ffffff;
    --light-card: #f8fafc;
    --text-white: #f8fafc;
    --text-dark: #1f2937;
    --text-gray: #94a3b8;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --border-dark: #475569;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: var(--light-bg);
    overflow-x: hidden;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(79, 70, 229, 0.5);
}

/* 添加导航项下划线动画 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-icon {
    color: var(--text-gray);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--text-white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-toggle:hover {
    color: var(--text-white);
}

/* 深色背景区域 */
.hero-section {
    background: var(--dark-bg);
    min-height: 65vh; /* 降低高度到65vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem 2rem 6rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 背景图片覆盖层 */
.hero-section.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8); /* 默认透明度 */
    z-index: 1;
}

.hero-section.has-background .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section.has-background .scroll-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* 背景装饰 */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-decoration::before {
    content: '诗';
    position: absolute;
    top: 15%;
    right: 8%;
    font-size: 15rem;
    color: rgba(79, 70, 229, 0.04);
    animation: float 20s ease-in-out infinite;
}

.hero-bg-decoration::after {
    content: '代';
    position: absolute;
    bottom: 15%;
    left: 8%;
    font-size: 12rem;
    color: rgba(124, 58, 237, 0.04);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

/* 中心内容 */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 3rem;
    position: relative;
}

.icon-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* 向下箭头 */
.scroll-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 15;
}

.scroll-indicator:hover {
    color: var(--text-white);
}

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

/* 内容区域 - 浅色主题 */
.content-section {
    background: var(--light-bg);
    position: relative;
    z-index: 10;
    margin-top: -4rem;
    border-radius: 2rem 2rem 0 0;
    padding: 4rem 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start; /* 防止侧边栏被拉伸 */
}

/* 文章卡片 - 浅色主题 */
.posts {
    display: grid;
    gap: 2.5rem;
}

.post-card {
    background: var(--light-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

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

.post-meta i {
    color: var(--primary-color);
}

.post-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt, .post-content {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.post-content {
    color: var(--text-dark);
}

/* 代码高亮 */
.post-content pre,
.post-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.post-content pre:not(.highlight pre):not(figure.highlight pre) {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
}

.post-content code:not(pre code) {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #e11d48;
    font-weight: 500;
}

/* Hexo 内置语法高亮样式 - 暗色主题 */
.post-content figure.highlight,
.post-content .highlight,
figure.highlight,
.highlight {
    background: #1e293b !important;
    border: 1px solid #475569;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

figure.highlight table,
.highlight table {
    margin: 0;
    width: 100%;
    border: none;
}

figure.highlight td,
.highlight td {
    border: none;
    padding: 0;
}

figure.highlight .gutter,
.highlight .gutter {
    background: #0f172a;
    border-right: 1px solid #475569;
    text-align: right;
    padding: 0.75rem 0.5rem;
    user-select: none;
    width: 3rem;
    min-width: 3rem;
}

figure.highlight .gutter .line,
.highlight .gutter .line {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 500;
}

.post-content figure.highlight .code,
.post-content .highlight .code,
figure.highlight .code,
.highlight .code {
    padding: 0.75rem 1rem;
    background: #1e293b !important;
    color: #d4d4d4 !important; /* VS Code 默认文本颜色 */
}

.post-content figure.highlight .code .line,
.post-content .highlight .code .line,
figure.highlight .code .line,
.highlight .code .line {
    line-height: 1.6;
    min-height: 1.3em;
    color: #d4d4d4 !important; /* 确保代码行文本颜色正确 */
}

/* VS Code 深色主题语法高亮 */

/* 关键字 - 蓝色 */
.post-content figure.highlight .keyword,
.post-content .highlight .keyword,
figure.highlight .keyword,
.highlight .keyword {
    color: #569cd6 !important;
    font-weight: normal;
}

/* 字符串 - 橙色 */
.post-content figure.highlight .string,
.post-content .highlight .string,
figure.highlight .string,
.highlight .string {
    color: #ce9178 !important;
}

/* 数字 - 浅绿色 */
.post-content figure.highlight .number,
.post-content .highlight .number,
figure.highlight .number,
.highlight .number {
    color: #b5cea8 !important;
}

/* 注释 - 绿色斜体 */
.post-content figure.highlight .comment,
.post-content .highlight .comment,
figure.highlight .comment,
.highlight .comment {
    color: #6a9955 !important;
    font-style: italic;
}

/* 函数名 - 黄色 */
.post-content figure.highlight .title.function_,
.post-content figure.highlight .function,
.post-content .highlight .title.function_,
.post-content .highlight .function,
figure.highlight .title.function_,
figure.highlight .function,
.highlight .title.function_,
.highlight .function {
    color: #dcdcaa !important;
}

/* 类名 - 浅绿色 */
figure.highlight .title.class_,
figure.highlight .class,
.highlight .title.class_,
.highlight .class {
    color: #4ec9b0;
}

/* 变量和参数 - 浅蓝色 */
figure.highlight .params,
figure.highlight .variable,
.highlight .params,
.highlight .variable {
    color: #9cdcfe;
}

/* 内置变量 - 蓝色 */
figure.highlight .variable.language_,
.highlight .variable.language_ {
    color: #569cd6;
}

/* 属性 - 浅蓝色 */
figure.highlight .property,
figure.highlight .attr,
.highlight .property,
.highlight .attr {
    color: #9cdcfe;
}

/* HTML/XML 标签 - 蓝色 */
figure.highlight .tag,
.highlight .tag {
    color: #569cd6;
}

/* HTML/XML 标签名 - 蓝色 */
figure.highlight .name,
.highlight .name {
    color: #569cd6;
}

/* CSS 选择器 - 黄绿色 */
figure.highlight .selector-class,
figure.highlight .selector-id,
figure.highlight .selector,
.highlight .selector-class,
.highlight .selector-id,
.highlight .selector {
    color: #d7ba7d;
}

/* CSS 属性 - 浅蓝色 */
figure.highlight .attribute,
.highlight .attribute {
    color: #9cdcfe;
}

/* 内置函数和类型 - 浅绿色 */
figure.highlight .built_in,
figure.highlight .builtin,
figure.highlight .type,
.highlight .built_in,
.highlight .builtin,
.highlight .type {
    color: #4ec9b0;
}

/* 字面量和常量 - 蓝色 */
figure.highlight .literal,
figure.highlight .meta,
.highlight .literal,
.highlight .meta {
    color: #569cd6;
}

/* 模板字符串插值 - 黄色 */
figure.highlight .subst,
.highlight .subst {
    color: #dcdcaa;
}

/* 正则表达式 - 红色 */
figure.highlight .regexp,
.highlight .regexp {
    color: #d16969;
}

/* 标点符号 - 默认颜色 */
figure.highlight .punctuation,
.highlight .punctuation {
    color: #d4d4d4;
}

/* 操作符 - 默认颜色 */
figure.highlight .operator,
.highlight .operator {
    color: #d4d4d4;
}

/* 特定语言优化 */
/* JavaScript */
figure.highlight.javascript .title.function_,
.highlight.javascript .title.function_ {
    color: #dcdcaa;
}

figure.highlight.javascript .keyword,
.highlight.javascript .keyword {
    color: #569cd6;
}

/* Python */
figure.highlight.python .keyword,
.highlight.python .keyword {
    color: #569cd6;
}

figure.highlight.python .built_in,
.highlight.python .built_in {
    color: #4ec9b0;
}

figure.highlight.python .title.function_,
.highlight.python .title.function_ {
    color: #dcdcaa;
}

/* HTML */
figure.highlight.html .tag .name,
.highlight.html .tag .name {
    color: #569cd6;
}

figure.highlight.html .attr,
.highlight.html .attr {
    color: #92c5fe;
}

/* CSS */
figure.highlight.css .selector-class,
figure.highlight.css .selector-id,
.highlight.css .selector-class,
.highlight.css .selector-id {
    color: #d7ba7d;
}

figure.highlight.css .attribute,
.highlight.css .attribute {
    color: #9cdcfe;
}

/* JSON */
figure.highlight.json .attr,
.highlight.json .attr {
    color: #9cdcfe;
}

/* 确保所有语法元素都有合适的颜色 */
figure.highlight .code *,
.highlight .code * {
    color: inherit;
}

/* 默认文本 */
figure.highlight .code .line,
.highlight .code .line {
    color: #d4d4d4;
}

/* 处理嵌套的CSS语法 */
figure.highlight .language-css,
.highlight .language-css {
    color: #d4d4d4;
}

/* 特殊字符和符号 */
figure.highlight .symbol,
figure.highlight .char,
.highlight .symbol,
.highlight .char {
    color: #d4d4d4;
}

/* 模板和插值 */
figure.highlight .template-tag,
figure.highlight .template-variable,
.highlight .template-tag,
.highlight .template-variable {
    color: #569cd6;
}

/* 文档类型声明 */
figure.highlight .meta,
figure.highlight .doctype,
.highlight .meta,
.highlight .doctype {
    color: #569cd6;
}

/* 转义字符 */
figure.highlight .escape,
.highlight .escape {
    color: #d7ba7d;
}

/* 代码块头部 - 语言标签和复制按钮 */
figure.highlight .code-header,
.highlight .code-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-bottom: 1px solid #475569;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

figure.highlight .language-label,
.highlight .language-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

figure.highlight .copy-btn,
.highlight .copy-btn {
    background: #374151;
    color: #d1d5db;
    border: 1px solid #4b5563;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

figure.highlight .copy-btn:hover,
.highlight .copy-btn:hover {
    background: #4b5563;
    color: #f9fafb;
    transform: translateY(-1px);
}

figure.highlight .copy-btn.copied,
.highlight .copy-btn.copied {
    background: #059669;
    color: white;
    border-color: #059669;
}

figure.highlight .copy-btn i,
.highlight .copy-btn i {
    font-size: 0.7rem;
}

/* 为有头部的代码块调整内容位置 */
figure.highlight.has-header .gutter,
figure.highlight.has-header .code,
.highlight.has-header .gutter,
.highlight.has-header .code {
    padding-top: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.125rem; }
.post-content h6 { font-size: 1rem; }

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

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

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

.post-content th {
    background: #f8fafc;
    font-weight: 600;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #f1f5f9;
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* 侧边栏 - 浅色主题 */
.sidebar {
    display: grid;
    gap: 2rem;
    position: sticky;
    top: 2rem; /* 距离顶部的间距 */
    max-height: calc(100vh - 4rem); /* 最大高度，避免超出视窗 */
    overflow-y: auto; /* 如果内容过多，允许滚动 */
    align-self: start; /* 防止被主内容区域拉伸 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

/* Webkit内核浏览器的滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-light);
}

.widget {
    background: var(--light-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.widget-title i {
    color: var(--primary-color);
}

.about-card {
    text-align: center;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* 页脚 */
.footer {
    background: var(--light-card);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.beian-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.beian-info p {
    margin: 0.3rem 0;
    line-height: 1.4;
}

.beian-info a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: stretch; /* 在移动端恢复正常对齐 */
    }
    
    .sidebar {
        position: static; /* 在移动端取消sticky定位 */
        max-height: none; /* 移除高度限制 */
        overflow-y: visible; /* 移除滚动 */
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--border-dark);
        padding: 1rem 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0.5rem 2rem;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* 汉堡菜单按钮 */
    .nav-toggle {
        display: block !important;
    }
    
    .hero-section {
        padding: 5rem 1rem 6rem;
    }
    
    .container {
        padding: 0 1rem;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
    }

    .icon-container {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-section {
        margin-top: -3rem;
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .hero-bg-decoration::before,
    .hero-bg-decoration::after {
        font-size: 8rem;
    }
    
    .post-card {
        padding: 2rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* 强制代码高亮样式 - 最高优先级 */
.post-content figure.highlight,
.post-content .highlight {
    background: #1e293b !important;
    color: #d4d4d4 !important;
}

.post-content figure.highlight *,
.post-content .highlight * {
    background: transparent !important;
}

.post-content figure.highlight .code,
.post-content .highlight .code {
    background: #1e293b !important;
    color: #d4d4d4 !important;
}

.post-content figure.highlight .code *,
.post-content .highlight .code * {
    color: inherit !important;
}

.post-content figure.highlight .gutter,
.post-content .highlight .gutter {
    background: #0f172a !important;
}

/* 确保语法元素颜色正确 */
.post-content figure.highlight .keyword,
.post-content .highlight .keyword { color: #569cd6 !important; }

.post-content figure.highlight .string,
.post-content .highlight .string { color: #ce9178 !important; }

.post-content figure.highlight .number,
.post-content .highlight .number { color: #b5cea8 !important; }

.post-content figure.highlight .comment,
.post-content .highlight .comment { color: #6a9955 !important; }

.post-content figure.highlight .title.function_,
.post-content figure.highlight .function,
.post-content .highlight .title.function_,
.post-content .highlight .function { color: #dcdcaa !important; }

.post-content figure.highlight .title.class_,
.post-content figure.highlight .class,
.post-content .highlight .title.class_,
.post-content .highlight .class { color: #4ec9b0 !important; }

.post-content figure.highlight .variable,
.post-content .highlight .variable { color: #9cdcfe !important; }

.post-content figure.highlight .variable.language_,
.post-content .highlight .variable.language_ { color: #569cd6 !important; }

.post-content figure.highlight .property,
.post-content figure.highlight .attr,
.post-content .highlight .property,
.post-content .highlight .attr { color: #9cdcfe !important; }

.post-content figure.highlight .built_in,
.post-content figure.highlight .builtin,
.post-content .highlight .built_in,
.post-content .highlight .builtin { color: #4ec9b0 !important; }

/* HTML标签特殊样式 - 避免与页面标签冲突 */
.post-content figure.highlight .tag,
.post-content .highlight .tag { 
    color: #569cd6 !important; 
    background: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
    border-radius: 0 !important; 
    font-size: inherit !important; 
    font-weight: inherit !important; 
    transform: none !important; 
    transition: none !important; 
}

/* HTML标签名特殊样式 - 避免与其他元素冲突 */
.post-content figure.highlight .name,
.post-content .highlight .name { 
    color: #569cd6 !important; 
    background: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
    border-radius: 0 !important; 
    font-size: inherit !important; 
    font-weight: inherit !important; 
}