/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #app {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

/* ========== SVG 图标 ========== */
.el-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: inherit;
    color: inherit;
    vertical-align: middle;
}

.el-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.logo .el-icon,
.logo > .el-icon {
    font-size: 24px;
}

.collapse-btn .el-icon,
.collapse-btn > .el-icon {
    font-size: 20px;
}

/* ========== 布局 ========== */
.app-container {
    height: 100vh;
}

.app-aside {
    background-color: #304156;
    transition: width 0.3s;
    overflow: hidden;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.aside-menu {
    border-right: none;
}

.aside-menu:not(.el-menu--collapse) {
    width: 220px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.collapse-btn {
    cursor: pointer;
    color: #606266;
}

.collapse-btn:hover {
    color: #409EFF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-time {
    color: #909399;
    font-size: 14px;
}

.app-main {
    background-color: #f0f2f5;
    padding: 20px;
    overflow-y: auto;
}

/* ========== 仪表盘 ========== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.stat-icon.blue { background: linear-gradient(135deg, #409EFF, #66b1ff); }
.stat-icon.green { background: linear-gradient(135deg, #67C23A, #85ce61); }
.stat-icon.orange { background: linear-gradient(135deg, #E6A23C, #ebb563); }
.stat-icon.red { background: linear-gradient(135deg, #F56C6C, #f78989); }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #303133;
    line-height: 1;
}

.stat-info p {
    font-size: 14px;
    color: #909399;
    margin-top: 4px;
}

.dashboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-section h4 {
    font-size: 16px;
    color: #303133;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ========== 通用页面头部 ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 20px;
    color: #303133;
}

/* ========== 搜索栏 ========== */
.search-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ========== 表格卡片 ========== */
.table-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.table-card .el-table {
    margin-bottom: 16px;
}

.pagination-wrap {
    display: flex;
    justify-content: flex-end;
}

/* ========== 项目详情 ========== */
.detail-header {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.detail-header h2 {
    font-size: 22px;
    color: #303133;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #606266;
    font-size: 14px;
}

.detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-tabs {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ========== 评论区 ========== */
.comment-section {
    margin-top: 16px;
}

.comment-list {
    margin-top: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #409EFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-name {
    font-weight: 600;
    color: #303133;
    font-size: 14px;
}

.comment-time {
    color: #c0c4cc;
    font-size: 12px;
}

.comment-content {
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}

.comment-input {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.comment-input .el-textarea {
    flex: 1;
}

/* ========== 文件列表 ========== */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.file-item:hover {
    background: #f5f7fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 32px;
    color: #409EFF;
}

.file-name {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

.file-meta {
    font-size: 12px;
    color: #909399;
    margin-top: 2px;
}

/* ========== 成员列表 ========== */
.member-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin: 0 12px 12px 0;
    min-width: 120px;
    transition: box-shadow 0.2s;
}

.member-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #409EFF, #66b1ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
}

.member-role {
    font-size: 12px;
    color: #909399;
}

/* ========== 进度条样式 ========== */
.progress-text {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}

/* ========== 空状态 ========== */
.empty-tip {
    text-align: center;
    padding: 40px;
    color: #c0c4cc;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== 登录页 ========== */
.login-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .el-icon {
    color: #409EFF;
}

.login-header h2 {
    font-size: 24px;
    color: #303133;
    margin: 12px 0 8px;
}

.login-header p {
    font-size: 14px;
    color: #909399;
}

.folder-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.folder-icon:hover {
    transform: scale(1.1);
}

/* ========== 用户信息 ========== */
.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #606266;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.user-info:hover {
    background: #f5f7fa;
}
