:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-light: #e5e7eb;
    --border-muted: #d1d5db;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #06b6d4;

    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

img {
    width: 100%;
}

/* 现代导航栏 */
.Header {
    background: var(--background-white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-lg);
    margin: 1rem auto;
    max-width: 1080px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-light);
}

.Header ul.novel_types {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
}

.Header ul.novel_types li {
    margin: 0;
}

.Header ul.novel_types li a {
    color: var(--text-primary);
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.Header ul.novel_types li a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.Header ul.novel_types li.index a,
.Header ul.novel_types li.index a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.Header ul.novel_types li a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 主内容容器 */
#content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
}

/* 现代化小说网格 */
.novel_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.novel-item {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.novel-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

/* 优化 Header Search 区域 */
#header-search-header {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-area {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    min-width: 300px;
}

.search-input {
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #f7fafc;
/*    font-size: 14px;*/
    transition: all 0.3s ease;
    flex: 1;
    margin-right: 12px;
}

.search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    outline: none;
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.user-info-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-welcome {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    opacity: 0.9;
}

.user-link {
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.user-link:hover {
    color: #fde047 !important;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
    text-decoration: none !important;
}

.user-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fde047;
    transition: width 0.3s ease;
}

.user-link:hover::after {
    width: 100%;
}

.btn-logout {
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca !important;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(239, 68, 68, 0.1);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fef2f2 !important;
    transform: translateY(-1px);
}

.no-login-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-auth {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {
    #header-search-header {
        padding: 0.75rem;
    }

    .search-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-input-area {
        min-width: auto;
    }

    .user-info-area {
        align-self: center;
        max-width: 100%;
    }

    .no-login-area {
        justify-content: center;
    }

    .user-welcome {
        display: none;
    }

    /*.search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }*/
}

/* 响应式按钮样式 */
@media (max-width: 480px) {
    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }

   /* .btn-auth {
        padding: 6px 12px;
        font-size: 12px;
    }*/

    .user-link {
        font-size: 14px;
    }
}

.novel-cover {
    width: 120px; /* Adjust the size as needed */
    height: 150px;
    border-radius: var(--border-radius);
    object-fit: fill;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    margin-right: 0.7rem;
}

.novel-info {
    text-align: left;
}

.novel-info a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 15px;
}

.novel-info a:hover {
    color: var(--primary-color);
}

.novel-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--text-secondary);
}

.novel-auth {
    font-weight: 500;
}

.novel-status {
    color: red;
}

/* 现代化模态框 */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
    background: var(--background-white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 按钮现代化 */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}


.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center; /* 水平居中 */
    gap: 0.5rem;
    margin-bottom: 1.8vh;
/*    height: 10vh;*/
}