/* 基础样式 */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-gray: #777;
    --color-primary: #FF8C00;  /* 橙色 */
    --color-white: #FFFFFF;     /* 白色 */
    --color-black: #222222;     /* 黑色 */
    --color-light-gray: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* 页眉基础样式 */
.novel-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Logo与标题区域 */
.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.site-titles {
    line-height: 1.2;
}

/* 搜索框样式 */
.search-box form {
    display: flex;
    gap: 5px;
}

.search-box input[type="search"] {
    padding: 8px 15px;
    min-width: 200px;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* 分类导航样式 */
.category-nav {
    background-color: #2a2a2a;
    padding: 0 5%;
    text-align: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-title {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box form {
        justify-content: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        width: 50%;
        text-align: center;
    }
    
    .nav-menu a {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-box input[type="search"] {
        min-width: 150px;
    }
}


/* 页脚基础样式 */
.novel-footer {
    background-color: #222222;
    color: #ffffff;
    padding: 30px 0 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 小工具区域 */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
    margin: 0 15px 20px;
}

.widget-title {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e57019;
}

.widget-content {
    line-height: 1.8;
}

/* 标签云样式 */
.tag-cloud a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #e57019 !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.tag-cloud a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 作者列表样式 */
.author-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-list li {
    margin-bottom: 8px;
}

.author-list a {
    color: #e57019 !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.author-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 页脚底部 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.copyright {
    margin: 0;
    color: #aaaaaa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-widget {
        flex: 0 0 100%;
        margin: 0 0 25px;
    }
    
    .footer-widget:last-child {
        margin-bottom: 0;
    }
}
