/* 全局样式 */
:root {
    --primary-color: #007BFF;  /* 深蓝色，保持为较不亮的蓝色 */
    --text-color: #000000;    /* 文字颜色设为黑色 */
    --dark-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.9);  /* 轻微透明白色背景 */
    --border-color: #e4e4e4;  /* 浅灰色边框 */
    --hover-color: rgba(0, 255, 255, 0.15);
    --neon-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);  /* 使用变量控制文字颜色 */
    line-height: 1.6;
    background-image: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 导航栏样式 */
.navbar {
    background-color: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.nav-item.active {
    color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 添加底线效果 */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-item:hover::after {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.8), rgba(0, 255, 255, 0.8));
}

.nav-item.active::after {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.8), rgba(0, 255, 255, 0.8));
}

/* 搜索框样式 */
.search-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 0.5rem;
}

.search-input {
    border: none;
    background: none;
    padding: 0.5rem;
    outline: none;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
}
/* 笔记分类导航样式重设计 */
.notes-nav {
    margin-top: 0px;
    background: linear-gradient(to right, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    padding: 1.5rem 0;
    position: sticky;
    top: 60px;
    z-index: 900;
}

.notes-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 2rem;
}

.note-nav-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    position: relative;
    background: transparent;
}

.note-nav-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.note-nav-item:hover {
    background: transparent;
    transform: translateY(-2px);
}

.note-nav-item:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--primary-color);
}

.note-nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.note-nav-item:hover::after {
    width: 80%;
}

.note-nav-item.active {
    background: transparent;
    color: var(--primary-color);
    border: none;
    box-shadow: none;
}

.note-nav-item.active::after {
    width: 100%;
}

.note-nav-item.active i {
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--primary-color);
}

/* 主要内容区域样式优化 */
.notes-container {
    max-width: 1800px;
    margin: 2rem auto;
    padding: 0 6rem;
    flex: 1;
    margin-bottom: 4rem;
}

/* 笔记网格布局优化 */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

/* 笔记卡片样式优化 */
.note-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
    transform: translateY(-5px);
}

.note-card:hover::before {
    opacity: 1;
}

/* 卡片标题样式 */
.note-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 卡片内容样式 */
.note-card p {
    color: var(--text-color);  /* 使用变量控制文字颜色 */
    line-height: 1.8;
    margin-bottom: 1.8rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

/* 卡片底部样式 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.date {
    color: rgba(0, 0, 0, 0.6);  /* 更改日期文字颜色为半透明黑色 */
    font-size: 0.95rem;
    font-family: 'Rajdhani', sans-serif;
}

.read-more {
    color: var(--primary-color);  /* 使用变量颜色保持一致性 */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 20px;
}

.read-more:hover {
    color: var(--primary-color);  /* 保持悬停时颜色为主色 */
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* 响应式优化 */
@media (max-width: 1800px) {
    .notes-container {
        max-width: 1400px;
        padding: 0 4rem;
    }
}

@media (max-width: 1200px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .notes-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .notes-container {
        padding: 0 2rem;
    }
    .note-card {
        padding: 2rem;
        min-height: 280px;
    }
}

/* 页脚样式优化 */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    background: #ffffff; /* 更改页脚背景为白色 */
    border-top: 1px solid var(--border-color);
    color: var(--text-color);  /* 使用变量颜色控制文字颜色 */
    text-align: center;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer p {
    color: var(--text-color);  /* 使用变量颜色控制文字颜色 */
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer p:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* 确保 .read-more 保持蓝色以增强可点击性 */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Enter按钮样式 */
.enter-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 15px 30px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enter-button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.enter-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.enter-button:hover i {
    transform: translateX(5px);
}
  