/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.nav {
    background-color: #2196F3;
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav .company-name {
    font-size: 18px;
    font-weight: bold;
    margin-right: 30px;
}

.nav .project-name {
    font-size: 16px;
}

.nav a {
    color: white;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

/* 页面容器（侧边栏+内容区） */
.container {
    display: flex;
    width: 1200px;
    margin: 30px auto;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px 0;
}

.module-title {
    font-size: 16px;
    font-weight: bold;
    color: #2196F3;
    padding: 0 20px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.module-item {
    padding: 10px 20px;
}

.module-item a {
    color: #333;
    text-decoration: none;
    display: block;
}

.module-item a:hover {
    color: #2196F3;
    background-color: #f0f7ff;
}

/* 主内容区 */
.main-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px;
}

.page-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 表格样式（适配数据展示页面） */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #fafafa;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1976D2;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 表单样式（适配发布/管理页面） */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    color: #2196F3;
    text-decoration: none;
    border: 1px solid #E0E6ED;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #E8F0FE;
    border-color: #2196F3;
}

.page-link.active {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* 卡片样式（适配视频/资讯列表） */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 160px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式适配（手机/平板） */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}