/* ---- 基礎重置與變數設定 ---- */
:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-color: #24292e;
    --text-muted: #586069;
    --accent-color: #0366d6;
    --border-color: #e1e4e8;
    --radius: 8px;
}

/* 如果你想支援暗色模式，可以加上這個 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0d1117;
        --card-bg: #161b22;
        --text-color: #c9d1d9;
        --text-muted: #8b949e;
        --accent-color: #58a6ff;
        --border-color: #30363d;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ---- 容器佈局 ---- */
.container {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ---- 標題與更新時間 ---- */
h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.update-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- 區塊卡片風格 ---- */
section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

section h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* ---- 當前狀態清單 ---- */
.current-now ul {
    margin: 0;
    padding-left: 20px;
}

.current-now li {
    margin-bottom: 12px;
}

.current-now li:last-child {
    margin-bottom: 0;
}

/* ---- 過往狀態 (Archives 折疊選單) ---- */
.archives details {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px 16px;
    transition: background-color 0.2s ease;
}

.archives details[open] {
    background-color: var(--card-bg);
}

.archives summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--accent-color);
    outline: none;
    user-select: none;
}

.archives summary:hover {
    text-decoration: underline;
}

.archives details p {
    margin: 12px 0 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}