/* ============================================================
   shipin-detail.css 视频详细播放页样式｜2026-09-06
   配色：深空蓝 #0A2647 + 钛橙 #E67E22 + 钛银灰
   依赖：shipin.css（公共视频布局）
   编码：UTF-8
   ============================================================ */

/* ========== 详情页主布局 ========== */
.video-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.video-detail-main {
    min-width: 0;
}

.video-detail-sidebar {
    position: sticky;
    top: 20px;
}

/* ========== 视频播放器区域 ========== */
.video-detail-player-wrap {
    margin-bottom: 20px;
}

/* ========== 视频信息区 ========== */
.video-detail-info {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eef2f7;
}

.video-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a2a3a;
    line-height: 1.4;
    margin-bottom: 14px;
}

.video-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 16px;
}

.video-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8B9DC3;
}

.video-detail-meta-item i {
    font-size: 14px;
}

.video-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f8fafc;
    border: 1px solid #e4e8ee;
    border-radius: 20px;
    font-size: 13px;
    color: #5A6472;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.video-action-btn:hover {
    color: #E67E22;
    border-color: #E67E22;
    background: #fff;
}

.video-action-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #E67E22, #d35400);
    border-color: transparent;
}

.video-action-btn i {
    font-size: 15px;
}

/* 分享按钮组 */
.video-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.video-share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4f8;
    color: #8B9DC3;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.video-share-icon:hover {
    transform: translateY(-2px);
}

.video-share-icon.wechat:hover { background: #07c160; color: #fff; }
.video-share-icon.weibo:hover { background: #e6162d; color: #fff; }
.video-share-icon.qq:hover { background: #12b7f5; color: #fff; }
.video-share-icon.copy:hover { background: #0A2647; color: #fff; }

/* ========== 视频简介区 ========== */
.video-detail-desc {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eef2f7;
}

.video-detail-desc-title {
    font-size: 16px;
    font-weight: 600;
    color: #0A2647;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #E67E22;
}

.video-detail-desc-content {
    font-size: 14px;
    color: #5A6472;
    line-height: 1.9;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.video-detail-desc-content.expanded {
    max-height: 1000px;
}

.video-detail-desc-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.video-detail-desc-content.expanded::after {
    display: none;
}

.video-detail-desc-toggle {
    display: inline-block;
    margin-top: 12px;
    color: #E67E22;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.video-detail-desc-toggle:hover {
    text-decoration: underline;
}

/* ========== 标签区 ========== */
.video-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.video-tag {
    padding: 4px 12px;
    background: #f0f4f8;
    color: #5A6472;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-tag:hover {
    background: #E67E22;
    color: #fff;
}

/* ========== 侧边栏：相关推荐 ========== */
.video-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A2647;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid #E67E22;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-sidebar-title span {
    font-size: 12px;
    color: #8B9DC3;
    font-weight: normal;
}

.video-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video-related-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.video-related-item:hover {
    background: #f8fafc;
}

.video-related-cover {
    position: relative;
    width: 140px;
    height: 79px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f4f8;
}

.video-related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

.video-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.video-related-title {
    font-size: 13px;
    color: #1a2a3a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    transition: color 0.2s ease;
}

.video-related-item:hover .video-related-title {
    color: #E67E22;
}

.video-related-meta {
    font-size: 11px;
    color: #8B9DC3;
    margin-top: 8px;
}

/* ========== 评论区 ========== */
.video-comments {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eef2f7;
}

.video-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.video-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A2647;
}

.video-comments-count {
    font-size: 13px;
    color: #8B9DC3;
    margin-left: 8px;
}

/* 评论输入框 */
.video-comment-input-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.video-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A2647, #1a3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.video-comment-input-area {
    flex: 1;
    position: relative;
}

.video-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    outline: none;
    transition: border-color 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.video-comment-input:focus {
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.video-comment-input::placeholder {
    color: #b0b8c4;
}

.video-comment-submit {
    margin-top: 10px;
    padding: 8px 24px;
    background: linear-gradient(135deg, #E67E22, #d35400);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    float: right;
}

.video-comment-submit:hover {
    opacity: 0.9;
}

/* 评论列表 */
.video-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-comment-item {
    display: flex;
    gap: 12px;
}

.video-comment-content {
    flex: 1;
    min-width: 0;
}

.video-comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.video-comment-username {
    font-size: 14px;
    font-weight: 500;
    color: #0A2647;
}

.video-comment-time {
    font-size: 12px;
    color: #8B9DC3;
}

.video-comment-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}

.video-comment-actions {
    display: flex;
    gap: 16px;
}

.video-comment-action {
    font-size: 12px;
    color: #8B9DC3;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.video-comment-action:hover {
    color: #E67E22;
}

/* ============================================================
   响应式
   ============================================================ */
@media screen and (max-width: 1100px) {
    .video-detail-layout {
        grid-template-columns: 1fr;
    }
    .video-detail-sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .video-detail-info,
    .video-detail-desc,
    .video-comments {
        padding: 16px;
    }
    .video-detail-title {
        font-size: 18px;
    }
    .video-detail-meta {
        gap: 12px;
    }
    .video-detail-actions {
        gap: 8px;
    }
    .video-action-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .video-share-group {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }
    .video-related-cover {
        width: 120px;
        height: 68px;
    }
    .video-comment-input-wrap {
        gap: 10px;
    }
    .video-comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .video-detail-title {
        font-size: 16px;
    }
    .video-detail-meta {
        font-size: 12px;
    }
    .video-related-item {
        padding: 8px;
    }
    .video-related-cover {
        width: 100px;
        height: 56px;
    }
    .video-related-title {
        font-size: 12px;
    }
}

/* ============================================================
   shipin-detail.css 视频详细播放页样式 — 结束
   ============================================================ */
