/* xh-agi.com - 极简白 v4.0 */
/* 大道至简，让内容自己说话 */

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #eeeeee;
    --link: #0066cc;
    --link-hover: #004499;
    --max-width: 680px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航 */
.nav {
    padding: 32px 0;
    margin-bottom: 48px;
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav__links a:hover {
    color: var(--text);
}

.nav__links a.active {
    color: var(--text);
}

/* 首页 Hero */
.hero {
    text-align: left;
    padding: 24px 0 64px;
}

.hero__name {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero__tagline {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.hero__status {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.hero__status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #52c41a;
    border-radius: 50%;
}

/* 章节 */
.section {
    margin-bottom: 64px;
}

.section__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* 列表卡片 */
.list-card {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.2s ease;
}

.list-card:hover {
    opacity: 0.7;
}

.list-card:last-child {
    border-bottom: none;
}

.list-card__date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.list-card__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.list-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 项目卡片 */
.project-card {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.2s ease;
}

.project-card:hover {
    opacity: 0.7;
}

.project-card__name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.project-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-card__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 页脚 */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 64px;
}

.footer__text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.footer__text a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* 文章页面 */
.article {
    padding: 24px 0 64px;
}

.article__title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article__date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.article__content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

.article__content p {
    margin-bottom: 24px;
}

.article__content h2 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article__content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article__content ul,
.article__content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article__content li {
    margin-bottom: 8px;
}

.article__content blockquote {
    border-left: 3px solid var(--border);
    padding-left: 16px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 24px 0;
}

.article__content a {
    color: var(--link);
    text-decoration: underline;
}

.article__content code {
    background: #f6f6f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.article__content pre {
    background: #f6f6f6;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article__content pre code {
    background: none;
    padding: 0;
}

/* 关于页面 */
.about {
    padding: 24px 0 64px;
}

.about__title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 32px;
}

.about__section {
    margin-bottom: 40px;
}

.about__section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.about__section p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 16px;
}

.about__section a {
    color: var(--link);
    text-decoration: underline;
}

/* 归档列表 */
.archive-year {
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 16px;
    color: var(--text-secondary);
}

.archive-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.2s ease;
}

.archive-item:hover {
    opacity: 0.7;
}

.archive-item__date {
    font-size: 14px;
    color: var(--text-muted);
    width: 100px;
    flex-shrink: 0;
}

.archive-item__title {
    font-size: 16px;
    flex: 1;
}

/* 响应式 */
@media (max-width: 640px) {
    body {
        font-size: 15px;
    }
    
    .nav {
        padding: 24px 0;
        margin-bottom: 32px;
    }
    
    .nav__links {
        gap: 20px;
    }
    
    .hero {
        padding: 16px 0 48px;
    }
    
    .hero__name {
        font-size: 26px;
    }
    
    .section {
        margin-bottom: 48px;
    }
    
    .article__title {
        font-size: 24px;
    }
    
    .about__title {
        font-size: 24px;
    }
}
