/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* 个人主页样式 */
.personal-page {
    position: relative;
    min-height: 100vh;
    color: white;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px;
    text-align: center;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slogan {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 文章页面样式 */
.article-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px 60px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.article h1 {
    font-size: 36px;
    color: #2c3e50;
    margin: 0 0 40px 0;
    line-height: 1.3;
    text-align: center;
}

.article-meta {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.article-meta time, .article-meta .update-time {
    color: #95a5a6;
}

.article-meta .update-time {
    opacity: 0.8;
}

.article-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 16px;
}

.article-content p {
    margin: 1.5em 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 4px;
}

.article-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid #3498db;
}

.article-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

.article-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.article-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 1.5em 0 1em;
}

.article-content ul, .article-content ol {
    padding-left: 2em;
    margin: 1em 0;
}

.article-content li {
    margin: 0.5em 0;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1em 2em;
    background: #f9f9f9;
    border-left: 4px solid #e5e5e5;
    color: #666;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* ICP 备案号样式 */
.icp a{
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    font-size: 14px;
    text-align: center;
    color: rgba(255,255,255,0.6);  /* 默认使用浅色（个人主页） */
}

/* 文章页面添加特殊类 */
.icp-dark a {
    color: rgba(0,0,0,0.4);  /* 文章页面使用半透明深色 */
}

/* 错误页面样式 */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.error-container {
    text-align: center;
}

.error-container h1 {
    font-size: 72px;
    color: #333;
    margin-bottom: 20px;
}

.error-message {
    font-size: 24px;
    color: #666;
} 