/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

.user-container {
    padding: 20px;
}

/* 搜索面板样式 */
.search-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-item label {
    color: #666;
}

.form-item input,
.form-item select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn {
    background: #1890ff;
    color: #fff;
}

.reset-btn {
    background: #f5f5f5;
    color: #666;
}

.export-btn {
    background: #52c41a;
    color: #fff;
}

/* 表格样式 */
.user-table-container {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.user-table th {
    background: #fafafa;
    font-weight: 500;
}

/* 平台信息样式 */
.platform-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-icon {
    font-size: 16px;
}

.platform-icon.ctrip {
    color: #2681ff;
}

.platform-icon.meituan {
    color: #ffd300;
}

.platform-icon.qunar {
    color: #00bb9c;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username {
    font-weight: 500;
}

.user-contact {
    display: flex;
    gap: 12px;
    color: #666;
}

.user-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 会员等级样式 */
.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.member-tag.diamond {
    background: #f0f5ff;
    color: #2f54eb;
}

.member-tag.gold {
    background: #fffbe6;
    color: #faad14;
}

.points {
    color: #666;
    font-size: 12px;
}

/* 消费信息样式 */
.consumption-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-amount {
    color: #f5222d;
    font-weight: 500;
}

.order-count {
    color: #666;
    font-size: 12px;
}

/* 状态标签 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-tag.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-tag.inactive {
    background: #fff2f0;
    color: #ff4d4f;
}

.status-tag.locked {
    background: #f5f5f5;
    color: #666;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.edit {
    background: #f6ffed;
    color: #52c41a;
}

.action-btn.disable {
    background: #fff2f0;
    color: #ff4d4f;
}

.action-btn.enable {
    background: #f6ffed;
    color: #52c41a;
}

/* 分页样式 */
.pagination {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}