/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo h2 {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #a29bfe;
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-membership-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(45deg, #f6d365, #fda085);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
}

.section-kicker {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #a29bfe;
    margin-bottom: 12px;
}

.section-title.no-bar {
    padding-left: 0;
    margin-bottom: 14px;
}

.section-title.no-bar::before {
    display: none;
}

.section-desc {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 18px;
}

.premium-showcase-section {
    margin-bottom: 40px;
}

.premium-banner-card,
.member-access-notice,
.access-summary-panel,
.intent-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 28px;
    margin-bottom: 26px;
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.28);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(26, 26, 46, 0.96));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

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

.feature-panel {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.feature-panel h3 {
    margin-bottom: 12px;
    color: #fff;
}

.feature-panel p,
.member-access-notice p,
.intent-banner p,
.access-summary-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.content-chip,
.membership-pill,
.status-chip,
.premium-corner-tag,
.episode-access-tag,
.membership-inline-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.content-chip {
    padding: 7px 12px;
    font-size: 12px;
    color: #f4efff;
    background: rgba(162, 155, 254, 0.18);
    border: 1px solid rgba(162, 155, 254, 0.26);
}

.member-shortcut-card {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.member-shortcut-card h4 {
    margin: 8px 0 12px;
}

.member-shortcut-card p {
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 16px;
}

.member-shortcut-btn {
    width: 100%;
}

.membership-pill,
.status-chip {
    padding: 6px 12px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.membership-pill.premium,
.status-chip.premium {
    background: linear-gradient(45deg, #f6d365, #fda085);
    color: #1a1a2e;
}

.premium-corner-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    background: linear-gradient(45deg, #f6d365, #fda085);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.membership-inline-tip {
    margin-top: 14px;
    padding: 8px 12px;
    font-size: 12px;
    background: rgba(108, 92, 231, 0.12);
    color: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(162, 155, 254, 0.35);
}

.card-image {
    position: relative;
}

.access-summary-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.access-status-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.premium-episode {
    position: relative;
    overflow: hidden;
}

.episode-access-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(246, 211, 101, 0.18);
    color: #ffd86f;
    border: 1px solid rgba(246, 211, 101, 0.3);
}

.intent-banner {
    grid-template-columns: 1fr;
    margin-top: 22px;
}

.user-dropdown .user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.user-dropdown .user-info img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown .user-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-dropdown .user-menu-items a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.user-dropdown .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

@media (max-width: 900px) {
    .feature-panel-grid,
    .premium-banner-card,
    .member-access-notice,
    .access-summary-content {
        grid-template-columns: 1fr;
    }

    .access-status-group {
        align-items: flex-start;
    }
}

.search-btn {
    background: none;
    border: none;
    color: #a29bfe;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.login-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6c5ce7;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播横幅样式 */
.hero-carousel {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.carousel-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.6);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(108, 92, 231, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-section {
    min-width: 0;
}

/* 章节标题 */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
}

/* 动漫卡片网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.anime-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.3);
    border-color: #6c5ce7;
}

.anime-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

.score {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏排行榜样式 - 防止样式污染 */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 24px;
    height: fit-content;
    border: 1px solid rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 100px;
    min-width: 360px; /* 进一步增加侧边栏最小宽度 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ranking-section {
    width: 100%;
}

.sidebar .sidebar-title {
    font-size: 19px;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.sidebar .sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 1px;
}

.sidebar .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 减少间距，因为每个项目已经有了margin-bottom */
}

.sidebar .ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
    min-width: 320px; /* 进一步增加最小宽度 */
    margin-bottom: 8px; /* 添加底部间距 */
}

.sidebar .ranking-item:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

.sidebar .rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    margin-right: 4px; /* 添加右边距 */
}

.sidebar .rank-number.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.sidebar .rank-number.silver {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #000;
}

.sidebar .rank-number.bronze {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #000;
}

.sidebar .rank-number:not(.gold):not(.silver):not(.bronze) {
    background: rgba(108, 92, 231, 0.6);
}

/* 动漫海报样式 */
.sidebar .anime-poster {
    flex-shrink: 0;
    margin-right: 6px; /* 添加右边距 */
}

.sidebar .anime-poster img,
.sidebar .ranking-item img {
    width: 45px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
}

.sidebar .ranking-item:hover .anime-poster img,
.sidebar .ranking-item:hover img {
    border-color: rgba(108, 92, 231, 0.4);
    transform: scale(1.02);
}

/* 动漫信息区域 */
.sidebar .anime-info,
.sidebar .rank-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    max-width: calc(100% - 110px);
    padding-left: 4px; /* 添加左内边距 */
}

.sidebar .anime-info h4,
.sidebar .anime-info .anime-title,
.sidebar .rank-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
}

/* 评分区域 */
.sidebar .anime-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.sidebar .anime-rating .stars {
    color: #ffd700;
    font-size: 12px;
    line-height: 1;
}

.sidebar .anime-rating .score,
.sidebar .rank-score {
    font-size: 11px;
    color: #a29bfe;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    white-space: nowrap;
}

/* 修复主要内容区域的anime-info样式 */
.anime-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 4px; /* 添加左右内边距 */
    margin: 8px 0; /* 调整上下外边距 */
}

.anime-info .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin-bottom: 4px; /* 添加底部边距 */
}

.anime-info .anime-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-top: 4px; /* 添加顶部边距 */
}

.anime-info .year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* 调整动漫卡片内容区域的内边距 */
.card-content {
    padding: 16px 18px; /* 增加左右内边距，调整上下内边距 */
}

.card-content .rating {
    margin: 8px 0; /* 调整评分区域的上下边距 */
}
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo h2 {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #a29bfe;
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #a29bfe;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.login-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6c5ce7;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播横幅样式 */
.hero-carousel {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.carousel-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.6);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(108, 92, 231, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-section {
    min-width: 0;
}

/* 章节标题 */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
}

/* 动漫卡片网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.anime-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.3);
    border-color: #6c5ce7;
}

.anime-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

.score {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo h2 {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #a29bfe;
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #a29bfe;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.login-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6c5ce7;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播横幅样式 */
.hero-carousel {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.carousel-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.6);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(108, 92, 231, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-section {
    min-width: 0;
}

/* 章节标题 */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
}

/* 动漫卡片网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.anime-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.3);
    border-color: #6c5ce7;
}

.anime-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

.score {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: translateX(5px);
}

.rank-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.rank-number.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-number.silver {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #000;
}

.rank-number.bronze {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #000;
}

.rank-number:not(.gold):not(.silver):not(.bronze) {
    background: rgba(108, 92, 231, 0.3);
}

.ranking-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-score {
    font-size: 12px;
    color: #a29bfe;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(108, 92, 231, 0.2);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #a29bfe;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.6;
}

.company-info p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a29bfe;
}

.beian-link {
    color: #a29bfe !important;
    text-decoration: none;
}

.beian-link:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #6c5ce7;
}

/* 认证表单样式 */
.auth-container {
    padding: 40px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin: 15px 0;
        gap: 15px;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        flex: 1;
        max-width: 300px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .hero-carousel {
        height: 250px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h3 {
        font-size: 20px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-carousel {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
