* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; } :root { --primary: #4a8fe7; --primary-dark: #0a192f; --secondary: #5e72e4; --accent: #ff6b6b; --text-dark: #1a1a1a; --text-medium: #4a4a4a; --text-light: #8a8f9c; --bg-white: #ffffff; --bg-light: #f5f7fa; --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); --border-radius: 12px; } body { background-color: var(--bg-white); color: var(--text-medium); padding: 0; max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: hidden; background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100px); } .app-container { padding: 0 16px 40px; position: relative; } /* 头部导航 */ .header { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; } .header-title { font-size: 22px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; } .header-title i { color: var(--primary); font-size: 24px; background: rgba(74, 143, 231, 0.1); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; } /* 分析输入区 */ .analysis-input { background: var(--bg-white); border-radius: var(--border-radius); box-shadow: var(--card-shadow); padding: 20px; margin-bottom: 24px; border: 1px solid rgba(0, 0, 0, 0.03); } .input-group { margin-bottom: 16px; } .input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 14px; } .input-group input, .input-group textarea { width: 100%; padding: 12px 16px; border-radius: var(--border-radius); border: 1px solid #e0e4e8; font-size: 14px; } .input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2); } .input-group textarea { min-height: 120px; resize: vertical; } .action-buttons { display: flex; gap: 12px; margin-top: 20px; } .btn { padding: 12px 20px; border-radius: var(--border-radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; } .btn-primary { background: var(--primary); color: var(--text-dark); } .btn-secondary { background: var(--primary); color: var(--text-dark); opacity: 0.8; } /* 客户列表区 */ .client-list-section { margin-bottom: 24px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .section-title { font-size: 18px; font-weight: 700; color: var(--text-dark); position: relative; padding-left: 12px; } .section-title:before { content: ''; position: absolute; left: 0; top: 4px; height: 16px; width: 4px; background: var(--primary); border-radius: 2px; } .search-box { position: relative; margin-bottom: 16px; } .search-box input { width: 100%; padding: 12px 16px 12px 42px; border-radius: var(--border-radius); border: 1px solid #e0e4e8; font-size: 14px; } .search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2); } .search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-light); } .client-list { background: var(--bg-white); border-radius: var(--border-radius); box-shadow: var(--card-shadow); overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.03); } .client-item { padding: 16px; border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; justify-content: space-between; cursor: pointer; } .client-item:last-child { border-bottom: none; } .client-item:hover { background: #f9fbfe; } .client-info { display: flex; align-items: center; gap: 12px; } .client-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #4a8fe7, #5e72e4); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 16px; } .client-name { font-weight: 600; color: var(--text-dark); margin-bottom: 2px; } .client-meta { font-size: 12px; color: var(--text-light); } .client-date { font-size: 12px; color: var(--text-light); } /* 智能推荐区 */ .recommendation-section { margin-top: 24px; } .recommendation-cards { display: flex; flex-direction: column; gap: 16px; } .recommendation-card { background: var(--bg-white); border-radius: var(--border-radius); box-shadow: var(--card-shadow); padding: 20px; position: relative; border: 1px solid rgba(0, 0, 0, 0.03); } .card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .card-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(74, 143, 231, 0.15); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; } .card-title { font-size: 16px; font-weight: 700; color: var(--text-dark); } .recommendation-content { color: var(--text-medium); font-size: 14px; line-height: 1.6; margin-bottom: 16px; } .recommendation-action { display: flex; justify-content: space-between; align-items: center; } .tag { padding: 6px 12px; border-radius: 20px; background: var(--bg-light); font-size: 12px; color: var(--text-medium); font-weight: 500; } .action-btn { padding: 8px 16px; border-radius: 30px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; border: none; cursor: pointer; } /* 弹窗样式 */ .report-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal-content { background: white; border-radius: var(--border-radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--card-shadow); } .modal-header { padding: 20px; border-bottom: 1px solid #eee; text-align: center; position: relative; h2 { color: var(--primary); font-size: 20px; margin: 0; } } .back-btn { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; color: var(--primary); cursor: pointer; } .modal-body { padding: 20px; } .form-group { margin-bottom: 20px; label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 14px; } input { width: 100%; padding: 10px 12px; border-radius: var(--border-radius); border: 1px solid #e0e4e8; font-size: 14px; } } .info-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; i { color: var(--primary); width: 24px; text-align: center; } } .clickable-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; i:first-child { color: var(--primary); width: 24px; text-align: center; } i.fa-chevron-right { color: var(--text-light); } &:hover { background-color: #f9f9f9; } } .text-content { padding: 15px; background: #f9f9f9; border-radius: 8px; margin-top: 15px; line-height: 1.6; } .analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 15px; } .analysis-item { background: #f5f7fa; padding: 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; i { color: var(--primary); } } .modal-footer { padding: 20px; text-align: center; border-top: 1px solid #eee; } .btn-confirm { background: var(--primary); color: white; padding: 12px 24px; border-radius: 30px; border: none; font-weight: 600; cursor: pointer; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; } :root { --primary: #4a8fe7; --primary-dark: #0a192f; --secondary: #5e72e4; --accent: #ff6b6b; --text-dark: #1a1a1a; --text-medium: #4a4a4a; --text-light: #8a8f9c; --bg-white: #ffffff; --bg-light: #f5f7fa; --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); --border-radius: 12px; } body { background-color: var(--bg-white); color: var(--text-medium); padding: 0; max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: hidden; background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100px); } .app-container { padding: 0 16px 40px; position: relative; } /* 按钮样式 */ .btn { padding: 12px 20px; border-radius: var(--border-radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease; } .btn-blue { background: var(--primary); color: white; &:hover { background: #3a7bd5; box-shadow: 0 4px 8px rgba(74, 143, 231, 0.3); } } .action-btn { padding: 8px 16px; border-radius: 30px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; border: none; cursor: pointer; } .btn-confirm { @extend .btn-blue; padding: 12px 24px; } /* 弹窗导航按钮 */ .back-btn { background: none; border: none; color: var(--primary); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 4px; &:hover { background: rgba(74, 143, 231, 0.1); } i { font-size: 12px; } } .close-btn { background: none; border: none; color: var(--text-light); font-size: 16px; cursor: pointer; padding: 5px; &:hover { color: var(--primary); } } /* 弹窗头部布局 */ .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; position: relative; border-bottom: 1px solid #eee; h2 { margin: 0 auto; padding: 0 30px; font-size: 18px; color: var(--text-dark); } }