@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');.password-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.password-dialog {
  background: #1a1a1a;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.password-dialog-header {
  padding: 15px 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-dialog-title {
  color: #00FF00;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
}

.password-dialog-close {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.password-dialog-close:hover {
  background: #00FF00;
  color: #000000;
}

.password-dialog-description {
  padding: 15px 20px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.password-dialog-content {
  padding: 20px;
  flex: 1;
}

.password-input-group {
  margin-bottom: 15px;
}

.password-label {
  display: block;
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 8px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input {
  flex: 1;
  background: #000000;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  outline: none;
  transition: all 0.2s;
}

.password-input:focus {
  border-color: #00FF00;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.password-input::placeholder {
  color: #666;
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #00FF00;
}

.password-strength {
  margin-top: 10px;
  margin-bottom: 15px;
}

.strength-indicator {
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-bar {
  height: 100%;
  transition: width 0.3s, background-color 0.3s;
}

.strength-weak .strength-bar {
  background: #ff4444;
}

.strength-medium .strength-bar {
  background: #ffaa00;
}

.strength-strong .strength-bar {
  background: #00FF00;
}

.strength-text {
  color: #888;
  font-size: 11px;
}

.password-error {
  color: #ff4444;
  font-size: 12px;
  margin-top: 10px;
  padding: 8px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.password-dialog-footer {
  padding: 15px 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.password-button {
  padding: 8px 20px;
  font-size: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: all 0.2s;
}

.password-button-cancel {
  background: transparent;
  color: #888;
}

.password-button-cancel:hover {
  border-color: #00FF00;
  color: #00FF00;
}

.password-button-confirm {
  background: #00FF00;
  color: #000000;
  border-color: #00FF00;
}

.password-button-confirm:hover {
  background: #33ff33;
  border-color: #33ff33;
}

.alert-dialog-overlay {
  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: 10001;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.alert-dialog {
  background: #1a1a1a;
  border: 2px solid;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  min-width: 300px;
  max-width: 90vw;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.alert-dialog-success {
  border-color: #00FF00;
}

.alert-dialog-error {
  border-color: #ff4444;
}

.alert-dialog-warning {
  border-color: #ffaa00;
}

.alert-dialog-info {
  border-color: #00aaff;
}

.alert-dialog-header {
  padding: 15px 20px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-dialog-success .alert-dialog-icon {
  color: #00FF00;
}

.alert-dialog-error .alert-dialog-icon {
  color: #ff4444;
}

.alert-dialog-warning .alert-dialog-icon {
  color: #ffaa00;
}

.alert-dialog-info .alert-dialog-icon {
  color: #00aaff;
}

.alert-dialog-title {
  flex: 1;
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
}

.alert-dialog-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.alert-dialog-close:hover {
  border-color: #00FF00;
  color: #00FF00;
}

.alert-dialog-content {
  padding: 20px;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.alert-dialog-message {
  margin-bottom: 12px;
}

.alert-dialog-hash-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}

.alert-dialog-hash {
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  color: #ffffff;
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 4px;
  line-height: 1.6;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
  text-align: center;
  letter-spacing: 0.5px;
}

.alert-dialog-copy-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  width: 100%;
}

.alert-dialog-copy-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .alert-dialog-overlay {
    padding: 10px;
    align-items: flex-end; /* 移动端从底部弹出 */
  }

  .alert-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    border-radius: 12px 12px 0 0;
    min-width: auto;
  }

  .alert-dialog-header {
    padding: 12px 15px;
  }

  .alert-dialog-title {
    font-size: 14px;
  }

  .alert-dialog-content {
    padding: 15px;
    font-size: 13px;
  }

  .alert-dialog-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .alert-dialog-copy-button {
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }
}.login-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  box-sizing: border-box;
}

.login-container {
  width: 90%;
  max-width: 500px;
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 5px #00FF00;
  padding: 20px;
  box-sizing: border-box;
}

.login-header {
  margin-bottom: 15px;
}

.header-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 8px;
  text-shadow: 
    0 0 5px #00FF00,
    0 0 10px #00FF00,
    0 0 15px #00FF00,
    0 0 20px #00FF00;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 
      0 0 5px #00FF00,
      0 0 10px #00FF00,
      0 0 15px #00FF00,
      0 0 20px #00FF00;
  }
  50% {
    text-shadow: 
      0 0 10px #00FF00,
      0 0 20px #00FF00,
      0 0 30px #00FF00,
      0 0 40px #00FF00;
  }
}

.header-divider {
  width: 100%;
  height: 1px;
  background: #00FF00;
  margin-bottom: 15px;
}

.welcome-section {
  margin-bottom: 20px;
}

.welcome-text {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.decorative-line {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: monospace;
}

.smiley-text {
  color: #00FF00;
  text-shadow: 0 0 5px #00FF00;
}

.smiley-cursor {
  color: #00FF00;
  animation: blink-cursor 1s step-end infinite;
  text-shadow: 0 0 5px #00FF00;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.info-text {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.login-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.method-block {
  border: 1px solid #00FF00;
  background: #000000;
  padding: 12px;
  box-sizing: border-box;
}

.method-title {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: normal;
}

.method-description {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.method-button {
  border: 1px solid #00FF00;
  background: #000000;
  color: #00FF00;
  padding: 8px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

.method-button:hover {
  background: #00FF00;
  color: #000000;
  box-shadow: 0 0 5px #00FF00;
}

.method-button:active {
  transform: scale(0.98);
}

.security-notice {
  border-top: 1px solid #00FF00;
  padding-top: 15px;
}

.notice-title {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: normal;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 5px;
  line-height: 1.5;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .login-screen {
    padding: 15px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
  }

  .login-header {
    margin-bottom: 12px;
  }

  .header-title {
    font-size: 16px;
  }

  .welcome-text {
    font-size: 13px;
  }

  .info-text {
    font-size: 11px;
  }

  .method-title {
    font-size: 13px;
  }

  .method-description {
    font-size: 11px;
  }

  .method-button {
    width: 100%;
    padding: 12px;
    font-size: 14px; /* 防止 iOS 自动缩放 */
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .notice-title {
    font-size: 11px;
  }

  .notice-list li {
    font-size: 11px;
  }
}
.message-bubble-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
  margin-bottom: 4px;
}

.message-bubble-wrapper.own {
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.message-bubble-wrapper.other {
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto;
}

.message-bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 4px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  box-sizing: border-box;
}

.message-bubble.own {
  background: #2a2a2a;
  color: #00FF00;
  border: 1px solid #3a3a3a;
}

.message-bubble.other {
  background: #2a2a2a;
  color: #00FF00;
  border: 1px solid #3a3a3a;
}

.message-content {
  line-height: 1.5;
  margin-bottom: 4px;
  white-space: pre-wrap;
  color: inherit;
}

.message-time {
  font-size: 10px;
  opacity: 0.7;
  text-align: right;
  margin-top: 4px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
}

.message-bubble.own .message-time {
  color: #00FF00;
}

.message-bubble.other .message-time {
  text-align: left;
  justify-content: flex-start;
}

.checkmark {
  color: #00FF00;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: -1px;
}

.checkmark.read .double-check {
  display: inline-block;
  letter-spacing: -2px;
  font-weight: normal;
}

/* 图片消息样式 */
.message-image-container {
  position: relative;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.message-image {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s;
}

.message-image:hover {
  opacity: 0.9;
}

.message-image-error {
  padding: 20px;
  text-align: center;
  color: #666666;
  font-size: 12px;
}

.message-image-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.message-image-container:hover .message-image-expand {
  opacity: 1;
}

.message-image-expand:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: #3a3a3a;
}

.message-text-with-image {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #2a2a2a;
}

/* 图片查看模态框 */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10001;
}

.image-modal-close:hover {
  background: rgba(255, 0, 0, 0.8);
  border-color: #ff0000;
}

.image-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  cursor: pointer;
}

/* 表情包加载和错误状态 */
.message-sticker-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: #888;
  font-size: 12px;
}

.message-sticker-loading .spinning {
  animation: spin 1s linear infinite;
}

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

.message-sticker-error {
  padding: 20px;
  text-align: center;
  color: #ff4444;
  font-size: 12px;
}

/* 笔记分享消息样式 */
.message-note-share {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  max-width: 100%;
  min-width: 200px;
}

.note-share-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #00FF00;
  font-weight: 500;
  font-size: 14px;
}

.note-share-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-share-preview {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 自定义滚动条样式 */
.note-share-preview::-webkit-scrollbar {
  width: 6px;
}

.note-share-preview::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 3px;
}

.note-share-preview::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.note-share-preview::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.note-share-content-preview {
  color: #cccccc;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-share-empty {
  color: #666666;
  font-size: 12px;
  font-style: italic;
}

.note-share-actions {
  display: flex;
  justify-content: flex-end;
}

.note-share-save-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #00FF00;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.note-share-save-button:hover {
  background: #00cc00;
}
.message-list {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: #1a1a1a;
  padding: 20px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .message-list {
    padding: 12px 15px;
  }

  .message-list-content {
    gap: 10px;
  }
}

.message-list-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-wrapper {
  display: flex;
  width: 100%;
}

.message-wrapper.own {
  justify-content: flex-end;
}

.message-wrapper.other {
  justify-content: flex-start;
}

/* Scrollbar */
.message-list::-webkit-scrollbar {
  width: 6px;
}

.message-list::-webkit-scrollbar-track {
  background: transparent;
}

.message-list::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.message-list::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}
.sticker-picker-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 520px;
  max-width: 90vw;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  position: relative;
  z-index: 1000;
}

.sticker-picker-header {
  padding: 10px 15px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticker-picker-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.sticker-picker-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sticker-picker-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.sticker-picker-content {
  padding: 15px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sticker-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
}

.sticker-category-tab {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  padding: 4px 12px;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sticker-category-tab:hover {
  border-color: #00FF00;
  color: #00FF00;
}

.sticker-category-tab.active {
  border-color: #00FF00;
  color: #00FF00;
  background: rgba(0, 255, 0, 0.1);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  row-gap: 12px;
  column-gap: 12px;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.sticker-item {
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  aspect-ratio: 1;
  max-width: 80px;
  max-height: 80px;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
}

.sticker-item:hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00FF00;
  transform: scale(1.1);
}

.sticker-item img {
  width: auto;
  height: auto;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.sticker-error-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 24px;
  background: #1a1a1a;
  border-radius: 4px;
}

.sticker-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: #888;
  font-size: 12px;
}

.sticker-loading .spinning {
  animation: spin 1s linear infinite;
}

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

.sticker-error {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ff4444;
  font-size: 12px;
  text-align: center;
}

.sticker-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #888;
  font-size: 12px;
}

/* Scrollbar */
.sticker-picker-content::-webkit-scrollbar,
.sticker-grid::-webkit-scrollbar {
  width: 8px;
}

.sticker-picker-content::-webkit-scrollbar-track,
.sticker-grid::-webkit-scrollbar-track {
  background: rgba(0, 255, 0, 0.1);
  border-radius: 4px;
}

.sticker-picker-content::-webkit-scrollbar-thumb,
.sticker-grid::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.sticker-picker-content::-webkit-scrollbar-thumb:hover,
.sticker-grid::-webkit-scrollbar-thumb:hover {
  background: #66ff66;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .sticker-picker-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
  }

  .sticker-picker-header {
    padding: 12px 15px;
    min-height: 44px;
  }

  .sticker-picker-title {
    font-size: 13px;
  }

  .sticker-picker-close-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .sticker-picker-content {
    padding: 12px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sticker-categories {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex-wrap: nowrap;
  }

  .sticker-categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .sticker-category-tab {
    padding: 8px 12px;
    font-size: 11px;
    min-height: 36px;
    flex-shrink: 0;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
    max-height: calc(70vh - 140px);
    padding: 10px;
  }

  .sticker-item {
    max-width: 100%;
    max-height: 100%;
    min-width: 60px;
    min-height: 60px;
    padding: 6px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .sticker-item:hover {
    transform: scale(1.05);
  }

  .sticker-item:active {
    transform: scale(0.95);
    background: rgba(0, 255, 0, 0.15);
  }

  .sticker-item img {
    max-width: calc(100% - 12px);
    max-height: calc(100% - 12px);
  }

  .sticker-loading,
  .sticker-error,
  .sticker-empty {
    padding: 30px 20px;
    font-size: 11px;
  }
}

.emoji-picker-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 480px;
  max-width: 90vw;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  position: relative;
  z-index: 1000;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .emoji-picker-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
  }

  .emoji-picker-header {
    padding: 12px 15px;
    min-height: 44px;
  }

  .emoji-picker-title {
    font-size: 13px;
  }

  .emoji-picker-close-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .emoji-picker-content {
    padding: 12px;
    max-height: calc(70vh - 60px);
  }

  .emoji-categories {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .emoji-categories::-webkit-scrollbar {
    display: none;
  }

  .emoji-category-tab {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .emoji-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    max-height: calc(70vh - 120px);
    padding: 8px 0;
  }

  .emoji-item {
    font-size: 28px;
    max-width: 44px;
    max-height: 44px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .emoji-item:hover {
    transform: scale(1.1);
  }

  .emoji-item:active {
    transform: scale(0.95);
  }
}

.emoji-picker-header {
  padding: 10px 15px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emoji-picker-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.emoji-picker-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.emoji-picker-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.emoji-picker-content {
  padding: 15px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.emoji-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
}

.emoji-category-tab {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  padding: 4px 8px;
  font-size: 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.emoji-category-tab:hover {
  border-color: #00FF00;
  color: #00FF00;
}

.emoji-category-tab.active {
  border-color: #00FF00;
  color: #00FF00;
  background: rgba(0, 255, 0, 0.1);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  width: 100%;
  box-sizing: border-box;
}

.emoji-item {
  background: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 24px;
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  box-sizing: border-box;
}

.emoji-item:hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00FF00;
  transform: scale(1.2);
}

/* Scrollbar */
.emoji-picker-content::-webkit-scrollbar,
.emoji-grid::-webkit-scrollbar {
  width: 8px;
}

.emoji-picker-content::-webkit-scrollbar-track,
.emoji-grid::-webkit-scrollbar-track {
  background: rgba(0, 255, 0, 0.1);
  border-radius: 4px;
}

.emoji-picker-content::-webkit-scrollbar-thumb,
.emoji-grid::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.emoji-picker-content::-webkit-scrollbar-thumb:hover,
.emoji-grid::-webkit-scrollbar-thumb:hover {
  background: #66ff66;
}

.message-input-wrapper-new {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.message-input-new {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  resize: none;
  outline: none;
  max-height: 150px;
  line-height: 1.5;
  min-height: 20px;
  height: 20px;
  padding: 0;
}

.message-input-new::placeholder {
  color: #666666;
}

.emoji-button-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.emoji-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 6px 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
}

.emoji-button:hover {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.emoji-picker-container {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 4px;
  z-index: 1001;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .emoji-picker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    z-index: 1002;
  }
}

.burn-button-wrapper {
  position: relative;
  flex-shrink: 0;
}

.burn-button-new {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 6px 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
}

.burn-button-new:hover {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.burn-button-new .rotated {
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.burn-menu-new {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 4px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  min-width: 120px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.burn-option-new {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  transition: all 0.2s;
}

.burn-option-new:hover {
  background: #2a2a2a;
}

.burn-option-new.active {
  color: #00FF00;
  font-weight: bold;
}

/* 图片上传相关样式 */
.image-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 6px 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
  margin-right: 0;
}

.image-button:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.image-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-preview-container {
  display: none; /* 不在外部显示预览 */
}

.message-input-drop-zone {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-input-drop-zone .image-preview-inline {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}

.message-input-drop-zone .image-preview-inline img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 300px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}

.image-preview {
  display: block;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  padding: 0;
}

.message-input-drop-zone .image-preview-inline .image-preview-remove {
  width: 16px;
  height: 16px;
  top: 1px;
  right: 1px;
}

.image-preview-remove:hover {
  background: rgba(255, 0, 0, 0.8);
  border-color: #ff0000;
}

.image-uploading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 10px;
  z-index: 20;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.upgrade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.upgrade-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.upgrade-header {
  padding: 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upgrade-title {
  color: #00FF00;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.upgrade-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.upgrade-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.upgrade-content {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.upgrade-text {
  color: #00FF00;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.donation-section {
  margin-top: 30px;
}

.donation-label {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 12px;
}

.donation-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.donation-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.donation-input:focus {
  box-shadow: 0 0 5px #00FF00;
}

.copy-button {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-button:hover {
  background: #00FF00;
  color: #000000;
}

.upgrade-footer {
  padding: 20px;
  border-top: 1px solid #00FF00;
}

.user-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-info-label {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
}

.user-info-value-simple {
  color: #00FF00;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  word-break: break-all;
}

.user-info-value-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.user-info-input:focus {
  box-shadow: 0 0 5px #00FF00;
}

.copy-button-small {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-button-small:hover {
  background: #00FF00;
  color: #000000;
}

/* Username Setup */
.username-setup {
  display: flex;
  gap: 10px;
  align-items: center;
}

.username-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.username-input:focus {
  box-shadow: 0 0 5px #00FF00;
}

.username-input::placeholder {
  color: #66ff66;
  opacity: 0.7;
}

.username-save-button {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.username-save-button:hover:not(:disabled) {
  background: #00FF00;
  color: #000000;
}

.username-save-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.username-error {
  color: #ff4444;
  font-size: 11px;
  margin-top: 4px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

/* Spinning animation for refresh button */
.spinning {
  animation: spin 1s linear infinite;
}

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

/* 终端加载圆圈进度 */
.terminal-loading-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-circle {
  width: 12px;
  height: 12px;
  border: 2px solid #00ff00;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbar */
.upgrade-content::-webkit-scrollbar {
  width: 6px;
}

.upgrade-content::-webkit-scrollbar-track {
  background: transparent;
}

.upgrade-content::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.upgrade-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Terminal Dialog Styles */
.terminal-dialog {
  background: #0a0a0a;
  border: 2px solid #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  border-radius: 4px;
  overflow: hidden;
}

.terminal-header {
  background: #1a1a1a;
  border-bottom: 1px solid #00ff00;
  min-height: auto;
  position: relative;
}

.terminal-title-bar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  position: relative;
}

.terminal-title {
  color: #00ff00;
  font-size: 12px;
  font-weight: normal;
  text-align: left;
}

.terminal-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #00ff00;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.terminal-close:hover {
  color: #66ff66;
  background: rgba(0, 255, 0, 0.1);
}

.terminal-body {
  padding: 20px;
  background: #000000;
  color: #00ff00;
  font-size: 13px;
  line-height: 1.6;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}

.terminal-line {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.terminal-command-line {
  margin-top: 12px;
  margin-bottom: 12px;
}

.terminal-hint-text {
  color: #888;
  font-size: 11px;
  margin-left: 8px;
  opacity: 0.7;
  font-style: italic;
}

.terminal-cursor {
  display: inline-block;
  color: #ffffff !important;
  margin-left: 2px;
  font-weight: normal;
  animation: blink 1s infinite;
  font-size: 13px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.terminal-prompt {
  color: #00ff00;
  font-weight: bold;
  margin-right: 8px;
}

.terminal-text {
  color: #ffffff;
}

.terminal-output {
  margin-top: 12px;
}

.terminal-banner {
  text-align: center;
  margin: 20px 0 30px 0;
  padding: 20px;
  border: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.05);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.terminal-banner-text {
  color: #00ff00;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-banner-subtitle {
  color: #66ff66;
  font-size: 13px;
  opacity: 0.9;
}

.terminal-section {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 255, 0, 0.02);
  border-left: 2px solid #00ff00;
}

.terminal-label {
  color: #00ff00;
  font-weight: bold;
  min-width: 140px;
}

.terminal-value {
  color: #ffffff;
  font-weight: normal;
}

.terminal-value.terminal-success {
  color: #00ff00;
}

.terminal-value.terminal-error {
  color: #ff4444;
}

.terminal-comment {
  color: #888888;
  font-style: italic;
}

.terminal-actions {
  margin: 30px 0 20px 0;
  display: flex;
  justify-content: center;
}

.terminal-button-submit {
  background: #000000;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 10px 32px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
  height: auto;
  min-width: 160px;
}

.terminal-button-submit:hover:not(:disabled) {
  background: #00ff00;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  transform: translateY(-2px);
}

.terminal-button-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.terminal-arrow {
  color: #00ff00;
  font-size: 16px;
}

.terminal-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.terminal-error-box {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
}

.terminal-error-prefix {
  color: #ff0000;
  font-weight: bold;
  margin-right: 8px;
}

.terminal-error-text {
  color: #ff0000;
}

.terminal-success-box {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
}

.terminal-success-prefix {
  color: #00ff00;
  font-weight: bold;
  margin-right: 8px;
}

.terminal-success-text {
  color: #00ff00;
}

.terminal-shutdown {
  margin-top: 12px;
}

.terminal-cursor-shutdown {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #ffffff;
  margin-left: 2px;
  animation: blink 1s infinite;
}

.terminal-dots {
  display: inline-block;
  color: #ffffff;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.terminal-dots .dot {
  display: inline-block;
  color: #ffffff;
  animation: dot-wave 1.5s infinite;
}

.terminal-dots .dot-1 {
  animation-delay: 0s;
}

.terminal-dots .dot-2 {
  animation-delay: 0.2s;
}

.terminal-dots .dot-3 {
  animation-delay: 0.4s;
}

@keyframes dot-wave {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Terminal scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #000000;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #66ff66;
}

/* 移动端继续按钮 */
.terminal-continue-button {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 8px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
  border-radius: 4px;
  min-height: 36px;
  -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  white-space: nowrap;
}

.terminal-continue-button:hover:not(:disabled) {
  background: #00FF00;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.terminal-continue-button:active:not(:disabled) {
  transform: scale(0.95);
}

.terminal-continue-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .upgrade-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .upgrade-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    margin: 0;
  }

  .upgrade-header {
    padding: 12px 15px;
    min-height: 44px;
  }

  .upgrade-title {
    font-size: 16px;
  }

  .upgrade-close-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .upgrade-content {
    padding: 15px;
  }

  .terminal-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
  }

  .terminal-body {
    padding: 15px;
    font-size: 12px;
    max-height: calc(90vh - 60px);
    max-height: calc(90dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-line {
    font-size: 12px;
    gap: 4px;
  }

  .terminal-command-line {
    flex-wrap: wrap;
    align-items: center;
  }

  .terminal-continue-button {
    margin-left: 8px;
    margin-top: 8px;
    padding: 10px 20px;
    min-height: 44px;
    font-size: 13px;
    flex: 1 1 auto;
    max-width: 200px;
  }

  .terminal-hint-text {
    font-size: 10px;
    margin-left: 4px;
  }
}

.about-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.about-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.about-header {
  padding: 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-title {
  color: #00FF00;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.about-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.about-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.about-content {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.about-text {
  color: #00FF00;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.donation-section {
  margin-top: 30px;
}

.donation-label {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 12px;
}

.donation-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.donation-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.donation-input:focus {
  box-shadow: 0 0 5px #00FF00;
}

.copy-button {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-button:hover {
  background: #00FF00;
  color: #000000;
}

.about-divider {
  height: 1px;
  background: #00FF00;
  margin: 30px 0;
  opacity: 0.5;
}

.domains-section {
  margin-top: 20px;
}

.domains-label {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 12px;
}

.domains-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.domain-link {
  color: #00FF00;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #00FF00;
  text-underline-offset: 4px;
  transition: all 0.2s;
  display: inline-block;
}

.domain-link:hover {
  color: #00ff88;
  text-decoration-color: #00ff88;
}

.domain-link-separator {
  color: #00FF00;
  font-size: 14px;
  margin: 0 8px;
  opacity: 0.6;
}

.domain-link-loading {
  color: #00FF00;
  font-size: 14px;
  opacity: 0.6;
  font-style: italic;
}

.client-download-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 12px;
}

.client-download-label {
  color: #00FF00;
  font-size: 14px;
  margin-right: 4px;
}

/* Scrollbar */
.about-content::-webkit-scrollbar {
  width: 6px;
}

.about-content::-webkit-scrollbar-track {
  background: transparent;
}

.about-content::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.about-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.confirm-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.confirm-header {
  padding: 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-title {
  color: #00FF00;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.confirm-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.confirm-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.confirm-content {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.confirm-message {
  color: #00FF00;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.confirm-footer {
  padding: 20px;
  border-top: 1px solid #00FF00;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.confirm-button-cancel {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 24px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-button-cancel:hover {
  background: #00FF00;
  color: #000000;
}

.confirm-button-ok {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 24px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-button-ok:hover {
  background: #00FF00;
  color: #000000;
}

/* Scrollbar */
.confirm-content::-webkit-scrollbar {
  width: 6px;
}

.confirm-content::-webkit-scrollbar-track {
  background: transparent;
}

.confirm-content::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.confirm-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .confirm-overlay {
    padding: 10px;
    align-items: flex-end; /* 移动端从底部弹出 */
  }

  .confirm-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }

  .confirm-header {
    padding: 15px;
  }

  .confirm-title {
    font-size: 16px;
  }

  .confirm-close-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .confirm-content {
    padding: 20px 15px;
  }

  .confirm-message {
    font-size: 13px;
  }

  .confirm-footer {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .confirm-button-cancel,
  .confirm-button-ok {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }
}

.user-select-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.user-select-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 10px #00FF00;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.user-select-header {
  padding: 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-select-title {
  color: #00FF00;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  text-align: center;
  flex: 1;
}

.user-select-close-button {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.user-select-close-button:hover {
  background: #00FF00;
  color: #000000;
}

.user-select-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.user-select-message {
  color: #00FF00;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-item {
  background: transparent;
  border: 1px solid #00FF00;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-item:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 5px #00FF00;
}

.user-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-item-name {
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
}

.user-item-pubkey {
  color: #66ff66;
  font-size: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.user-item-about {
  color: #88ff88;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

/* Scrollbar */
.user-select-content::-webkit-scrollbar {
  width: 6px;
}

.user-select-content::-webkit-scrollbar-track {
  background: transparent;
}

.user-select-content::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.user-select-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.notes-tree-panel {
  width: 300px;
  min-width: 300px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  box-sizing: border-box;
  overflow: hidden;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .notes-tree-panel {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid #00FF00;
  }

  .notes-tree-header {
    padding: 10px 15px;
    min-height: 44px;
    height: auto;
  }

  .notes-tree-title {
    font-size: 13px;
  }

  .notes-tree-stats {
    font-size: 10px;
  }

  .notes-tree-actions {
    gap: 6px;
  }

  .tree-export-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .notes-tree-content {
    padding: 8px 0;
    max-height: calc(40vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tree-node {
    padding: 10px 15px;
    min-height: 44px;
  }

  .tree-node-name {
    font-size: 12px;
  }

  .tree-node-icon {
    font-size: 14px;
  }

  .tree-action-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .tree-new-folder-input {
    padding: 8px 15px;
  }

  .tree-new-folder-input input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .tree-new-folder-input button {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .tree-new-folder-button,
  .tree-new-note-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

.notes-tree-header {
  padding: 12px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #0f0f0f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 48px; /* 统一最小高度 */
  height: 48px; /* 固定高度，确保对齐 */
  box-sizing: border-box;
  flex-shrink: 0;
}

.notes-tree-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
}

.notes-tree-stats {
  color: #ffffff;
  font-size: 11px;
  opacity: 0.7;
  flex: 1;
}

.notes-tree-actions {
  display: flex;
  gap: 4px;
}

.notes-tree-actions-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tree-export-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.tree-export-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

/* 导出密码对话框样式 */
.export-password-dialog-overlay {
  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: 10000;
}

.export-password-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 20px;
  min-width: 300px;
  max-width: 400px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.export-password-dialog-title {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.export-password-dialog-message {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.export-password-input {
  width: 100%;
  background: #000000;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  outline: none;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.export-password-input:focus {
  border-color: #00FF00;
  box-shadow: 0 0 4px #00FF00;
}

.export-password-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.export-password-button-cancel,
.export-password-button-confirm {
  padding: 8px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  transition: all 0.2s;
}

.export-password-button-cancel {
  background: #1a1a1a;
  color: #ffffff;
}

.export-password-button-cancel:hover {
  background: #2a2a2a;
  border-color: #ffffff;
}

.export-password-button-confirm {
  background: #00FF00;
  color: #000000;
  border-color: #00FF00;
}

.export-password-button-confirm:hover {
  box-shadow: 0 0 10px #00FF00;
}

.tree-node-edit {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  margin-left: -20px;
  border-bottom: 1px solid #2a2a2a;
}

.tree-node-edit-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  margin-left: 8px;
}

.tree-node-edit-input:focus {
  box-shadow: 0 0 4px #00FF00;
}

.tree-new-folder-button,
.tree-new-note-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.tree-new-folder-button:hover,
.tree-new-note-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.tree-new-folder-input {
  padding: 10px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #0f0f0f;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tree-new-folder-input input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 6px 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
}

.tree-new-folder-input button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 6px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.tree-new-folder-input button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.notes-tree-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.notes-empty {
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  padding: 40px 20px;
  opacity: 0.6;
}

.tree-node {
  padding: 8px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.tree-node:hover {
  background: #2a2a2a;
}

.tree-node.active {
  background: #2a2a2a;
  border-left: 2px solid #00FF00;
}

.tree-node-content.selected-folder {
  background: rgba(0, 255, 0, 0.25);
}

.tree-node.selected-folder-node {
  background: rgba(0, 255, 0, 0.15);
}

.tree-node.selected-folder-node:hover {
  background: rgba(0, 255, 0, 0.2);
}

.tree-node.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.tree-node.drag-over {
  background-color: rgba(0, 255, 0, 0.2) !important;
  border: 1px dashed #00FF00 !important;
  border-radius: 2px;
}

.tree-node-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tree-node-icon {
  display: flex;
  align-items: center;
  color: #666666;
  cursor: pointer;
}

.tree-node-folder-icon {
  color: #00FF00;
  flex-shrink: 0;
}

.tree-node-file-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.tree-node-name {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-node-children {
  margin-left: 0;
}

.tree-node-actions {
  display: flex;
  gap: 4px;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.tree-node:hover .tree-node-actions {
  opacity: 1;
}

.tree-action-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.tree-action-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
  color: #00FF00;
}

.note-editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #000000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  min-width: 0; /* 允许flex子元素收缩 */
  overflow: hidden; /* 防止内容溢出 */
  box-sizing: border-box;
}

.note-editor-header {
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
  background: #0f0f0f;
  flex-shrink: 0; /* 防止header被压缩 */
  min-width: 0; /* 允许flex子元素收缩 */
  overflow: hidden; /* 防止内容溢出 */
  min-height: 48px; /* 统一最小高度 */
  height: 48px; /* 固定高度，确保对齐 */
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.note-editor-header-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 50px; /* 与行号区域对齐 */
  padding-right: 15px;
  min-width: 0; /* 允许flex子元素收缩 */
  overflow: hidden; /* 防止内容溢出 */
  width: 100%;
}

.note-title-input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 6px 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-title-display {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
}

.note-folder-selector-wrapper {
  position: relative;
  flex-shrink: 0;
}

.note-folder-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
}

.note-folder-selector:hover {
  background: #1a1a1a;
}

.note-folder-selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #1a1a1a;
  border: 1px solid #00FF00;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 200px;
}

.note-folder-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.note-folder-option:hover {
  background: #2a2a2a;
}

.note-folder-option.selected {
  background: rgba(0, 255, 0, 0.2);
  color: #00FF00;
}

.note-folder-display {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

.note-folder-display-readonly {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #ffffff; /* 与Size颜色一致 */
  font-size: 11px; /* 与Size字体大小一致 */
  opacity: 0.7; /* 与Size透明度一致 */
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  user-select: none;
  pointer-events: none; /* 禁用所有交互 */
  flex-shrink: 0;
  white-space: nowrap;
}

.note-folder-path-text {
  color: #ffffff; /* 与Size颜色一致 */
  opacity: 0.7; /* 与Size透明度一致 */
}

.note-size {
  color: #ffffff;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

.note-editor-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto; /* 将按钮组推到右边 */
}

.note-title-input::placeholder {
  color: #666666;
}

.note-button-cancel,
.note-button-save,
.note-button-edit {
  padding: 6px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #00FF00;
  transition: all 0.2s;
}

.note-button-cancel {
  background: #000000;
  color: #00FF00;
}

.note-button-cancel:hover {
  background: #1a1a1a;
}

.note-button-save {
  background: #00FF00;
  color: #000000;
}

.note-button-save:hover {
  box-shadow: 0 0 10px #00FF00;
}

.note-button-edit {
  background: #000000;
  color: #00FF00;
}

.note-button-edit:hover {
  background: #1a1a1a;
}

.note-editor-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0; /* 允许flex子元素收缩 */
}

.note-editor-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #000000;
}

.note-line-numbers {
  padding: 15px 10px;
  color: #666666;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  background: #0a0a0a;
  border-right: 1px solid #2a2a2a;
  min-width: 50px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  overflow-y: hidden;
  overflow-x: hidden;
  white-space: pre;
  display: block;
}

.note-textarea {
  flex: 1;
  background: #000000;
  border: none;
  color: #00FF00;
  padding: 15px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap; /* 允许换行，同时保留空格和换行符 */
  word-wrap: break-word; /* 长单词自动换行 */
  word-break: break-all; /* 允许在任意字符间换行 */
  overflow-wrap: break-word; /* 确保长单词也能换行 */
  tab-size: 2;
  min-width: 0; /* 允许flex子元素收缩 */
  max-width: 100%; /* 限制最大宽度 */
}

.note-textarea::placeholder {
  color: #666666;
}

.note-viewer {
  flex: 1;
  overflow: auto;
  padding: 15px;
  background: #000000;
  min-width: 0; /* 允许flex子元素收缩 */
  max-width: 100%; /* 限制最大宽度 */
}

.note-content-display {
  color: #00FF00;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap; /* 允许换行，同时保留空格和换行符 */
  word-wrap: break-word; /* 长单词自动换行 */
  word-break: break-all; /* 允许在任意字符间换行 */
  overflow-wrap: break-word; /* 确保长单词也能换行 */
  max-width: 100%; /* 限制最大宽度 */
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

/* 自定义滚动条 */
.note-textarea::-webkit-scrollbar,
.note-viewer::-webkit-scrollbar {
  width: 8px;
}

.note-textarea::-webkit-scrollbar-track,
.note-viewer::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.note-textarea::-webkit-scrollbar-thumb,
.note-viewer::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.note-textarea::-webkit-scrollbar-thumb:hover,
.note-viewer::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

/* Markdown 预览样式 */
.note-markdown-content {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.8;
  max-width: 100%;
  word-wrap: break-word;
}

.note-markdown-content h1,
.note-markdown-content h2,
.note-markdown-content h3,
.note-markdown-content h4,
.note-markdown-content h5,
.note-markdown-content h6 {
  color: #00FF00;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: bold;
  line-height: 1.25;
}

.note-markdown-content h1 {
  font-size: 2em;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 8px;
}

.note-markdown-content h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 8px;
}

.note-markdown-content h3 {
  font-size: 1.25em;
}

.note-markdown-content h4 {
  font-size: 1em;
}

.note-markdown-content h5 {
  font-size: 0.875em;
}

.note-markdown-content h6 {
  font-size: 0.85em;
  color: #888888;
}

.note-markdown-content p {
  margin-bottom: 16px;
  color: #ffffff;
}

.note-markdown-content ul,
.note-markdown-content ol {
  margin-bottom: 16px;
  padding-left: 30px;
  color: #ffffff;
}

.note-markdown-content li {
  margin-bottom: 8px;
}

.note-markdown-content blockquote {
  margin: 16px 0;
  padding: 0 16px;
  color: #888888;
  border-left: 4px solid #00FF00;
  background: #0a0a0a;
}

.note-markdown-content code {
  background: #1a1a1a;
  color: #00FF00;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 0.9em;
}

.note-markdown-content pre {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.note-markdown-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.6;
}

.note-markdown-content a {
  color: #00FF00;
  text-decoration: underline;
}

.note-markdown-content a:hover {
  color: #00cc00;
}

.note-markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
}

.note-markdown-content table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
}

.note-markdown-content table th,
.note-markdown-content table td {
  border: 1px solid #2a2a2a;
  padding: 8px 12px;
  text-align: left;
}

.note-markdown-content table th {
  background: #1a1a1a;
  color: #00FF00;
  font-weight: bold;
}

.note-markdown-content table tr:nth-child(even) {
  background: #0a0a0a;
}

.note-markdown-content hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 24px 0;
}

.note-markdown-content strong {
  color: #00FF00;
  font-weight: bold;
}

.note-markdown-content em {
  font-style: italic;
  color: #cccccc;
}

.note-empty {
  color: #666666;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .note-editor-panel {
    height: 100%;
    min-height: 60vh;
    overflow: hidden;
  }

  .note-editor-header {
    padding: 10px 0;
    min-height: auto;
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
  }

  .note-editor-header-title-row {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .note-title-input,
  .note-title-display {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 36px;
  }

  .note-folder-selector {
    font-size: 11px;
    padding: 6px 8px;
  }

  .note-folder-display,
  .note-folder-display-readonly {
    font-size: 10px;
    padding: 4px 8px;
  }

  .note-size {
    font-size: 10px;
  }

  .note-editor-header-actions {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 0 15px;
    margin-top: 8px;
  }

  .note-button-cancel,
  .note-button-save,
  .note-button-edit,
  .note-button-share {
    flex: 1;
    min-width: calc(50% - 3px);
    padding: 10px;
    font-size: 13px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .note-editor-content {
    height: calc(100% - 120px);
    min-height: 0;
  }

  .note-editor-wrapper {
    height: 100%;
  }

  .note-line-numbers {
    padding: 10px 6px;
    font-size: 11px;
    min-width: 40px;
    display: none; /* 移动端隐藏行号以节省空间 */
  }

  .note-textarea {
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .note-viewer {
    padding: 12px;
  }

  .note-content-display {
    font-size: 14px;
    line-height: 1.6;
  }

  .note-markdown-content {
    font-size: 13px;
    line-height: 1.7;
  }

  .note-markdown-content h1 {
    font-size: 1.5em;
  }

  .note-markdown-content h2 {
    font-size: 1.3em;
  }

  .note-markdown-content h3 {
    font-size: 1.1em;
  }

  .note-folder-selector-dropdown {
    max-height: 200px;
    min-width: 150px;
    font-size: 11px;
  }

  .note-folder-option {
    padding: 10px 12px;
    font-size: 11px;
    min-height: 44px;
  }
}

/* 右键菜单样式 */
.context-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: transparent;
}

.markdown-context-menu {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 4px 0;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.context-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.context-menu-item:hover {
  background: #2a2a2a;
  color: #00FF00;
}

.context-menu-label {
  flex: 1;
}

.context-menu-shortcut {
  color: #666666;
  font-size: 11px;
  margin-left: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.context-menu-item:hover .context-menu-shortcut {
  color: #00FF00;
}

.context-menu-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 4px 0;
}

/* 分享按钮样式 */
.note-button-share {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  margin-right: 8px;
}

.note-button-share:hover {
  background: #1a1a1a;
  border-color: #00FF00;
}

/* 分享对话框样式 */
.share-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  width: 400px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.share-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.share-dialog-header h3 {
  margin: 0;
  color: #00FF00;
  font-size: 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-dialog-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.share-dialog-close:hover {
  background: #2a2a2a;
}

.share-dialog-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.share-contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-contact-item {
  padding: 12px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  background: #0f0f0f;
}

.share-contact-item:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.share-contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-contact-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-contact-pubkey {
  color: #666666;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  line-height: 1.4;
  white-space: nowrap;
}

.share-dialog-empty {
  padding: 40px 20px;
  text-align: center;
  color: #666666;
  font-size: 14px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

/* 分享确认对话框样式 */
.share-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-confirm-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  width: 450px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.share-confirm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.share-confirm-header h3 {
  margin: 0;
  color: #00FF00;
  font-size: 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-confirm-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.share-confirm-close:hover {
  background: #2a2a2a;
}

.share-confirm-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.share-confirm-message {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-confirm-recipient {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-confirm-recipient-label {
  color: #666666;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  text-transform: uppercase;
}

.share-confirm-recipient-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-confirm-recipient-pubkey {
  color: #666666;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  white-space: nowrap;
}

.share-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #2a2a2a;
}

.share-confirm-button-cancel,
.share-confirm-button-confirm {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.share-confirm-button-cancel {
  background: #2a2a2a;
  color: #ffffff;
}

.share-confirm-button-cancel:hover {
  background: #3a3a3a;
}

.share-confirm-button-confirm {
  background: #00FF00;
  color: #000000;
}

.share-confirm-button-confirm:hover {
  background: #00cc00;
}

/* 代码高亮样式覆盖 */
.note-markdown-content pre[class*="language-"] {
  margin: 16px 0;
}

.note-markdown-content pre[class*="language-"] code {
  background: transparent;
  color: inherit;
}

.transfer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.transfer-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.transfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.transfer-header h3 {
  color: #00FF00;
  font-size: 18px;
  margin: 0;
}

.transfer-close-button {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.transfer-close-button:hover {
  color: #00FF00;
}

.transfer-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transfer-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transfer-field label {
  color: #888;
  font-size: 12px;
}

.transfer-field input {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.transfer-field input:focus {
  outline: none;
  border-color: #00FF00;
}

.readonly-input {
  background: #0a0a0a !important;
  color: #666 !important;
  cursor: not-allowed;
}

.amount-input-wrapper {
  display: flex;
  gap: 10px;
}

.amount-input-wrapper input {
  flex: 1;
}

/* 隐藏 number 输入框的上下调整控件（spinner） */
.amount-input-wrapper input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

.amount-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.amount-input-wrapper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0;
}

.max-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 10px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.max-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.balance-info {
  color: #888;
  font-size: 11px;
}

.transfer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.transfer-cancel-button,
.transfer-send-button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transfer-cancel-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
}

.transfer-cancel-button:hover {
  background: #2a2a2a;
  border-color: #888;
}

.transfer-send-button {
  background: #1a1a1a;
  border: 1px solid #00FF00;
  color: #00FF00;
}

.transfer-send-button:hover:not(:disabled) {
  background: #2a2a2a;
}

.transfer-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-token-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.add-token-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.add-token-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.add-token-header h3 {
  color: #00FF00;
  font-size: 18px;
  margin: 0;
}

.add-token-close-button {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.add-token-close-button:hover {
  color: #00FF00;
}

.add-token-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.add-token-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-token-field label {
  color: #888;
  font-size: 12px;
}

.add-token-field input {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.add-token-field input:focus {
  outline: none;
  border-color: #00FF00;
}

.add-token-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.add-token-cancel-button,
.add-token-add-button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-token-cancel-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
}

.add-token-cancel-button:hover {
  background: #2a2a2a;
  border-color: #888;
}

.add-token-add-button {
  background: #1a1a1a;
  border: 1px solid #00FF00;
  color: #00FF00;
}

.add-token-add-button:hover:not(:disabled) {
  background: #2a2a2a;
}

.add-token-add-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wallet-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.wallet-settings-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.wallet-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.wallet-settings-header h3 {
  color: #00FF00;
  font-size: 18px;
  margin: 0;
}

.wallet-settings-close-button {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.wallet-settings-close-button:hover {
  color: #00FF00;
}

.wallet-settings-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-description {
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.rpc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpc-field label {
  color: #888;
  font-size: 12px;
}

.rpc-input-wrapper {
  display: flex;
  gap: 10px;
}

.rpc-input-wrapper input {
  flex: 1;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.rpc-input-wrapper input:focus {
  outline: none;
  border-color: #00FF00;
}

.reset-rpc-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
  padding: 10px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  white-space: nowrap;
}

.reset-rpc-button:hover {
  background: #2a2a2a;
  border-color: #888;
  color: #00FF00;
}

.wallet-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.wallet-settings-cancel-button,
.wallet-settings-save-button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-settings-cancel-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
}

.wallet-settings-cancel-button:hover {
  background: #2a2a2a;
  border-color: #888;
}

.wallet-settings-save-button {
  background: #1a1a1a;
  border: 1px solid #00FF00;
  color: #00FF00;
}

.wallet-settings-save-button:hover {
  background: #2a2a2a;
}

.rpc-recommendation-box {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 4px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #00FF00;
}

.recommendation-title {
  color: #00FF00;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.recommendation-item:last-child {
  margin-bottom: 0;
}

.recommendation-chain {
  color: #00FF00;
  font-weight: 500;
  min-width: 60px;
  flex-shrink: 0;
}

.recommendation-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recommendation-link {
  color: #00FF00;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.recommendation-link:hover {
  opacity: 0.7;
}

.recommendation-separator {
  color: #666;
  margin: 0 4px;
}

.swap-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.swap-dialog {
  background: #000000;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.swap-dialog-header {
  padding: 20px;
  border-bottom: 1px solid #00FF00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swap-dialog-header h2 {
  color: #00FF00;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
}

.swap-dialog-close {
  background: transparent;
  border: 1px solid #00FF00;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.swap-dialog-close:hover {
  background: #00FF00;
  color: #000000;
}

.swap-dialog-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.swap-info {
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #00FF00;
  border-radius: 4px;
}

.swap-info-text {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.swap-info-rate {
  color: #00FF00;
  font-size: 14px;
  margin: 10px 0;
}

.swap-address {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-address-label {
  color: #888;
  font-size: 12px;
}

.swap-address-value {
  color: #00FF00;
  font-size: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  word-break: break-all;
}

.swap-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.swap-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-label {
  color: #00FF00;
  font-size: 13px;
  font-weight: bold;
}

.swap-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swap-input {
  flex: 1;
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

/* 隐藏数字输入框的上下调节控件 */
.swap-input::-webkit-inner-spin-button,
.swap-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.swap-input[type=number] {
  -moz-appearance: textfield;
}

.swap-input:focus {
  box-shadow: 0 0 5px #00FF00;
}

.swap-input-suffix {
  color: #00FF00;
  font-size: 14px;
  min-width: 40px;
}

.swap-balance {
  color: #888;
  font-size: 11px;
  margin-top: 4px;
}

.swap-output {
  padding: 12px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00FF00;
  border-radius: 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.swap-output-value {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
}

.swap-output-placeholder {
  color: #666;
  font-size: 14px;
}

.swap-button {
  background: #000000;
  border: 2px solid #00FF00;
  color: #00FF00;
  padding: 12px 24px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.swap-button:hover:not(:disabled) {
  background: #00FF00;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.swap-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar */
.swap-dialog-content::-webkit-scrollbar {
  width: 6px;
}

.swap-dialog-content::-webkit-scrollbar-track {
  background: transparent;
}

.swap-dialog-content::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.swap-dialog-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.wallet-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  overflow-y: auto;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.wallet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00FF00;
  font-size: 18px;
  font-weight: bold;
  flex: 1;
}

.wallet-announcement-text {
  color: #00FF00;
  font-size: 12px;
  font-weight: normal;
  margin-left: 20px;
  opacity: 0.8;
  display: inline-block;
}

.typing-cursor {
  color: #00FF00;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.wallet-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.refresh-button-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wallet-action-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-action-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.wallet-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wallet-action-button.success {
  border-color: #00FF00;
  background: rgba(0, 255, 0, 0.1);
}

.wallet-action-button.error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.success-icon {
  color: #00FF00;
}

.error-icon {
  color: #ff4444;
}

.refresh-status {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
  animation: fadeIn 0.3s;
}

.refresh-status.success {
  color: #00FF00;
}

.refresh-status.error {
  color: #ff4444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinning {
  animation: spin 1s linear infinite;
}

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

.wallet-content {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.wallet-card {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chain-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chain-name {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
}

.chain-symbol {
  color: #888;
  font-size: 12px;
}

.copy-address-button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-address-button:hover {
  border-color: #00FF00;
  background: #2a2a2a;
}

.copied-icon {
  color: #00FF00;
}

.wallet-card-address {
  color: #888;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.5;
  margin: 8px 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-card-address span {
  flex: 1;
  word-break: break-all;
}

.explorer-link-button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.explorer-link-button:hover {
  border-color: #00FF00;
  background: #2a2a2a;
}

.wallet-card-balances {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.balance-label {
  color: #888;
  font-size: 14px;
}

.balance-value {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.wallet-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.transfer-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.help-button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.help-button:hover {
  border-color: #00FF00;
  background: #2a2a2a;
}

.transfer-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.custom-token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-top: 8px;
}

.token-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.token-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-symbol {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
}

.token-balance {
  color: #00FF00;
  font-size: 12px;
  font-weight: normal;
}

.token-address {
  color: #888;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.3;
}

.token-transfer-button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.token-transfer-button:hover {
  border-color: #00FF00;
  background: #2a2a2a;
}

.add-token-button {
  background: transparent;
  border: 1px dashed #2a2a2a;
  color: #888;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  margin-top: 8px;
}

.add-token-button:hover {
  border-color: #00FF00;
  color: #00FF00;
}

.wallet-loading,
.wallet-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #00FF00;
  font-size: 16px;
}

/* 交易历史区域 */
.wallet-transactions-section {
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #2a2a2a;
}

.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.transactions-title {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.refresh-transactions-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-transactions-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transactions-empty {
  color: #888;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

.transaction-item {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 16px;
  transition: all 0.2s;
}

.transaction-item:hover {
  border-color: #00FF00;
  background: #1a1a1a;
}

.transaction-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transaction-chain {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
}

.transaction-type {
  color: #ffffff;
  font-size: 14px;
}

.transaction-amount {
  color: #00FF00;
  font-size: 16px;
  font-weight: bold;
}

.transaction-time {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

.transaction-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}

.transaction-address,
.transaction-hash {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.address-label,
.hash-label {
  color: #888;
  min-width: 30px;
}

.address-value,
.hash-value {
  color: #cccccc;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  flex: 1;
}

.copy-hash-button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-hash-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .wallet-container {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wallet-header {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #00FF00;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0f0f0f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .wallet-title {
    font-size: 16px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wallet-title > span:not(.wallet-announcement-text) {
    flex-shrink: 0;
  }

  .wallet-announcement-text {
    font-size: 10px;
    margin-left: 0;
    margin-top: 0;
    flex: 1 1 100%;
    order: 2;
    line-height: 1.4;
    word-break: break-word;
    opacity: 0.9;
  }

  .wallet-actions {
    flex-shrink: 0;
    gap: 8px;
  }

  .wallet-action-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .wallet-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .wallet-card {
    width: 100%;
    padding: 15px;
    gap: 12px;
    border: 1px solid #00FF00;
  }

  .wallet-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chain-info {
    flex: 1;
    min-width: 0;
  }

  .chain-name {
    font-size: 14px;
  }

  .chain-symbol {
    font-size: 11px;
  }

  .copy-address-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .wallet-card-address {
    font-size: 11px;
    margin: 6px 0;
    padding: 6px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .wallet-card-address span {
    width: 100%;
    word-break: break-all;
  }

  .explorer-link-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    align-self: flex-start;
  }

  .wallet-card-balances {
    gap: 10px;
  }

  .balance-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .balance-label {
    font-size: 13px;
  }

  .balance-value {
    font-size: 14px;
    word-break: break-all;
  }

  .wallet-card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .transfer-button {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    min-height: 44px;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .help-button {
    width: 100%;
    height: 44px;
    min-height: 44px;
  }

  .custom-token-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .token-info {
    width: 100%;
  }

  .token-balance-row {
    flex-wrap: wrap;
  }

  .token-symbol,
  .token-balance {
    font-size: 13px;
  }

  .token-address {
    font-size: 10px;
    margin-top: 4px;
  }

  .token-transfer-button {
    width: 100%;
    height: 36px;
    min-height: 36px;
    align-self: stretch;
  }

  .add-token-button {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    min-height: 44px;
    justify-content: center;
    margin-top: 10px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  /* 交易历史区域 */
  .wallet-transactions-section {
    margin-top: 20px;
    padding: 15px;
  }

  .transactions-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }

  .transactions-title {
    font-size: 14px;
    flex: 1;
  }

  .refresh-transactions-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .transactions-list {
    gap: 10px;
  }

  .transaction-item {
    padding: 12px;
  }

  .transaction-main {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .transaction-info {
    width: 100%;
  }

  .transaction-chain {
    font-size: 11px;
  }

  .transaction-type {
    font-size: 13px;
  }

  .transaction-amount {
    font-size: 14px;
    word-break: break-all;
  }

  .transaction-time {
    font-size: 11px;
    margin-top: 4px;
  }

  .transaction-details {
    gap: 6px;
    padding-top: 10px;
  }

  .transaction-address,
  .transaction-hash {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
  }

  .address-label,
  .hash-label {
    min-width: auto;
    font-size: 10px;
  }

  .address-value,
  .hash-value {
    font-size: 11px;
    width: 100%;
    word-break: break-all;
  }

  .copy-hash-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    align-self: flex-start;
  }

  .wallet-loading,
  .wallet-error {
    padding: 20px;
    font-size: 14px;
    text-align: center;
  }
}

.create-group-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  padding: 20px;
}

.create-group-terminal {
  background: #0a0a0a;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.terminal-header {
  background: #1a1a1a;
  border-bottom: 1px solid #00FF00;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.terminal-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-status {
  color: #00FF00;
  font-size: 13px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.5px;
  animation: none !important;
  white-space: nowrap;
  opacity: 0.8;
  margin-left: 12px;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.terminal-close:hover {
  background: #2a2a2a;
  border-color: #ff4444;
  color: #ff4444;
}

.terminal-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 400px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
  font-size: 13px;
}

.terminal-prompt {
  color: #00FF00;
  font-weight: bold;
  user-select: none;
}

.terminal-text {
  color: #cccccc;
}

.terminal-input-wrapper {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.terminal-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.terminal-input:focus {
  border-color: #00FF00;
}

.terminal-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.terminal-input::placeholder {
  color: #666666;
}

.selected-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 2px;
  min-height: 40px;
  max-height: 150px;
  overflow-y: auto;
}

.member-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2a2a2a;
  border: 1px solid #00FF00;
  padding: 4px 8px;
  border-radius: 2px;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.member-tag-name {
  color: #00FF00;
  font-size: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tag-remove {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.member-tag-remove:hover {
  color: #ff4444;
}

.member-tag-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-list {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #2a2a2a;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  background: #2a2a2a;
}

.contact-name {
  color: #00FF00;
  font-size: 12px;
  flex: 1;
}

.contact-pubkey {
  color: #666666;
  font-size: 11px;
}

.contact-add-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.contact-add-btn:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.green-dot {
  color: #00FF00;
  font-size: 12px;
}

.terminal-output {
  color: #00aaff;
  font-weight: bold;
}

.terminal-output.ERROR {
  color: #ff4444;
}

.terminal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}

.terminal-button {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 12px 20px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.terminal-button-primary {
  border-color: #00FF00;
  color: #00FF00;
}

.terminal-button-primary:hover:not(:disabled) {
  background: #00FF00;
  color: #000000;
}

.terminal-button-secondary {
  border-color: #666666;
  color: #666666;
}

.terminal-button-secondary:hover:not(:disabled) {
  background: #666666;
  color: #000000;
}

.terminal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.terminal-button-add {
  flex: 0 0 auto;
  min-width: 80px;
  padding: 10px 16px;
  white-space: nowrap;
}

.terminal-hint {
  margin-top: 12px;
  text-align: center;
}

/* Scrollbar */
.terminal-body::-webkit-scrollbar,
.contact-list::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track,
.contact-list::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb,
.contact-list::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover,
.contact-list::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .create-group-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .create-group-terminal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    margin: 0;
  }

  .terminal-header {
    padding: 12px 15px;
    min-height: 44px;
  }

  .terminal-title {
    font-size: 13px;
  }

  .terminal-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .terminal-body {
    padding: 15px;
    min-height: auto;
    max-height: calc(90vh - 60px);
    max-height: calc(90dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-line {
    font-size: 12px;
    gap: 6px;
  }

  .terminal-input-wrapper {
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .terminal-input {
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    -webkit-appearance: none;
    border-radius: 4px;
  }

  .selected-members {
    gap: 6px;
    padding: 10px;
    max-height: 120px;
    border-radius: 4px;
  }

  .member-tag {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 4px;
    max-width: 100%;
  }

  .member-tag-name {
    font-size: 11px;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
  }

  .member-tag-remove {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(255, 68, 68, 0.2);
  }

  .terminal-button-add {
    min-width: 80px;
    padding: 12px 16px;
    min-height: 44px;
    font-size: 13px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .contact-list {
    max-height: 180px;
    border-radius: 4px;
  }

  .contact-item {
    padding: 12px 15px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.1);
  }

  .contact-pubkey {
    font-size: 10px;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .contact-add-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
  }

  .terminal-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
  }

  .terminal-button {
    width: 100%;
    padding: 14px 20px;
    min-height: 44px;
    font-size: 13px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  .terminal-hint {
    margin-top: 10px;
    font-size: 11px;
  }

  .terminal-hint .terminal-text {
    font-size: 11px;
  }
}

.group-message-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  width: 100%;
}

.group-message-wrapper.own {
  align-items: flex-end;
}

.group-message-wrapper.other {
  align-items: flex-start;
}

.message-sender-info {
  margin-bottom: 4px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sender-emoji {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  animation: emoji-glow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(0, 255, 0, 0.6));
}

@keyframes emoji-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(0, 255, 0, 0.6));
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.9));
  }
}

.sender-name {
  color: #00FF00;
  font-size: 11px;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0.5px;
}

.group-message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 4px;
  position: relative;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.5;
}

.group-message-bubble.own {
  background: #2a2a2a;
  color: #00FF00;
  border: 1px solid #3a3a3a;
}

.group-message-bubble.other {
  background: #2a2a2a;
  color: #00FF00;
  border: 1px solid #3a3a3a;
}

.message-content {
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.message-text-with-image {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  color: #ffffff;
}

.group-message-bubble.own .message-time {
  color: #00FF00;
}

.group-message-bubble.other .message-time {
  color: #ffffff;
}

.checkmark {
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #00FF00;
  letter-spacing: -1px;
}

.checkmark.read .double-check {
  display: inline-block;
  letter-spacing: -2px;
  font-weight: normal;
}

.message-image-container {
  position: relative;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
}

.message-image {
  max-width: 100%;
  max-height: 300px;
  display: block;
  cursor: pointer;
  border-radius: 4px;
}

.message-image-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid transparent;
  color: #ffffff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.message-image-expand:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: transparent;
}

.message-sticker-loading,
.message-sticker-error {
  padding: 20px;
  text-align: center;
  color: #666666;
  font-size: 12px;
}

.message-image-error {
  padding: 20px;
  text-align: center;
  color: #ff4444;
  font-size: 12px;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid transparent;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: transparent;
  color: #ffffff;
}

.image-modal-image {
  max-width: 100%;
  max-height: 90vh;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.group-message-list {
  flex: 1;
  overflow-y: auto;
  background: #1a1a1a;
  padding: 20px;
}

.group-message-list-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-message-wrapper-motion {
  width: 100%;
}

.group-message-wrapper-motion.own {
  display: flex;
  justify-content: flex-end;
}

.group-message-wrapper-motion.other {
  display: flex;
  justify-content: flex-start;
}

/* Scrollbar */
.group-message-list::-webkit-scrollbar {
  width: 8px;
}

.group-message-list::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.group-message-list::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.group-message-list::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

.group-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #1a1a1a;
  overflow: hidden;
  box-sizing: border-box;
}

.group-chat-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  background: #0f0f0f;
}

.group-chat-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-name {
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
}

.group-members-count {
  color: #666666;
  font-size: 11px;
}

.group-chat-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.window-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.window-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.window-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-group-chat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.empty-message {
  color: #666666;
  font-size: 14px;
}


.invite-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.invite-dialog {
  background: #0a0a0a;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.invite-dialog-header {
  background: #1a1a1a;
  border-bottom: 1px solid #00FF00;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invite-dialog-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.invite-dialog-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.invite-dialog-close:hover {
  background: #2a2a2a;
  border-color: #ff4444;
  color: #ff4444;
}

.invite-dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.invite-dialog-label {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
}

.invite-dialog-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.invite-dialog-input:focus {
  border-color: #00FF00;
}

.invite-dialog-input::placeholder {
  color: #666666;
}

.invite-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.invite-dialog-button {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 10px 20px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.invite-dialog-button-primary {
  border-color: #00FF00;
  color: #00FF00;
}

.invite-dialog-button-primary:hover:not(:disabled) {
  background: #00FF00;
  color: #000000;
}

.invite-dialog-button-secondary {
  border-color: #666666;
  color: #666666;
}

.invite-dialog-button-secondary:hover {
  background: #666666;
  color: #000000;
}

.invite-dialog-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .group-chat-header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .group-chat-header-left {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .group-name {
    font-size: 12px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
  }

  .group-members-count {
    font-size: 10px;
    flex-shrink: 0;
  }

  .group-chat-header-right {
    flex-wrap: wrap;
    gap: 6px;
  }

  .window-button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
  }

  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #00FF00;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-right: 8px;
    font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .mobile-menu-button:hover {
    background: #2a2a2a;
    border-color: #00FF00;
  }

  .mobile-menu-button:active {
    background: #0a0a0a;
  }
}

.terms-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  padding: 20px;
}

.terms-dialog {
  background: #0a0a0a;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.terms-dialog-header {
  background: #1a1a1a;
  border-bottom: 1px solid #00FF00;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terms-dialog-title-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
}

.terms-dialog-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1px;
  white-space: nowrap;
}

.terms-dialog-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.terms-dialog-close:hover {
  background: #2a2a2a;
  border-color: #ff4444;
  color: #ff4444;
}

.terms-dialog-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 400px;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
  font-size: 13px;
}

.terms-prompt {
  color: #00FF00;
  font-weight: bold;
  flex-shrink: 0;
  display: inline-block;
  margin-right: 8px;
  animation: prompt-bounce-horizontal 1.5s ease-in-out infinite;
}

@keyframes prompt-bounce-horizontal {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(3px);
  }
  50% {
    transform: translateX(0);
  }
  75% {
    transform: translateX(2px);
  }
}

.terms-text {
  color: #cccccc;
  flex: 1;
}

.terms-dialog-footer {
  padding: 20px;
  border-top: 1px solid #00FF00;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.terms-button-cancel {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 24px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.terms-button-cancel:hover {
  background: #00FF00;
  color: #000000;
}

.terms-button-accept {
  background: #000000;
  border: 1px solid #00FF00;
  color: #00FF00;
  padding: 10px 24px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.terms-button-accept:hover {
  background: #00FF00;
  color: #000000;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh; /* 动态视口高度，考虑移动端浏览器工具栏 */
  background: #0f0f0f;
  border-right: 1px solid #00FF00;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 2px 0 20px rgba(0, 255, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* 确保抽屉内容正确显示 */
.mobile-drawer > * {
  flex-shrink: 0;
}

/* 抽屉内的侧边栏样式 */
.mobile-drawer .chat-sidebar {
  width: 100%;
  min-width: 100%;
  height: 100%;
  max-height: 100%;
  border-right: none;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 确保抽屉内的侧边栏内容可以滚动 */
.mobile-drawer .chat-sidebar .sidebar-section {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 优化抽屉内各部分的显示 */
.mobile-drawer .chat-sidebar .sidebar-user-header,
.mobile-drawer .chat-sidebar .sidebar-search,
.mobile-drawer .chat-sidebar .sidebar-tabs,
.mobile-drawer .chat-sidebar .sidebar-footer {
  flex-shrink: 0;
}

/* 移动端滚动条样式 */
.mobile-drawer::-webkit-scrollbar {
  width: 4px;
}

.mobile-drawer::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.mobile-drawer::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

.mobile-drawer::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.chat-interface {
  display: flex;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  background: #000000;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

/* Left Sidebar */
.chat-sidebar {
  width: 280px;
  min-width: 280px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #0f0f0f;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-user-header {
  padding: 12px 20px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 48px; /* 统一最小高度 */
  height: 48px; /* 固定高度，确保对齐 */
  box-sizing: border-box;
  flex-shrink: 0;
}

.user-id {
  color: #00FF00;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.settings-button-wrapper {
  position: relative;
}

.settings-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  transition: all 0.2s;
}

.settings-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  color: #00FF00;
  font-size: 12px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.dropdown-item:hover {
  background: #2a2a2a;
}

.green-dot {
  color: #00FF00;
  font-size: 12px;
}

.red-dot {
  color: #FF0000;
  font-size: 12px;
}

.unread-count {
  color: #00FF00;
  margin-left: auto;
}

.sidebar-search {
  padding: 15px 20px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.search-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 8px 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
}

.search-input::placeholder {
  color: #666666;
}

.search-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 8px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.search-button:hover {
  background: #2a2a2a;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid #2a2a2a;
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 12px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-button.active {
  color: #00FF00;
  border-bottom-color: #00FF00;
}

.sidebar-section {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 0;
  min-height: 0;
}

.section-title {
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 0 20px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 10px;
}

.section-header .section-title {
  padding: 0;
}

.create-group-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.create-group-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-item {
  padding: 10px 20px;
  color: #00FF00;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  position: relative;
}

.chat-item:hover {
  background: #1a1a1a;
}

.chat-item.active {
  background: #2a2a2a;
}

.chat-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-nickname-button {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #00FF00;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.edit-nickname-button:hover {
  opacity: 1;
}

.edit-nickname-dialog-overlay {
  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: 1000;
}

.edit-nickname-dialog {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  width: 400px;
  max-width: 90vw;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.edit-nickname-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.edit-nickname-header h3 {
  margin: 0;
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
}

.edit-nickname-header .close-button {
  background: transparent;
  border: none;
  color: #00FF00;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-nickname-content {
  padding: 20px;
}

.edit-nickname-pubkey {
  color: #00FF00;
  font-size: 12px;
  margin-bottom: 10px;
}

.edit-nickname-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  outline: none;
}

.edit-nickname-input:focus {
  border-color: #00FF00;
}

.edit-nickname-input::placeholder {
  color: #666666;
}

.edit-nickname-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #2a2a2a;
}

.edit-nickname-cancel,
.edit-nickname-save {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 8px 16px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.edit-nickname-cancel:hover,
.edit-nickname-save:hover {
  background: #2a2a2a;
}

.edit-nickname-save {
  background: #00FF00;
  color: #000000;
  border-color: #00FF00;
}

.edit-nickname-save:hover {
  background: #00cc00;
}

.unread-badge {
  background: #00FF00;
  color: #000000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 14px;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid #2a2a2a;
  padding: 15px 20px;
}

.version {
  color: #ffffff;
  font-size: 10px;
  opacity: 0.7;
  text-align: center;
}

/* Main Chat Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #0a0a0a;
  overflow: hidden;
  box-sizing: border-box;
}

.chat-header {
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  background: #0f0f0f;
  min-height: 44px;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.contact-pubkey {
  color: #00FF00;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
}

.connection-status {
  color: #00FF00;
  font-size: 11px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  text-shadow: 0 0 5px #00FF00;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.connection-status::after {
  content: '_';
  animation: blink-cursor 1s step-end infinite;
  color: #00FF00;
  text-shadow: 0 0 5px #00FF00;
}

@keyframes blink-cursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.chat-header-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.window-button {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.window-button:hover {
  background: #2a2a2a;
}

.window-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.window-button:disabled:hover {
  background: transparent;
}

/* 密钥协商进度圈 */
.key-negotiation-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #2a2a2a;
  border-top-color: #00FF00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #1a1a1a;
}

.empty-main .empty-message {
  color: #888;
  font-size: 14px;
}

.empty-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 14px;
  padding: 20px;
  box-sizing: border-box;
}

.empty-message {
  color: #888888;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

/* Notes Interface */
.notes-interface {
  flex: 1;
  display: flex;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #000000;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Notes Actions */
.function-list {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.function-button {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.function-button:hover {
  background: #2a2a2a;
  border-color: #00FF00;
}

.function-button.active {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00FF00;
  color: #00FF00;
}

.function-icon {
  color: #00FF00;
  flex-shrink: 0;
}

.notes-actions {
  padding: 10px 20px;
}

.new-note-button {
  width: 100%;
  background: #00FF00;
  color: #000000;
  border: none;
  padding: 10px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.new-note-button:hover {
  box-shadow: 0 0 10px #00FF00;
}

/* Notes Features */
.notes-features {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-number {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  color: #00FF00;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.feature-desc {
  color: #ffffff;
  font-size: 11px;
  opacity: 0.7;
}

.message-input-area {
  padding: 12px 15px;
  border-top: 1px solid #2a2a2a;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.input-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFD700;
  font-size: 11px;
}

.lock-icon {
  color: #00FF00;
}

.encryption-text {
  color: #00FF00;
}

.input-center {
  flex: 1;
}

.input-right {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.send-button-main {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #00FF00;
  padding: 10px 20px;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  height: 100%;
  min-width: 80px;
  white-space: nowrap;
  transition: all 0.2s;
  box-sizing: border-box;
}

.send-button-main:hover {
  background: #2a2a2a;
  border-color: #00FF00;
  color: #00FF00;
}

.char-count {
  color: #ffffff;
  font-size: 11px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .chat-interface {
    flex-direction: column;
  }

  /* 侧边栏在移动端隐藏，通过抽屉显示 */
  /* 注意：抽屉内的侧边栏需要显示，所以不能直接隐藏所有 .chat-sidebar */
  .chat-interface > .chat-sidebar {
    display: none;
  }
  
  /* 抽屉内的侧边栏需要正常显示 */
  .mobile-drawer .chat-sidebar {
    display: flex !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* 主区域在移动端全屏 */
  .chat-main {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* 动态视口高度 */
    position: relative;
    overflow: hidden;
  }

  /* 移动端头部添加菜单按钮 */
  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00FF00;
    color: #00FF00;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-right: 0;
    font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
    transition: all 0.2s;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    padding: 0;
  }

  .mobile-menu-button:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    transform: scale(1.05);
  }

  .mobile-menu-button:active {
    background: rgba(0, 255, 0, 0.15);
    transform: scale(0.95);
  }

  /* 搜索区域移动端优化 */
  .sidebar-search {
    padding: 12px 15px;
    gap: 6px;
  }

  .search-input {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 0;
  }

  .search-button {
    padding: 10px 12px;
    font-size: 12px;
    min-width: 60px;
    flex-shrink: 0;
  }

  /* 聊天头部调整 */
  .chat-header {
    padding: 8px 12px;
    flex-wrap: nowrap;
    min-height: 44px;
    max-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f0f0f;
    border-bottom: 1px solid #00FF00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .chat-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  .mobile-empty-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-empty-header .chat-header-left {
    width: 100%;
  }

  .contact-pubkey {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: #00FF00;
    font-weight: 500;
    max-width: calc(100vw - 200px); /* 为按钮留出空间 */
  }

  .connection-status {
    font-size: 10px;
    flex-shrink: 0;
    color: #00FF00;
    display: none; /* 移动端隐藏连接状态以节省空间 */
  }

  .chat-header-right {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    max-width: calc(100vw - 200px); /* 为左侧内容留出空间 */
    padding-right: 4px;
  }

  .chat-header-right::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .window-button {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .window-button:active {
    background: #2a2a2a;
    transform: scale(0.9);
  }

  /* 消息输入区域调整 */
  .message-input-area {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .input-left {
    width: 100%;
    margin-bottom: 0;
    font-size: 10px;
    order: 3; /* 移到底部 */
  }

  .input-center {
    width: 100%;
    margin-bottom: 0;
    order: 1;
  }

  .input-right {
    width: 100%;
    justify-content: space-between;
    order: 2;
    margin-bottom: 4px;
  }

  /* 按钮尺寸调整 */
  .send-button-main {
    flex: 1;
    min-width: auto;
    padding: 10px 14px;
    min-height: 40px;
    font-size: 13px;
  }

  /* 触摸优化 */
  button, .clickable {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }

  /* 防止文本选择 */
  .chat-item, .tab-button, .function-button {
    user-select: none;
    -webkit-user-select: none;
  }

  /* 空聊天区域调整 */
  .empty-chat {
    padding-top: 0;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
  }

  .empty-chat .empty-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FF00;
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
    padding: 30px 20px;
    opacity: 0.95;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
    letter-spacing: 0.3px;
  }

  .empty-main {
    padding-top: 0;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }

  .empty-main .empty-message {
    color: #00FF00;
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
    padding: 20px;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  }

  /* 笔记界面调整 */
  .notes-interface {
    position: relative;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }

  .notes-interface .mobile-empty-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    flex-shrink: 0;
  }

  /* 移动端笔记树包装器 */
  .notes-tree-wrapper {
    flex-shrink: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  .notes-tree-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
  }

  /* 移动端笔记树和编辑器垂直堆叠 */
  .notes-interface .notes-tree-panel {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid #00FF00;
    flex-shrink: 0;
  }

  .notes-interface .note-editor-panel {
    flex: 1;
    min-height: 50vh;
    height: auto;
    overflow: hidden;
  }

  /* 当笔记树折叠时，编辑器占满空间 */
  .notes-interface .notes-tree-wrapper.collapsed + .note-editor-panel {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }

  /* 聊天主区域背景优化 */
  .chat-main {
    background: #0a0a0a;
    position: relative;
  }

  /* 整体界面背景 */
  .chat-interface {
    background: #000000;
  }

  /* 头部样式优化 */
  .chat-header {
    background: #0f0f0f;
    border-bottom: 1px solid #00FF00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .mobile-empty-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0f0f0f;
  }

  .empty-header-title {
    color: #00FF00;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    margin-left: 12px;
    letter-spacing: 0.5px;
  }

  /* 确保头部左侧布局正确 */
  .mobile-empty-header .chat-header-left {
    display: flex;
    align-items: center;
    width: 100%;
  }
}

/* ========== 平板适配 ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  .chat-sidebar {
    width: 240px;
    min-width: 240px;
  }
}
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  padding: 20px;
}

.lock-terminal {
  background: #0a0a0a;
  border: 2px solid #00FF00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  width: 100%;
  max-width: 700px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.terminal-header {
  background: #1a1a1a;
  border-bottom: 1px solid #00FF00;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  color: #00FF00;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1px;
}

.terminal-status {
  color: #ff4444;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.terminal-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
  font-size: 13px;
}

.terminal-prompt {
  color: #00FF00;
  font-weight: bold;
  user-select: none;
}

.terminal-text {
  color: #cccccc;
}

.terminal-output {
  color: #00aaff;
  font-weight: bold;
  user-select: none;
}

.terminal-output[class*="WARN"] {
  color: #ffaa00;
}

.terminal-output[class*="ERROR"] {
  color: #ff4444;
}

.terminal-cursor {
  color: #00FF00;
  animation: blink 1s infinite;
  margin-left: 2px;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #33ff33;
}

.window-terminal-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(1, 5, 1, 0.98);
  border-bottom: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 -1px 0 rgba(34, 197, 94, 0.2);
  z-index: 12000;
}

.window-terminal-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 12px;
  color: #86efac;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.terminal-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e 0%, #15803d 70%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

.terminal-path {
  color: #4ade80;
  font-weight: 600;
}

.terminal-path-folder {
  color: #facc15;
}

.terminal-blink-cursor {
  color: #22c55e;
  animation: terminal-cursor 1s steps(2, start) infinite;
}

@keyframes terminal-cursor {
  to {
    visibility: hidden;
  }
}

.window-terminal-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
}

.terminal-btn {
  min-width: 48px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(2, 10, 2, 0.95);
  color: #bbf7d0;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Fira Code', 'Courier New', monospace;
  padding: 0 8px;
}

.terminal-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: none;
}

.proxy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 2, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 13000;
}

.proxy-modal {
  width: 380px;
  background: #020910;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  color: #e2e8f0;
  font-family: 'Fira Code', 'Courier New', monospace;
}

.proxy-modal h3 {
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #bef264;
  text-transform: uppercase;
}

.proxy-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.proxy-form-group label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
}

.proxy-form-group input {
  background: rgba(2, 10, 2, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 4px;
  padding: 6px 8px;
  color: #e2e8f0;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
}

.proxy-form-group input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.proxy-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.proxy-form-row .proxy-form-group {
  flex: 1;
  min-width: 150px;
}

.proxy-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.proxy-toggle input {
  accent-color: #34d399;
}

.proxy-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.proxy-btn {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.proxy-btn.primary {
  background: rgba(34, 197, 94, 0.85);
  color: #031105;
}

.proxy-btn.primary:hover {
  background: rgba(74, 222, 128, 0.95);
}

.proxy-btn.secondary {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(94, 234, 212, 0.5);
}

.proxy-btn.secondary:hover {
  background: rgba(15, 118, 110, 0.2);
}

.proxy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.proxy-test-result {
  font-size: 12px;
  margin-top: 6px;
  text-align: right;
}

.proxy-test-result.success {
  color: #4ade80;
}

.proxy-test-result.error {
  color: #f87171;
}

.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.app--desktop {
  padding-top: 40px;
  background: #000000;
}


.loading-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  position: relative;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-text {
  color: #00FF00;
  font-size: 16px;
  text-shadow: 0 0 5px #00FF00;
  display: flex;
  align-items: center;
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.loading-prompt {
  color: #00FF00;
  font-weight: bold;
}

.loading-spaces {
  color: #00FF00;
  white-space: pre;
}

.loading-message {
  color: #00FF00;
}

.loading-cursor {
  color: #00FF00;
  animation: blink-cursor 1s step-end infinite;
  text-shadow: 0 0 5px #00FF00;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* 背景动画 */
.app::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, var(--glow-primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--glow-secondary) 0%, transparent 50%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.app > * {
  position: relative;
  z-index: 1;
}



:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #141420;
  --bg-tertiary: #1e1e2e;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a855f7;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-tertiary: #6b6b7a;
  --border-color: #2a2a3a;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --glow-primary: rgba(99, 102, 241, 0.3);
  --glow-secondary: rgba(139, 92, 246, 0.3);
  
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', 'Consolas', 'Monaco', 'Fira Code', monospace;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 滚动条样式 */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* 选择文本样式 */

::selection {
  background: var(--accent-primary);
  color: var(--text-primary);
}

