/*
Theme Name: 智行者IC社区（CeoEdu-Pro 定制版）
Theme URI: https://www.2632.net
Description: 基于CeoEdu-Pro主题的智行者IC社区定制版 - PCB Layout工程师技术进化枢纽。采用现代化模块化架构，深耕EDA领域，专注Cadence/AD、Mentor Xpedition工具实操。
Author: 智行者IC社区
Author URI: https://www.2632.net
Template: ceoedu-pro
Version: 2.0.0
Tags: PCB设计, Layout, EDA, 高速电路, 仿真测试, Cadence, child-theme
Text Domain: ceoedu-child
*/

/* ========================================
   核心样式 - 请勿删除
   ======================================== */

/* 确保子主题正确加载 */
.ceoedu-child-loaded {
    display: none;
}

/* ========================================
   播放器样式
   ======================================== */

/* 播放器页面容器 */
.ceo-player-page {
    min-height: 60vh;
}

/* 面包屑导航 */
.ceo-breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.ceo-breadcrumb-list li {
    margin-right: 10px;
}

.ceo-breadcrumb-list li::after {
    content: "›";
    margin-left: 10px;
    color: #999;
}

.ceo-breadcrumb-list li:last-child::after {
    display: none;
}

.ceo-breadcrumb-list li.ceo-active {
    color: #666;
}

/* 播放器容器 */
.ceo-player-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ceo-player-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ceo-player-title {
    font-size: 24px;
    margin: 0;
    color: #333;
}

.ceo-player-chapter {
    color: #666;
    font-size: 18px;
    font-weight: normal;
}

.ceo-player-video {
    background: #000;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.ceo-player-video iframe,
.ceo-player-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ceo-player-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.ceo-player-info {
    padding: 15px 20px;
    background: #f8f9fa;
}

/* 章节列表 */
.ceo-player-playlist {
    max-height: 600px;
    overflow-y: auto;
}

.ceo-player-playlist .ceo-card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.ceo-player-playlist .ceo-card-body {
    padding: 10px;
}

.ceo-player-playlist ul {
    margin: 0;
    padding: 0;
}

.ceo-player-playlist li {
    list-style: none;
}

.ceo-player-playlist li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s;
}

.ceo-player-playlist li a:hover {
    background: #f0f0f0;
}

.ceo-player-playlist li.ceo-active a {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.ceo-chapter-number {
    min-width: 30px;
    font-weight: bold;
}

.ceo-chapter-name {
    flex: 1;
}

.ceo-chapter-playing {
    font-size: 12px;
    color: #1976d2;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 课程描述 */
.ceo-player-description {
    margin-top: 30px;
}

/* ========================================
   自定义CSS从这里开始
   ======================================== */

/* 示例：修改主题主色调 */
:root {
    --primary-color: #FF6B6B;  /* 修改为你想要的颜色 */
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
}

/* 示例：修改导航栏样式 */
.ceo-navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 示例：修改按钮样式 */
.btn-primary, .change-color {
    background: var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 示例：修改卡片样式 */
.ceo-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ceo-card:hover {
    transform: translateY(-5px);
}

/*
   在下方继续添加你的自定义样式
   ================================
*/

/* ========================================
   ceoedu-pro_wan 重要样式覆盖
   ======================================== */

/* 视频背景 - 修改为contain以完整显示视频封面 */
.ceo-video-background {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain !important;  /* 重要：覆盖父主题的cover设置 */
}

.ceo-video-background:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgb(0 0 0 / 50%);
}
