:root {
    --primary: #FF6B9D;
    --primary-dark: #E55A8B;
    --bg-card: #fff;
    --border: #e8e8e8;
    --text-main: #333;
    --text-sub: #666;
    --text-light: #999;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 20px rgba(255, 107, 157, 0.15);
}

.site-full-section {
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
    padding-top: 20px;
}

.page-wrapper {
    width: 1200px;
    margin: 0 auto;
}

.home-class-nav {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.class-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.class-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(10% - 14px);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.25s ease;
}

.class-nav-item:hover {
    transform: translateY(-3px);
}

.class-nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.class-nav-name {
    font-size: 13px;
    color: var(--text-sub);
}

.home-banner {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.banner-main {
    flex: 1;
    position: relative;
}

.banner-slider {
    position: relative;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.banner-overlay h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.banner-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 107, 157, 0.8);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #fff;
    width: 25px;
    border-radius: 5px;
}

.banner-side {
    width: 270px;
    height: 320px;
}

.banner-rank {
    background: #fff;
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-rank h4 {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon {
    color: var(--primary);
}

.banner-rank ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.banner-rank li {
    display: flex;
    align-items: center;
}

.banner-rank li:last-child {
    margin-bottom: 0;
}

.rank-num {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #f0f0f0;
    color: var(--text-light);
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.banner-rank li:first-child .rank-num {
    background: var(--primary);
    color: #fff;
}

.banner-rank a {
    color: var(--text-main);
    font-size: 13px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color 0.2s ease;
}

.banner-rank a:hover {
    color: var(--primary);
}

.home-notice {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.notice-icon {
    font-size: 18px;
}

.notice-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
    flex-shrink: 0;
}

.notice-content marquee {
    flex: 1;
    font-size: 13px;
    color: var(--text-sub);
}

.notice-more {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.notice-more:hover {
    color: var(--primary);
}

.home-quick {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.quick-item {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8FB5 100%);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.quick-icon {
    font-size: 24px;
}

.quick-name {
    font-size: 15px;
    font-weight: bold;
}

.home-row {
    display: flex;
    gap: 15px;
}

.home-main {
    flex: 1;
}

.home-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    color: var(--primary);
    font-size: 16px;
}

.section-more {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-more:hover {
    color: var(--primary);
}

.home-section .comic-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.home-section .news-grid {
    grid-template-columns: repeat(2, 1fr);
}

.home-section .topic-card-cover {
    aspect-ratio: 4/3;
}

.comic-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border);
}

.comic-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.2);
}

.comic-cover {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.comic-item:hover .comic-cover img {
    transform: scale(1.05);
}

.comic-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    border-radius: 3px;
}

.comic-info {
    padding: 8px;
}

.comic-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: bold;
    height: 28px;
    overflow: hidden;
}

.comic-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-title a:hover {
    color: var(--primary);
}

.comic-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.comic-author,
.comic-type {
    font-size: 11px;
    color: var(--text-light);
}

.comic-desc {
    display: none;
}

.comic-btn {
    display: none;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.topic-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.12);
    border-color: rgba(255, 107, 157, 0.25);
}

.topic-card-cover {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.topic-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-card:hover .topic-card-cover img {
    transform: scale(1.06);
}

.topic-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-card-body h3,
.topic-card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.topic-card-body h3 a,
.topic-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.topic-card-body h3 a:hover,
.topic-card-title a:hover {
    color: var(--primary);
}

.topic-card-desc,
.topic-card-body p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.topic-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.topic-card-count {
    font-size: 12px;
    color: var(--text-light);
}

.topic-card-link {
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.topic-card-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topic-list .topic-card {
    flex-direction: row;
    align-items: center;
    padding: 15px;
}

.topic-card-left {
    flex-shrink: 0;
    margin-right: 15px;
}

.topic-card-left .topic-card-cover {
    width: 200px;
    height: 120px;
    border-radius: 8px;
}

.topic-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topic-card-right h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.topic-card-right h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.topic-card-right h2 a:hover {
    color: var(--primary);
}

.topic-card-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.topic-sub-item {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    border: 1px solid var(--border);
}

.topic-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-sub-more {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
}

.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 13px;
    color: var(--text-sub);
    flex-shrink: 0;
}

.filter-tag {
    padding: 5px 12px;
    background: #f5f5f5;
    color: var(--text-sub);
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.filter-tag:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    color: #fff;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* 全宽容器内（标签详情等）使用4列 */
.page-header + .class-grid {
    grid-template-columns: repeat(4, 1fr);
}

.class-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.12);
    border-color: rgba(255, 107, 157, 0.25);
}

.class-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    flex-shrink: 0;
}

.class-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .class-card-cover img {
    transform: scale(1.05);
}

.class-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
}

.class-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-card-body h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.class-card-body h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.class-card-body h3 a:hover {
    color: var(--primary);
}

.class-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.class-card-tag {
    padding: 3px 8px;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 11px;
    border-radius: 3px;
}

.class-card-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.class-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.class-card-footer span {
    font-size: 12px;
    color: var(--text-light);
}

.class-card-footer a {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.class-card-footer a:hover {
    color: var(--primary-dark);
}

.class-card-footer .class-card-score {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.class-card-btn {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.class-card-btn:hover {
    color: var(--primary-dark);
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.game-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.2);
}

.game-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.game-item:hover .game-num {
    background: var(--primary);
    color: #fff;
}

.game-cover {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    display: block;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.game-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.game-title a:hover {
    color: var(--primary);
}

.game-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.game-meta span {
    font-size: 12px;
    color: var(--text-light);
}

.game-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-wrap {
    display: flex;
    gap: 20px;
}

.detail-left {
    flex: 1;
}

.detail-right {
    width: 300px;
    flex-shrink: 0;
}

.detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.detail-cover-wrap {
    float: left;
    margin-right: 25px;
    flex-shrink: 0;
}

.detail-cover {
    display: block;
    width: 200px;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.detail-info {
    overflow: hidden;
}

.detail-info h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 15px 0;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.star.empty {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ddd'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.rating-num {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-tag {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.tag-status {
    background: var(--primary);
    color: #fff;
}

.tag-class {
    background: #f0f0f0;
    color: var(--text-sub);
    text-decoration: none;
}

.tag-tips {
    background: #f0f0f0;
    color: var(--text-sub);
}

.detail-meta {
    margin-bottom: 15px;
}

.meta-row {
    display: flex;
    margin-bottom: 8px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    width: 50px;
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

.meta-value {
    font-size: 13px;
    color: var(--text-main);
}

.detail-desc {
    margin-bottom: 20px;
}

.desc-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.detail-desc p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-sub);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #eee;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 15px;
}

.chapter-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.chapter-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chapter-header span {
    font-size: 13px;
    color: var(--text-light);
}

.chapter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-item {
    padding: 8px 15px;
    background: #f5f5f5;
    color: var(--text-main);
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.chapter-item:hover {
    background: var(--primary);
    color: #fff;
}

.side-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.side-card-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.side-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.recommend-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommend-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

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

.recommend-cover {
    width: 50px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: block;
}

.recommend-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.recommend-title {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.recommend-title a {
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.25s ease;
}

.recommend-title a:hover {
    color: var(--primary);
}

.recommend-meta {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

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

.rank-num {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: var(--text-light);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num {
    background: var(--primary);
}

.rank-item:nth-child(2) .rank-num {
    background: #f39c12;
}

.rank-item:nth-child(3) .rank-num {
    background: #9b59b6;
}

.rank-link {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color 0.25s ease;
}

.rank-link:hover {
    color: var(--primary);
}

.side-comic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-comic-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.side-comic-list li:last-child {
    border-bottom: none;
}

.side-comic-cover {
    width: 50px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: block;
}

.side-comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-comic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.side-comic-info h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.side-comic-info h4 a {
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.25s ease;
}

.side-comic-info h4 a:hover {
    color: var(--primary);
}

.side-comic-info p {
    font-size: 12px;
    color: var(--primary);
    margin: 0;
}

.side-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-tag-cloud a {
    padding: 4px 12px;
    background: #f5f5f5;
    color: var(--text-sub);
    font-size: 12px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.25s ease;
}

.side-tag-cloud a:hover {
    background: var(--primary);
    color: #fff;
}

.home-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.side-recommend {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-recommend li {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.side-recommend li:last-child {
    border-bottom: none;
}

.recommend-cover {
    width: 60px;
    height: 78px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    display: block;
}

.recommend-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.recommend-info h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.recommend-info h4 a {
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.25s ease;
}

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

.recommend-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.search-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.search-tab {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-sub);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.search-tab:hover {
    color: var(--primary);
}

.search-tab.active {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.comic-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
}

.comic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.25);
}

.card-cover {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comic-card:hover .card-cover img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.25s ease;
}

.card-title a:hover {
    color: var(--primary);
}

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

.card-meta span {
    font-size: 12px;
    color: var(--text-light);
}

.card-meta .score {
    color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.25);
}

.news-cover {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.news-title a:hover {
    color: var(--primary);
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-detail-header {
    margin-bottom: 15px;
}

.topic-detail-cover {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
}

.topic-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.topic-detail-overlay h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.topic-detail-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.topic-detail-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.topic-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.topic-stat strong {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.topic-stat span {
    font-size: 14px;
    color: var(--text-sub);
}

.topic-detail-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.content-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-header span {
    font-size: 13px;
    color: var(--text-light);
}

.topic-comic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.topic-comic-card {
    background: #fafafa;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.topic-comic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 157, 0.25);
}

.topic-comic-cover {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    flex-shrink: 0;
}

.topic-comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-comic-card:hover .topic-comic-cover img {
    transform: scale(1.05);
}

.topic-comic-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
}

.topic-comic-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-comic-body h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.topic-comic-body h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.topic-comic-body h3 a:hover {
    color: var(--primary);
}

.topic-comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.topic-comic-tag {
    padding: 3px 8px;
    background: #fff;
    color: var(--text-light);
    font-size: 11px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.topic-comic-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.topic-comic-btn {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.25s ease;
}

.topic-comic-btn:hover {
    background: var(--primary-dark);
}

.article-detail {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.article-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}

.article-detail-meta span {
    font-size: 13px;
    color: var(--text-light);
}

.article-detail-body {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.8;
}

.article-detail-body img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.related-card {
    display: flex;
    background: #fafafa;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 25px;
    border: 1px solid var(--border);
}

.related-card-cover {
    width: 120px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.related-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.related-card-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.related-card-name a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.related-card-name a:hover {
    color: var(--primary);
}

.related-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.related-card-meta span {
    font-size: 13px;
    color: var(--text-light);
}

.related-card-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.feature-header {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.feature-header-cover {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-header-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-header-body {
    flex: 1;
}

.feature-header-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.feature-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.feature-header-meta span {
    font-size: 13px;
    color: var(--text-light);
}

.feature-header-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.news-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.news-cover {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--primary);
}

.home-section .news-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-time {
    font-size: 12px;
    color: var(--text-light);
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding: 10px 0;
}

.breadcrumb a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb-sep {
    margin: 0 8px;
}

.breadcrumb-current {
    color: var(--text-main);
}

.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.main-row {
    display: flex;
    gap: 20px;
}

.main-left {
    flex: 1;
}

.main-right {
    width: 300px;
    flex-shrink: 0;
}

.side-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.side-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    position: relative;
}

.side-list li:last-child {
    border-bottom: none;
}

.side-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f0f0f0;
    color: var(--text-light);
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
}

.side-list li:first-child .side-num {
    background: var(--primary);
    color: #fff;
}

.side-list a {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: calc(100% - 35px);
    vertical-align: middle;
    transition: color 0.2s ease;
}

.side-list a:hover {
    color: var(--primary);
}

.side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-tag-item {
    padding: 4px 12px;
    background: #f5f5f5;
    color: var(--text-sub);
    font-size: 12px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.25s ease;
}

.side-tag-item:hover {
    background: var(--primary);
    color: #fff;
}

.side-class {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class-item {
    padding: 5px 12px;
    background: #f5f5f5;
    color: var(--text-sub);
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.class-item:hover {
    background: var(--primary);
    color: #fff;
}

.side-topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-topic-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.side-topic-list li:last-child {
    border-bottom: none;
}

.side-topic-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
    width: 100%;
}

.side-topic-list a:hover {
    color: var(--primary);
}

.side-topic-list img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-topic-list span {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-news-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.side-news-list li:last-child {
    border-bottom: none;
}

.side-news-list a {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.2s ease;
}

.side-news-list a:hover {
    color: var(--primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .page-wrapper {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .home-class-nav {
        padding: 15px;
    }
    
    .class-nav-item {
        width: calc(12.5% - 14px);
    }
    
    .home-banner {
        flex-direction: column;
    }
    
    .banner-side {
        width: 100%;
        flex-direction: row;
    }
    
    .banner-nav,
    .banner-rank {
        flex: 1;
    }
    
    .home-row {
        flex-direction: column;
    }
    
    .home-sidebar {
        width: 100%;
    }
    
    .main-row {
        flex-direction: column;
    }
    
    .main-right {
        width: 100%;
    }
    
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header + .class-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .topic-comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-section .comic-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .news-cover {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .home-section .comic-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .topic-comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header + .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-side {
        flex-direction: column;
    }

    .class-nav-item {
        width: calc(20% - 14px);
    }
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.preview-item {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.preview-item:hover {
    transform: scale(1.03);
}

.preview-item img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: #000;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.preview-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-content img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.preview-toolbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 3;
}

.preview-prev,
.preview-next {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.preview-prev:hover,
.preview-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preview-prev::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #fff;
}

.preview-next::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
}

.preview-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.preview-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preview-close::before,
.preview-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #fff;
}

.preview-close::before {
    transform: rotate(45deg);
}

.preview-close::after {
    transform: rotate(-45deg);
}