/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 15px;
}

.nav-menu {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.logo-icon {
    margin-right: 8px;
    font-size: 28px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}

.nav-menu ul::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e74c3c;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e74c3c;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 15px;
    width: 250px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    font-size: 16px;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 轮播图 */
.banner-section {
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.banner-slide {
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-img {
    height: 400px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.banner-content {
    color: #fff;
    max-width: 500px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.play-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    transition: background 0.3s;
}

.play-btn:hover {
    background: #c0392b;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 通用区块 */
.section {
    padding: 30px 0;
}

.section-alt {
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 24px;
}

.more-link {
    color: #e74c3c;
    font-size: 14px;
    transition: opacity 0.3s;
}

.more-link:hover {
    opacity: 0.8;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumb {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.play-overlay {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #e74c3c;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-desc {
    font-size: 13px;
    color: #999;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e74c3c;
}

.separator {
    color: #ccc;
}

.current {
    color: #999;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.filter-label {
    font-weight: bold;
    color: #333;
    min-width: 50px;
    padding-top: 5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background: #e74c3c;
    color: #fff;
}

/* 排序选项 */
.sort-options {
    display: flex;
    gap: 15px;
}

.sort-options a {
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

.sort-options a.active,
.sort-options a:hover {
    color: #e74c3c;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 15px;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-btn:hover,
.page-btn.active {
    background: #e74c3c;
    color: #fff;
}

.page-ellipsis {
    color: #999;
}

/* 播放器区域 */
.player-section {
    background: #1a1a2e;
    padding: 30px 0;
}

.player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.play-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.player-placeholder:hover .play-icon {
    opacity: 1;
}

.player-placeholder p {
    font-size: 18px;
    margin-bottom: 5px;
}

.sub-text {
    font-size: 14px;
    opacity: 0.7;
}

.player-info h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 选集区域 */
.episode-section {
    background: #fff;
    padding: 30px 0;
}

.episode-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s;
}

.episode-item:hover,
.episode-item.active {
    background: #e74c3c;
    color: #fff;
}

.episode-num {
    font-weight: bold;
    font-size: 16px;
}

.episode-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 详情区域 */
.detail-section {
    background: #f5f5f5;
    padding: 30px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.detail-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.detail-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.character-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
}

.character-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.character-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.character-info p {
    font-size: 13px;
    color: #999;
}

.info-list {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    min-width: 80px;
}

.info-value {
    color: #333;
}

.rating {
    color: #f39c12;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links a {
    padding: 8px 20px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.friend-links a:hover {
    background: #e74c3c;
    color: #fff;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
