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

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace, "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(100, 65, 165, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(100, 65, 165, 0.05) 0%, transparent 20%),
        linear-gradient(to right, transparent 0%, rgba(100, 65, 165, 0.03) 50%, transparent 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 代码风格装饰 */
.code-decoration {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #9354e9;
}

/* 头部样式 */
.header {
    background-color: #2C2255;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(100, 65, 165, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(100, 65, 165, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(100, 65, 165, 0.8);
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
    font:bold 18px/53px 微软雅黑,黑体
}

.nav a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height:53px;
    display:block;
    height:53px;
    padding: 0px 16px;

}

.nav a:hover {
    color: #a78bfa;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a78bfa;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* 导航选中状态 - 橙色高亮背景 */
.nav .current a {
    color: #fff;
    background: #F7941E;
}

.nav .current a::after {
    display: none;
}

.nav .current a:hover {
    color: #fff;
    background: #F7941E;
}

/* 代码风格装饰 */
.code-decoration {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #a78bfa;
}

/* 主要内容区域 */
.main {
    padding: 40px 0;
}

.main-content {
    display: flex;
    gap: 30px;
}

.content {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(100, 65, 165, 0.15);
    transition: all 0.3s ease;
}

.content:hover {
    box-shadow: 0 6px 20px rgba(100, 65, 165, 0.15);
    border-color: rgba(100, 65, 165, 0.3);
}

.sidebar {
    width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(100, 65, 165, 0.15);
    transition: all 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 6px 20px rgba(100, 65, 165, 0.15);
    border-color: rgba(100, 65, 165, 0.3);
}

/* 文章列表样式 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 25px 0;
    border-bottom: 1px solid rgba(147, 84, 233, 0.1);
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}



.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.article-title a:hover {
    color: #7e22ce;
}

.article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    position: relative;
    word-break: break-all;
}

/* 文章内容样式 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 20px 0 15px;
    color: #7e22ce;
    font-weight: bold;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: rgba(126, 34, 206, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: #7e22ce;
}

.article-content pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: rgba(126, 34, 206, 0.05);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #7e22ce;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 侧边栏样式 */
.sidebar-section {
    position: relative;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #7e22ce, #a78bfa);
    border-radius: 0 2px 2px 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7e22ce;
    color: #7e22ce;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(126, 34, 206, 0.1);
    transition: all 0.3s ease;
}

.sidebar-item:last-child {
    border-bottom: none;
}



.sidebar-item a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-item a:hover {
    color: #7e22ce;
}

/* 页脚样式 */
.footer {
    background-color: #2a2a3a;
    background-image: linear-gradient(to bottom, #2a2a3a, #1f1f2f);
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 3px solid #7e22ce;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #a78bfa;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a:hover {
    color: #a78bfa;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #a78bfa;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(126, 34, 206, 0.3);
    font-size: 14px;
    color: #999;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav li {
        margin: 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .content,
    .sidebar {
        padding: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(126, 34, 206, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(126, 34, 206, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 34, 206, 0.6);
}

.home-banner {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(100, 65, 165, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.home-banner-item {
    position: relative;
    height: 240px;
}

.home-banner-link {
    display: block;
    height: 100%;
}

.home-banner-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.home-banner-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 12px;
    line-height: 36px;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.home-floor {
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(100, 65, 165, 0.15);
    overflow: hidden;
}

.home-floor-title {
    background: #68217A;
    padding: 12px 20px;
}

.home-floor-title h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.home-floor-body {
    padding: 20px;
}

.home-tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.home-tabs li {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #333;
    background: rgba(126, 34, 206, 0.08);
    border: 1px solid rgba(126, 34, 206, 0.12);
    transition: all 0.2s ease;
}

.home-tabs li:hover {
    background: rgba(126, 34, 206, 0.12);
}

.home-tabs li.current {
    background: #7e22ce;
    border-color: #7e22ce;
    color: #fff;
}

.home-featured-item {
    margin-bottom: 12px;
}

.home-featured-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.home-featured-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-featured-title a:hover {
    color: #7e22ce;
}

.home-featured-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    word-break: break-all;
}

.home-tab-line {
    height: 1px;
    background: rgba(126, 34, 206, 0.12);
    margin: 16px 0;
}

.home-tab-cols {
    display: flex;
    gap: 20px;
}

.home-tab-col {
    flex: 1;
    list-style: none;
}

.home-tab-col li {
    position: relative;
    padding: 8px 0 8px 16px;
    border-bottom: 1px solid rgba(126, 34, 206, 0.08);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-tab-col li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 8px;
    color: #a78bfa;
}

.home-tab-col a {
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-tab-col a:hover {
    color: #7e22ce;
}

.home-more {
    margin-top: 12px;
    text-align: right;
}

.home-more a {
    color: #7e22ce;
    text-decoration: none;
    font-weight: bold;
}

.home-more a:hover {
    text-decoration: underline;
}

.home-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid rgba(126, 34, 206, 0.12);
    background: rgba(126, 34, 206, 0.06);
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-tool i {
    font-size: 18px;
    color: #7e22ce;
}

.home-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 65, 165, 0.15);
    border-color: rgba(126, 34, 206, 0.25);
    background: rgba(126, 34, 206, 0.1);
}

.home-empty {
    color: #999;
    padding: 10px 0;
}

.home-books {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}
.home-book-item {
    width: calc(16.666% - 17px); /* 6 items per row */
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .home-book-item {
        width: calc(25% - 15px); /* 4 items per row */
    }
}
@media (max-width: 768px) {
    .home-book-item {
        width: calc(33.333% - 14px); /* 3 items per row */
    }
}
@media (max-width: 480px) {
    .home-book-item {
        width: calc(50% - 10px); /* 2 items per row */
    }
}
.home-book-item:hover {
    transform: translateY(-5px);
}
.home-book-item img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}
.home-book-item h4 {
    font-size: 14px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.home-book-item h4 a {
    color: #333;
    text-decoration: none;
}
.home-book-item h4 a:hover {
    color: #7e22ce;
}

@media (max-width: 992px) {
    .home-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-banner-item,
    .home-banner-img {
        height: 180px;
    }

    .home-tab-cols {
        flex-direction: column;
        gap: 0;
    }

    .home-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.footer-bottom a{color:#666}
.footer-bottom a:hover{color:#eee}