:root {
    --primary-color: #0A192F;
    --accent-color: #64FFDA;
    --text-color: #CCD6F6;
    --secondary-text: #8892B0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: 
        linear-gradient(15deg, #0a0a2a 20%, #1a1a4e 80%),
        linear-gradient(-15deg, #2a0a2a 20%, #4e1a4e 80%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 添加动态背景层 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 150vw;
    height: 150vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    animation: nebula 60s infinite linear;
}

body::before {
    background: 
        radial-gradient(circle at 70% 20%, #4fc3f7 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, #9c27b0 0%, transparent 50%);
    transform: rotate(15deg);
}

body::after {
    background: 
        radial-gradient(circle at 20% 70%, #00bcd4 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, #e91e63 0%, transparent 50%);
    transform: rotate(-15deg);
    animation-delay: -30s;
}

@keyframes nebula {
    0% { transform: rotate(0deg) translateX(0); }
    100% { transform: rotate(360deg) translateX(50px); }
}

.site-header {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.header-content h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, #4fc3f7, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #88c9ff;
    margin-top: 1rem;
    opacity: 0.9;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-card {
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(
            135deg,
            rgba(79, 195, 247, 0.05) 0%,
            rgba(156, 39, 176, 0.05) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    padding-left: 6rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
    position: relative;
    z-index: 1;
}

.nav-card h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #ffffff;
}

.nav-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.card-arrow {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-card:hover .card-arrow {
    opacity: 1;
    transform: translate(10px, -50%);
}

.nav-card::before {
    background: rgba(150, 150, 150, 0.15); /* 中性灰调 */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-card[href*="novel"]::before {
    background: rgba(79, 195, 247, 0.15); /* 降低饱和度 */
    border-color: rgba(79, 195, 247, 0.2);
}

.nav-card[href*="universe"]::before {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.2);
}

.nav-card:hover::before {
    filter: brightness(1.1);
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: rgba(100, 255, 218, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.hexagon-shape {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-color), #00BFFF);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.module-card:hover .hexagon-shape {
    transform: rotate(15deg);
}

.module-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.module-card p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* 新增全局按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), #00BFFF);
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* 新增页脚样式 */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--secondary-text);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        padding: 2rem 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .grid-container {
        padding: 2rem 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .nav-card {
        padding-left: 4.5rem;
    }
    
    .nav-card::before {
        width: 36px;
        height: 36px;
        left: 1rem;
    }
}

/* 新增评论样式 */
.comments-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.comments-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.comments-section form {
    display: flex;
    flex-direction: column;
}

.comments-section input,
.comments-section textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.comments-section button {
    align-self: flex-end;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comments-section button:hover {
    background: #00BFFF;
}

.reading-settings {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    background: var(--primary-color);
    padding: 0.5rem;
    border-radius: 4px;
}

.font-controls {
    background: rgba(0, 229, 255, 0.1) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 20px;
    padding: 0.3rem;
}

.font-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

.font-controls button:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: scale(1.1);
}

/* 昼夜切换图标 */
#theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

/* 使用伪元素添加emoji */
#theme-toggle::after {
    content: "🌙"; /* 默认月亮图标 */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
}

/* 白天模式显示太阳图标 */
body.day-mode #theme-toggle::after {
    content: "☀️";
}

/* 添加动画效果 */
#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: rgba(0, 229, 255, 0.1);
}

/* 白天模式颜色调整 */
body.day-mode #theme-toggle {
    border-color: rgba(0, 191, 255, 0.3);
}
body.day-mode #theme-toggle:hover {
    background: rgba(0, 191, 255, 0.1);
}

/* 白天模式适配 */
body.day-mode .font-controls {
    background: rgba(0, 191, 255, 0.1) !important;
    border-color: rgba(0, 191, 255, 0.3) !important;
}

body.day-mode .font-controls button {
    color: #3182CE;
    border-color: rgba(0, 191, 255, 0.3);
}

body.day-mode #theme-toggle {
    background-image: url('data:image/svg+xml;utf8,<svg ... fill="%233182CE" ...></svg>');
}

/* 新增下载按钮样式 */
.download-btn {
    color: #88c9ff !important; /* 使用更柔和的蓝色 */
    text-decoration: none !important; /* 移除下划线 */
    border: 1px solid rgba(136, 201, 255, 0.3); /* 同步边框颜色 */
    background: rgba(100, 255, 218, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    color: #a8d8ff !important; /* 悬停时变亮 */
    text-decoration: none !important;
    background: rgba(100, 255, 218, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.1);
    opacity: 1;
}

/* 更新下载按钮前的图标 */
.download-btn::before {
    content: "⬇️"; /* 恢复下载箭头 */
    filter: none; /* 移除发光效果 */
    vertical-align: 0; /* 重置对齐 */
}

.media-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.media-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右平分 */
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.hexagon-media {
    content: unset !important;
    filter: none !important;
    display: none;
}

.page {
    transition: opacity 0.3s ease;
}

.comment {
    transition: transform 0.3s;
}

.comment:hover {
    transform: translateX(10px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .media-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .lyrics-container {
        height: 150px;
    }
}

/* 添加在现有样式之后 */

.chapter-index {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.chapter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter h2 {
    color: #00E5FF; /* 使用宇宙页面的强调色 */
    font-size: 1.6rem; /* 增大字号 */
    font-weight: 600; /* 加粗 */
    margin-bottom: 1.2rem;
    letter-spacing: -0.3px; /* 优化字间距 */
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.2); /* 添加微光效 */
}

.chapter h2::before {
    content: none !important;
}

.chapter ul {
    list-style: none;
    padding: 0;
}

.chapter li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.chapter li > a:first-child {
    flex: 1;
    color: #81d4fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter li > a:first-child:hover {
    color: #29b6f6;
}

.download-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(136, 201, 255, 0.3);
    border-radius: 20px;
    color: #88c9ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(100, 255, 218, 0.25);
    color: #a8d8ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.1);
}

.reading-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.reading-container h2 {
    color: #64FFDA !important; /* 确保夜间模式使用青蓝色 */
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 2.2rem;
    margin: 2rem 0 1.5rem;
    position: relative;
}

.reading-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.navigation-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    background: rgba(10, 25, 47, 0.9);
    border-radius: 8px;
}

.page-controls {
    display: flex;
    gap: 1rem;
    order: 1;
}

.meta-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.navigation-controls button {
    min-width: 100px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

/* 修改白天模式背景 */
body.day-mode {
    --primary-color: #f8fafc; /* 更明亮的背景色 */
    background: 
        linear-gradient(15deg, #f0f4f8 20%, #e2e8f0 80%),
        linear-gradient(-15deg, #e2e8f0 20%, #cbd5e1 80%) !important;
    --text-color: #2D3748; /* 深灰色 */
    --secondary-text: #4A5568; /* 稍浅的灰色 */
    color: var(--text-color) !important;
}

/* 调整动态星云效果的白天模式透明度 */
body.day-mode::before,
body.day-mode::after {
    opacity: 0.05; /* 降低动态背景可见度 */
}

/* 调整阅读容器背景 */
.reading-container.day-mode {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 调整评论区域背景 */
.comments-section.day-mode {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* 调整导航控制栏 */
.navigation-controls.day-mode {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* 调整输入框样式 */
body.day-mode .comments-section input,
body.day-mode .comments-section textarea {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 调整卡片投影 */
body.day-mode .module-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 调整强调色相关元素 */
body.day-mode .btn:hover {
    background: #1e6feb !important;
}

/* 调整章节索引边框 */
body.day-mode .chapter-index > .chapter:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* 更新宇宙页面专属样式 */
.universe-container {
    background: 
        linear-gradient(15deg, #0a0a2a 20%, #1a1a4e 80%),
        linear-gradient(-15deg, #2a0a2a 20%, #4e1a4e 80%) !important;
}

.universe-header {
    text-align: center;
    padding: 4rem 1rem 2rem !important;
}

.universe-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    background: linear-gradient(120deg, #00E5FF, #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* 重构卡片布局 */
.universe-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 0;
}

/* 扁平化卡片设计 */
.universe-card {
    padding-left: 4.5rem !important;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
}

.universe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 优化内容排版 */
.card-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 0.8rem;
}

.card-content p {
    color: var(--secondary-text) !important;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 添加分割线 */
.chapter-index > .chapter:not(:last-child) {
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .universe-header {
        padding: 3rem 1rem 1.5rem !important;
    }
    
    .universe-header h1 {
        font-size: 2rem;
    }
    
    .universe-card {
        padding-left: 3.5rem !important;
    }
    
    .universe-card::before {
        left: 1rem;
        font-size: 1.2rem;
    }
    
    .card-content h2 {
        font-size: 1.3rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
}

/* 调整宇宙页面主容器 */
.universe-container .content-container {
    max-width: 800px;
    padding: 2rem 1.5rem;
}

/* 添加Emoji图标 */
.universe-card::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* 不同栏目的图标 */
a[href*="music"]::before { content: "🎵"; }
a[href*="video"]::before { content: "🎥"; }
a[href*="references"]::before { content: "📚"; }
a[href*="worldsetting"]::before { content: "🌌"; }

/* 歌词容器样式 */
.lyrics-container {
    height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    line-height: 1.8;
}

/* 左侧音频内容 */
.audio-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 添加歌词占位符样式 */
.lyric-placeholder {
    color: rgba(136, 201, 255, 0.4); /* 使用副标题颜色的50%透明度 */
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* 当有实际歌词时隐藏占位符 */
.lyrics-container:not(:empty) .lyric-placeholder {
    display: none;
}

/* 新增逐句对照样式 */
.lyric-pair {
    margin: 0.8rem 0;
}

.lyric-line {
    word-break: break-word;
    hyphens: auto;
}

.lyric-line.en {
    max-width: 85%;
}

.lyric-line.cn {
    color: rgba(136, 201, 255, 0.9);
    margin-left: 1.2rem;
    position: relative;
}

/* 添加中文译文标识 */
.lyric-line.cn::before {
    content: "⇣";
    position: absolute;
    left: -1.2rem;
    opacity: 0.5;
    font-size: 0.8em;
}

/* 调整分隔线间距 */
.lyric-spacer {
    margin: 1.5rem 0 1rem;
}

@media (max-width: 768px) {
    .chapter h2 {
        font-size: 1.4rem;
        padding-bottom: 0.6rem;
    }
}

/* 二级章节样式 */
.chapter .chapter {
    border-bottom: none !important;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

/* 章节标题新样式 */
.chapter > h2 {
    font-family: 'Noto Serif SC', serif; /* 使用衬线字体 */
    font-size: 2rem;
    color: #00BFFF; /* 更明亮的蓝色 */
    text-shadow: 0 2px 4px rgba(0,191,255,0.3);
    border-bottom: 3px solid rgba(0,191,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* 小节标题样式 */
.chapter li > a {
    font-family: 'Inter', sans-serif; /* 保持无衬线字体 */
    font-size: 1.1rem;
    color: #88C9FF !important; /* 浅蓝色 */
    font-weight: 500;
    padding-left: 1.5rem;
    position: relative;
}

/* 添加小节标题装饰线 */
.chapter li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #00BFFF;
    border-radius: 50%;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .chapter > h2 {
        font-size: 1.6rem;
    }
    .chapter li > a {
        font-size: 1rem;
    }
}

/* 添加聚焦状态 */
#theme-toggle:focus {
    outline: 2px solid rgba(0, 229, 255, 0.5);
    outline-offset: 2px;
}

/* 修改白天模式文字颜色 */
body.day-mode {
    --text-color: #2D3748; /* 深灰色 */
    --secondary-text: #4A5568; /* 稍浅的灰色 */
    color: var(--text-color) !important;
}

/* 调整导航卡片文字颜色 */
body.day-mode .nav-card {
    color: #2D3748 !important;
}

body.day-mode .nav-card h2 {
    color: #1A202C !important; /* 更深的标题颜色 */
}

body.day-mode .nav-card p {
    color: rgba(45, 55, 72, 0.8) !important; /* 带透明度的正文颜色 */
}

/* 调整章节索引颜色 */
body.day-mode .chapter {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.day-mode .chapter h2 {
    color: #3182CE !important; /* 深蓝色标题 */
    border-bottom-color: rgba(49, 130, 206, 0.3) !important;
}

body.day-mode .chapter a {
    color: #2B6CB0 !important; /* 深蓝色链接 */
}

body.day-mode .chapter a:hover {
    color: #2C5282 !important; /* 更深的悬停色 */
}

/* 调整评论区域文字颜色 */
body.day-mode .comments-section {
    color: #4A5568 !important;
}

body.day-mode .comments-section h3 {
    color: #3182CE !important;
}

/* 调整输入框文字颜色 */
body.day-mode .comments-section input,
body.day-mode .comments-section textarea {
    color: #2D3748 !important;
}

/* 调整歌词颜色 */
body.day-mode .lyric-line {
    color: #4A5568 !important;
}

body.day-mode .lyric-line.cn {
    color: #2B6CB0 !important; /* 深蓝色中文歌词 */
}

/* 调整下载按钮颜色 */
body.day-mode .download-btn {
    color: #3182CE !important;
    border-color: rgba(49, 130, 206, 0.3) !important;
}

/* 修改导航控制栏容器 */
.navigation-controls {
    background-color: rgba(10, 25, 47, 0.7) !important; /* 降低透明度 */
    border: 1px solid rgba(0, 229, 255, 0.15) !important; /* 更细的边框 */
    border-radius: 8px; /* 更柔和的圆角 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 更柔和的阴影 */
}

/* 修改基础按钮样式 */
.navigation-controls button {
    background: rgba(49, 130, 206, 0.15) !important; /* 使用低饱和度的蓝色 */
    color: #88C9FF !important; /* 更柔和的文字颜色 */
    border: 1px solid rgba(49, 130, 206, 0.3) !important;
    border-radius: 6px; /* 减少圆角 */
    padding: 0.4rem 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: none !important; /* 移除阴影 */
}

/* 悬停状态 */
.navigation-controls button:hover {
    background: rgba(49, 130, 206, 0.25) !important;
    color: #A3D4FF !important;
    transform: translateY(-1px); /* 更克制的悬停位移 */
}

/* 白天模式适配 */
body.day-mode .navigation-controls {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.day-mode .navigation-controls button {
    background: rgba(49, 130, 206, 0.1) !important;
    color: #3182CE !important;
    border-color: rgba(49, 130, 206, 0.2) !important;
}

body.day-mode .navigation-controls button:hover {
    background: rgba(49, 130, 206, 0.2) !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .page-controls {
        width: 100%;
        justify-content: center;
    }
    
    .meta-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    #theme-toggle {
        order: 3;
    }
    
    .font-controls {
        order: 2;
    }
    
    .nav-link {
        order: 1;
    }
}

/* 统一页码指示器样式 */
#page-indicator {
    color: #88C9FF !important;
    font-weight: 500;
    padding: 0 1rem;
}

body.day-mode #page-indicator {
    color: #3182CE !important;
}

/* 修改章节索引页标题样式 */
.angular-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.angular-header h1 {
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    background: linear-gradient(120deg, #00E5FF, #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
    position: relative;
}

.angular-header p {
    color: #88c9ff;
    font-size: 1.1rem;
    margin: 0;
}

/* 添加装饰线 */
.angular-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 60%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-color) 50%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* 白天模式适配 */
body.day-mode .angular-header h1 {
    background: linear-gradient(120deg, #3182CE, #2B6CB0);
}

body.day-mode .angular-header p {
    color: #4A5568;
}

body.day-mode .angular-header h1::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        #3182CE 50%,
        transparent 100%
    );
}

/* 在现有导航控制样式后添加 */
.nav-link {
    background: rgba(49, 130, 206, 0.15) !important;
    color: #88C9FF !important;
    border: 1px solid rgba(49, 130, 206, 0.3) !important;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(49, 130, 206, 0.25) !important;
    color: #A3D4FF !important;
    transform: translateY(-1px);
}

/* 白天模式适配 */
body.day-mode .nav-link {
    background: rgba(49, 130, 206, 0.1) !important;
    color: #3182CE !important;
    border-color: rgba(49, 130, 206, 0.2) !important;
}

body.day-mode .nav-link:hover {
    background: rgba(49, 130, 206, 0.2) !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .nav-link {
        margin-top: 0;
    }
}

/* 调整控件间距 */
#page-indicator {
    margin: 0 0.5rem;
}

.font-controls {
    margin: 0 0.5rem;
}

/* 新增宇宙页面导航控制栏样式 */
.universe-container .navigation-controls {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem 0;
    justify-content: flex-start;
}

/* 保持与其他页面一致的按钮间距 */
.universe-container .nav-link {
    margin-left: 2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .universe-container .navigation-controls {
        justify-content: center;
    }
    .universe-container .nav-link {
        margin-left: 0;
        margin-bottom: 1rem;
    }
}

/* 在现有.nav-link样式后添加强制样式 */
.nav-link {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
    background: rgba(49, 130, 206, 0.15) !important;
    color: #88C9FF !important;
    border: 1px solid rgba(49, 130, 206, 0.3) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
}

/* 修复宇宙页面布局冲突 */
.universe-container .navigation-controls {
    position: relative !important;
    z-index: 1 !important;
    max-width: 800px !important;
    margin: 2rem auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 移除可能冲突的旧样式 */
/* 删除以下可能存在的冲突代码 */
.universe-content .nav-link,
.universe-card .nav-link {
    /* 删除任何针对导航链接的特殊定义 */
}

/* 确保导航控制栏在所有页面可见 */
.navigation-controls {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 强制覆盖可能存在的隐藏样式 */
.universe-container .navigation-controls {
    display: flex !important;
}

/* 修改章节标题样式 */
.reading-container h2 {
    color: #00FFE5 !important; /* 更明亮的青蓝色 */
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 2.2rem;
    margin: 2rem 0 1.5rem;
    position: relative;
}

/* 日间模式适配 */
body.day-mode .reading-container h2 {
    color: #2B6CB0 !important;
}

/* 移除可能存在的下划线样式 */
.reading-container h2 a,
.reading-container h2 a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* 添加章节标题装饰线（可选） */
.reading-container h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(0, 255, 229, 0.5); /* 提高透明度 */
    margin: 0.8rem 0 1.2rem;
}

/* 日间模式装饰线颜色 */
body.day-mode .reading-container h2::after {
    background: rgba(49, 130, 206, 0.3);
}

/* 修改章节标题颜色 */
.reading-container h2 {
    color: #64FFDA !important; /* 确保夜间模式使用青蓝色 */
}

/* 增加选择器特异性 */
body.night-mode .reading-container h2 {
    color: #64FFDA !important; /* 青蓝色在暗色背景更醒目 */
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3); /* 添加微光效增强可见性 */
}

/* 移除可能存在的颜色覆盖 */
body.night-mode .chapter h2,
body.night-mode .reading-container h2 a {
    color: inherit !important;
} 