/* 极简主题色 */
:root {
    --primary: #2563eb;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #2c3e50;
    --text-secondary: #6c757d;
    --border: #e9ecef;
    --hover-bg: #f1f3f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --bg-secondary: #252525;
        --text: #e0e0e0;
        --text-secondary: #a0a0a0;
        --border: #333333;
        --hover-bg: #2a2a2a;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 2rem 1rem;
}

/* 极简标题 */
h2 {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* 容器 */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 导航网格 - 极简卡片布局 */
#nav-container {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 响应式布局 */
@media (min-width: 900px) {
    #nav-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    #nav-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    #nav-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body {
        padding: 1.5rem 1rem;
    }
    
    h2 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

/* 极简分类区块 */
.category-section {
    background: var(--bg);
}

/* 分类标题 - 极简风格 */
.category-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* 链接列表 */
.category-section ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

/* 链接项 */
.category-section li {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.category-section li:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

/* 链接样式 - 极简 */
.category-section a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease;
}

.category-section a:hover {
    color: var(--primary);
}

/* 移动端触摸优化 */
@media (hover: none) {
    .category-section li:active {
        background: var(--hover-bg);
    }
}

/* 极简滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 页面底部留白 */
body {
    padding-bottom: 4rem;
}

/* 可选：添加subtle动画 */
.category-section {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}