/* 职场话术翻译官 · 大气简约风：中性底色 + 单一强调色（靛蓝）+ 发丝线 + 单层淡影 */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #565b64;
  --ink-3: #9aa0a8;
  --line: #e5e5df;
  --accent: #3454d1;
  --accent-dark: #2b45ad;
  --accent-soft: #eef1fd;
  --danger-soft: #fdf1ef;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 10px 30px -18px rgba(22, 24, 29, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px 56px; }

/* 顶部栏 */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0 6px; font-size: 13px; color: var(--ink-3); letter-spacing: .04em;
}
.topbar .brand { font-weight: 600; color: var(--ink-2); }
.topbar .local { display: inline-flex; align-items: center; gap: 6px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #35a05a; display: inline-block; }

/* 主标题区 */
.hero { padding: 34px 0 26px; }
.hero h1 { font-size: 34px; font-weight: 700; letter-spacing: .01em; line-height: 1.25; }
.hero .sub { margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 640px; }
.hero .facts { margin-top: 14px; font-size: 13px; color: var(--ink-3); letter-spacing: .05em; }
.hero .facts span + span::before { content: "·"; margin: 0 8px; }

/* 面板卡片 */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.panel + .panel { margin-top: 18px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .06em; margin-bottom: 10px; }
.field-label .hint { font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

textarea {
  width: 100%; min-height: 104px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink);
  background: #fcfcfa; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
textarea::placeholder { color: var(--ink-3); }
.input-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.char-count { font-size: 12px; color: var(--ink-3); }

/* 示例气话 */
.examples { margin-top: 16px; }
.examples .field-label { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 13.5px; line-height: 1.3;
  padding: 8px 13px; min-height: 36px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-1px); }
.chip:active { transform: translateY(0); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on:hover { color: #fff; }

/* 场景选择 */
.scenes { margin-top: 20px; }
.scene-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-chips .chip { border-radius: var(--radius-s); }

/* 行动区 */
.actions { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 600;
  height: 48px; padding: 0 26px; border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn[hidden] { display: none; }

/* 结果区 */
.results { margin-top: 22px; }
.results[hidden] { display: none; }
.before {
  background: var(--danger-soft); border: 1px solid #f3ddd8; border-radius: var(--radius);
  padding: 16px 20px;
}
.before .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #b4552d; }
.before .orig { margin-top: 4px; font-size: 16.5px; font-weight: 600; }
.before .meta { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.before .meta b { color: var(--accent-dark); font-weight: 600; }

.tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tone-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.tone-card:hover { transform: translateY(-2px); }
.tone-head { display: flex; align-items: baseline; gap: 8px; }
.tone-name { font-size: 16px; font-weight: 700; }
.tone-desc { font-size: 12.5px; color: var(--ink-3); }
.tone-text { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--ink); flex: 1; }
.tone-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.tone-why .w-label { color: var(--ink-3); font-size: 12px; letter-spacing: .06em; display: block; margin-bottom: 2px; }
.copy-btn {
  margin-top: 14px; appearance: none; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--accent-dark);
  font: inherit; font-size: 14px; font-weight: 600; height: 40px; border-radius: var(--radius-s);
  transition: background .15s ease, border-color .15s ease;
}
.copy-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 底部 */
.footer { margin-top: 34px; text-align: center; font-size: 12.5px; color: var(--ink-3); letter-spacing: .03em; }

/* 提示气泡 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 */
@media (max-width: 760px) {
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: 27px; }
  .panel { padding: 18px 16px; }
  .tones { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .topbar .local { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
