@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
}
:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-soft: #fbfdfc;
  --line: #e2ece7;
  --line-strong: #d3e2db;
  --ink: #16332a;
  --ink-soft: #47655b;
  --muted: #7c9188;
  --brand: #23715c;
  --brand-deep: #1b5445;
  --brand-sky: #2f80b7;
  --brand-soft: #e4f1ec;
  --danger: #dc5f4b;
  --gold: #b98a1f;
  --gold-soft: #faf3dd;
  --shadow-lg: 0 30px 70px -38px rgba(22, 51, 42, 0.45);
  --shadow-sm: 0 10px 24px -18px rgba(22, 51, 42, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Playfair Display", "Noto Serif SC", "Songti SC", "STZhongsong", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(35, 113, 92, 0.55);
  outline-offset: 2px;
}

/* ---------- 背景装饰 ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}

.orb-a {
  width: 620px;
  height: 620px;
  top: -280px;
  left: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(35, 113, 92, 0.22), transparent 70%);
}

.orb-b {
  width: 720px;
  height: 720px;
  right: -300px;
  top: 180px;
  background: radial-gradient(circle at 60% 40%, rgba(47, 128, 183, 0.18), transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 51, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 51, 42, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

/* ---------- 顶部 ---------- */
.site-header {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
}

.brand-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: none;
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.main-nav a.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(35, 113, 92, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-sky) 100%);
  box-shadow: 0 10px 22px -10px rgba(35, 113, 92, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.4px;
  font-weight: 800;
  font-family: var(--font-display);
}

.brand-text span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ---------- 最新动态滚动条 ---------- */
.news-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 16px;
  margin: 4px 28px 2px;
  box-shadow: 0 10px 24px -18px rgba(22, 51, 42, 0.45);
}

.news-ticker .nt-badge {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold, #b98a1f), #a87c18);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.nt-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nt-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: nt-roll 42s linear infinite;
}

.news-ticker:hover .nt-track {
  animation-play-state: paused;
}

@keyframes nt-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nt-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-right: 34px;
}

.nt-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.nt-item .nt-src {
  color: var(--muted);
  font-size: 11px;
  margin-left: 2px;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.model-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b886;
  box-shadow: 0 0 0 4px rgba(18, 184, 134, 0.16);
}

/* ---------- 主体 ---------- */
main {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 56px;
}

.hero {
  text-align: center;
  padding: 42px 8px 34px;
  animation: fade-up 0.6s ease both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand);
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  font-weight: 900;
  font-family: var(--font-display);
}

.hero h1 span {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-sky) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 翻译器 ---------- */
.translator {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 236, 231, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  backdrop-filter: blur(18px);
  animation: fade-up 0.7s 0.08s ease both;
}

.lang-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lang-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.lang-select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 13px;
  padding: 12px 42px 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-select select:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.lang-select select:focus {
  border-color: rgba(35, 113, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 113, 92, 0.09);
  background: #fff;
}

.chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.swap-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, box-shadow 0.2s, border-color 0.2s;
}

.swap-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swap-btn:hover {
  transform: rotate(180deg);
  border-color: rgba(35, 113, 92, 0.4);
  box-shadow: 0 8px 18px -12px rgba(35, 113, 92, 0.8);
}

.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pane {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.source-pane:focus-within {
  border-color: rgba(35, 113, 92, 0.42);
  box-shadow: 0 0 0 4px rgba(35, 113, 92, 0.07);
  background: #fbfefe;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 4px;
}

.pane-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
}

.pane-label em {
  font-style: normal;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s, background 0.2s;
}

.ghost-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-btn:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.ghost-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mic-btn {
  color: var(--brand-deep);
}

.mic-btn:hover {
  background: var(--brand-soft);
}

.mic-btn.is-listening {
  color: #d64545;
  background: #fdecea;
  animation: mic-ring 1.6s ease-out infinite;
}

.mic-btn.is-listening svg {
  animation: mic-pulse 1.1s ease-in-out infinite;
}

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

@keyframes mic-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(214, 69, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0);
  }
}

#sourceText {
  flex: 1;
  width: 100%;
  min-height: 210px;
  max-height: 420px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  resize: none;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

#sourceText::placeholder {
  color: #a3b5c0;
}

#sourceText:focus {
  outline: none;
}

.result-body {
  flex: 1;
  min-height: 210px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 18px;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

.result-body p {
  margin: 0;
}

.result-body.is-streaming::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brand);
  animation: caret-blink 0.9s step-end infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.result-body.is-error {
  color: var(--danger);
  font-size: 14px;
}

.empty-state {
  height: 100%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9db0bb;
}

.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--brand);
  background: var(--brand-soft);
}

.empty-state p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.result-body.is-error .empty-icon {
  color: var(--danger);
  background: #fbeeeb;
}

.result-body.is-error .empty-state {
  color: var(--danger);
}

.pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 14px;
  border-top: 1px dashed var(--line);
}

.hint {
  font-size: 11.5px;
  color: #96a9b5;
  letter-spacing: 0.2px;
}

.counter {
  font-size: 11.5px;
  color: #96a9b5;
  font-variant-numeric: tabular-nums;
}

.counter.warn {
  color: var(--danger);
}

/* 加载动效 */
.loading-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 14px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.28;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ---------- 操作行 ---------- */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 0 4px;
}

.action-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 196px;
  padding: 14px 26px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-sky) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  box-shadow: 0 16px 30px -16px rgba(35, 113, 92, 0.85);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(35, 113, 92, 0.95);
  filter: brightness(1.03);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  cursor: progress;
  filter: saturate(0.75);
  opacity: 0.85;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.primary-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.primary-btn.is-loading .btn-spinner {
  display: inline-block;
}

.primary-btn.is-loading .btn-arrow {
  display: none;
}

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

/* ---------- 历史记录 ---------- */
.history {
  margin-top: 42px;
  animation: fade-up 0.8s 0.16s ease both;
}

.history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.history-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.link-btn:hover {
  color: var(--danger);
  background: #fbeeeb;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.empty-history {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.history-item {
  text-align: left;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  font-family: inherit;
}

.history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 113, 92, 0.35);
  box-shadow: var(--shadow-sm);
}

.history-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.4px;
}

.history-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.history-meta time {
  margin-left: auto;
  font-weight: 500;
  color: #9db0bb;
  letter-spacing: 0;
}

.history-src,
.history-dst {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-src {
  color: var(--ink-soft);
}

.history-dst {
  margin-top: 5px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 2px solid var(--brand-soft);
}

/* ---------- 页脚 / 全屏 ---------- */
.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 34px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #9db0bb;
}

.fullscreen-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #10303c;
  color: #e6f4f6;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(8, 42, 54, 0.75);
  transition: transform 0.2s, background 0.2s;
}

.fullscreen-btn:hover {
  transform: translateY(-2px);
  background: #0b7a70;
}

.fullscreen-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 80;
  transform: translate(-50%, 16px);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(16, 48, 60, 0.94);
  color: #f2fbfc;
  font-size: 13px;
  box-shadow: 0 18px 36px -18px rgba(8, 34, 44, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 48px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 动画 ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 34px 4px 28px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .panes {
    grid-template-columns: 1fr;
  }

  .pane {
    min-height: 260px;
  }

  #sourceText,
  .result-body {
    min-height: 170px;
  }

  .empty-state {
    min-height: 150px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px 18px 4px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 19px;
  }

  .brand-text strong {
    font-size: 15.5px;
  }

  .brand-text span {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .model-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  main {
    padding: 0 14px 40px;
  }

  .hero {
    padding: 28px 2px 24px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-sub {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.8;
    padding: 0 6px;
  }

  .translator {
    padding: 14px;
    border-radius: 20px;
  }

  .lang-bar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .lang-select select {
    padding: 11px 34px 11px 12px;
    font-size: 13.5px;
    border-radius: 11px;
  }

  .chevron {
    right: 11px;
    width: 14px;
    height: 14px;
  }

  .swap-btn {
    width: 38px;
    height: 38px;
  }

  .pane-head {
    padding: 12px 14px 2px;
  }

  #sourceText,
  .result-body {
    padding: 10px 14px;
    font-size: 15px;
    min-height: 145px;
  }

  .pane-foot {
    padding: 8px 14px 12px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }

  .action-note {
    text-align: center;
    font-size: 11.5px;
    order: 2;
  }

  .primary-btn {
    width: 100%;
    padding: 13px 20px;
  }

  .history {
    margin-top: 32px;
  }

  .history-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 0 18px 90px;
  }

  .fullscreen-btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* 移动端触控目标与可读性补强 */
@media (max-width: 640px) {
  .ghost-btn {
    min-height: 34px;
    padding: 7px 10px;
  }

  .link-btn {
    min-height: 32px;
    padding: 6px 8px;
  }

  .d-meta a.src {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 0;
    line-height: 1.5;
  }
}
