/* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* 头部样式 */ .header { text-align: center; color: white; margin-bottom: 30px; } .header h1 { font-size: 2.5em; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } .subtitle { font-size: 1.1em; opacity: 0.9; } /* 主内容区域 */ .main-content { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); min-height: 500px; } /* 功能卡片网格 */ .feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 30px; } .card { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border-radius: 12px; padding: 25px; text-align: center; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; } .card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); border-color: #667eea; } .card-icon { font-size: 3em; margin-bottom: 15px; } .card h3 { font-size: 1.3em; margin-bottom: 10px; color: #2c3e50; } .card p { color: #7f8c8d; margin-bottom: 20px; } /* 按钮样式 */ .btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.3s ease; text-decoration: none; display: inline-block; min-width: 100px; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); } .btn-success { background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%); color: white; } .btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(86, 171, 47, 0.4); } .btn-info { background: linear-gradient(135deg, #3498db 0%, #74b9ff 100%); color: white; } .btn-info:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4); } .btn-warning { background: linear-gradient(135deg, #f39c12 0%, #fdcb6e 100%); color: white; } .btn-warning:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4); } .btn-secondary { background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%); color: white; } .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4); } /* 区域样式 */ .section { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #ecf0f1; } .section-header h2 { color: #2c3e50; font-size: 1.8em; } /* 表单样式 */ .form-group { margin-bottom: 25px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 1em; transition: border-color 0.3s ease; font-family: inherit; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group small { display: block; margin-top: 5px; color: #7f8c8d; font-size: 0.9em; } .checkbox-label { display: inline-flex !important; align-items: center; margin-right: 20px; margin-bottom: 10px; font-weight: normal !important; } .checkbox-label input[type="checkbox"] { width: auto !important; margin-right: 8px; } .form-actions { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 25px; } /* 结果显示区域 */ .result { margin-top: 25px; padding: 20px; border-radius: 8px; display: none; } .result.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .result.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .result.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } .result.loading { background-color: #fff3cd; color: #856404; border: 1px solid #ffeaa7; } /* 数据列表样式 */ .data-list { margin-top: 25px; } .data-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-bottom: 15px; transition: all 0.3s ease; } .data-item:hover { transform: translateX(5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .data-item h4 { color: #2c3e50; margin-bottom: 10px; font-size: 1.2em; } .data-item-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .data-item-stats { display: flex; gap: 20px; align-items: center; } .stat-item { display: flex; align-items: center; gap: 5px; font-size: 0.9em; color: #7f8c8d; } .data-item-actions { display: flex; gap: 10px; } /* 进度条样式 */ .progress-container { margin-top: 20px; } .progress-bar { width: 100%; height: 8px; background-color: #ecf0f1; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); width: 0%; transition: width 0.3s ease; animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .progress-text { margin-top: 10px; text-align: center; font-size: 0.9em; color: #7f8c8d; } /* 状态指示器 */ .status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; } .status-success { background-color: #27ae60; } .status-error { background-color: #e74c3c; } .status-warning { background-color: #f39c12; } .status-info { background-color: #3498db; } /* 底部样式 */ .footer { text-align: center; margin-top: 30px; padding: 20px; color: white; opacity: 0.8; } /* 工具提示 */ .tooltip { position: relative; cursor: help; } .tooltip:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #2c3e50; color: white; padding: 8px 12px; border-radius: 4px; font-size: 0.9em; white-space: nowrap; z-index: 1000; } /* 响应式设计 */ @media (max-width: 768px) { .container { padding: 10px; } .header h1 { font-size: 2em; } .main-content { padding: 20px; } .feature-cards { grid-template-columns: 1fr; gap: 15px; } .section-header { flex-direction: column; align-items: flex-start; gap: 15px; } .form-actions { flex-direction: column; } .data-item-info { flex-direction: column; align-items: flex-start; } .data-item-actions { width: 100%; justify-content: flex-start; } } @media (max-width: 480px) { .header h1 { font-size: 1.8em; } .card { padding: 20px; } .btn { padding: 10px 20px; font-size: 0.9em; } } /* 加载动画 */ .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #f3f3f3; border-top: 2px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 文本对齐工具类 */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } /* 间距工具类 */ .mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } /* 显示/隐藏工具类 */ .hidden { display: none !important; } .visible { display: block !important; }