/* WzSLinker 弹出窗口 - 抖音风格主题 */

/* 抖音风格色彩变量 */
:root {
  /* 抖音品牌色 - 粉红渐变 */
  --douyin-pink: #FE2C55;
  --douyin-pink-light: #FF4D6D;
  --douyin-pink-dark: #E01E45;
  
  /* 抖音辅助色 - 青色 */
  --douyin-cyan: #00F5FF;
  --douyin-cyan-light: #33F7FF;
  
  /* 黑白灰系统 */
  --douyin-black: #161823;
  --douyin-gray-dark: #2F3542;
  --douyin-gray: #8A8A8E;
  --douyin-gray-light: #C7C7CC;
  --douyin-white: #FFFFFF;
  --douyin-bg: #F7F8FA;
  
  /* 功能色 */
  --color-success: #00D68F;
  --color-warning: #FFBB33;
  --color-danger: #FF4757;
  --color-info: #4A90E2;
}

body {
  width: 680px;
  min-height: 550px;
  padding: 0;
  background: linear-gradient(135deg, #161823 0%, #2F3542 100%);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.container {
  padding: 10px;
  background: var(--douyin-white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin: 6px;
}

/* ========== 顶部工具栏 ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--douyin-black) 0%, var(--douyin-gray-dark) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.2);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--douyin-pink), var(--douyin-cyan), var(--douyin-pink));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.header h1 {
  margin: 0;
  font-size: 18px;
  color: var(--douyin-white);
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 标题超链接样式 - 醒目动效 */
.header h1 .title-link {
  text-decoration: none;
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.header h1 .title-link::after {
  content: '🔗';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.header h1 .title-link:hover {
  background: linear-gradient(135deg, var(--douyin-cyan), var(--douyin-pink), var(--douyin-cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(254, 44, 85, 0.6));
}

.header h1 .title-link:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  right: -24px;
}

@keyframes titleShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--douyin-white);
  transition: all 0.2s;
  cursor: pointer;
}

.header-controls button:hover {
  background: var(--douyin-pink);
  border-color: var(--douyin-pink);
  transform: scale(1.1);
}

/* ========== 开关样式 ========== */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--douyin-gray-light);
  transition: 0.3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-pink-light));
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* ========== 状态消息 ========== */
#statusMessage {
  margin-bottom: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--douyin-pink);
  background: rgba(254, 44, 85, 0.05);
  color: var(--douyin-black);
}

/* ========== 统计信息 ========== */
.stats-section {
  margin-bottom: 8px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--douyin-bg);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px;
}

/* ========== 区域样式（功能分割线） ========== */
.section {
  background: var(--douyin-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--douyin-pink), var(--douyin-cyan));
}

.section h2 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--douyin-black);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--douyin-bg);
}

/* 可折叠标题样式 */
.collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.2s;
}

.collapsible-header:hover {
  color: var(--douyin-pink);
}

.collapse-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: var(--douyin-gray);
}

.collapsible.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.collapsible.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--douyin-gray);
  margin-bottom: 2px;
  font-weight: 500;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--douyin-gray-light);
  margin: 0 6px;
}

/* ========== 主要内容区域 ========== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.section-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

/* ========== 按钮样式 ========== */
.button-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.button-row button {
  flex: 1;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}

.button-row button:not(.danger) {
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-pink-light));
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.button-row button:not(.danger):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

.button-row .danger {
  background: var(--color-danger);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.button-row .danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* ========== 股票输入行 ========== */
.stock-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--douyin-bg);
  padding: 6px;
  border-radius: 6px;
}

.stock-input-row input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 12px;
  background: var(--douyin-white);
  color: var(--douyin-black);
  transition: all 0.2s;
}

.stock-input-row input:focus {
  outline: none;
  border-color: var(--douyin-pink);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.stock-input-row input::placeholder {
  color: var(--douyin-gray);
}

.stock-input-row button {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-success), #00E5A0);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.stock-input-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 214, 143, 0.3);
}

/* ========== 界面设置 ========== */
.interface-settings-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--douyin-bg);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.setting-group > label:first-child {
  font-size: 10px;
  font-weight: 600;
  color: var(--douyin-gray);
  text-align: center;
  margin: 0;
}

.setting-group input[type="color"] {
  width: 45px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}

.setting-group input[type="color"]:hover {
  border-color: var(--douyin-pink);
  transform: scale(1.05);
}

.setting-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.setting-group input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.text-color-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 100%;
}

.keep-original-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--douyin-gray);
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

.keep-original-label input[type="checkbox"] {
  width: 12px;
  height: 12px;
  cursor: pointer;
  accent-color: var(--douyin-pink);
}

.keep-original-label span {
  user-select: none;
}

.keep-original-label:hover {
  color: var(--douyin-pink);
}

.setting-group select {
  width: 100%;
  padding: 5px 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 10px;
  background: var(--douyin-white);
  color: var(--douyin-black);
  cursor: pointer;
  transition: all 0.2s;
}

.setting-group select:focus {
  outline: none;
  border-color: var(--douyin-pink);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

/* ========== 样式预览 ========== */
.style-preview {
  padding: 8px;
  background: var(--douyin-bg);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 统一的section内label样式 */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #161823;
  margin-bottom: 8px;
  display: block;
}

.style-preview label {
  font-size: 10px;
  font-weight: 600;
  color: var(--douyin-gray);
  margin-bottom: 6px;
  display: block;
}

.preview-text {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-stock {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

/* ========== 样式选择器 ========== */
.style-selector select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 12px;
  background: var(--douyin-bg);
  color: var(--douyin-black);
  cursor: pointer;
}

.style-selector select:focus {
  outline: none;
  border-color: var(--douyin-pink);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

/* ========== 涨跌幅显示 ========== */
.price-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--douyin-pink);
}

.price-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--douyin-bg);
  border-radius: 4px;
  border-left: 2px solid var(--douyin-cyan);
}

.info-icon {
  font-size: 12px;
  color: var(--douyin-cyan);
}

.info-text {
  font-size: 11px;
  color: var(--douyin-gray);
}

/* ========== 涨跌幅颜色设置 ========== */
.price-color-settings {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.03), rgba(0, 245, 255, 0.03));
  border-radius: 8px;
  border: 1px solid rgba(254, 44, 85, 0.1);
}

.subsection-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--douyin-black);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subsection-title::before {
  content: '🎨';
  font-size: 14px;
}

.color-row {
  margin-bottom: 8px;
}

.color-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-label:hover {
  border-color: var(--douyin-pink);
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.1);
  transform: translateY(-1px);
}

.color-name {
  font-size: 12px;
  color: var(--douyin-gray-dark);
  font-weight: 500;
}

.color-label input[type="color"] {
  width: 40px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-label input[type="color"]:hover {
  border-color: var(--douyin-pink);
  transform: scale(1.05);
}

.color-label input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-label input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.save-colors-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-pink-light));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.save-colors-btn:hover {
  background: linear-gradient(135deg, var(--douyin-pink-dark), var(--douyin-pink));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

.save-colors-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(254, 44, 85, 0.3);
}

/* ========== 域名管理 ========== */
.domain-mode-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  margin-bottom: 6px;
}

.domain-mode-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--douyin-black);
}

.domain-input-container {
  margin-bottom: 8px;
}

.domain-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Consolas', 'Monaco', monospace;
  line-height: 1.5;
  color: var(--douyin-black);
  background: var(--douyin-bg);
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}

.domain-textarea:focus {
  outline: none;
  border-color: var(--douyin-pink);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.domain-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(255, 187, 51, 0.1);
  border-radius: 4px;
  border-left: 2px solid var(--color-warning);
}

.hint-icon {
  font-size: 12px;
}

.hint-text {
  font-size: 10px;
  color: var(--douyin-gray);
}

.domain-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.domain-actions button {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.domain-actions button.primary {
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-cyan));
  color: white;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.domain-actions button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

.domain-actions button.secondary {
  background: var(--douyin-bg);
  color: var(--douyin-gray);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.domain-actions button.secondary:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.domain-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--douyin-bg);
  border-radius: 4px;
  border-left: 2px solid var(--color-info);
}

/* ========== 历史记录 ========== */
#historyList {
  min-height: 100px;
  max-height: 160px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  background: var(--douyin-bg);
  overflow-y: auto;
}

.history-item {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  background: var(--douyin-white);
}

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

.history-item:hover {
  background: var(--douyin-bg);
}

.history-content {
  flex-grow: 1;
  margin-right: 6px;
}

.history-stock {
  font-weight: 600;
  color: var(--douyin-black);
  margin-bottom: 2px;
  font-size: 12px;
}

.history-details {
  font-size: 10px;
  color: var(--douyin-gray);
  display: flex;
  gap: 6px;
}

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

.history-actions button {
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.history-actions .success {
  background: var(--color-success);
  color: white;
}

.history-actions .success:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 214, 143, 0.3);
}

.history-actions .danger {
  background: var(--color-danger);
  color: white;
}

.history-actions .danger:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* ========== 联系作者 ========== */
.contact-section {
  background: linear-gradient(135deg, var(--douyin-bg), #F0F2F5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.contact-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--douyin-black);
}

.contact-header .contact-icon {
  font-size: 14px;
}

.contact-info {
  background: var(--douyin-white);
  border-radius: 6px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
  font-size: 11px;
}

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

.contact-label {
  color: var(--douyin-gray);
  font-weight: 500;
}

.contact-value {
  color: var(--douyin-black);
  font-weight: 600;
  flex: 1;
}

.wechat-number {
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-pink-light));
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.copy-btn {
  background: var(--douyin-pink);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(254, 44, 85, 0.3);
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(254, 44, 85, 0.05);
  border-radius: 4px;
  border-left: 2px solid var(--douyin-pink);
}

.note-icon {
  font-size: 12px;
}

.contact-note span:last-child {
  font-size: 10px;
  color: var(--douyin-gray);
  font-weight: 500;
}

/* ========== 打赏区域 ========== */
.donation-section {
  background: linear-gradient(135deg, #FFF5F7, #FFE8EC);
  border: 1px solid rgba(254, 44, 85, 0.2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-top: 8px;
}

.donation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.donation-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--douyin-pink);
}

.donation-header .heart {
  font-size: 14px;
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.donation-subtitle {
  margin: 0 0 8px 0;
  font-size: 11px;
  color: var(--douyin-gray);
  font-weight: 500;
}

.donation-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.qr-decoration {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-decoration .emoji {
  font-size: 14px;
  animation: float 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

.qr-decoration.left .emoji:nth-child(1) { --i: 0; }
.qr-decoration.left .emoji:nth-child(2) { --i: 1; }
.qr-decoration.left .emoji:nth-child(3) { --i: 2; }
.qr-decoration.right .emoji:nth-child(1) { --i: 0; }
.qr-decoration.right .emoji:nth-child(2) { --i: 1; }
.qr-decoration.right .emoji:nth-child(3) { --i: 2; }

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

.qr-container {
  position: relative;
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.3);
  border: 3px solid var(--douyin-pink);
}

.donation-img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  display: block;
}

.donation-text {
  font-size: 12px;
  color: var(--douyin-pink);
  font-weight: 600;
  margin: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sparkle {
  font-size: 14px;
  animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.donation-footer {
  margin-top: 6px;
}

.thank-you {
  font-size: 11px;
  color: var(--douyin-gray);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.floating-hearts {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.floating-heart {
  font-size: 12px;
  animation: floatHeart 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

.floating-heart:nth-child(1) { --i: 0; }
.floating-heart:nth-child(2) { --i: 1; }
.floating-heart:nth-child(3) { --i: 2; }

@keyframes floatHeart {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ========== 版本信息 ========== */
.version-section {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--douyin-bg);
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.current-version {
  color: var(--douyin-gray);
  font-weight: 500;
}

.update-badge {
  background: linear-gradient(135deg, var(--douyin-pink), var(--douyin-cyan));
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.update-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

/* ========== 空状态 ========== */
#emptyHistory {
  text-align: center;
  padding: 20px;
  color: var(--douyin-gray);
  font-style: italic;
  background: var(--douyin-bg);
  border-radius: 4px;
  font-size: 11px;
}

/* ========== 滚动条 ========== */
#historyList::-webkit-scrollbar {
  width: 4px;
}

#historyList::-webkit-scrollbar-track {
  background: var(--douyin-bg);
}

#historyList::-webkit-scrollbar-thumb {
  background: var(--douyin-pink);
  border-radius: 2px;
}

#historyList::-webkit-scrollbar-thumb:hover {
  background: var(--douyin-pink-dark);
}

/* ========== 工具类 ========== */
.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ========== 响应式 ========== */
@media (max-width: 750px) {
  body {
    width: 500px;
  }
  
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .interface-settings-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .interface-settings-row {
    grid-template-columns: 1fr;
  }
}
