:root {
  --cx123-primary: #F57C00;
  --cx123-primary-light: #FFF8E1;
  --cx123-primary-dark: #E65100;
  --cx123-primary-alt: #FF9800;
  --cx123-primary-alt-dark: #F57C00;
  --cx123-secondary: #37474F;
  --cx123-light: #FFFFFF;
  --cx123-gray: #FAFAFA;
  --cx123-border: #E0E0E0;
  --cx123-shadow: 0 2px 8px rgba(245, 124, 0, 0.08);
  --cx123-shadow-hover: 0 4px 16px -4px rgba(245, 124, 0, 0.12);
  --cx123-radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--cx123-gray);
  color: var(--cx123-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cx123-main-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
}

.cx123-header {
  background: linear-gradient(145deg, var(--cx123-primary) 0%, var(--cx123-primary-dark) 100%);
  padding: 20px 0;
  color: white;
  border-radius: var(--cx123-radius);
  margin: 8px 0 8px;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

.cx123-header-content {
  text-align: center;
  padding: 0 16px;
}

.cx123-h1 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cx123-header-desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  font-weight: 400;
}

.cx123-function-area {
  margin-bottom: 16px;
}

.cx123-card {
  background: var(--cx123-light);
  border-radius: var(--cx123-radius);
  box-shadow: var(--cx123-shadow);
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.3s;
}

.cx123-card:hover {
  box-shadow: var(--cx123-shadow-hover);
}

.cx123-card-header {
  background-color: var(--cx123-primary-light);
  padding: 10px 14px;
  border-bottom: 1px solid var(--cx123-border);
}

.cx123-card-header h2 {
  color: var(--cx123-primary-dark);
  font-size: 15px;
  font-weight: 700;
}

.cx123-card-body {
  padding: 14px;
}

.cx123-converter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cx123-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cx123-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--cx123-secondary);
}

.cx123-input, .cx123-textarea {
  padding: 10px 12px;
  border: 2px solid var(--cx123-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cx123-secondary);
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.cx123-input:focus, .cx123-textarea:focus {
  border-color: var(--cx123-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.1);
}

.cx123-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cx123-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cx123-btn:active {
  transform: scale(0.97);
}

.cx123-btn-primary {
  background-color: var(--cx123-primary);
  color: white;
}

.cx123-btn-primary:hover {
  background-color: var(--cx123-primary-dark);
}

.cx123-btn-convert {
  background-color: var(--cx123-primary-alt);
  color: white;
}

.cx123-btn-convert:hover {
  background-color: var(--cx123-primary-alt-dark);
}

.cx123-btn-secondary {
  background-color: #607D8B;
  color: white;
}

.cx123-btn-secondary:hover {
  background-color: #455A64;
}

.cx123-result-container {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background-color: var(--cx123-primary-light);
  border-left: 4px solid var(--cx123-primary);
  display: none;
  color: var(--cx123-secondary);
  font-weight: 500;
  font-size: 14px;
}

.cx123-result-container h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--cx123-primary-dark);
}

.cx123-error-container {
  color: #B71C1C;
  padding: 10px;
  border-radius: 8px;
  background-color: #FFEBEE;
  border-left: 4px solid #E53935;
  margin-top: 10px;
  display: none;
  font-weight: 500;
  font-size: 13px;
}

.cx123-dual-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx123-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 2px solid var(--cx123-border);
  border-radius: var(--cx123-radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cx123-panel:focus-within {
  border-color: var(--cx123-primary);
  box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.08);
}

.cx123-panel-header {
  background: linear-gradient(135deg, var(--cx123-primary-light) 0%, #FFF8E1 100%);
  padding: 8px 12px;
  border-bottom: 1px solid var(--cx123-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cx123-panel-header-icon {
  width: 26px;
  height: 26px;
  background: var(--cx123-primary);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.cx123-panel-header h3 {
  color: var(--cx123-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.cx123-panel-body {
  flex: 1;
  padding: 0;
}

.cx123-panel-body .cx123-input,
.cx123-panel-body .cx123-textarea {
  width: 100%;
  height: auto;
  min-height: 80px;
  border: none;
  border-radius: 0;
  resize: none;
  font-size: 15px;
  padding: 10px 12px;
  background: transparent;
  line-height: 1.6;
}

.cx123-panel-body .cx123-input:focus,
.cx123-panel-body .cx123-textarea:focus {
  box-shadow: none;
}

.cx123-panel-footer {
  padding: 6px 12px;
  background: #FAFAFA;
  border-top: 1px solid var(--cx123-border);
  font-size: 11px;
  color: #90A4AE;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cx123-panel-swap {
  width: 36px;
  height: 36px;
  background: var(--cx123-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  transform: rotate(90deg);
  margin: 2px 0;
}

.cx123-panel-swap:hover {
  background: var(--cx123-primary-dark);
  transform: rotate(270deg);
}

.cx123-dual-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cx123-dual-actions .cx123-btn {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
}

.cx123-reference-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.cx123-reference-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.cx123-reference-table th, .cx123-reference-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--cx123-border);
  color: var(--cx123-secondary);
}

.cx123-reference-table th {
  background-color: var(--cx123-gray);
  font-weight: 700;
  color: var(--cx123-secondary);
  font-size: 12px;
}

.cx123-reference-table td {
  font-weight: 500;
  font-size: 13px;
}

.cx123-copy-btn {
  background: none;
  border: none;
  color: var(--cx123-primary);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
  touch-action: manipulation;
}

.cx123-copy-btn:hover {
  background-color: var(--cx123-primary-light);
}

.cx123-text-area {
  margin-bottom: 20px;
}

.cx123-section-title {
  font-size: 18px;
  color: var(--cx123-secondary);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}

.cx123-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--cx123-primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

.cx123-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cx123-guide-card {
  background: var(--cx123-light);
  border-radius: var(--cx123-radius);
  padding: 16px;
  box-shadow: var(--cx123-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cx123-guide-card:hover {
  box-shadow: var(--cx123-shadow-hover);
}

.cx123-guide-card h3 {
  color: var(--cx123-primary-dark);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

.cx123-guide-card p {
  color: #546E7A;
  line-height: 1.6;
  font-size: 13px;
}

.cx123-guide-card ul {
  list-style: none;
  padding: 0;
}

.cx123-guide-card ul li {
  color: #546E7A;
  line-height: 1.6;
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
  font-size: 13px;
}

.cx123-guide-card ul li::before {
  content: '�?;
  color: var(--cx123-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.cx123-friend-links {
  background: var(--cx123-light);
  border-radius: var(--cx123-radius);
  padding: 16px;
  box-shadow: var(--cx123-shadow);
  margin-bottom: 20px;
}

.cx123-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cx123-links-grid a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cx123-secondary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background-color: var(--cx123-gray);
  transition: all 0.3s;
  font-size: 12px;
  font-weight: 500;
}

.cx123-links-grid a:hover {
  background-color: var(--cx123-primary-light);
  color: var(--cx123-primary);
}

.cx123-footer {
  background-color: var(--cx123-secondary);
  color: rgba(255,255,255,0.8);
  padding: 24px 0 12px;
  margin-top: 24px;
}

.cx123-footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.cx123-footer-column h3 {
  color: white;
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cx123-primary);
  font-weight: 700;
}

.cx123-footer-column ul {
  list-style: none;
}

.cx123-footer-column li {
  margin-bottom: 6px;
}

.cx123-footer-column a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.cx123-footer-column a:hover {
  color: white;
}

.cx123-footer-bottom {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.cx123-back-to-top {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background-color: var(--cx123-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(245, 124, 0, 0.25);
  border: none;
}

.cx123-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.cx123-back-to-top:hover {
  background-color: var(--cx123-primary-dark);
}

@media (min-width: 769px) {
  .cx123-main-container {
    padding: 0 16px;
  }

  .cx123-header {
    padding: 32px 0;
    margin: 8px 0 8px;
  }

  .cx123-header-content {
    padding: 0 20px;
  }

  .cx123-h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .cx123-header-desc {
    font-size: 14px;
  }

  .cx123-function-area {
    margin-bottom: 24px;
  }

  .cx123-card {
    margin-bottom: 20px;
    box-shadow: var(--cx123-shadow-hover);
  }

  .cx123-card-header {
    padding: 14px 18px;
  }

  .cx123-card-header h2 {
    font-size: 17px;
  }

  .cx123-card-body {
    padding: 18px;
  }

  .cx123-converter-form {
    gap: 18px;
  }

  .cx123-btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  .cx123-result-container {
    margin-top: 14px;
    padding: 14px;
    font-size: 15px;
  }

  .cx123-result-container h3 {
    font-size: 15px;
  }

  .cx123-dual-panel {
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
  }

  .cx123-panel-header {
    padding: 14px 18px;
    gap: 8px;
  }

  .cx123-panel-header-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .cx123-panel-header h3 {
    font-size: 15px;
  }

  .cx123-panel-body .cx123-input,
  .cx123-panel-body .cx123-textarea {
    min-height: 160px;
    font-size: 18px;
    padding: 18px;
    line-height: 1.8;
  }

  .cx123-panel-footer {
    padding: 10px 18px;
    font-size: 12px;
    gap: 6px;
  }

  .cx123-panel-swap {
    width: 48px;
    height: 48px;
    font-size: 20px;
    transform: rotate(0deg);
    margin: 0;
    align-self: center;
  }

  .cx123-panel-swap:hover {
    transform: rotate(180deg);
  }

  .cx123-dual-actions {
    gap: 12px;
    margin-top: 18px;
  }

  .cx123-dual-actions .cx123-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .cx123-reference-section {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }

  .cx123-reference-table th, .cx123-reference-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .cx123-reference-table th {
    font-size: 13px;
  }

  .cx123-text-area {
    margin-bottom: 32px;
  }

  .cx123-section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .cx123-section-title::after {
    width: 50px;
    margin: 10px auto 0;
  }

  .cx123-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }

  .cx123-guide-card {
    padding: 20px;
  }

  .cx123-guide-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .cx123-guide-card p,
  .cx123-guide-card ul li {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .cx123-friend-links {
    padding: 20px;
    margin-bottom: 32px;
  }

  .cx123-links-grid {
    gap: 10px;
    margin-top: 12px;
  }

  .cx123-links-grid a {
    padding: 6px 14px;
    font-size: 13px;
  }

  .cx123-footer {
    padding: 32px 0 16px;
    margin-top: 32px;
  }

  .cx123-footer-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
  }

  .cx123-footer-column h3 {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 6px;
  }

  .cx123-footer-column a {
    font-size: 14px;
  }

  .cx123-footer-bottom {
    padding-top: 16px;
    font-size: 12px;
  }

  .cx123-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .cx123-main-container {
    padding: 0 8px;
  }

  .cx123-header {
    padding: 16px 0;
    margin: 4px 0 6px;
    border-radius: 8px;
  }

  .cx123-h1 {
    font-size: 18px;
  }

  .cx123-header-desc {
    font-size: 12px;
  }

  .cx123-card {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .cx123-card-header {
    padding: 8px 12px;
  }

  .cx123-card-header h2 {
    font-size: 14px;
  }

  .cx123-card-body {
    padding: 10px;
  }

  .cx123-panel-body .cx123-input,
  .cx123-panel-body .cx123-textarea {
    min-height: 60px;
    font-size: 14px;
    padding: 8px 10px;
  }

  .cx123-panel-header {
    padding: 6px 10px;
  }

  .cx123-panel-header-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-radius: 5px;
  }

  .cx123-panel-header h3 {
    font-size: 12px;
  }

  .cx123-panel-footer {
    padding: 4px 10px;
    font-size: 10px;
  }

  .cx123-panel-swap {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .cx123-dual-actions {
    flex-direction: column;
    gap: 6px;
  }

  .cx123-dual-actions .cx123-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .cx123-btn-group {
    flex-direction: column;
    gap: 6px;
  }

  .cx123-reference-table th, .cx123-reference-table td {
    padding: 6px 8px;
    font-size: 12px;
  }

  .cx123-guide-card {
    padding: 12px;
  }

  .cx123-guide-card h3 {
    font-size: 13px;
  }

  .cx123-guide-card p,
  .cx123-guide-card ul li {
    font-size: 12px;
  }

  .cx123-section-title {
    font-size: 16px;
  }

  .cx123-footer-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 打赏功能样式 */
.donate-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--cx123-radius);
  padding: 6px 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.donate-scroll {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.donate-scroll-content {
  display: flex;
  animation: donateScroll 25s linear infinite;
}

.donate-scroll-content.paused {
  animation-play-state: paused;
}

@keyframes donateScroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.donate-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.donation-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.donation-name {
  font-weight: 600;
  color: #fff;
}

.donation-message {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1565C0;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.donation-time {
  color: rgba(255,255,255,0.8);
  font-size: 11px;
}

.donation-amount {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #E53935;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

.donation-empty {
  color: #fff;
  font-size: 14px;
  text-align: center;
  font-weight: 700;
  padding: 8px 0;
}

.donate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}

.donate-main-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #764ba2;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.donate-main-btn:hover {
  background: #ffd700;
  color: #764ba2;
}

.donate-records-link {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  font-size: 12px;
  transition: background 0.3s;
}

.donate-records-link:hover {
  background: rgba(255,255,255,0.5);
}

.donate-float-btn {
  position: fixed;
  right: 15px;
  bottom: 120px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  transition: all 0.3s;
  z-index: 100;
  border: none;
  animation: floatBounce 2s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.donate-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.donate-float-btn::after {
  content: '赞赏';
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.donate-float-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.donate-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 15px;
}

.donate-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.donate-popup {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: all 0.3s;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.donate-popup-overlay.show .donate-popup {
  transform: scale(1);
}

.donate-popup-header {
  background: linear-gradient(135deg, var(--cx123-primary) 0%, var(--cx123-primary-dark) 100%);
  padding: 16px 15px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.donate-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.donate-popup-close:hover {
  background: rgba(0,0,0,0.35);
}

.donate-popup-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.donate-popup-title {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 3px;
}

.donate-popup-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.donate-popup-body {
  padding: 18px;
  flex: 1;
  overflow-y: auto;
}

.donate-popup-list {
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--cx123-gray);
  padding: 8px;
}

.donate-popup-list::-webkit-scrollbar {
  width: 8px;
}

.donate-popup-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.donate-popup-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  border-radius: 4px;
}

.donate-popup-item {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
}

.donate-popup-item:last-child {
  border-bottom: none;
}

.donate-popup-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cx123-primary) 0%, var(--cx123-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.donate-popup-info {
  flex: 1;
  margin-left: 10px;
  overflow: hidden;
}

.donate-popup-name {
  font-size: 13px;
  color: var(--cx123-secondary);
  font-weight: 600;
}

.donate-popup-message {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donate-popup-amount {
  font-size: 14px;
  color: var(--cx123-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.donate-amount-section {
  margin-bottom: 14px;
}

.donate-amount-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}

.donate-amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.donate-amount-btn {
  padding: 8px 20px;
  border: 2px solid var(--cx123-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--cx123-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.donate-amount-btn:hover {
  border-color: var(--cx123-primary);
  color: var(--cx123-primary);
}

.donate-amount-btn.active {
  border-color: var(--cx123-primary);
  background: var(--cx123-primary-light);
  color: var(--cx123-primary);
}

.donate-custom-amount {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-custom-amount input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--cx123-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.donate-custom-amount input:focus {
  border-color: var(--cx123-primary);
}

.donate-custom-amount span {
  font-size: 15px;
  color: #666;
  font-weight: 700;
}

.donate-form-group {
  margin-bottom: 14px;
}

.donate-form-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 7px;
  display: block;
  font-weight: 600;
}

.donate-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--cx123-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.donate-form-input:focus {
  border-color: var(--cx123-primary);
}

.donate-form-input::placeholder {
  color: #bbb;
}

.donate-message-limit {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
  text-align: right;
}

.donate-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cx123-primary) 0%, var(--cx123-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.35);
}

.donate-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.45);
}

.donate-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.donate-loading {
  display: none;
  text-align: center;
  padding: 16px;
}

.donate-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f3f3f3;
  border-top-color: var(--cx123-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.donate-loading-text {
  font-size: 13px;
  color: #888;
}

.donate-form-panel {
  display: block;
}

.donate-pay-panel {
  display: none;
  text-align: center;
}

.donate-pay-panel.active {
  display: block;
}

.donate-pay-amount {
  margin-bottom: 18px;
}

.donate-pay-amount-value {
  font-size: 38px;
  color: #e74c3c;
  font-weight: 700;
}

.donate-pay-amount-value span {
  font-size: 22px;
  margin-right: 4px;
}

.donate-qrcode-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
}

.donate-qrcode-loading {
  text-align: center;
  padding: 40px 0;
}

.donate-qrcode-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #667eea;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: qrcodeSpin 0.8s linear infinite;
}

@keyframes qrcodeSpin {
  to { transform: rotate(360deg); }
}

.donate-qrcode-loading-text {
  font-size: 13px;
  color: #999;
}

.donate-qrcode-img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}

.donate-qrcode-tip {
  margin-top: 12px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.donate-countdown-box {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.donate-countdown-text {
  font-size: 13px;
  color: #e65100;
  font-weight: 600;
}

.donate-countdown-number {
  font-size: 28px;
  font-weight: 700;
  color: #e65100;
  margin: 8px 0;
}

.donate-status-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.donate-status-icon {
  width: 44px;
  height: 44px;
  border: 3px solid #e0e0e0;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.donate-status-icon.success {
  animation: none;
  background: #07c160;
  border-color: #07c160;
}

.donate-status-text {
  font-size: 14px;
  color: #666;
}

.donate-status-text.success {
  color: #07c160;
}

.donate-back-btn {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--cx123-border);
  border-radius: 10px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.donate-back-btn:hover {
  border-color: var(--cx123-primary);
  color: var(--cx123-primary);
}
