@charset "UTF-8";

:root {
    --primary-pink: #FF9ECD;
    --primary-blue: #7DD3FC;
    --primary-purple: #C4B5FD;
    --primary-yellow: #FDE68A;
    --primary-green: #86EFAC;
    --primary-orange: #FDBA74;
    --primary-cyan: #67E8F9;
    --bg-light: #FFF5F8;
    --bg-white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #FFE4EC 0%, #E0F4FF 50%, #F3E8FF 100%);
    --text-dark: #4A4A6A;
    --text-light: #7A7A9A;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(255, 158, 205, 0.25);
    --shadow-hover: 0 8px 30px rgba(255, 158, 205, 0.4);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-purple);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-pink);
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.1);
    border-color: var(--primary-purple);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-btn .menu-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* 移动端侧边菜单遮罩 */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端侧边菜单 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.mobile-sidebar-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.mobile-close-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-list {
    padding: 10px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.mobile-subnav {
    background: var(--bg-light);
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
}

.mobile-subnav li {
    width: 50%;
    padding: 5px;
}

.mobile-subnav-link {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.mobile-subnav-link:hover,
.mobile-subnav-link.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.nav-list {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.after::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.7;
}

.subnav {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

.nav-item:hover .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subnav-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    transition: var(--transition);
}

.subnav-link:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--primary-pink);
    overflow: hidden;
}

.search-type {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    min-width: 200px;
}

.search-btn {
    padding: 10px 25px;
    border: none;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.main {
    padding: 30px 0;
    min-height: calc(100vh - 300px);
}

.banner-section {
    margin-bottom: 40px;
}

.banner {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    position: relative;
    height: 450px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.banner-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.banner-info span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: var(--primary-pink);
    transform: scale(1.3);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    color: var(--primary-pink);
}

.banner-arrow:hover {
    background: var(--primary-pink);
    color: white;
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-pink);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.section-title::before {
    content: '';
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, var(--primary-pink), var(--primary-purple));
    border-radius: 3px;
}

.section-more {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.section-more:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.video-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.video-card,
.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover,
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .card-cover img,
.article-card:hover .card-cover img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    font-size: 0.75rem;
    border-radius: 50px;
}

.card-score {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50px;
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .card-play {
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dark);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 文章列表样式 - 横向图文列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.article-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(to right, #fff, #fafafa);
}

.article-card .card-cover {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 180px;
    overflow: hidden;
}

.article-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-cover img {
    transform: scale(1.05);
}

.article-card .card-info {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.article-card .card-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
    word-wrap: break-word;
    word-break: break-all;
    line-height: 1.4;
}

.article-card .card-desc {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-all;
    min-height: 0;
}

.article-card .card-time {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 响应式横向图文列表 */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-card .card-cover {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
    
    .article-card .card-info {
        padding: 15px;
    }
    
    .article-card .card-title {
        font-size: 1rem;
    }
}

.article-card .card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    color: white;
    font-size: 0.75rem;
    border-radius: 50px;
}

/* 文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* 文章小卡片（用于相关推荐等） */
.article-small-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.article-small-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-small-card .card-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-small-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-small-card:hover .card-cover img {
    transform: scale(1.1);
}

.article-small-card .card-info {
    padding: 12px;
}

.article-small-card .card-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dark);
}

.article-small-card .card-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-link {
    padding: 10px 25px;
    background: white;
    border-radius: 50px;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.friend-link:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    transform: translateY(-3px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-pink);
}

.breadcrumb span {
    color: var(--text-light);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-pink);
    margin-bottom: 25px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.page-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.page-count strong {
    color: var(--primary-pink);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: var(--text-dark);
    white-space: nowrap;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filter-tag:hover {
    border-color: var(--primary-pink);
}

.filter-tag.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* 播放页布局 - 垂直排列 */
.play-article {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.play-header {
    margin-bottom: 20px;
    text-align: center;
}

.play-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.play-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.player-box {
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
}

.player-box iframe,
.player-box video {
    width: 100%;
    height: 100%;
}

.episode-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.episode-btn {
    padding: 8px 20px;
    background: white;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.episode-btn:hover:not([disabled]) {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.episode-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.episode-current {
    font-weight: bold;
    color: var(--primary-pink);
}

.play-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.info-row {
    flex: 1;
    min-width: 200px;
}

.info-row .info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-row .info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* 播放页剧集列表 */
.play-source {
    margin-top: 20px;
}

.source-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-pink);
}

.source-group {
    margin-bottom: 20px;
}

.source-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-item {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.source-item:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.source-item.current {
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: bold;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.detail-cover {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.detail-cover .card-play {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

/* 文章详情页封面 - 使用横向比例 */
.detail-sidebar .detail-cover img {
    aspect-ratio: 16/10;
}

/* 文章详情页布局 */
.detail-article {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
}

.detail-header {
    margin-bottom: 20px;
    text-align: center;
}

.detail-header .detail-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.detail-header .detail-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.detail-header .detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.detail-article .detail-cover {
    margin: 20px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.detail-article .detail-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.detail-article .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-main {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.detail-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.detail-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-tag {
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.detail-desc {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.action-btn.secondary {
    background: white;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.play-source {
    margin-top: 30px;
}

.source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-pink);
    padding-bottom: 10px;
}

.source-tab {
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.source-tab:hover {
    background: var(--primary-pink);
    color: white;
}

.source-tab.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.source-item {
    padding: 12px;
    background: white;
    border: 2px solid var(--primary-pink);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.source-item:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.source-item.current {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 20px 0;
}

.player-box iframe,
.player-box video {
    width: 100%;
    height: 100%;
}

.episode-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.episode-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary-pink);
    border-radius: 50px;
    color: var(--primary-pink);
    cursor: pointer;
    transition: var(--transition);
}

.episode-btn:hover:not(:disabled) {
    background: var(--primary-pink);
    color: white;
}

.episode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.related-section {
    margin-top: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.rank-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.rank-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-title::before {
    content: '🏆';
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: var(--transition);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: var(--bg-light);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--border-radius);
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-yellow);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
}

.rank-num.top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
} 

.rank-cover {
    width: 50px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0px 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--primary-pink);
    border-radius: var(--border-radius);
    color: var(--primary-pink);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    background: var(--primary-pink);
    color: white;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 10px;
    color: var(--text-light);
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0 20px;
    box-shadow: 0 -4px 20px rgba(255, 158, 205, 0.15);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-pink);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-copyright a {
    color: var(--primary-pink);
}

.comment-section {
    margin-top: 40px;
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.comment-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    line-height: 2;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}


.layout-with-sidebar {
    display: flex;
    gap: 30px;
}
.main-content {
    width: 80%;
    flex: 80%;
    max-width: 80%;
    box-sizing: border-box;
    overflow: hidden;
}
.sidebar{
    width: 20%;
    flex: 20%;
    max-width: 20%;
}

@media (max-width: 1024px) {
    .detail-layout,
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
        display: flex;
        gap: 20px;
    }
    
    .detail-cover {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        min-width: 100px;
    }
    
    .banner-item {
        height: 300px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-overlay {
        padding: 20px;
    }
    
    .video-grid,
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-cover {
        max-width: 150px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .source-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-item {
        height: 200px;
    }
    
    .banner-dots {
        bottom: 10px;
        right: 20px;
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .video-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .detail-sidebar {
        flex-direction: column;
    }
    
    .detail-cover {
        max-width: 100%;
    }
    
    .article-content {
        padding: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-pink);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .main-content{
        width: 100%;
        flex: 100%;
        max-width: 100%;
    }
    .sidebar{
        display: none;
    }
}