:root { --primary: #6366f1; --primary-dark: #4f46e5; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --info: #3b82f6; --dark: #1f2937; --light: #f8fafc; --gray: #6b7280; --border: #e5e7eb; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #334155; line-height: 1.5; } .container { max-width: 1400px; margin: 0 auto; padding: 15px; } /* 头部样式 */ .header { text-align: center; margin-bottom: 25px; color: white; } .header-content { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); } .header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; background: linear-gradient(45deg, #fff, #e0f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .header p { font-size: 1rem; opacity: 0.9; margin-bottom: 15px; } /* 控制按钮 */ .controls { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .btn { padding: 10px 18px; border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 6px; } .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; } .btn-primary:hover { transform: translateY(-2px); } .btn-success { background: linear-gradient(135deg, var(--success), #059669); color: white; } .btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: white; } .btn-outline { background: rgba(134, 63, 235); color: white; border: 2px solid rgba(134, 63, 235, 0.3); } .btn-outline:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); } /* 内容区域 */ .content { background: white; border-radius: 16px; padding: 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); margin-bottom: 25px; } /* 表单样式 */ .form-group { margin-bottom: 20px; } /* 搜索框样式 */ .search-box { position: relative; max-width: 300px; width: 100%; margin-bottom: 20px; } .search-box input { width: 100%; padding: 10px 40px 10px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.9rem; transition: all 0.3s ease; } .search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .search-box::after { content: '🔍'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); pointer-events: none; } .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); } .form-control { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; transition: all 0.3s ease; background: white; } .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right 12px center; background-repeat: no-repeat; background-size: 16px; padding-right: 40px; } /* 表格样式 */ .table-container { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .funds-table, .data-table { width: 100%; border-collapse: collapse; background: white; } .funds-table th, .funds-table td, .data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); transition: all 0.3s ease; } .funds-table th, .data-table th { background: linear-gradient(90deg, #f8fafc, #f1f5f9); font-weight: 600; color: var(--dark); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0; z-index: 10; } .funds-table tr:hover, .data-table tr:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .funds-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; } /* 推荐基金表格特殊样式 */ .fund-row { transition: all 0.3s ease; } .fund-code-cell { font-weight: 700; color: var(--primary); } .fund-ip-cell { font-family: 'Courier New', monospace; } .fund-time-cell { font-size: 0.85rem; color: var(--gray); } .fund-amount-cell { font-weight: 600; } .fund-status-cell { font-weight: 600; } .fund-actions-cell { text-align: right; } /* 状态标签样式优化 */ .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: white; display: inline-block; transition: all 0.3s ease; } .status-pending { background: linear-gradient(135deg, var(--warning), #d97706); } .status-approved { background: linear-gradient(135deg, var(--success), #059669); } .status-rejected { background: linear-gradient(135deg, var(--danger), #dc2626); } /* 渠道标签 */ .channel-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: white; } .channel-cmb { background: linear-gradient(135deg, #e74c3c, #c0392b); } .channel-tt { background: linear-gradient(135deg, #3498db, #2980b9); } .channel-zfb { background: linear-gradient(135deg, #27ae60, #229954); } /* 操作按钮 */ .action-buttons { display: flex; gap: 8px; justify-content: flex-end; } .btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 6px; transition: all 0.3s ease; } .btn-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .btn-sm:active { transform: translateY(0); } /* 消息提示 */ .alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; display: none; } .alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; } .alert-error { background: #fee2e2; border: 1px solid #fecaca; color: #dc2626; } /* 模态框 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 1000; align-items: center; justify-content: center; } .modal-content { background: white; border-radius: 16px; padding: 30px; width: 90%; max-width: 500px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .modal-title { font-size: 1.3rem; font-weight: 700; color: var(--dark); } .close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray); padding: 5px; } .close-modal:hover { color: var(--dark); } /* 页脚 */ .footer { text-align: center; color: white; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.3); } /* 标签页样式 */ .tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); background: #f8fafc; border-radius: 10px 10px 0 0; overflow: hidden; } .tab { padding: 12px 24px; background: none; border: none; border-bottom: 3px solid transparent; font-size: 1rem; font-weight: 600; color: var(--gray); cursor: pointer; transition: all 0.3s ease; position: relative; z-index: 1; } .tab.active { color: var(--primary); border-bottom-color: var(--primary); background: white; box-shadow: 0 -2px 5px rgba(0,0,0,0.05); } .tab:hover { color: var(--primary-dark); background: rgba(255,255,255,0.5); } .tab-content { display: none; padding: 20px; background: white; border-radius: 0 0 10px 10px; animation: fadeIn 0.5s ease; } .tab-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* 操作日志样式 */ .operation-log { max-height: 500px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 15px; } .operation-item { padding: 12px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .operation-item:last-child { border-bottom: none; } .operation-details { flex: 1; } .operation-type { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-right: 10px; } .type-add { background: #dcfce7; color: #166534; } .type-update { background: #fef3c7; color: #92400e; } .type-delete { background: #fee2e2; color: #dc2626; } .operation-time { color: var(--gray); font-size: 0.85rem; } /* 图表容器样式 */ .chart-container { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .chart-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); } .fund-selector { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; } .chart-wrapper { position: relative; height: 300px; } /* 响应式设计 */ @media (max-width: 768px) { .container { padding: 10px; } .header h1 { font-size: 1.8rem; } .content { padding: 15px; } .funds-table { font-size: 0.85rem; } .funds-table th, .funds-table td { padding: 8px 12px; } .action-buttons { flex-direction: column; } .btn { width: 100%; justify-content: center; } .tabs { flex-direction: column; } .tab { border-bottom: none; border-left: 3px solid transparent; } .tab.active { border-left-color: var(--primary); } .operation-item { flex-direction: column; align-items: flex-start; gap: 8px; } } @media (max-width: 480px) { .modal-content { padding: 20px; margin: 10px; } } /* 加载动画 */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }