body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff !important;
    z-index: 999;
}
.carousel-item {
    height: 450px;
    overflow: hidden;
    position: relative;
}
@media (max-width: 768px) {
    .carousel-item {
        height: 250px;
    }
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* 暗化背景突出文字 */
}
.carousel-caption {
    bottom: 30px;
    left: 5%;
    right: 5%;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem;
    border-radius: 8px;
}
.content-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    height: 100%;
    overflow: hidden;
}
.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.cover-img {
    height: 280px;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 576px) {
    .cover-img {
        height: 220px;
    }
}
.content-item {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.content-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.work-title {
    font-weight: 600;
    color: #2d2d39;
    margin-right: 0.5rem;
}
.work-title:hover {
    color: #dc3545;
}
.novel-title:hover {
    color: #0d6efd;
}
.sidebar-card li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.text-light-opacity-80 {
    color: rgba(255,255,255,0.8) !important;
}
.work-author {
    color: #6c757d;
    margin-right: 1rem;
}
.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    display: inline-block;
}
.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
}
.category-scroll .nav-link {
    display: inline-block;
    margin-right: 0.8rem;
}
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
footer {
    background-color: #2d2d39;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.update-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53e3e;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    z-index: 1;
}
.rank-badge {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    margin-right: 12px;
}
.bg-pink {
    background-color: #d63384;
    color: #fff;
}
.search-container {
    max-width: 100%;
    padding: 1.2rem;
}
.search-input-group {
    gap: 0.8rem !important;
}
@media (min-width: 768px) {
    .search-select, .search-btn {
        flex-shrink: 0;
        width: auto !important;
    }
}
@media (max-width: 767px) {
    .search-input-group {
        width: 100%;
    }
    .search-select, .search-btn {
        width: 100% !important;
    }
}
.text-overflow {
    flex: 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}