﻿/* ========================================
   广东民办高校AI赋能优秀教学案例评审网站
   全站公共样式表
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html, body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #F5F7FA;
    color: #333333;
    min-height: 100vh;
    line-height: 1.7;
}

/* 颜色变量 */
:root {
    --primary: #0F4C81;
    --secondary: #2196F3;
    --warning: #FF7D00;
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-title: #222222;
    --text-body: #333333;
    --text-muted: #666666;
    --border-radius: 6px;
}

/* 响应式样式 */
/* 平板 */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }
    .breadcrumb {
        padding: 15px 20px;
    }
    .page-container {
        padding: 20px;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner {
        padding: 40px 20px;
    }
    .banner h1 {
        font-size: 26px;
    }
    .navbar-title {
        font-size: 16px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        gap: 8px;
    }
    .navbar-title {
        font-size: 14px;
    }
    .navbar-user {
        gap: 10px;
    }
    .navbar-username {
        display: none;
    }
    .breadcrumb {
        padding: 12px 15px;
        font-size: 13px;
    }
    .page-container {
        padding: 15px;
    }
    .banner {
        padding: 30px 15px;
    }
    .banner h1 {
        font-size: 22px;
    }
    .banner p {
        font-size: 14px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .category-card {
        padding: 30px 20px;
    }
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .category-title {
        font-size: 20px;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .case-card {
        padding: 15px;
    }
    .case-name {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
    .case-card {
        padding: 20px;
    }
    .case-number {
        font-size: 16px;
    }
    .case-name {
        font-size: 16px;
    }
    .detail-header {
        padding: 20px 15px;
    }
    .detail-title {
        font-size: 20px;
    }
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    .detail-section {
        padding: 20px 15px;
    }
    .action-bar {
        flex-direction: column;
        gap: 10px;
    }
    .action-bar .btn {
        text-align: center;
    }
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .btn-download {
        width: 100%;
        text-align: center;
    }
    .footer {
        padding: 20px 15px;
        font-size: 12px;
    }
    .pdf-preview {
        min-height: 300px;
    }
    /* 登录页响应式 */
    .login-container {
        padding: 10px;
    }
    .login-header h1 {
        font-size: 22px;
    }
    .login-card {
        padding: 25px;
    }
}

/* 顶部导航栏（全站共用） */
.navbar {
    background: var(--primary);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
}

.navbar-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-username {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.btn-logout {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 40px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1565C0;
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 8px;
}

.breadcrumb-current {
    color: var(--text-body);
}

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.banner h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 分类卡片网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

.category-title {
    font-size: 24px;
    color: var(--text-title);
    margin-bottom: 12px;
    font-weight: 500;
}

.category-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 案例列表网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.case-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.case-number {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.case-group {
    display: inline-block;
    background: rgba(33, 150, 243, 0.1);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 15px;
}

.case-name {
    font-size: 18px;
    color: var(--text-title);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-course {
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px dashed #e8e8e8;
    padding-top: 12px;
}

.case-course::before {
    content: "?? ";
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #0a3a66;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(15, 76, 129, 0.05);
}

/* 详情页布局 */
.detail-header {
    background: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-title {
    font-size: 24px;
    color: var(--text-title);
    margin-bottom: 20px;
    font-weight: 500;
}

.detail-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-meta-item {
    font-size: 14px;
}

.detail-meta-item span {
    color: var(--text-muted);
}

.detail-meta-item strong {
    color: var(--text-body);
    margin-left: 8px;
}

.detail-section {
    background: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-section-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 500;
}

/* PDF预览区 */
.pdf-preview {
    width: 100%;
    /* height: 85vh; */
    min-height: 620px;
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius);
    overflow: hidden;
}
#vsb_content{
    width: 100%;
    height: 100%;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 附件列表 */
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.attachment-item:hover {
    background: #f0f2f5;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.attachment-name {
    font-size: 14px;
    color: var(--text-body);
}

.attachment-size {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-download {
    background: var(--secondary);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #1976D2;
}

/* 视频播放区 */
.video-player {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
}

.video-player video {
    width: 100%;
    max-height: 500px;
}

/* 页脚 */
.footer {
    background: #fff;
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 快捷操作按钮组 */
.action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}