/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* 深色模式下的筛选器样式 */
body.dark-mode .iqiyi-filter {
    background: #2d3748;
}

body.dark-mode .filter-label {
    color: #e0e0e0;
}

body.dark-mode h1 {
    color: #e0e0e0;
}

body.dark-mode detail-plot h2{
    color: #e0e0e0;
}

body.dark-mode .filter-tag-item {
    background: transparent;
    border: none;
    color: #e0e0e0;
}

body.dark-mode .filter-tag-item:hover {
    color: #38a169;
}

body.dark-mode .filter-tag-item.active {
    color: #38a169;
    font-weight: 500;
}

body.dark-mode .filter-expand {
    background: transparent;
    border-color: #718096;
    color: #e0e0e0;
}

body.dark-mode .filter-expand:hover {
    border-color: #63b3ed;
    color: #63b3ed;
}

body.dark-mode .filter-tags {
    background: #2c5282;
}

body.dark-mode .filter-tag {
    background: #3182ce;
}

body.dark-mode .filter-reset {
    background: #718096;
}

body.dark-mode .filter-reset:hover {
    background: #4a5568;
}

.container h1{
    margin-top: 40px; font-size: 2rem; color: #1a1a2e;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff5252;
    transform: translateY(-5px);
}

/* 深色模式下的返回顶部按钮 */
body.dark-mode .back-to-top {
    background: #4a5568;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .back-to-top:hover {
    background: #2d3748;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.search-box {
    display: flex;
    gap: 10px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector select {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.language-selector select option {
    background-color: #1a1a2e;
    color: white;
}

.dark-mode-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    background: rgba(255,255,255,0.2);
}

.dark-mode-btn .dark-icon {
    display: none;
}

body.dark-mode .dark-mode-btn .light-icon {
    display: none;
}

body.dark-mode .dark-mode-btn .dark-icon {
    display: inline;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-box button {
    padding: 8px 16px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #ee5a5a;
}

/* 英雄区域 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    animation: imageSlide 20s infinite;
}

@keyframes imageSlide {
    0%, 100% {
        background-image: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    }
    33% {
        background-image: url('https://images.unsplash.com/photo-1485846234645-a62644f84728?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    }
    66% {
        background-image: url('https://images.unsplash.com/photo-1440404653325-ab127d49abc1?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #667eea;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* 爱奇艺模式筛选器样式 */
.iqiyi-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

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

.filter-label {
    font-weight: 500;
    margin-right: 15px;
    min-width: 60px;
    color: #495057;
    font-size: 14px;
}

.filter-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-tag-item {
    padding: 4px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag-item:hover {
    color: #28a745;
}

.filter-tag-item.active {
    color: #28a745;
    font-weight: 500;
}

.filter-expand {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ced4da;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-expand:hover {
    border-color: #007bff;
    color: #007bff;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #28a745;
    color: white;
    border-radius: 0;
    font-size: 13px;
}

.filter-tag .remove-tag {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.filter-tag .remove-tag:hover {
    opacity: 0.8;
}

.filter-reset {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.filter-reset:hover {
    background: #5a6268;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .iqiyi-filter {
        padding: 0 10px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-label {
        margin-right: 0;
        min-width: auto;
        font-size: 13px;
    }
    
    .filter-tags-container {
        min-width: 100%;
        gap: 8px;
    }
    
    .filter-tag-item {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .filter-tags {
        padding: 10px;
        gap: 8px;
    }
    
    .filter-tag {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .filter-reset {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filter-tags-container {
        gap: 6px;
    }
    
    .filter-tag-item {
        padding: 2px 8px;
        font-size: 11px;
    }
    
    .filter-tags {
        padding: 8px;
        gap: 6px;
    }
    
    .filter-tag {
        padding: 2px 8px;
        font-size: 11px;
    }
}

/* 卡片容器 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* 演员卡片容器 */
.actor-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.actor-card-container .card-link {
    flex: 0 0 calc(16.666% - 10px);
    max-width: calc(16.666% - 10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .actor-card-container .card-link {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    
    .actor-card .card-img {
        width: 60px;
        height: 60px;
    }
    
    .actor-card .card-title {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .actor-card-container .card-link {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
    
    .actor-card .card-img {
        width: 50px;
        height: 50px;
    }
    
    .actor-card .card-title {
        font-size: 10px;
    }
}

/* 卡片链接 */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-5px);
}

/* 卡片 */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 卡片图片容器 */
.card-img-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}


/* 卡片图片容器 */
.card-img-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

/* 国家信息 */
.country {
    display: inline-block;
    margin: 0 0 0 6px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.12);
    color: #1e1e1e;
    border-radius: 4px;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode .country {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
}

/* 卡片图片 */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* 卡片覆盖层 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

/* 覆盖层文本 */
.overlay-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0,0,0,0.8);
    padding: 8px 16px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.card:hover .overlay-text {
    transform: translateY(0);
}

/* 卡片内容 */
.card-content {
    padding: 16px 16px 0 16px;
}

/* 卡片标题 */
.card-title {
    font-size: 16px;
    font-weight: 600;
    /**margin: 0 0 12px 0;**/
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

body.dark-mode .card-title {
    color: #e0e0e0;
}

.actors{
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.w180{
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* 卡片信息 */
.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

body.dark-mode .card-info {
    color: #a0a0a0;
}

/* 卡片评分 */
.card-rating {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating::before {
    content: '★';
    font-size: 10px;
}

/* 卡片类型 */
.card-genres {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.dark-mode .card-genres {
    color: #b0b0b0;
}

body.dark-mode .card {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* 演员卡片 */
.actor-card .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
}

.actor-card .card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 4px 0;
}

.actor-card .card-content {
    padding: 0;
    width: 100%;
}

.actor-card .card-title {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
}

/* 加载状态 */
.loading,
.loading-more,
.load-error {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
}

.loading-more {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.load-error {
    grid-column: 1 / -1;
    margin-top: 20px;
    color: #dc3545;
}

body.dark-mode .loading,
body.dark-mode .loading-more {
    color: #a0a0a0;
}

body.dark-mode .load-error {
    color: #f87171;
}

/* 深色模式下的演员卡片 */
body.dark-mode .actor-card .card {
    background: #2d3748;
}

body.dark-mode .actor-card .card-title {
    color: #e0e0e0;
}

/* 详情页样式 */
.detail-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.detail-img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

body.dark-mode .detail-info h1 {
    color: #ffffff;
}

.detail-original {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.original-label,
.language-label {
    color: #999;
    font-weight: 400;
}

.original-name {
    font-weight: 500;
    color: #1a1a2e;
    font-style: italic;
}

.separator {
    color: #ddd;
    margin: 0 5px;
}

.original-language {
    padding: 3px 10px;
    background-color: #e8f4f8;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #1976d2;
    font-weight: 500;
}

body.dark-mode .original-label,
body.dark-mode .language-label {
    color: #a0aec0;
}

body.dark-mode .original-name {
    color: #e0e0e0;
}

body.dark-mode .separator {
    color: #555;
}

body.dark-mode .original-language {
    background-color: #1e3a5f;
    color: #64b5f6;
}

body.dark-mode .overview-toggle {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #cbd5e1;
}

body.dark-mode .overview-toggle:hover {
    background-color: #3d4852;
    border-color: #64748b;
}

body.dark-mode .card-link .card-title {
    color: #e0e0e0;
}

body.dark-mode .card-link:hover .card-title {
    color: #ff6b6b;
}

.detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

body.dark-mode .detail-meta {
    color: #a0aec0;
}

.detail-rating {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
}

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

.detail-overview h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

body.dark-mode .detail-overview h2 {
    color: #ffffff;
}

.overview-content {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.overview-footer {
    text-align: center;
    margin-top: 10px;
}

.overview-toggle {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    color: #007722;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.overview-toggle:hover {
    background-color: #e8e8e8;
    color: #0056b3;
}

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

.detail-section h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
 
}

.detail-section p {
    margin: 0 0 5px 0;
}

/* 详细剧情样式 */
.detail-plot-container {
    margin: 30px 0;
}

.detail-plot {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 0;
    width: 100%;
}

@media (min-width: 1200px) {
    .detail-plot {
        padding: 30px;
    }
}

.plot-content {
    line-height: 1.7;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.plot-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1rem;
}

.plot-content p:last-child {
    margin-bottom: 0;
}

.plot-content strong {
    color: #1a1a2e;
    font-weight: 700;
    display: block;
    margin: 25px 0 12px;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.plot-content strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ff6b6b;
}

body.dark-mode .plot-content strong {
    border-bottom-color: #4a5568;
}

body.dark-mode .plot-content strong::after {
    background: #ff6b6b;
}

body.dark-mode .detail-plot {
    background: #2d3748;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.dark-mode .plot-content {
    color: #e0e0e0;
}

body.dark-mode .plot-content strong {
    color: #ffffff;
}

/* 演员卡片样式 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.cast-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.dark-mode .cast-card {
    background: #2d3748;
}

.cast-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    margin-bottom: 5px;
}

body.dark-mode .cast-avatar {
    border-color: #4a5568;
}

.cast-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

body.dark-mode .cast-name {
    color: #e0e0e0;
}

.cast-role {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

body.dark-mode .cast-role {
    color: #a0aec0;
}

/* 演员详情页样式 */
.actor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.actor-card {
    min-width: 150px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.actor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body.dark-mode .actor-card {
    background: #2d3748;
}

.actor-card .actor-avatar {
    width: 140px;
    height: 140px;
    margin: 10px auto;
}

.actor-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 10px 0 5px;
}

.actor-card .card-info {
    font-size: 0.9rem;
    color: #888;
}

.actor-card .card-content p {
    font-size: 0.9rem;
    color: #aaa;
}

.card-role {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

/* 额外信息样式 */
.detail-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.extra-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.extra-label {
    color: #999;
    font-size: 0.9rem;
    min-width: 60px;
}

.extra-value {
    color: #1a1a2e;
    font-size: 0.9rem;
}

.alias-name {
    color: #666;
    font-style: italic;
}

body.dark-mode .extra-label {
    color: #a0aec0;
}

body.dark-mode .extra-value {
    color: #e0e0e0;
}

body.dark-mode .alias-name {
    color: #a0aec0;
}

/* 页脚样式 */
footer {
    background-color: #1a1a2e;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-section ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #ccc;
}

/* 法律页面样式 */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1a1a2e;
    text-align: center;
}

.legal-date {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 60px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin: 20px 0 15px;
    color: #1a1a2e;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

.legal-section a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #e55555;
    text-decoration: underline;
}

/* 深色模式适配 */
body.dark-mode .legal-content h1,
body.dark-mode .legal-content h2,
body.dark-mode .legal-content h3 {
    color: #ffffff;
}

body.dark-mode .legal-date {
    color: #aaa;
}

body.dark-mode .legal-section {
    border-bottom-color: #4a5568;
}

body.dark-mode .legal-section h2 {
    border-bottom-color: #ff6b6b;
}

body.dark-mode .legal-section p,
body.dark-mode .legal-section li {
    color: #e0e0e0;
}

body.dark-mode .legal-section a {
    color: #ff6b6b;
}

body.dark-mode .legal-section a:hover {
    color: #ff8787;
}

/* 法律页面美化样式 */
.highlight-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #ff6b6b;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.highlight-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a2e;
    margin: 0;
}

.source-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.source-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.source-card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.source-card ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.source-card li {
    margin-bottom: 5px;
    color: #555;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warning-box p {
    color: #856404;
    margin: 0;
}

.disclaimer-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.disclaimer-box p {
    color: #721c24;
    margin-bottom: 10px;
}

.disclaimer-box ul {
    margin: 0;
    padding-left: 20px;
}

.disclaimer-box li {
    color: #721c24;
    margin-bottom: 5px;
}

.license-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.license-box h3 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.license-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.license-box li {
    color: #155724;
    margin-bottom: 5px;
}

.process-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e9ecef;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 5px;
    color: #555;
}

.contact-info {
    background: #e8f4f8;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.contact-info li {
    margin-bottom: 10px;
    color: #004085;
    padding-left: 25px;
    position: relative;
}

.contact-info li:before {
    content: "📧";
    position: absolute;
    left: 0;
}

/* 深色模式适配 */
body.dark-mode .highlight-section {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-left-color: #ff6b6b;
}

body.dark-mode .highlight-text {
    color: #e0e0e0;
}

body.dark-mode .source-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .source-card h3 {
    color: #e0e0e0;
}

body.dark-mode .source-card li {
    color: #a0aec0;
}

body.dark-mode .warning-box {
    background: #3d3520;
    border-color: #ffc107;
}

body.dark-mode .warning-box h3,
body.dark-mode .warning-box p {
    color: #ffc107;
}

body.dark-mode .disclaimer-box {
    background: #3d2024;
    border-color: #f5c6cb;
}

body.dark-mode .disclaimer-box p,
body.dark-mode .disclaimer-box li {
    color: #f5c6cb;
}

body.dark-mode .license-box {
    background: #1e3a2f;
    border-color: #c3e6cb;
}

body.dark-mode .license-box h3,
body.dark-mode .license-box li {
    color: #c3e6cb;
}

body.dark-mode .step {
    background: #2d3748;
}

body.dark-mode .step:hover {
    background: #3d4852;
}

body.dark-mode .step-content h4 {
    color: #e0e0e0;
}

body.dark-mode .step-content li {
    color: #a0aec0;
}

body.dark-mode .contact-info {
    background: #1e3a5f;
    border-color: #4a90c2;
}

body.dark-mode .contact-info li {
    color: #90cdf4;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section ul {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* 头部样式调整 */
    header {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-links li {
        flex-shrink: 0;
    }
    
    .nav-links a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .header-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .search-box input {
        flex: 1;
    }
    
    /* 卡片容器调整 */
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .card-img {
        height: 250px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-info {
        font-size: 0.85rem;
    }
    
    /* 详情页调整 */
    .detail-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    .detail-info h1 {
        font-size: 1.8rem;
    }
    
    .detail-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .cast-card {
        padding: 3px;
    }
    
    .cast-avatar {
        width: 60px;
        height: 60px;
    }
    
    .cast-name {
        font-size: 0.75rem;
    }
    
    .cast-role {
        font-size: 0.65rem;
    }
    
    /* 法律页面调整 */
    .legal-content {
        margin: 20px auto;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-content ul {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .card-img {
        height: 200px;
    }
    
    .card-content {
        padding: 8px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .detail-info h1 {
        font-size: 1.5rem;
    }
    
    .detail-section h2 {
        font-size: 1.2rem;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
    
    .highlight-section,
    .source-card,
    .warning-box,
    .disclaimer-box,
    .license-box,
    .step,
    .contact-info {
        padding: 15px;
    }
}






/* 打印样式 */
@media print {
    /* 隐藏不需要打印的元素 */
    header,
    footer,
    .back-to-top {
        display: none !important;
    }
    
    /* 调整打印内容的样式 */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .legal-content {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .legal-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .legal-info {
        background: #f9f9f9 !important;
        border: 1px solid #ccc;
    }
    
    .print-btn {
        display: none !important;
    }
    
    /* 确保内容在打印时正确分页 */
    .legal-section {
        page-break-inside: avoid;
    }
}



.no-results {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #667eea;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.no-results-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


/* 深色模式下的无数据状态样式 */
body.dark-mode .no-results {
    background: rgba(45, 55, 72, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .no-results-icon {
    color: #8a94e6;
}

body.dark-mode .no-results h3 {
    color: #e0e0e0;
}

body.dark-mode .no-results p {
    color: #a0aec0;
}

body.dark-mode .no-results-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode .no-results-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}
