* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.header {
    background: #fff;
    padding: 24px 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.header h1 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.header p {
    color: #888;
    font-size: 14px;
}

.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 30px;
    margin-bottom: 20px;
}

/* 列表样式 */
.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding: 16px 10px;
}

.file-info {
    flex: 1;
    cursor: pointer;
}

.file-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 13px;
    color: #999;
}

.file-meta span {
    margin-right: 16px;
}

.file-type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4ff;
    color: #1890ff;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-success {
    background: #52c41a;
    color: #fff;
}

.btn-success:hover {
    background: #73d13d;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

.btn-default {
    background: #fff;
    color: #555;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 详情页 */
.detail-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.detail-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.detail-file-info {
    background: #f6f8fa;
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-file-info .file-name {
    font-weight: 500;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 管理页操作栏 */
.admin-actions {
    display: flex;
    gap: 10px;
}

/* 提示消息 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

/* 返回链接 */
.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}
