 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html, body {
            height: 100%;
            width: 100%;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #ffffff;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        header {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #ffffff;
            padding: 15px 24px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            cursor: pointer;
        }
        
        .logo-icon {
            color: #ff6b6b;
            font-size: 28px;
            margin-right: 10px;
        }
        
        .logo-text {
            font-size: 22px;
            font-weight: 700;
            color: #333;
        }
        
        .logo-subtext {
            font-size: 12px;
            color: #666;
            margin-left: 8px;
        }
        
        main {
            padding: 20px 24px;
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        
        /* 详情页样式 */
        .detail-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            width: 100%;
        }
        
        /* 详情页顶部布局 - 整合统计信息 */
        .detail-top {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
            flex-shrink: 0;
            gap: 20px;
        }
        
        .detail-header {
            display: flex;
            align-items: center;
            flex: 1;
            gap: 20px;
        }
        
        .detail-title-section {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .detail-title {
            font-size: 22px;
            font-weight: 600;
            color: #222;
            flex: 1;
            min-width: 200px;
        }
        
        .detail-stats {
            display: flex;
            gap: 20px;
            font-size: 14px;
            color: #666;
            flex-wrap: wrap;
        }
        
        .detail-stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        
        .detail-stat-item strong {
            color: #ff6b6b;
            font-weight: 600;
        }
        
        .video-detail {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 100%;
            min-height: 0;
        }
        
        .detail-main {
            display: flex;
            gap: 20px;
            flex: 1;
            min-height: 0;
            width: 100%;
            height: calc(100vh - 200px); /* 自适应高度，减去头部和边距 */
        }
        
        .player-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            height: 100%;
        }
        
        .player-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            height: 100%;
        }
        
        .video-player {
            flex: 1;
            min-height: 0;
            background-color: #000;
            border-radius: 8px;
            overflow: hidden;
            width: 100%;
            height: 100%;
        }
        
        .video-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        /* 标题区域样式 - 改为按钮和解析框 */
        .video-actions {
            margin-top: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .action-buttons {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .history-btn {
            background: linear-gradient(90deg, #00b894, #00cec9);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .history-btn:hover {
            background: linear-gradient(90deg, #00a085, #00b7b7);
            box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
        }
        
        .share-btn {
            background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .share-btn:hover {
            background: linear-gradient(90deg, #ff5757, #ff7b7b);
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
        }
        
        .parse-container {
            flex: 1;
            display: flex;
            gap: 10px;
        }
        
        .parse-input {
            flex: 1;
            padding: 8px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
            outline: none;
        }
        
        .parse-input:focus {
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
        }
        
        .parse-btn {
            background: linear-gradient(90deg, #4a6cf7, #6a8cff);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .parse-btn:hover {
            background: linear-gradient(90deg, #3a5ce5, #5a7cff);
            box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
        }
        
        .recommendations {
            width: 320px; /* 固定宽度，1200px以上保持不变 */
            display: flex;
            flex-direction: column;
            min-height: 0;
            flex-shrink: 0;
            height: 100%;
        }
        
        .recommendations-title {
            font-size: 16px;
            font-weight: 600;
            color: #222;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
            flex-shrink: 0;
        }
        
        .recommendations-list {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
            min-height: 0;
            height: 100%;
        }
        
        .recommend-card {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            padding: 10px;
            border-radius: 8px;
            background-color: #fff;
            border: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .recommend-card:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-color: #e0e0e0;
        }
        
        .recommend-thumbnail {
            width: 80px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .recommend-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .recommend-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-width: 0;
        }
        
        .recommend-title {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #333;
        }
        
        .recommend-meta {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #666;
            margin-top: 5px;
        }
        
        .recommend-playcount {
            color: #ff6b6b;
            font-weight: 500;
        }
        
        .back-btn {
            background: linear-gradient(90deg, #4a6cf7, #6a8cff);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .back-btn:hover {
            background: linear-gradient(90deg, #3a5ce5, #5a7cff);
            box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
        }
        
        .back-btn i {
            margin-right: 6px;
        }
        
        /* 历史播放弹窗样式 */
        .history-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .history-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .history-content {
            background-color: white;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
        
        .history-modal.active .history-content {
            transform: translateY(0);
        }
        
        .history-header {
            padding: 20px 24px;
            background: linear-gradient(90deg, #00b894, #00cec9);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-title {
            font-size: 20px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .history-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }
        
        .history-close:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .history-body {
            padding: 20px;
            max-height: calc(80vh - 120px);
            overflow-y: auto;
        }
        
        .history-empty {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        
        .history-empty i {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        .history-empty p {
            font-size: 16px;
        }
        
        .history-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            border: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .history-item:hover {
            background-color: #f8f9fa;
            border-color: #e0e0e0;
            transform: translateX(5px);
        }
        
        .history-item.active {
            background-color: #e3f2fd;
            border-color: #4a6cf7;
        }
        
        .history-item-thumb {
            width: 80px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .history-item-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .history-item-info {
            flex: 1;
            min-width: 0;
        }
        
        .history-item-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .history-item-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #666;
        }
        
        .history-item-time {
            color: #4a6cf7;
            font-weight: 500;
        }
        
        .history-actions {
            padding: 15px 20px;
            border-top: 1px solid #f0f0f0;
            text-align: center;
        }
        
        .history-clear-btn {
            background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .history-clear-btn:hover {
            background: linear-gradient(90deg, #ff5757, #ff7b7b);
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
        }
        
        /* 自定义滚动条 */
        .recommendations-list::-webkit-scrollbar,
        .history-body::-webkit-scrollbar {
            width: 6px;
        }
        
        .recommendations-list::-webkit-scrollbar-track,
        .history-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .recommendations-list::-webkit-scrollbar-thumb,
        .history-body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        .recommendations-list::-webkit-scrollbar-thumb:hover,
        .history-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
       /* 响应式设计 */
/* 1000px以上：保持左右布局，右边推荐列表固定宽度 */
@media (min-width: 1000px) {
    .detail-main {
        height: calc(100vh - 200px);
    }
}

/* 1000px以下：切换为手机端适配 */
@media (max-width: 999px) {
    .detail-main {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 240px);
    }
    
    .recommendations {
        width: 100%;
        margin-top: 20px;
        height: auto;
        max-height: 500px;
    }
    
    .player-wrapper {
        min-height: 400px;
    }
    
    .detail-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-header {
        width: 100%;
    }
    
    .detail-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
        
        @media (max-width: 1024px) {
            main {
                padding: 15px;
            }
        }
        
        @media (max-width: 768px) {
            .video-title-detail {
                font-size: 16px;
            }
            
            .detail-title {
                font-size: 18px;
            }
            
            .detail-stats {
                gap: 10px;
                font-size: 13px;
            }
            
            .video-actions {
                flex-direction: column;
                align-items: stretch;
            }
            
            .action-buttons {
                width: 100%;
                justify-content: center;
            }
            
            .parse-container {
                width: 100%;
            }
            
            .history-content {
                width: 95%;
                max-height: 90vh;
            }
            
            .history-body {
                max-height: calc(90vh - 120px);
            }
        }
        
        @media (max-width: 600px) {
            header {
                padding: 12px 15px;
            }
            
            .logo-icon {
                font-size: 24px;
            }
            
            .logo-text {
                font-size: 18px;
            }
            
            .recommend-card {
                flex-direction: column;
                gap: 8px;
            }
            
            .recommend-thumbnail {
                width: 100%;
                height: 120px;
            }
            
            .detail-stats {
                flex-direction: column;
                gap: 5px;
            }
            
            .history-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .history-item-thumb {
                width: 100%;
                height: 120px;
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
        
        @media (max-width: 480px) {
            .nav-tabs {
                gap: 3px;
            }
            
            .tab-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .history-btn,
            .share-btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        /* 全局滚动条 */
        body::-webkit-scrollbar {
            width: 8px;
        }
        
        body::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* 隐藏元素 */
        .hidden {
            display: none !important;
        }
        
        /* URL参数提示 */
        .url-info {
            font-size: 12px;
            color: #666;
            background-color: #f8f9fa;
            padding: 8px 12px;
            border-radius: 6px;
            margin-bottom: 15px;
            border-left: 3px solid #4a6cf7;
            flex-shrink: 0;
        }
        
        /* 加载和错误样式 */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 400px;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: #4a6cf7;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: #666;
            font-size: 15px;
        }
        
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 400px;
            text-align: center;
            padding: 20px;
        }
        
        .error-icon {
            font-size: 56px;
            color: #ff6b6b;
            margin-bottom: 20px;
            opacity: 0.8;
        }
        
        .error-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            color: #333;
        }
        
        .error-message {
            font-size: 15px;
            color: #666;
            margin-bottom: 24px;
            max-width: 500px;
        }
        
        .retry-btn {
            background: linear-gradient(90deg, #4a6cf7, #6a8cff);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .retry-btn:hover {
            background: linear-gradient(90deg, #3a5ce5, #5a7cff);
            box-shadow: 0 5px 15px rgba(74, 108, 247, 0.25);
        }
        
        .retry-btn i {
            margin-right: 8px;
        }
        
        .stats-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .stat-item {
            font-size: 14px;
            color: #666;
        }
        
        .stat-item strong {
            color: #ff6b6b;
            font-weight: 600;
        }
        
        /* 提示消息样式 */
        .toast-message {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(90deg, #4a6cf7, #6a8cff);
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
            animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
            animation-fill-mode: forwards;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes fadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }
        
        /* 首页logo隐藏 */
        .home-logo {
            display: none !important;
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
  