/* 复用全局基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: color 0.3s;
}

/* 夜间模式样式 */
body.dark-mode {
    color: #dfe6e9;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* 呼吸跳动动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0.33px 0 rgba(0, 0, 0, 0.09),
                    0 0 0 0.25px rgba(0, 0, 0, 0.16),
                    0 2px 8px rgba(0, 0, 0, 0.03),
                    0 8px 50px rgba(0, 0, 0, 0.08),
                    0 1px 3px rgba(0, 0, 0, 0.04),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.9);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0.33px 0 rgba(0, 0, 0, 0.09),
                    0 0 0 0.25px rgba(0, 0, 0, 0.16),
                    0 4px 12px rgba(0, 0, 0, 0.05),
                    0 12px 60px rgba(0, 0, 0, 0.12),
                    0 2px 6px rgba(0, 0, 0, 0.06),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.95);
    }
}

/* 夜间模式呼吸跳动 */
@keyframes breatheDark {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0.33px 0 rgba(255, 255, 255, 0.06),
                    0 0 0 0.25px rgba(255, 255, 255, 0.12),
                    0 2px 8px rgba(0, 0, 0, 0.08),
                    0 8px 50px rgba(0, 0, 0, 0.35),
                    0 1px 3px rgba(0, 0, 0, 0.15),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0.33px 0 rgba(255, 255, 255, 0.06),
                    0 0 0 0.25px rgba(255, 255, 255, 0.12),
                    0 4px 12px rgba(0, 0, 0, 0.12),
                    0 12px 60px rgba(0, 0, 0, 0.45),
                    0 2px 6px rgba(0, 0, 0, 0.2),
                    inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
    }
}

/* 通用呼吸跳动类 - 适用于所有内容卡片 */
.breathe-animation {
    animation: breathe 4s ease-in-out infinite;
}

/* 夜间模式呼吸跳动 */
body.dark-mode .breathe-animation, html.dark-mode .breathe-animation {
    animation: breatheDark 4s ease-in-out infinite;
}

/* 归档标题区 */
.archive-header { padding: 60px 0 40px; }
.archive-header h1 { font-size: 2rem; border-left: 5px solid #0984e3; padding-left: 15px; transition: color 0.3s; color: #000000; }

/* 防止页面切换闪屏 */
html {
    background-color: #f8f9fa;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 归档卡片 - iOS 26 最新风格 */
.archive-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.62) 100%
    );
    backdrop-filter: blur(50px) saturate(190%) contrast(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(190%) contrast(1.05);
    box-shadow: 0 0.33px 0 rgba(0, 0, 0, 0.09),
                0 0 0 0.25px rgba(0, 0, 0, 0.16),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 8px 50px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                background 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.archive-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 0.33px 0 rgba(0, 0, 0, 0.09),
                0 0 0 0.25px rgba(0, 0, 0, 0.16),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 12px 60px rgba(0, 0, 0, 0.12),
                0 3px 6px rgba(0, 0, 0, 0.05),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.95);
}

/* 夜间模式归档卡片 */
body.dark-mode .archive-card, html.dark-mode .archive-card {
    background: linear-gradient(
        180deg,
        rgba(28, 28, 28, 0.75) 0%,
        rgba(18, 18, 18, 0.62) 100%
    );
    box-shadow: 0 0.33px 0 rgba(255, 255, 255, 0.07),
                0 0 0 0.25px rgba(255, 255, 255, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08),
                0 8px 50px rgba(0, 0, 0, 0.35),
                0 1px 3px rgba(0, 0, 0, 0.15),
                inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* 归档列表布局 */
.archive-year-section { margin-bottom: 50px; }
.year-title {
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s;
}

.archive-list { list-style: none; border-left: 2px solid #eee; margin-left: 10px; padding-left: 25px; transition: border-color 0.3s; }
.archive-item {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}

/* 时间轴的小圆点 */
.archive-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #0984e3;
    border-radius: 50%;
    transition: background 0.3s, border-color 0.3s;
}

/* 夜间模式时间轴小圆点 */
body.dark-mode .archive-item::before, html.dark-mode .archive-item::before {
    background: #2d3436;
    border-color: #74b9ff;
}

.archive-date {
    font-size: 0.9rem;
    color: #636e72;
    min-width: 60px;
    margin-right: 20px;
    font-family: monospace;
    transition: color 0.3s;
}

.archive-title {
    text-decoration: none;
    color: #2d3436;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.archive-title:hover {
    color: #0984e3;
    text-decoration: underline;
}

/* 页脚 */
footer { text-align: center; padding: 40px 0; color: #b2bec3; border-top: 1px solid #eee; margin-top: 60px; transition: color 0.3s, border-top 0.3s; }

footer a {
    color: #b2bec3;
    text-decoration: none;
}

/* 夜间模式样式 */
body.dark-mode .archive-header h1 { color: #ffffff; }
body.dark-mode .year-title { color: #ffffff; }
body.dark-mode .archive-list { border-color: #2d3436; }
body.dark-mode .archive-date { color: #636e72; }
body.dark-mode .archive-title { color: #dfe6e9; }
body.dark-mode .archive-title:hover { color: #74b9ff; }
body.dark-mode footer { color: #636e72; border-top-color: #2d3436; }
body.dark-mode footer a { color: #636e72; }