/* 自定义样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 文章卡片样式 */
.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0d6efd;
}

/* 文章内容摘要样式 */
.card-text {
    color: #666;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

/* 页脚样式 */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .col-md-8, .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1.card-title {
        font-size: 1.75rem;
    }
}

/* 搜索框样式 */
.form-control.me-2 {
    border-radius: 20px 0 0 20px;
}

.btn-outline-success {
    border-radius: 0 20px 20px 0;
}

/* 文章详情页样式 */
.card-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 分类标签样式 */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
}

/* 日期时间样式 */
.text-muted {
    font-size: 0.85rem;
}

/* 个人中心样式 */
.card-header h3 {
    color: #333;
    font-weight: 600;
}

/* 操作结果提示样式 */
.alert {
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 视频控制样式 - 隐藏下载按钮 */
video::-internal-media-controls-download-button {
    display: none !important;
}

/* 移除了导致控制栏布局异常的样式 */

/* 视频控制样式 */
video::-webkit-media-controls-enclosure {
    width: 100% !important;
    overflow: visible !important;
}

video::-webkit-media-controls-panel {
    width: 100% !important;
    overflow: visible !important;
}

video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    margin-right: 5px;
}

/* 评论区样式 */
.comments-list {
    margin-top: 30px;
}

.comment {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.comment:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-content {
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
}

.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    background-color: #f0f2f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-time {
    font-size: 0.85rem;
    color: #666;
}

.comment-actions {
    display: flex;
    gap: 5px;
}

.comment-actions .btn {
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

/* 统一文章列表按钮大小 */
.d-flex.gap-2 .btn {
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.875rem;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

/* 调整按钮大小，确保一致 */
.d-flex.gap-2 .btn-primary {
    min-width: 100px;
}

.d-flex.gap-2 .btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    height: 38px;
    min-width: 80px;
}

.d-flex.gap-2 .btn-danger {
    padding: 6px 12px;
    font-size: 0.875rem;
    height: 38px;
    min-width: 80px;
}

.comments-container {
    margin-top: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 评论表单样式 */
form textarea.form-control {
    resize: vertical;
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

form textarea.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 评论数量标题样式 */
h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 轮播图指示器样式 */
.carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.carousel-indicators button {
    /* 确保指示器显示为长方形，不显示数字 */
    background-color: rgba(255, 255, 255, 0.6);
    width: 16px;
    height: 4px;
    border-radius: 2px;
    border: none;
    margin: 0 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) ease;
    /* 隐藏可能的文本内容 */
    font-size: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.carousel-indicators .active {
    background-color: #ffffff;
    width: 32px;
    height: 4px;
    opacity: 1;
    transform: translateY(0);
}