
:root {
    --primary: #3399cc;
    --text: #1e293b;
    --bg: #f6f8fc;
    --card: #ffffff;
    --light-gray: #999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 2rem 1rem 4rem; /* 底部留空给时间条 */
    position: relative;
    min-height: 100vh;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #3399cc, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

nav {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2.0rem;
}

nav a {
    color: var(--primary);
    text-decoration: none;
}

section {
    max-width: 1024px;
    margin: 0 auto 2rem auto;
    background: var(--card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.small-h2 {
    font-size: 0.95rem;
}

.links-row {
    /* 设置最大高度，超出后不再增高 */
    max-height: 388px;
    /* 隐藏超出最大高度的内容，不显示滚动条 */
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.links-row a {
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.links-row a:hover {
    text-decoration: underline;
}

/* 底部更新时间条 */
#update-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--light-gray);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .links-row {
        gap: 1rem;
    }
}
