/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #2c3e50;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #2c3e50;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 3px solid #e74c3c;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo a:hover {
    color: #c0392b;
}

/* 导航栏样式 */
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active a {
    background-color: #27ae60;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #27ae60;
}

/* 搜索框 */
.search {
    display: flex;
    align-items: center;
}

.search form {
    display: flex;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.search input {
    padding: 12px 20px;
    border: none;
    outline: none;
    width: 300px;
    font-size: 14px;
    color: #333;
}

.search button {
    padding: 12px 25px;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search button:hover {
    background: #c0392b;
}

.user-info {
    color: #ecf0f1;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.user-info:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 主要内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.main-content {
    background: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ecf0f1;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.more-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.more-link:hover {
    background: #e74c3c;
    color: white;
    transform: translateX(5px);
}

/* 漫画网格布局 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.comic-item {
    background: #34495e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #2c3e50;
}

.comic-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: #e74c3c;
}

.comic-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-cover-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.comic-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comic-item:hover .comic-cover {
    transform: scale(1.05);
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status.completed {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.status.updating {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.comic-info {
    padding: 15px;
}

.comic-title {
    font-size: 16px;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #bdc3c7;
}

.comic-author {
    font-weight: 500;
    color: #bdc3c7;
}

.comic-views {
    color: #95a5a6;
}

.comic-desc {
    font-size: 13px;
    color: #95a5a6;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #2c3e50;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #34495e;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #34495e;
    position: relative;
}

.sidebar-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 排行榜样式 */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.ranking-item:hover {
    background-color: #34495e;
    border-radius: 8px;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 12px;
    background: #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

.ranking-number.top3 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.ranking-info {
    flex: 1;
}

.ranking-title {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.ranking-title:hover {
    color: #e74c3c;
}

.ranking-views {
    font-size: 12px;
    color: #95a5a6;
}

/* 分类导航 */
.category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-item {
    padding: 10px 15px;
    background: #34495e;
    border-radius: 8px;
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 友情链接 */
.friend-links {
    background: #2c3e50;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #34495e;
}

.friend-links h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #34495e;
    position: relative;
}

.friend-links h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.friend-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: #34495e;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.friend-link:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        padding: 15px;
        gap: 10px;
    }
    
    .logo a {
        font-size: 24px;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .nav-item a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search input {
        width: 250px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .logo {
        text-align: center;
        order: 1;
    }
    
    .logo a {
        font-size: 22px;
    }
    
    .nav {
        order: 3;
        justify-content: center;
    }
    
    .nav ul {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav-item a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search {
        order: 2;
        justify-content: center;
    }
    
    .search form {
        width: 100%;
        max-width: 400px;
    }
    
    .search input {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    
    .search button {
        padding: 12px 20px;
        flex-shrink: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    /* 分类页面移动端优化 */
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .category-nav {
        justify-content: center;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }
    
    .category-nav span {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .category-nav a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .filter-nav {
        gap: 0;
    }
    
    .filter-group {
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-group span {
        width: auto;
        text-align: left;
        margin-bottom: 0;
        font-size: 14px;
        min-width: 60px;
    }
    
    .filter-group a {
        font-size: 12px;
        padding: 5px 10px;
        margin: 2px;
    }
    
    .comic-grid-category {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .comic-grid-category .comic-cover img {
        height: 220px;
    }
    
    .category-main {
        padding: 20px;
    }
    
    .comic-count {
        font-size: 13px;
        padding: 10px 15px;
        text-align: center;
    }
    
    /* 底部移动端优化 */
    .footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .footer-links {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .footer-info {
        font-size: 12px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        padding: 10px;
        gap: 10px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .nav ul {
        gap: 5px;
    }
    
    .nav-item a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .search input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .comic-item {
        border-radius: 8px;
    }
    
    .comic-info {
        padding: 12px;
    }
    
    .comic-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .comic-meta {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .comic-desc {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    .sidebar-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* 分类页面超小屏幕优化 */
    .category-header {
        padding: 15px;
    }
    
    .category-header h1 {
        font-size: 20px;
    }
    
    .category-nav {
        padding: 12px;
        gap: 8px;
    }
    
    .category-nav span {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .category-nav a {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .filter-group {
        padding: 12px;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-group span {
        font-size: 13px;
        margin-bottom: 0;
        text-align: left;
        min-width: 50px;
    }
    
    .filter-group a {
        font-size: 11px;
        padding: 4px 8px;
        margin: 1px;
    }
    
    .comic-grid-category {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .comic-grid-category .comic-cover img {
        height: 180px;
    }
    
    .comic-grid-category .comic-info {
        padding: 12px;
    }
    
    .comic-grid-category .comic-title {
        font-size: 14px;
        height: 36px;
        -webkit-line-clamp: 2;
    }
    
    .comic-grid-category .comic-meta {
        font-size: 11px;
    }
    
    .comic-grid-category .comic-desc {
        font-size: 11px;
        height: 30px;
        -webkit-line-clamp: 2;
    }
    
    .category-main {
        padding: 15px;
    }
    
    .comic-count {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    /* 分页移动端优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 15px 10px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    /* 搜索页面移动端优化 */
    .no-results {
        padding: 20px;
        text-align: center;
        background: #34495e;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .no-results p {
        margin-bottom: 15px;
        color: #ecf0f1;
        font-size: 14px;
    }
    
    .no-results ul {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
        color: #bdc3c7;
        font-size: 13px;
    }
    
    .no-results li {
        margin-bottom: 8px;
    }
    
    /* 底部超小屏幕优化 */
    .footer {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-info {
        font-size: 11px;
        line-height: 1.4;
        padding: 0 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comic-item {
    animation: fadeInUp 0.6s ease forwards;
}

.comic-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.comic-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #34495e;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #34495e;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 标签样式 */
.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 状态标签 */
.status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status.completed {
    background: #e74c3c;
}

.status.updating {
    background: #f39c12;
}

/* 热门标识 */
.hot-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    transform: rotate(-15deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 详情页样式 */
.detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.detail-info h1 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 28px;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.detail-meta strong {
    color: #ecf0f1;
}

.detail-description {
    line-height: 1.8;
    color: #bdc3c7;
}

/* 章节列表 */
.chapter-list {
    background: #34495e;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.chapter-list h3 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.chapter-item {
    background: #2c3e50;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #ecf0f1;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.chapter-item:hover {
    background: #e74c3c;
    border-left-color: #c0392b;
    transform: translateX(5px);
}

/* 详情页样式 */
.detail-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.detail-left {
    flex: 1;
    max-width: calc(100% - 350px);
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 漫画详情卡片 */
.comic-detail {
    background: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.comic-info-box {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.comic-cover-large {
    flex-shrink: 0;
    width: 200px;
}

.comic-cover-large img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.comic-cover-large img:hover {
    transform: scale(1.05);
}

.comic-details {
    flex: 1;
}

.comic-title-large {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.comic-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.comic-meta p {
    background: #34495e;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    font-size: 14px;
    transition: background 0.3s ease;
}

.comic-meta p:hover {
    background: #3d566e;
}

.comic-meta span {
    color: #bdc3c7;
    font-weight: bold;
    margin-right: 8px;
}

.comic-meta a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comic-meta a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 内容简介 */
.content-intro {
    background: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.content-intro h2 {
    color: #e74c3c;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.intro-text {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 15px;
}

/* 推荐内容 */
.recommend-section {
    background: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.recommend-section h2 {
    color: #e74c3c;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.recommend-grid .comic-item {
    background: #34495e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.recommend-grid .comic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.recommend-grid .comic-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-grid .comic-item:hover img {
    transform: scale(1.1);
}

.recommend-grid .comic-info {
    padding: 15px;
}

.recommend-grid .comic-info h4 {
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-grid .comic-info p {
    color: #95a5a6;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-grid .comic-item a {
    text-decoration: none;
    color: inherit;
}

/* 侧边栏样式 */
.sidebar-box {
    background: #2c3e50;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.sidebar-title {
    color: #e74c3c;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    text-align: center;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #34495e;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.ranking-item:hover {
    background: #3d566e;
    border-left-color: #e74c3c;
    transform: translateX(5px);
}

.ranking-num {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #7f8c8d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.ranking-num.top {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.ranking-title {
    flex: 1;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.ranking-title:hover {
    color: #e74c3c;
}

.ranking-views {
    color: #95a5a6;
    font-size: 12px;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-content {
        flex-direction: column;
    }
    
    .detail-left {
        max-width: 100%;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .comic-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .comic-cover-large {
        width: 200px;
        margin: 0 auto;
    }
    
    .comic-meta {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .comic-detail,
    .content-intro,
    .recommend-section,
    .sidebar-box {
        padding: 20px;
    }
    
    .comic-title-large {
        font-size: 24px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .recommend-grid .comic-item img {
        height: 150px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .latest-item {
        padding: 10px;
    }
    
    .latest-cover {
        width: 40px;
        height: 56px;
    }
    
    .latest-title {
        font-size: 12px;
    }
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: #34495e;
    color: #ecf0f1;
}

.btn-secondary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 73, 94, 0.4);
}

/* 状态样式 */
.status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status.completed {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.status.updating {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

/* 推荐内容状态徽章 */
.comic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.views {
    color: #95a5a6;
    font-size: 11px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.status-badge.completed {
    background: #27ae60;
    color: white;
}

.status-badge.updating {
    background: #f39c12;
    color: white;
}

/* 最新更新列表 */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #34495e;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.latest-item:hover {
    background: #3d566e;
    border-left-color: #e74c3c;
    transform: translateX(5px);
}

.latest-cover {
    flex-shrink: 0;
    width: 50px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-item:hover .latest-cover img {
    transform: scale(1.1);
}

.latest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-title {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.latest-title:hover {
    color: #e74c3c;
}

.latest-time {
    color: #95a5a6;
    font-size: 11px;
    margin: 0;
}

/* 分类页面样式 */
.category-content {
    margin-top: 20px;
}

.category-header {
    background: #2c3e50;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.category-header h1 {
    color: #e74c3c;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 15px;
}

/* 频道导航 */
.category-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #34495e;
    border-radius: 10px;
    flex-wrap: wrap;
}

.category-nav span {
    color: #bdc3c7;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    min-width: 60px;
}

.category-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: #2c3e50;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
    white-space: nowrap;
}

.category-nav a:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.category-nav a.active {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* 筛选导航 - 改为紧凑横向布局 */
.filter-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #34495e;
    border-radius: 10px;
    overflow: hidden;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: #34495e;
    border-bottom: 1px solid #2c3e50;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group span {
    color: #bdc3c7;
    font-weight: bold;
    font-size: 14px;
    min-width: 60px;
    margin-right: 10px;
    flex-shrink: 0;
    text-align: left;
}

.filter-group a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    background: #2c3e50;
    transition: all 0.3s ease;
    font-size: 13px;
    border: 1px solid transparent;
    white-space: nowrap;
    margin: 2px;
}

.filter-group a:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-1px);
}

.filter-group a.active {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* 分类主要内容 */
.category-main {
    background: #2c3e50;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.comic-count {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 25px;
    padding: 12px 20px;
    background: #34495e;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

/* 分类页面网格 */
.comic-grid-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.comic-grid-category .comic-item {
    background: #34495e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    position: relative;
}

.comic-grid-category .comic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.comic-grid-category .comic-cover {
    position: relative;
    overflow: hidden;
}

.comic-grid-category .comic-cover img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comic-grid-category .comic-item:hover .comic-cover img {
    transform: scale(1.05);
}

.comic-grid-category .status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.comic-grid-category .status.completed {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.comic-grid-category .status.updating {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.comic-grid-category .comic-info {
    padding: 15px;
}

.comic-grid-category .comic-title {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
}

.comic-grid-category .comic-item:hover .comic-title {
    color: #e74c3c;
}

.comic-grid-category .comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.comic-grid-category .comic-author {
    color: #95a5a6;
}

.comic-grid-category .comic-views {
    color: #f39c12;
    font-weight: bold;
}

.comic-grid-category .comic-desc {
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
}

.comic-grid-category .comic-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 分页样式增强 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding: 20px;
    background: #34495e;
    border-radius: 10px;
    list-style: none;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #2c3e50;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #e74c3c;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.pagination .active span {
    background: #e74c3c;
    border-color: #c0392b;
    color: white;
}

.pagination .disabled span {
    background: #2c3e50;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .disabled span:hover {
    background: #2c3e50;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 - 分类页面 */
@media (max-width: 1024px) {
    .filter-nav {
        gap: 0;
    }
    
    .filter-group {
        padding: 10px 15px;
    }
    
    .comic-grid-category {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 24px;
    }
    
    .category-nav {
        justify-content: center;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }
    
    .category-nav span {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .category-nav a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .filter-nav {
        gap: 0;
    }
    
    .filter-group {
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-group span {
        width: auto;
        text-align: left;
        margin-bottom: 0;
        font-size: 14px;
        min-width: 60px;
    }
    
    .filter-group a {
        font-size: 12px;
        padding: 5px 10px;
        margin: 2px;
    }
    
    .comic-grid-category {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .comic-grid-category .comic-cover img {
        height: 220px;
    }
    
    .category-main {
        padding: 20px;
    }
    
    .comic-count {
        font-size: 13px;
        padding: 10px 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 15px;
    }
    
    .category-header h1 {
        font-size: 20px;
    }
    
    .category-nav {
        padding: 12px;
        gap: 8px;
    }
    
    .category-nav span {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .category-nav a {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .filter-group {
        padding: 12px;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-group span {
        font-size: 13px;
        margin-bottom: 0;
        text-align: left;
        min-width: 50px;
    }
    
    .filter-group a {
        font-size: 11px;
        padding: 4px 8px;
        margin: 1px;
    }
    
    .comic-grid-category {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .comic-grid-category .comic-cover img {
        height: 180px;
    }
    
    .comic-grid-category .comic-info {
        padding: 12px;
    }
    
    .comic-grid-category .comic-title {
        font-size: 14px;
        height: 36px;
        -webkit-line-clamp: 2;
    }
    
    .comic-grid-category .comic-meta {
        font-size: 11px;
    }
    
    .comic-grid-category .comic-desc {
        font-size: 11px;
        height: 30px;
        -webkit-line-clamp: 2;
    }
    
    .category-main {
        padding: 15px;
    }
    
    .comic-count {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* 侧边栏热门搜索 */
.hot-search-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-search-sidebar .hot-search-item {
    background: #34495e;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.hot-search-sidebar .hot-search-item:hover {
    background: #3d566e;
    border-left-color: #e74c3c;
    transform: translateX(3px);
    color: white;
}

.hot-search-sidebar .hot-search-item:nth-child(-n+3) {
    color: #e74c3c;
    font-weight: 600;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    border-top: 3px solid #e74c3c;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.footer-info {
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info p:last-child {
    margin-bottom: 0;
} 