﻿/* 会员结算区样式 */
.member-section {
  margin-bottom: 15px;
}

/* 会员搜索框美化 */
.member-search-box {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #434143 0%, #574ba2 100%);
  border-radius: 12px;
  padding: 4px;
  gap: 8px;
}

.member-search-icon {
  color: white;
  font-size: 24px;
  padding: 0 8px;
}

.member-search-box input {
  flex: 1;
  border: none;
  background: white;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  outline: none;
}

.member-search-box input::placeholder {
  color: #999;
}

.btn-member-search {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-member-search:hover {
  background: rgba(255,255,255,0.3);
}

.btn-member-search i {
  font-size: 16px;
}

/* 会员信息卡片 */
.member-info {
  background: linear-gradient(135deg, #434143 0%, #574ba2 100%);
  border-radius: 12px;
  padding: 15px;
  color: white;
  margin-top: 10px;
  position: relative;
}

/* 悬浮清除按钮 */
.btn-member-clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: #e74c3c;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-member-clear:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.btn-member-clear i {
  font-size: 12px;
}

/* 会员选择列表 */
.member-select-list {
  max-height: 400px;
  overflow-y: auto;
}

.member-select-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.member-select-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.member-select-info {
  flex: 1;
}

.member-select-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.member-select-phone {
  color: #666;
  font-size: 13px;
  margin-top: 3px;
}

.member-select-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 15px;
}

.member-select-balance {
  color: #27ae60;
  font-weight: 600;
  font-size: 14px;
}

.member-input {
  display: flex;
  gap: 8px;
}

.member-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.member-detail #memberName {
  font-weight: 600;
  font-size: 16px;
}

.member-detail #memberLevelBadge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.member-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
}

.member-stats strong {
  color: #ffd700;
}

/* 余额支付区样式 */
.balance-info, .mixed-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.balance-info label, .mixed-info label {
  color: #666;
  font-size: 12px;
}

.balance-info span, .mixed-info span {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

.mixed-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.mixed-row:last-child {
  border-bottom: none;
}

.mixed-input-group {
  margin-bottom: 15px;
}

.mixed-input-group small {
  color: #666;
  margin-top: 5px;
  display: block;
}

.mixed-payment-select {
  margin-bottom: 15px;
}

.mixed-method-btns {
  display: flex;
  gap: 10px;
}

.mixed-method-btns .method-btn {
  flex: 1;
}

.balance-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 15px;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-warning i {
  color: #ffc107;
}

/* ========== 混合支付区新样式 ========== */

/* 应付金额卡片 */
.mixed-amount-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mixed-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mixed-amount-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mixed-amount-item > i {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mixed-amount-item .amount-detail {
  flex: 1;
}

.mixed-amount-item label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 5px;
}

.mixed-amount-item span {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.mixed-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 15px;
}

/* 余额使用区 */
.mixed-balance-section {
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.mixed-balance-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.mixed-balance-section .section-title i {
  color: #f39c12;
  font-size: 16px;
}

.balance-use-input {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.balance-use-input input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.balance-use-input input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-use-all {
  padding: 12px 20px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-use-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-use-all:active {
  transform: translateY(0);
}

.balance-use-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
}

.balance-use-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-use-info .info-label {
  color: #666;
  font-size: 13px;
}

.balance-use-info .info-value {
  color: #e74c3c;
  font-size: 20px;
  font-weight: 700;
}

/* 其他支付方式区 */
.mixed-other-section {
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 15px;
}

.mixed-other-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.mixed-other-section .section-title i {
  color: #667eea;
  font-size: 16px;
}

.mixed-other-section .mixed-method-btns {
/*
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  */
  gap: 10px;
  margin-bottom: 12px;
}

.mixed-other-section .method-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mixed-other-section .method-btn i {
  font-size: 24px;
}

.mixed-other-section .method-btn span {
  font-size: 12px;
  font-weight: 500;
}

.mixed-other-section .method-btn:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
}

.mixed-other-section .method-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.mixed-other-section .method-btn[data-method="wechat"] i {
  color: #07c160;
}

.mixed-other-section .method-btn[data-method="alipay"] i {
  color: #1677ff;
}

.mixed-other-section .method-btn.active i {
  color: white;
}

/* 付款码输入框 */
.mixed-other-input {
  position: relative;
  margin-top: 15px;
}

.mixed-other-input input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.mixed-other-input input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mixed-other-input > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .mixed-amount-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .mixed-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  
  .mixed-other-section .mixed-method-btns {
    grid-template-columns: 1fr;
  }
  
  .balance-use-input {
    flex-direction: column;
  }
  
  .btn-use-all {
    width: 100%;
  }
}

/* ========== 会员编辑界面样式 ========== */
.member-edit-container {
  padding: 5px;
}

.member-edit-section {
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.member-edit-section.readonly {
  background: #fff8e1;
}

.member-edit-section .section-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-edit-section.readonly .section-title {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.member-edit-section .section-title i {
  font-size: 16px;
}

.member-edit-section .section-content {
  padding: 15px;
}

/* 账户信息网格 */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.account-info-item {
  text-align: center;
  padding: 15px 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.account-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.account-value {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.account-info-item:nth-child(1) .account-value {
  color: #27ae60;
}

.account-info-item:nth-child(2) .account-value {
  color: #f39c12;
}

.account-info-item:nth-child(3) .account-value {
  color: #3498db;
}

/* 快捷操作按钮 */
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quick-action {
  flex: 1;
  min-width: 100px;
  padding: 12px 15px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 10px;
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-quick-action:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-quick-action i {
  font-size: 16px;
}

/* 响应式 */
@media (max-width: 600px) {
  .account-info-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .btn-quick-action {
    width: 100%;
  }
}
