/* 支付宝到账音效生成器 页面样式（公共样式在 style.css） */

/* ---------- 工具主卡片 ---------- */
.wx-tool {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.wx-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wx-input-row label {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 600;
  white-space: nowrap;
}

#wxAmount {
  flex: 1;
  min-width: 180px;
  max-width: 340px;
  padding: 11px 13px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  color: var(--gray-900);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.15s;
}

#wxAmount:focus {
  border-color: var(--primary);
}

#wxAmount::-webkit-outer-spin-button,
#wxAmount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#wxAmount[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.wx-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wx-actions .btn {
  min-width: 108px;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 错误提示 */
.wx-error {
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

/* 播报文案预览 */
.wx-phrase {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
}

.wx-phrase-main {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.6;
  word-break: break-all;
}

.wx-phrase-upper {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* 结果区：播放器 + 下载 */
#wxResult {
  margin-bottom: 14px;
}

#wxPlayer {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 10px;
  outline: none;
}

.wx-status {
  font-size: 0.86rem;
  color: var(--gray-500);
  min-height: 1.3em;
  margin-bottom: 12px;
}

/* 使用提示 */
.wx-note {
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.wx-warn {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.7;
}

/* 素材清单表 */
.wx-table-wrap {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.wx-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wx-table th,
.wx-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.wx-table th {
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
}

.wx-table tbody tr:hover {
  background: var(--gray-50);
}

.wx-table code {
  font-family: Consolas, Menlo, monospace;
  color: var(--primary);
  font-weight: 600;
}

.wx-table-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .wx-actions .btn {
    flex: 1;
  }

  #wxAmount {
    max-width: none;
  }
}
