/* 根元素变量定义 - 明亮模式为默认 */
:root {
    /* 颜色方案 */
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #3b82f6;
    --card-bg: #f8fafc;
    --border-color: #e2e8f0;
    
    /* 字体设置 - Noto Sans */
    --main-font: 'Noto Sans', 'Noto Sans SC', sans-serif;
    --heading-font: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

/* 基础样式重置与设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: var(--main-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* 暗黑模式变量 */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --accent-color: #60a5fa;
    --card-bg: #252a41;
    --border-color: #374151;
}

/* 布局组件样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

/* 修复标题样式 - 增加特异性 */
.site-title {
    /* 移除之前的渐变样式 */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    /* 其他样式不变 */
    font-family: var(--heading-font) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    text-align: center;
    padding: 0.5rem 0;
}

.card h2 {
    font-family: var(--heading-font) !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-bottom: 1rem !important;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

/* 响应式设计 */
@media (max-width: 640px) {
    header {
flex-direction: column;
text-align: center;
    }
    
    .nav-buttons {
justify-content: center;
    }
    
    .container {
padding: 0 10px;
    }
    
    body {
padding: 15px;
    }
    
    .site-title {
font-size: 2rem !important;
    }
    
    .card h2 {
font-size: 1.5rem !important;
    }
}

/* 卡片组件 */
.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] .nav-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-btn.active {
    background-color: var(--accent-color);
    color: white;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* 链接样式 */
a.text-link {
    color: var(--accent-color);
    text-decoration: none;
}

a.text-link:hover {
    text-decoration: underline;
}

.cat-paw {
    color: var(--text-color); /* 使用主题文本颜色 */
}

footer{
    margin-top: 3rem;
    padding: 1.5rem 1rem; /* 内边距，让背景有足够空间 */
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease; /* 平滑过渡效果 */
}
        
.copyright {
    /* 背景设置 - 使用半透明色增强层次感 */
    background-color: var(--accent-color);
    color: white; /* 默认字体颜色 */
    padding: 0.75rem 1.5rem;
    border-radius: 8px; /* 圆角效果 */
    display: inline-block; /* 自适应内容宽度 */
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 轻微阴影 */
        }
        
/* 暗黑模式适配 */
[data-theme="dark"] .copyright {
    background-color: #1e40af; /* 深色模式下的背景色 */
    color: #e2e8f0; /* 深色模式下的字体颜色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
        
/* 响应式调整 */
@media (max-width: 640px) {
    .copyright {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 90%; /* 小屏幕下占更多宽度 */
        }
}