/* H5会员管理 - 简化样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.4; background-color: #f5f5f5; } /* 页面容器 */ .page-container { max-width: 100%; margin: 0 auto; background: white; min-height: 100vh; } /* 页面头部 */ .page-header { background: #4CAF50; color: white; padding: 12px; display: flex; align-items: center; gap: 10px; } .back-btn { background: none; border: none; color: white; font-size: 18px; cursor: pointer; padding: 5px; } .page-title { font-size: 16px; font-weight: bold; } /* 页面内容 */ .page-content { padding: 15px; } /* 功能按钮 */ .function-btn { display: block; width: 100%; padding: 15px; margin-bottom: 10px; background: white; border: 1px solid #ddd; text-align: left; font-size: 14px; cursor: pointer; text-decoration: none; color: #333; } .function-btn:hover { background: #f0f0f0; } /* 表格样式 */ .simple-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 12px; } .simple-table th, .simple-table td { border: 1px solid #ddd; padding: 8px; text-align: left; } .simple-table th { background: #f5f5f5; font-weight: bold; } /* 表单样式 */ .form-group { margin-bottom: 15px; } .form-label { display: block; margin-bottom: 5px; font-weight: bold; } .form-input, .form-select { width: 100%; padding: 8px; border: 1px solid #ddd; font-size: 14px; } /* 按钮样式 */ .btn { padding: 10px 15px; border: none; cursor: pointer; font-size: 14px; margin: 5px; } .btn-primary { background: #4CAF50; color: white; } .btn-secondary { background: #666; color: white; } .btn-small { padding: 5px 10px; font-size: 12px; } /* 开关样式 */ .switch { position: relative; display: inline-block; width: 50px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #4CAF50; } input:checked + .slider:before { transform: translateX(26px); } /* 筛选标签 */ .filter-tag { display: inline-block; background: #e7f3ff; color: #1976d2; padding: 4px 8px; margin: 2px; border-radius: 12px; font-size: 12px; } .filter-tag .close { margin-left: 5px; cursor: pointer; font-weight: bold; } /* 下拉框 */ .dropdown { position: relative; } .dropdown-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #ddd; max-height: 200px; overflow-y: auto; z-index: 1000; } .dropdown-item { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; } .dropdown-item:hover { background: #f0f0f0; } .hidden { display: none !important; } /* 提示消息 */ .notification { position: fixed; top: 20px; right: 20px; padding: 10px 15px; border-radius: 4px; color: white; z-index: 1000; } .notification.success { background: #4CAF50; } .notification.error { background: #f44336; } .notification.warning { background: #ff9800; } .notification.info { background: #2196F3; } /* 弹窗样式 */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 2000; } .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); } .modal-content { position: relative; background: white; border-radius: 8px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; } .modal-header h3 { margin: 0; font-size: 18px; color: #333; } .modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .modal-close:hover { background: #f0f0f0; border-radius: 50%; } .modal-body { padding: 20px; } .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid #eee; } /* 禁用状态按钮 */ .btn:disabled { background: #ccc !important; cursor: not-allowed; opacity: 0.6; }