/* 简约风格 - 基于 #fbfaf6 和 #c66140 配色 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select, button {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #fbfaf6;
  min-height: 100vh;
  padding: 20px;
  color: #2c3e50;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(198, 97, 64, 0.08);
  overflow: hidden;
  border: 1px solid rgba(198, 97, 64, 0.1);
  position: relative;
}

h1 {
  text-align: center;
  color: #c66140;
  margin: 0;
  padding: 20px;
  font-size: 2em;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.input-section {
  background: #ffffff;
  padding: 24px 24px 8px 24px;
  margin: 0 16px 16px  16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(198, 97, 64, 0.05);
  border: 1px solid rgba(198, 97, 64, 0.08);
}

.input-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
  transition: all 0.2s ease;
}

.input-group:hover {
  transform: none;
}

.input-group label {
  min-width: 160px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.95em;
  padding-top: 8px;
  line-height: 1.4;
}

.input-group select, .input-group input {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  flex: 1;
  font-size: 0.95em;
  transition: all 0.2s ease;
  background: #ffffff;
  max-width: 300px;
  height: 40px;
  box-sizing: border-box;
  color: #2c3e50;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-group select:focus, .input-group input:focus {
  outline: none;
  border-color: #c66140;
  box-shadow: 0 0 0 3px rgba(198, 97, 64, 0.1);
  transform: none;
}

/* 自定义数字输入框的步进按钮 */
.input-group input[type="number"]:not(#exchangeRate)::-webkit-inner-spin-button,
.input-group input[type="number"]:not(#exchangeRate)::-webkit-outer-spin-button {
  opacity: 1;
  height: 24px;
  width: 20px;
  background: rgba(198, 97, 64, 0.1);
  border: 1px solid rgba(198, 97, 64, 0.3);
  border-radius: 6px;
  margin-right: 8px;
  position: relative;
}

.input-group input[type="number"]:not(#exchangeRate)::-webkit-inner-spin-button:hover,
.input-group input[type="number"]:not(#exchangeRate)::-webkit-outer-spin-button:hover {
  background: rgba(198, 97, 64, 0.2);
  border-color: rgba(198, 97, 64, 0.5);
}

/* 隐藏默认的上下箭头，使用自定义的+/-符号 */
.input-group input[type="number"]:not(#exchangeRate)::-webkit-inner-spin-button::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #c66140;
  font-weight: bold;
  font-size: 14px;
}

.input-group input[type="number"]:not(#exchangeRate)::-webkit-outer-spin-button::before {
  content: '-';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #c66140;
  font-weight: bold;
  font-size: 14px;
}

/* 隐藏汇率输入框的步进按钮 */
#exchangeRate::-webkit-inner-spin-button,
#exchangeRate::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 自定义select下拉箭头 */
.input-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c66140' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

.bid-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  align-items: stretch;
  padding-top: 0;
}

.bid-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-input-container input {
  height: 40px;
  box-sizing: border-box;
  flex: 1;
}

.bid-step-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  margin-left: 0;
}

.bid-step-btn {
  background: #ffffff;
  color: #c66140;
  border: 1px solid #e2e8f0;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7em;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 45px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bid-step-btn:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

.venue-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  align-items: stretch;
  padding-top: 0;
}

.venue-input-container select {
  height: 40px;
  box-sizing: border-box;
  width: 100%;
}

.quick-venue-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 300px;
}

.quick-venue-btn {
  background: #ffffff;
  color: #2c3e50;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 50px;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  flex: 1;
  max-width: 60px;
}

.quick-venue-btn:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

.rmb-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.rmb-step-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* 人民币步进按钮 */
.rmb-step-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* 美元步进按钮 */
.usd-step-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* 步进按钮样式 */
.step-btn {
  background: #ffffff;
  color: #2c3e50;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7em;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 45px;
  max-width: 55px;
  text-align: center;
}

.step-btn:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

.quick-input-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.quick-btn {
  background: #ffffff;
  color: #2c3e50;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 55px;
  text-align: center;
}

.quick-btn:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

.quick-btn:active {
  transform: none;
}

.cost-table {
  margin: 16px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(198, 97, 64, 0.05);
  border: 1px solid rgba(198, 97, 64, 0.08);
}

.cost-table table {
  width: 100%;
  border-collapse: collapse;
}

.cost-table th {
  background: #f8f9fa;
  color: #2c3e50;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95em;
  text-shadow: none;
}

.cost-table th:first-child {
  width: 21%;
}

.cost-table th:nth-child(2) {
  width: 21%;
}

.cost-table th:last-child {
  width: 50%;
}

.cost-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.cost-table tr:hover td {
  background-color: rgba(198, 97, 64, 0.02);
}

.total-row {
  background: #f8f9fa;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
}

.total-row td {
  font-size: 1.1em;
  color: #c66140;
  text-shadow: none;
}

.jpy-amount {
  color: #6c757d;
  font-size: 0.9em;
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

.cost-amount {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

.total-row .cost-amount {
  color: #c66140;
}

.description {
  color: #6c757d;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-line;
  padding: 8px 0;
}

/* 添加一些动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFade {
  from {
    opacity: 0.7;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tableAppear {
  from {
    opacity: 0.92;
    transform: scale(0.995);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cost-table, .conversion-table {
  animation: tableAppear 0.2s ease-out;
}

.input-section {
  animation: fadeInUp 0.6s ease-out;
}

.jpy-result {
  animation: gentleFade 0.4s ease-out;
}

/* 转换表格样式 */
.conversion-section {
  background: #ffffff;
  padding: 0;
  margin: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(198, 97, 64, 0.05);
  border: 1px solid rgba(198, 97, 64, 0.08);
}

.conversion-section h2 {
  text-align: center;
  color: #c66140;
  margin: 10px;
  padding: 10px 0 10px 0;
  font-size: 1.6em;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.conversion-table {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(198, 97, 64, 0.05);
  border: 1px solid rgba(198, 97, 64, 0.08);
  border-left: 0px;
  border-right: 0px;
  border-bottom: 0px;
}

.conversion-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.conversion-table th {
  background: #f8f9fa;
  color: #2c3e50;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9em;
  text-shadow: none;
}

.conversion-table th:last-child {
  text-align: center;
}

.conversion-table th:first-child {
  width: 50%;
}

.conversion-table th:nth-child(2) {
  width: 30%;
}

.conversion-table th:last-child {
  width: 20%;
}

.conversion-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
  vertical-align: middle;
}

.conversion-table tr:hover td {
  background-color: rgba(198, 97, 64, 0.02);
}

.conversion-table input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #ffffff;
  height: 40px;
  box-sizing: border-box;
  color: #2c3e50;
}

.conversion-table input:focus {
  outline: none;
  border-color: #c66140;
  box-shadow: 0 0 0 3px rgba(198, 97, 64, 0.1);
  transform: none;
}

.conversion-table .jpy-result {
  font-weight: 500;
  color: #2c3e50;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 1.1em;
  text-align: center;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
}

.delete-btn {
  background: #ffffff;
  color: #dc3545;
  border: 1px solid #f8d7da;
  padding: 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 60px;
  height: 34px;
  box-sizing: border-box;
}

.delete-btn:hover {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  transform: none;
}

.delete-btn::before {
  display: none;
}

.add-row-btn {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}

.add-row-btn button {
  background: #ffffff;
  color: #c66140;
  border: 1px solid #c66140;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 100px;
}

.add-row-btn button:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

.add-row-btn button::before {
  display: none;
}

/* 弹窗样式 */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid #e2e8f0;
}

.modal-content h3 {
  color: #c66140;
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: 600;
}

.category-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-btn, .subvenue-btn, .eco-category-btn, .komehyo-category-btn, .star-category-btn, .daiji-category-btn, .rs-category-btn, .gta-category-btn, .pa-category-btn, .apre-category-btn, .nbaa-category-btn, .namara-category-btn, .jwa-category-btn, .mane-category-btn {
  background: #ffffff;
  color: #2c3e50;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.category-btn:hover, .subvenue-btn:hover, .eco-category-btn:hover, .komehyo-category-btn:hover, .star-category-btn:hover, .daiji-category-btn:hover, .rs-category-btn:hover, .gta-category-btn:hover, .pa-category-btn:hover, .apre-category-btn:hover, .nbaa-category-btn:hover, .namara-category-btn:hover, .jwa-category-btn:hover, .mane-category-btn:hover {
  background: rgba(198, 97, 64, 0.05);
  color: #c66140;
  border-color: #c66140;
  transform: none;
}

/* 语言切换器样式 */
.language-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.language-selector,
.currency-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.language-selector:hover,
.currency-selector:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.language-selector label,
.currency-selector label {
  font-size: 0.9em;
  font-weight: 500;
  color: #666;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.language-selector select,
.currency-selector select {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95em;
  background: #ffffff;
  color: #2c3e50;
  min-width: 100px;
  max-width: 300px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 1;
}

.language-selector select:hover,
.currency-selector select:hover {
  border-color: #c66140;
  box-shadow: none;
}

.language-selector select:focus,
.currency-selector select:focus {
  outline: none;
  border-color: #c66140;
  box-shadow: 0 0 0 3px rgba(198, 97, 64, 0.1);
  transform: none;
}

/* 统一下拉箭头样式 */
.language-selector select,
.currency-selector select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c66140' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

/* 设置菜单样式 */
.settings-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.settings-menu.dragging {
  cursor: grabbing;
  transition: none;
}

.settings-menu.dragging .settings-toggle {
  cursor: grabbing;
}

.settings-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  color: #666;
}

.settings-toggle:hover {
  background: #f8f9fa;
  color: #c66140;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-dropdown {
  position: absolute;
  top: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

/* 默认从左边打开（吸附到左边时） */
.settings-menu.menu-left .settings-dropdown {
  left: 0;
}

/* 从右边打开（吸附到右边时） */
.settings-menu.menu-right .settings-dropdown {
  right: 0;
}

.settings-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

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

.settings-item label {
  font-size: 0.85em;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.settings-item select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9em;
  background: #ffffff;
  color: #2c3e50;
  min-width: 100px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.settings-item select:focus {
  outline: none;
  border-color: #c66140;
  box-shadow: 0 0 0 3px rgba(198, 97, 64, 0.1);
}

.settings-item select:hover {
  border-color: #c66140;
}

/* 设置菜单下拉箭头样式 */
.settings-item select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c66140' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  
  .container {
    max-width: 100%;
    border-radius: 8px;
  }
  
  h1 {
    font-size: 1.6em;
    padding: 20px;
  }
  
  .input-section {
    padding: 20px 16px 4px 16px;
    margin: 0px 12px 12px 12px;
    border-radius: 8px;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
    gap: 8px;
  }
  
  .input-group label {
    min-width: auto;
    font-size: 0.9em;
    padding: 0;
  }
  
  .input-group select, .input-group input {
    max-width: 100%;
    font-size: 16px;
    height: 44px;
  }
  
  .bid-input-container {
    gap: 12px;
  }
  
  .bid-input-row {
    gap: 8px;
    align-items: center;
  }
  
  .bid-step-buttons {
    margin-left: 0;
    gap: 4px;
  }
  
  .bid-step-btn {
    width: 51px;
    height: 29px;
    font-size: 0.7em;
    border-radius: 4px;
  }
  
  .quick-venue-buttons {
    max-width: 100%;
    gap: 6px;
    justify-content: space-between;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 6px;
  }
  
  .quick-venue-btn {
    padding: 8px 10px;
    min-width: 48px;
    font-size: 0.8em;
    height: 38px;
    border-radius: 6px;
    width: 100%;
    max-width: none;
  }
  
  .quick-input-buttons {
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    display: flex;
  }
  
  .quick-btn {
    padding: 8px 10px;
    min-width: 50px;
    font-size: 0.9em;
    border-radius: 6px;
    flex: 1;
    max-width: calc(20% - 3px);
  }
  
  .cost-table {
    font-size: 0.9em;
    margin: 12px;
    border-radius: 8px;
  }
  
  .cost-table th, .cost-table td {
    padding: 12px 8px;
  }
  
  .cost-table th {
    font-size: 0.9em;
    text-align: left;
  }
  
  .conversion-section {
    margin: 12px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }
  
  .conversion-section h2 {
    font-size: 1.4em !important;
    margin: 10px 0 10px 0 !important;
    padding: 0 !important;
  }
  
  .conversion-table {
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
  }
  
  .conversion-table table {
    font-size: 0.9em;
    width: 100%;
  }
  
  .conversion-table th {
    padding: 12px 8px;
    font-size: 0.8em;
    white-space: nowrap;
    text-align: center;
  }
  
  .conversion-table th:first-child {
    width: 25%;
  }
  
  .conversion-table th:nth-child(2) {
    width: 55%;
  }
  
  .conversion-table th:last-child {
    width: 20%;
  }
  
  .conversion-table td {
    padding: 12px 8px;
    font-size: 0.9em;
    vertical-align: middle;
  }
  
  .conversion-table input {
    font-size: 15px;
    padding: 8px 10px;
    height: 44px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #ffffff;
  }
  
  .conversion-table .jpy-result {
    font-size: 1.0em;
    padding: 8px 10px;
    border-radius: 6px;
    min-height: 20px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .rmb-input-container {
    gap: 8px;
    height: 36px;
  }
  
  .rmb-step-buttons {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
    max-width: 100%;
    display: none;
    width: 100%;
  }
  
  .step-btn {
    padding: 6px 8px;
    font-size: 0.7em;
    min-width: 36px;
    border-radius: 4px;
    height: 30px;
    flex-shrink: 0;
  }
  
  .delete-btn {
    padding: 6px 10px;
    font-size: 0.8em;
    border-radius: 6px;
    min-width: 60px;
  }
  
  .add-row-btn button {
    padding: 10px 16px;
    font-size: 0.9em;
    min-width: 100px;
    border-radius: 6px;
  }
  
  /* 手机端弹窗优化 */
  .modal-content {
    padding: 20px 16px;
    margin: 20px;
    border-radius: 8px;
  }
  
  .modal-content h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
  }
  
  .category-btn {
    padding: 10px 14px;
    font-size: 0.9em;
    border-radius: 6px;
  }

  .language-switcher {
    flex-direction: row;
    gap: 12px;
    padding: 16px;
  }
  
  .language-selector,
  .currency-selector {
    padding: 0;
    min-width: auto;
    flex: 1;
    max-width: none;
  }
  
  .language-selector select,
  .currency-selector select {
    min-width: 80px;
    height: 36px;
    font-size: 14px;
  }

  .settings-menu {
    top: 16px;
    left: 16px;
  }
  
  .settings-toggle {
    width: 36px;
    height: 36px;
  }
  
  .settings-dropdown {
    top: 50px;
    left: 0;
    min-width: 180px;
    padding: 12px;
  }
  
  .settings-item select {
    height: 40px;
    font-size: 16px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }
  
  .container {
    border-radius: 8px;
  }
  
  h1 {
    font-size: 1.4em;
    padding: 12px;
  }
  
  .input-section {
    padding: 16px 12px 4px 12px;
    margin: 0 8px 8px 8px;
    border-radius: 8px;
  }
  
  .input-group {
    margin-bottom: 16px;
    gap: 6px;
  }
  
  .input-group label {
    font-size: 0.85em;
  }
  
  .input-group select, .input-group input {
    height: 40px;
    padding: 8px 10px;
  }
  
  .quick-venue-buttons {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 4px;
  }
  
  .quick-venue-btn {
    padding: 8px 8px;
    min-width: 44px;
    font-size: 0.75em;
    height: 36px;
    width: 100%;
    max-width: none;
  }
  
  .quick-input-buttons {
    gap: 4px;
  }
  
  .quick-btn {
    padding: 8px 10px;
    min-width: 50px;
    font-size: 0.9em;
    flex: 1;
    max-width: calc(20% - 3px);
  }
  
  .cost-table {
    margin: 8px;
    border-radius: 8px;
  }
  
  .cost-table th, .cost-table td {
    padding: 10px 6px;
    font-size: 0.85em;
  }
  
  .cost-table th {
    font-size: 0.9em;
    text-align: left;
  }
  
  .conversion-section {
    margin: 8px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }
  
  .conversion-section h2 {
    font-size: 1.2em !important;
    margin: 10px 0 10px 0 !important;
    padding: 0 !important;
  }
  
  .conversion-table {
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
  }
  
  .conversion-table table {
    font-size: 0.85em;
    width: 100%;
  }
  
  .conversion-table th {
    padding: 10px 6px;
    font-size: 0.8em;
    white-space: nowrap;
    text-align: center;
  }
  
  .conversion-table th:first-child {
    width: 35%;
  }
  
  .conversion-table th:nth-child(2) {
    width: 45%;
  }
  
  .conversion-table th:last-child {
    width: 20%;
  }
  
  .conversion-table td {
    padding: 10px 6px;
    font-size: 0.85em;
    vertical-align: middle;
  }
  
  .conversion-table input {
    height: 40px;
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #ffffff;
  }
  
  .conversion-table .jpy-result {
    font-size: 1.3em;
    padding: 8px 10px;
    border-radius: 4px;
    min-height: 18px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .rmb-input-container {
    gap: 6px;
  }
  
  .rmb-step-buttons {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
    max-width: 100%;
    display: none;
    width: 100%;
  }
  
  .usd-step-buttons {
    display: none;
  }
  
  .step-btn {
    padding: 4px 6px;
    font-size: 0.6em;
    min-width: 32px;
    border-radius: 4px;
    height: 26px;
    flex-shrink: 0;
  }
  
  .delete-btn {
    padding: 6px 8px;
    font-size: 0.75em;
    border-radius: 6px;
    min-width: 50px;
  }
  
  .add-row-btn button {
    padding: 8px 12px;
    font-size: 0.85em;
    min-width: 80px;
    border-radius: 6px;
  }
}

/* 中等屏幕适配 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .conversion-section {
    margin: 12px 16px;
    padding: 0;
  }
  
  .conversion-section h2 {
    font-size: 1.6em;
    margin: 0;
    padding: 0 0 20px 0;
  }
  
  .conversion-table th {
    padding: 14px 12px;
    font-size: 0.9em;
  }
  
  .conversion-table td {
    padding: 12px 12px;
    font-size: 0.9em;
  }
  
  .conversion-table input {
    height: 42px;
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #ffffff;
  }
  
  .conversion-table .jpy-result {
    font-size: 0.9em;
    padding: 10px 12px;
    min-height: 20px;
  }
  
  .step-btn {
    padding: 6px 8px;
    font-size: 0.7em;
    min-width: 40px;
    height: 28px;
  }
  
  .delete-btn {
    padding: 8px 12px;
    font-size: 0.8em;
    min-width: 60px;
  }
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 设置按钮向左吸附隐藏 */
.settings-menu {
  transition: transform 0.5s ease-in-out;
}

.settings-menu.hidden-left {
  transform: translateX(-50%);
  opacity: 0.6;
}

.settings-menu.hidden-left .settings-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 设置按钮悬停效果 */
.settings-menu:hover {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

.settings-menu:hover .settings-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(198, 97, 64, 0.2);
  box-shadow: 0 2px 8px rgba(198, 97, 64, 0.15);
}
