.main-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.left-content {
  flex: 1;
  min-width: 0;
}

.right-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.domain-table-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
  overflow-x: auto;
}

.domain-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.domain-table th,
.domain-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.domain-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.domain-table td {
  font-size: 13px;
  color: #666;
}

.domain-table tr:hover {
  background: #f8f9fa;
}

.domain-table tr.selected {
  background: #e3f2fd !important;
}

.domain-name {
  color: #2c5aa0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.domain-name:hover {
  color: #667eea;
  text-decoration: underline;
}

.price-cell {
  color: #e74c3c;
  font-weight: 600;
  font-size: 14px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.status-on-sale {
  background: #d4edda;
  color: #155724;
}

.status-off-sale {
  background: #f8d7da;
  color: #721c24;
}

.filter-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.filter-title i {
  margin-right: 6px;
  color: #2c5aa0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.filter-input,
.filter-select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.selected-info {
  color: #666;
  font-size: 13px;
}

.batch-actions {
  display: flex;
  gap: 8px;
}

.action-btn,
.batch-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin: 0 2px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid #667eea;
  color: #667eea;
}

.batch-btn {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.batch-btn:hover,
.action-btn:hover {
  background: #e9ecef;
}

.purchase-sidebar {
  background: white;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.purchase-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.purchase-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
}

.purchase-title i {
  margin-right: 8px;
  color: #667eea;
}

.cart-count {
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 8px;
}

.purchase-content {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-domain {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  word-break: break-all;
}

.cart-item-price {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.cart-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.purchase-summary {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 16px;
}

.summary-label {
  color: #666;
}

.summary-value {
  color: #333;
  font-weight: 500;
}

.total-price {
  color: #e74c3c !important;
  font-size: 18px !important;
}

.purchase-actions {
  padding: 20px;
}

.purchase-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.purchase-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.clear-cart-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.clear-cart-btn:hover {
  background: #f8f9fa;
  border-color: #999;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px 0;
}

.pagination-info {
  color: #666;
  font-size: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination .page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-btn:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
}

.pagination .page-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.pagination .page-btn.disabled {
  background: #f8f9fa;
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

.payment-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.payment-modal.show {
  transform: translateX(0);
}

.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.payment-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.payment-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  flex-shrink: 0;
}

.payment-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.payment-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.payment-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.order-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.order-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-items-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-name {
  color: #333;
  font-size: 14px;
  word-break: break-all;
  margin-right: 10px;
}

.order-item-price {
  color: #e74c3c;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-top: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
}

.order-total-label {
  color: #333;
}

.order-total-price {
  color: #e74c3c;
  font-size: 18px;
}

.payment-methods {
  margin-bottom: 20px;
}

.payment-method-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-item:hover {
  border-color: #667eea;
}

.payment-method-item.selected {
  border-color: #667eea;
  background: #f8f9ff;
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.payment-method-desc {
  font-size: 12px;
  color: #666;
}

.payment-method-radio {
  width: 20px;
  height: 20px;
}

.payment-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  background: white;
  flex-shrink: 0;
}

.payment-btn {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-btn-cancel {
  background: #f8f9fa;
  color: #666;
}

.payment-btn-confirm {
  background: #667eea;
  color: white;
}

.payment-btn-confirm:hover {
  background: #5a6fd8;
}

.payment-btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }

  .right-sidebar {
    width: 100%;
  }

  .purchase-sidebar {
    position: static;
  }

  .purchase-content {
    max-height: 200px;
  }

  .payment-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  .payment-modal.show {
    transform: translateY(0);
  }

  .order-items-container {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .domain-table-container {
    padding: 10px;
  }

  .domain-table th,
  .domain-table td {
    padding: 8px 4px;
    font-size: 12px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .pagination-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .payment-modal {
    max-height: 90vh;
  }

  .order-items-container {
    max-height: 150px;
  }

  .order-item {
    padding: 10px 12px;
  }

  .order-item-name {
    font-size: 13px;
  }

  .order-item-price {
    font-size: 13px;
  }
}

.empty-domains {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-domains i {
  font-size: 36px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-domains h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.domain-length-badge {
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.domain-name-cell {
  cursor: pointer;
  color: #2c5aa0;
  font-weight: 600;
}

.domain-name-cell:hover {
  color: #667eea;
  text-decoration: underline;
}

.price-cell {
  color: #e74c3c;
  font-weight: 600;
  font-size: 14px;
}

.contact-info {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.contact-info-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: #667eea;
  margin-right: 8px;
  border-radius: 2px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.required {
  color: #e74c3c;
  margin-left: 2px;
}

.contact-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background: white;
}

.contact-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.contact-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.contact-hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

.error-message {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
}


@media (min-width: 768px) {
  .contact-form-grid {
    gap: 20px;
  }
}