/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化 - 减少重绘和重排 */
html {
    scroll-behavior: smooth;
}

/* 优化字体渲染 */
body {
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* 演员详情页面的body样式 */
body.actor-detail-page {
    background-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 120px);
    padding: 0.5rem 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 演员区域 */
.actors-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    width: 300px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* 演员网格 */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 中等屏幕 - 3列 */
@media (max-width: 1200px) {
    .actors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* 小屏幕 - 2列 */
@media (max-width: 900px) {
    .actors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.actor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.actor-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f3f4f6;
    overflow: hidden;
}

.actor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    /* 性能优化 */
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.actor-image.loaded {
    opacity: 1;
}

.actor-image.image-error {
    opacity: 0.7;
    filter: grayscale(100%);
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 0.9rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse 1.5s ease-in-out infinite;
}

.actor-info {
    padding: 1rem;
}

.actor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.actor-english-name {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.actor-bio {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actor-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.actor-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.actor-detail-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.actor-movies {
    margin-top: 1rem;
}

.actor-movies-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.actor-movies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.movie-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 0.4rem;
    color: white;
    font-size: 0.8rem;
}

/* 演员详情页背景 */
.actor-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.2) brightness(0.6);
}

.actor-page-background.loaded {
    opacity: 1;
}

.actor-page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* 演员详情页 */
.actor-detail {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.actor-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.actor-detail-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.actor-detail-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.actor-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.actor-detail-image.loading {
    opacity: 0;
}

.actor-detail-image.loaded {
    opacity: 1;
}

.actor-detail-image.image-error {
    opacity: 0.7;
    filter: grayscale(100%);
}

.actor-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.actor-detail-english-name {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.actor-detail-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.actor-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.actor-detail-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2,
.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* 个人信息网格 */
.actor-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.info-value {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* 参演作品列表 */
.tv-shows-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tv-show-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.tv-show-item:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.tv-show-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tv-show-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tv-show-year {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 无内容提示 */
.no-content {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.movie-year {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.movie-role {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.movie-description {
    color: #4b5563;
    line-height: 1.5;
}

.awards-list {
    list-style: none;
}

.awards-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.awards-list li:last-child {
    border-bottom: none;
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hobby-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.gallery-image.loaded {
    opacity: 1;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-card {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 580px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 8px 8px 0 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background: #f3f4f6;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-button {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.play-icon {
    color: #2563eb;
    font-size: 24px;
    margin-left: 3px; /* 视觉居中 */
    font-weight: bold;
}

.video-title {
    padding: 1rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 60px;
    justify-content: center;
    text-align: center;
}

.video-player-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 500px;
    background: #000;
    z-index: 10;
    display: none;
    border-radius: 8px;
}

.inline-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
}

.video-close-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 内联视频播放器 */
.video-player-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.inline-video-player {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.video-close-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: #e5e7eb;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(.disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .actors-grid {
        grid-template-columns: 1fr;
    }
    
    .actor-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .actor-detail-image {
        height: 300px;
    }
    
    .movies-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .video-player-container {
        width: 90%;
        height: 400px;
    }
    
    .video-card {
        height: 480px;
    }
    
    .video-thumbnail-container {
        height: 400px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: #6b7280;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin-bottom: 1.5rem;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.spinner::before {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    animation-delay: 0s;
}

.spinner::after {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    top: 10px;
    left: 10px;
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.5px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 3rem;
    color: #dc2626;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    cursor: grab;
    transition: transform 0.3s ease;
    user-select: none;
    object-fit: contain;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-image.zoomed {
    transform: scale(2);
    cursor: grab;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 图片控制按钮 */
.image-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.image-control-btn {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2002;
    position: relative;
    pointer-events: auto;
}

.image-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-modal-player {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    object-fit: contain;
}

.video-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-modal-close:hover {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1f2937;
    color: white;
}

.video-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-close:hover {
    color: white;
}

.video-modal-body {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式视频模态框 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 100vw;
        height: 100vh;
    }
    
    .video-modal-player {
        width: 100vw;
        height: 100vh;
    }
    
    .video-modal-close {
        top: 15px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
    }
    
    .modal-image {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .close {
        top: 15px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}
