:root {
  --primary-color: #1a73e8;
  --primary-light: #8ab4f8;
  --primary-dark: #0d47a1;
  --text-color: #202124;
  --text-light: #5f6368;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #dadce0;
  --success-color: #0f9d58;
  --warning-color: #f9ab00;
  --danger-color: #ea4335;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-group {
  margin-bottom: 15px;
}

.info-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.info-label i {
  margin-right: 8px;
  color: var(--primary-color);
}

#countdown {
  color: #ef4444;
  font-weight: 700;
  font-size: 20px;
}

.qrcode-container {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
}

#qrcode {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.instructions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.instructions h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.step {
  display: flex;
  margin-bottom: 15px;
}

.step-number {
  background-color: var(--primary-light);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: var(--text-light);
}

.network-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

.network-badge i {
  margin-right: 5px;
}

.wallet-section {
  margin: 20px 0;
  display: none;
}

.wallet-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.wallet-item {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.wallet-item:hover {
  background: #f0f0f0;
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wallet-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.wallet-item .small {
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.other-wallet {
	display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color)
}

.other-wallet .info-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

.other-wallet .info-label i {
    margin-right: 8px;
    color: var(--primary-color)
}

.url-container {
    display: flex;
    margin-bottom: 10px
}

.url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 14px
}

.url-copy-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    cursor: pointer
}

.url-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4
}

.payment-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  text-align: center;
}

.payment-header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.payment-header p {
  opacity: 0.9;
  font-size: 0.9rem;
}

.payment-body {
  padding: 20px;
}

.product-info {
  display: flex;
  margin-bottom: 25px;
}

.product-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* .payment-details, */
.wallet-connected-card {
  margin-bottom: 25px;
}

.payment-details .detail-label,.wallet-connected-card .detail-label {
  color: #5f6368;
}

.payment-details .detail-value,.wallet-connected-card .detail-value {
  font-weight: 500;
}

.payment-details .detail-item,.wallet-connected-card .detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.countdown-section {
  background-color: #e8f0fe;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.countdown-title {
  font-size: 0.9rem;
  color: #5f6368;
}

.countdown-timer {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

/* Modal styles */
.payment-tips-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-tips-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 20px;
}

.amount-control {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s;
}

.amount-control:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.amount-btn {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border: none;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.amount-btn:hover {
  background: #e2e8f0;
}

.amount-input {
  flex: 1;
  height: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  min-width: 60px;
}

.amount-input[type="number"]::-webkit-inner-spin-button,
.amount-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input[type="number"] {
  -moz-appearance: textfield;
}

.payment-mode {
  margin: 20px 0;
}

.mode-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.mode-option {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.mode-option.active {
  border-color: var(--primary-color);
  background-color: rgba(26, 115, 232, 0.05);
}

.mode-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.mode-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
}

.safe-mode .mode-icon {
  background-color: var(--success-color);
  color: #fff;
}

.whitelist-mode .mode-icon {
  background-color: var(--warning-color);
  color: #fff;
}

.mode-title {
  font-weight: 600;
  font-size: 16px;
}

.mode-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.mode-detail {
  font-size: 13px;
  color: var(--text-light);
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  display: none;
}

.mode-option.active .mode-detail {
  display: block;
}

.mode-detail-safe {
  background: rgba(15, 157, 88, 0.1);
  color: var(--success-color);
}

.mode-detail-wri {
  background-color: rgba(249, 171, 0, 0.1);
  color: var(--warning-color);
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.cancel-btn {
  background: #f8f9fa;
  color: var(--text-color);
}

.confirm-btn {
  background: var(--primary-color);
  color: #fff;
}

.modal-btn:hover {
  opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .qrcode-container {
    display: none;
  }
  .wallet-section {
    display: block;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }
  .card {
    border-radius: 0;
    box-shadow: unset;
  }
  h1 {
    font-size: 22px;
  }
  .payment-tips-modal {
    padding: 0;
  }
  .payment-tips-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    flex: 1;
    overflow-y: auto;
  }
  .payment-body {
    padding: 20px;
  }
  .product-info {
    flex-direction: column;
    text-align: center;
  }
  .product-image {
    margin-right: 0;
    margin-bottom: 15px;
    align-self: center;
  }
  .other-wallet {
	display: block;
  }
}

@media (max-width: 480px) {
  .wallet-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .payment-header h1 {
    font-size: 1.3rem;
  }
  .product-name {
    font-size: 1.1rem;
  }
  .amount {
    font-size: 1.3rem;
  }
  .countdown-timer {
    font-size: 1.5rem;
  }
}

.amount-display[data-v-a335fc32] {
		font-weight: 700;
		font-size: 20px;
}
.confirm-btn i[data-v-a335fc32] {
		margin-right: 8px;
}

	/* 订单加载状态 */
.loading-container[data-v-853498c3] {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: #fff;
		z-index: 9999;
		padding: 40px;
}
.loading-container .loading-spinner[data-v-853498c3] {
		font-size: 48px;
		color: var(--primary-color, #1890ff);
		margin-bottom: 20px;
}
.loading-container .loading-text[data-v-853498c3] {
		font-size: 16px;
		color: #666;
}

	/* 订单错误状态 */
.error-container[data-v-853498c3] {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: #fff;
		z-index: 9999;
		padding: 40px;
		text-align: center;
}
.error-icon[data-v-853498c3] {
		font-size: 64px;
		color: #ff4d4f;
		margin-bottom: 20px;
}
.error-text[data-v-853498c3] {
		font-size: 16px;
		color: #666;
		margin-bottom: 24px;
}
.retry-btn[data-v-853498c3] {
		padding: 10px 24px;
		background: var(--primary-color, #1890ff);
		color: white;
		border: none;
		border-radius: 8px;
		font-size: 14px;
		cursor: pointer;
		transition: all 0.3s;
}
.retry-btn[data-v-853498c3]:hover {
		opacity: 0.8;
}
.retry-btn i[data-v-853498c3] {
		margin-right: 8px;
}
.qrcode-container[data-v-853498c3] {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 30px;
		border-radius: 16px;
}
.qrcode-tip[data-v-853498c3] {
		margin-top: 15px;
		font-size: 14px;
		text-align: center;
}
.wallet-header[data-v-853498c3] {
		display: flex;
		align-items: center;
		gap: 15px;
		margin-bottom: 20px;
}
.wallet-icon-large[data-v-853498c3] {
		width: 64px;
		height: 64px;
		border-radius: 16px;
		padding: 8px;
}
.wallet-name-large[data-v-853498c3] {
		font-size: 24px;
		font-weight: 700;
}
.wallet-status-badge[data-v-853498c3] {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: rgba(255, 255, 255, 0.2);
		padding: 4px 12px;
		border-radius: 20px;
		font-size: 13px;
		margin-top: 6px;
}
.wallet-address-card[data-v-853498c3] {
		background: var(--bg-color);
		padding: 15px;
		border-radius: 12px;
		margin-bottom: 20px;
		backdrop-filter: blur(10px);
}
.address-label[data-v-853498c3] {
		font-size: 12px;
		opacity: 0.8;
		margin-bottom: 8px;
}
.address-value[data-v-853498c3] {
		word-break: break-all;
		margin-bottom: 5px;
}
.wallet-balance-card[data-v-853498c3] {
		background: var(--bg-color);
		padding: 15px;
		border-radius: 12px;
		margin-bottom: 20px;
		backdrop-filter: blur(10px);
}
.balance-item[data-v-853498c3] {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.balance-item[data-v-853498c3]:last-of-type {
		border-bottom: none;
}
.balance-label[data-v-853498c3] {
		display: flex;
		align-items: center;
		font-size: 12px;
		opacity: 0.8;
		gap: 8px;
}
.refresh-balance-btn[data-v-853498c3] {
		width: 100%;
		background: rgba(255, 255, 255, 0.2);
		border: 1px solid rgba(255, 255, 255, 0.3);
		padding: 10px;
		border-radius: 8px;
		font-size: 14px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin-top: 12px;
		transition: all 0.2s;
}
.refresh-balance-btn[data-v-853498c3]:hover:not(:disabled) {
		background: rgba(255, 255, 255, 0.3);
		border-color: rgba(255, 255, 255, 0.5);
}
.refresh-balance-btn[data-v-853498c3]:disabled {
		opacity: 0.5;
		cursor: not-allowed;
}
.payment-btn[data-v-853498c3] {
		background-color: var(--primary-color);
		color: #fff;
		border: none;
		border-radius: 12px;
		padding: 15px 20px;
		font-size: 16px;
		font-weight: 600;
		width: 100%;
		margin-top: 20px;
		cursor: pointer;
		transition: background-color .3s;
}
.payment-btn[data-v-853498c3]:hover {
		background-color: var(--primary-dark)
}
.payment-btn i[data-v-853498c3] {
		margin-right: 8px
}
.wallet-not-connected[data-v-853498c3] {
		text-align: center;
		padding: 40px;
		background: #f5f5f5;
		border-radius: 12px;
		margin-top: 20px;
}
.wallet-not-connected i[data-v-853498c3] {
		font-size: 48px;
		color: #999;
		margin-bottom: 15px;
}

	/* 移动端钱包列表 */
.mobile-wallet-section[data-v-853498c3] {
		margin-bottom: 20px;
}
.wallet-list-mobile[data-v-853498c3] {
		background: white;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
		margin-top: 15px;
}
.wallet-item-mobile[data-v-853498c3] {
		display: flex;
		align-items: center;
		padding: 16px;
		border-bottom: 1px solid #f0f0f0;
		cursor: pointer;
		transition: background 0.2s;
}
.wallet-item-mobile[data-v-853498c3]:last-child {
		border-bottom: none;
}
.wallet-item-mobile[data-v-853498c3]:active {
		background: #f8f8f8;
}
.wallet-icon-mobile[data-v-853498c3] {
		width: 44px;
		height: 44px;
		border-radius: 10px;
		margin-right: 12px;
}
.wallet-name-mobile[data-v-853498c3] {
		flex: 1;
		font-size: 16px;
		font-weight: 500;
		color: #333;
}
.wallet-item-mobile i[data-v-853498c3] {
		color: #999;
		font-size: 14px;
}
.mobile-tip[data-v-853498c3] {
		margin-top: 15px;
		padding: 12px;
		background: #fff3e0;
		border-radius: 8px;
		font-size: 13px;
		color: #f57c00;
		display: flex;
		align-items: center;
		gap: 8px;
}
.mobile-tip i[data-v-853498c3] {
		font-size: 16px;
}
.payment-loading-overlay[data-v-853498c3] {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 9999;
		backdrop-filter: blur(5px);
}
.loading-content[data-v-853498c3] {
		text-align: center;
		padding: 40px;
		background: white;
		border-radius: 16px;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
		min-width: 280px;
}
.loading-spinner[data-v-853498c3] {
		font-size: 48px;
		color: var(--primary-color);
		margin-bottom: 20px;
}
.loading-text[data-v-853498c3] {
		font-size: 18px;
		font-weight: 600;
		color: #333;
		margin-bottom: 10px;
}
.loading-tips[data-v-853498c3] {
		font-size: 14px;
		color: #666;
}
@media (max-width: 768px) {
.qrcode-container[data-v-853498c3] {
			padding: 20px;
}
.wallet-icon-large[data-v-853498c3] {
			width: 56px;
			height: 56px;
}
.wallet-name-large[data-v-853498c3] {
			font-size: 20px;
}
.loading-content[data-v-853498c3] {
			padding: 30px;
			min-width: 240px;
}
.loading-spinner[data-v-853498c3] {
			font-size: 40px;
}
}
