/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Design System */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f0f9ff;
    --background-white: #ffffff;
    --background-gray: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    scroll-behavior: smooth;
    background-color: var(--background-white);
}

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

/* Header */
.mark-header {
    background: var(--background-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.mark-header .mark-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.mark-logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -1px;
}

.mark-nav {
    display: flex;
    gap: 30px;
}

.mark-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.mark-nav-link:hover,
.mark-nav-link.mark-active {
    color: var(--primary-color);
}

.mark-nav-link.mark-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mark-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mark-search-icon {
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
}

.mark-language-selector {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

/* Video Center Main Content */
.mark-video-center {
    margin-top: 70px;
    padding: 40px 0;
    background: var(--background-white);
}

/* Top Navigation Tabs */
.mark-video-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mark-video-nav-tabs {
    display: flex;
    gap: 30px;
}

.mark-video-tab {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.mark-video-tab.mark-active {
    color: var(--primary-color);
}

.mark-video-tab.mark-active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mark-breadcrumb {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Main Video Section */
.mark-main-video-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

/* 主视频播放器增强样式 */
.mark-main-video-player .mark-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mark-main-video-player .mark-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mark-main-video-player .mark-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.mark-main-video-player .mark-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.mark-main-video-player .mark-play-button svg {
    color: white;
    margin-left: 4px;
}

.mark-main-video-player .mark-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
}

.mark-main-video-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mark-main-video-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Main Video Player */
.mark-main-video-player {
    background: var(--background-gray);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.mark-video-thumbnail {
    width: 100%;
    height: 100%;
    background: var(--background-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.mark-play-button {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.mark-play-button:hover {
    transform: scale(1.1);
    background: white;
}

.mark-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.mark-video-time {
    font-size: 14px;
    font-weight: 500;
}

.mark-video-progress {
    flex: 1;
    margin: 0 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
}

.mark-progress-bar {
    width: 30%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.mark-video-actions {
    display: flex;
    gap: 10px;
}

.mark-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.mark-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Videos */
.mark-sidebar-videos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: space-between;
}

.mark-sidebar-video-item {
    background: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.mark-sidebar-video-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mark-sidebar-thumbnail {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mark-sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mark-sidebar-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.mark-sidebar-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.mark-sidebar-play-btn svg {
    color: white;
    margin-left: 2px;
}

.mark-sidebar-info {
    padding: 12px;
}

.mark-sidebar-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.mark-sidebar-play-btn {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mark-sidebar-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Content Sections */
.mark-content-section {
    display: none;
}

.mark-content-section.mark-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Category Tabs */
.mark-video-categories {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mark-category-tab {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.mark-category-tab.mark-active {
    color: var(--primary-color);
}

.mark-category-tab.mark-active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Video Grid */
.mark-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Graphic Grid */
.mark-graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.mark-graphic-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.mark-graphic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mark-graphic-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.mark-graphic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.mark-graphic-content {
    padding: 20px;
}

.mark-graphic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mark-graphic-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mark-graphic-date {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

.mark-video-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.mark-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mark-video-card-thumbnail {
    aspect-ratio: 16/9;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mark-card-play-btn {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.mark-video-card:hover .mark-card-play-btn {
    transform: scale(1.1);
    background: white;
}

.mark-video-card-content {
    padding: 20px;
}

.mark-video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mark-video-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mark-video-date {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

/* Pagination */
.mark-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.mark-page-btn {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.mark-page-btn:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.mark-page-btn.mark-active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mark-page-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 10px;
}

/* Footer */
.mark-footer-top {
    background: var(--background-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.mark-footer-top h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.mark-footer-top p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.mark-footer-bottom {
    background: var(--background-light);
    padding: 60px 0 30px;
}

.mark-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.mark-footer-column h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mark-footer-column ul {
    list-style: none;
}

.mark-footer-column li {
    margin-bottom: 10px;
}

.mark-footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.mark-footer-column a:hover {
    color: var(--primary-color);
}

.mark-follow-us {
    text-align: center;
}

.mark-qr-codes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mark-qr-code {
    text-align: center;
}

.mark-qr-placeholder {
    width: 80px;
    height: 80px;
    background: #e5e7eb;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

.mark-qr-code span {
    color: var(--text-secondary);
    font-size: 12px;
}

.mark-footer-contact {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.mark-footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.mark-copyright {
    font-size: 12px;
    color: var(--text-light);
}

/* Video Modal Styles */
.mark-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mark-video-modal.show {
    display: flex;
}

.mark-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.mark-modal-content {
    position: relative;
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mark-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-white);
}

.mark-modal-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.mark-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.mark-modal-close:hover {
    background: var(--background-gray);
    color: var(--text-primary);
}

.mark-modal-video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.mark-modal-video-container video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    display: block;
}

.mark-modal-footer {
    padding: 20px 30px;
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
}

.mark-modal-footer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .mark-video-modal {
        padding: 10px;
    }
    
    .mark-modal-content {
        max-height: 95vh;
    }
    
    .mark-modal-header {
        padding: 15px 20px;
    }
    
    .mark-modal-header h3 {
        font-size: 18px;
    }
    
    .mark-modal-footer {
        padding: 15px 20px;
    }
    
    .mark-modal-video-container video {
        max-height: 50vh;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mark-main-video-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mark-sidebar-videos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .mark-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .mark-graphic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mark-nav {
        display: none;
    }
    
    .mark-video-nav {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .mark-video-nav-tabs {
        gap: 20px;
    }
    
    .mark-video-categories {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .mark-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mark-graphic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mark-sidebar-videos {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .mark-sidebar-video-item {
        min-height: 100px;
    }
    
    .mark-sidebar-thumbnail {
        min-height: 80px;
    }
    
    .mark-sidebar-play-btn {
        width: 35px;
        height: 35px;
    }
    
    .mark-sidebar-play-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mark-sidebar-time {
        font-size: 11px;
        padding: 2px 5px;
        bottom: 6px;
        right: 6px;
    }
    
    .mark-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .mark-footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mark-qr-codes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mark-container {
        padding: 0 15px;
    }
    
    .mark-video-center {
        padding: 20px 0;
    }
    
    .mark-sidebar-videos {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .mark-sidebar-video-item {
        min-height: 80px;
    }
    
    .mark-sidebar-thumbnail {
        min-height: 60px;
    }
    
    .mark-sidebar-play-btn {
        width: 30px;
        height: 30px;
    }
    
    .mark-sidebar-play-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .mark-sidebar-time {
        font-size: 10px;
        padding: 1px 4px;
        bottom: 4px;
        right: 4px;
    }
    
    .mark-video-title {
        font-size: 14px;
    }
    
    .mark-video-description {
        font-size: 13px;
    }
}

/* 模板相关样式 */
.mark-video-badge,
.mark-video-featured,
.mark-graphic-badge,
.mark-graphic-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.mark-video-featured,
.mark-graphic-featured {
    background: #f59e0b;
    top: 40px;
}

.mark-video-meta,
.mark-graphic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mark-video-stats,
.mark-graphic-stats {
    display: flex;
    gap: 10px;
}

.mark-video-tags,
.mark-graphic-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mark-tag {
    background: #f3f4f6;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.mark-no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

.mark-video-card-thumbnail img,
.mark-graphic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
