* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.header { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.header h1 { font-size: 24px; color: #333; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.user-badge { background: #f0f0f0; padding: 6px 12px; border-radius: 20px; font-size: 14px; color: #333; }

.login-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #f5f5f5; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.login-overlay.hidden { display: none; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; width: 320px; }
.login-box h2 { margin-bottom: 20px; color: #333; }
.login-hint { color: #666; margin-bottom: 20px; }
.login-input { width: 100%; padding: 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 16px; margin-bottom: 16px; }
.login-input:focus { outline: none; border-color: #1890ff; }
.login-btn { width: 100%; }
.login-error { color: #ff4d4f; margin-top: 12px; font-size: 14px; }

.back-btn { display: inline-flex; align-items: center; gap: 8px; color: #666; text-decoration: none; margin-bottom: 16px; cursor: pointer; }
.back-btn:hover { color: #1890ff; }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #666; margin-bottom: 8px; }
.card-date { font-size: 12px; color: #999; }

.tabs { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 8px; margin-bottom: 20px; }
.tab { flex: 1; padding: 12px 20px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-size: 15px; color: #666; transition: all 0.2s; }
.tab.active { background: #1890ff; color: #fff; }
.tab:hover:not(.active) { background: #f0f0f0; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-btn { padding: 8px 16px; border: 1px solid #d9d9d9; background: #fff; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.filter-btn.active { background: #1890ff; color: #fff; border-color: #1890ff; }
.filter-btn:hover:not(.active) { border-color: #1890ff; color: #1890ff; }

.btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.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-sm { padding: 6px 12px; font-size: 13px; }

.fenjing-list { background: #fff; border-radius: 8px; overflow: hidden; }
.fenjing-item { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; gap: 16px; }
.fenjing-item:last-child { border-bottom: none; }
.fenjing-seq { width: 40px; height: 40px; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #666; flex-shrink: 0; }
.fenjing-content { flex: 1; min-width: 0; }
.fenjing-text { font-size: 15px; margin-bottom: 4px; word-break: break-all; }
.fenjing-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fenjing-status { font-size: 12px; padding: 4px 10px; border-radius: 12px; display: inline-block; }
.fenjing-video-badge { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: #f6ffed; color: #52c41a; }
.status-pending { background: #f0f0f0; color: #666; }
.status-processing { background: #e6f7ff; color: #1890ff; }
.status-completed { background: #f6ffed; color: #52c41a; }
.fenjing-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.status-toggle { display: flex; border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; }
.status-btn { padding: 6px 12px; border: none; background: #fff; font-size: 13px; cursor: pointer; transition: all 0.2s; border-right: 1px solid #d9d9d9; }
.status-btn:last-child { border-right: none; }
.status-btn:hover { background: #f5f5f5; }
.status-btn.active { background: #1890ff; color: #fff; }
.status-btn.active:hover { background: #40a9ff; }

.wenan-box { background: #fff; border-radius: 8px; padding: 24px; min-height: 400px; }
.wenan-text { white-space: pre-wrap; line-height: 1.8; font-size: 15px; color: #333; cursor: pointer; }
.wenan-text:empty::before { content: '暂无文案内容（点击编辑）'; color: #999; }

.sucai-upload { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.upload-area { border: 2px dashed #d9d9d9; border-radius: 8px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-area:hover { border-color: #1890ff; }
.upload-area.dragover { border-color: #1890ff; background: #e6f7ff; }
.upload-icon { font-size: 48px; color: #d9d9d9; margin-bottom: 16px; }
.upload-text { color: #666; }
.upload-hint { font-size: 12px; color: #999; margin-top: 8px; }

.sucai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sucai-item { background: #fff; border-radius: 8px; overflow: hidden; }
.sucai-preview { height: 120px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.sucai-preview img { width: 100%; height: 100%; object-fit: cover; }
.sucai-preview video { width: 100%; height: 100%; object-fit: cover; }
.sucai-preview .icon { font-size: 36px; color: #999; }
.sucai-info { padding: 12px; }
.sucai-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.sucai-actions { display: flex; gap: 8px; }

.ziliao-header { margin-bottom: 16px; }
.ziliao-list { display: flex; flex-direction: column; gap: 12px; }
.ziliao-item { background: #fff; border-radius: 8px; padding: 16px; }
.ziliao-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; color: #333; }
.ziliao-content { font-size: 14px; color: #666; white-space: pre-wrap; line-height: 1.6; max-height: 200px; overflow-y: auto; }
.ziliao-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.ziliao-date { font-size: 12px; color: #999; }
.ziliao-actions { display: flex; gap: 8px; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 500px; max-height: 80vh; overflow-y: auto; }
.modal-title { font-size: 18px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; color: #666; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; }
.form-input:focus { outline: none; border-color: #1890ff; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; background: #fff; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

.upload-progress { margin-top: 16px; }
.progress-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: #1890ff; width: 0%; transition: width 0.3s; }
.progress-text { font-size: 12px; color: #666; margin-top: 4px; }

.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }

@media (max-width: 768px) {
    .container { padding: 12px; }
    .header { padding: 16px; }
    .header h1 { font-size: 20px; }
    .card { padding: 16px; }
    .tabs { flex-wrap: wrap; }
    .tab { padding: 10px 16px; font-size: 14px; }
    .fenjing-item { flex-wrap: wrap; padding: 12px; }
    .fenjing-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
    .filter-bar { flex-wrap: wrap; }
    .upload-area { padding: 24px; }
}