:root {
  --navy-950: #050b19;
  --navy-900: #071126;
  --navy-800: #0d1a35;
  --ink: #0b1736;
  --muted: #78849d;
  --surface: #f7f9fc;
  --line: #e1e6ef;
  --gold: #d8ad52;
  --gold-light: #f4d98f;
  --cyan: #18afd1;
  --cyan-light: #dff8fd;
  --danger: #e85b5b;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #e9edf4; }
body { min-height: 100%; margin: 0; color: var(--ink); background: #e9edf4; font-family: var(--font); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

.app-shell { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--surface); box-shadow: 0 18px 50px rgba(5, 11, 25, .18); }
.app-header { min-height: 96px; padding: calc(14px + env(safe-area-inset-top)) 17px 14px; display: grid; grid-template-columns: 38px 46px 1fr 38px; align-items: center; gap: 9px; color: #fff; background: radial-gradient(circle at 78% 10%, rgba(34,88,154,.38), transparent 34%), linear-gradient(145deg, #081124, #071126); border-bottom: 1px solid rgba(217,173,82,.25); }
.back, .icon-button { width: 38px; height: 44px; padding: 9px; display: grid; place-items: center; border: 0; color: rgba(255,255,255,.86); background: transparent; }
.back svg, .icon-button svg { width: 24px; height: 24px; }
.brand-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(73,205,239,.62); border-radius: 50%; color: #3bd0f1; background: rgba(53,200,245,.08); }
.brand-icon svg { width: 29px; height: 29px; }
.header-copy { min-width: 0; }
.header-copy h1 { margin: 0; overflow: hidden; font-size: 18px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.header-copy p { margin: 5px 0 0; display: flex; align-items: center; gap: 6px; color: rgba(220,229,246,.68); font-size: 11px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #50d397; box-shadow: 0 0 0 3px rgba(80,211,151,.12); }

.content { min-height: calc(100dvh - 96px); padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 12% 0, rgba(53,200,245,.035), transparent 26%), var(--surface); }
.mode-tabs { height: 46px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 5px 16px rgba(11,23,54,.045); }
.mode-tabs button { min-height: 38px; border: 0; border-radius: 20px; color: #73809a; background: transparent; font-size: 13px; font-weight: 600; }
.mode-tabs button.active { color: #087f9e; background: linear-gradient(135deg, rgba(223,248,253,.95), rgba(218,242,249,.7)); box-shadow: inset 0 0 0 1px rgba(24,175,209,.14); }

.language-row { margin: 12px 0; display: grid; grid-template-columns: 1fr 36px 1fr; align-items: end; gap: 7px; }
.language-row label { min-width: 0; }
.language-row label span { display: block; margin: 0 0 5px 7px; color: #8a95aa; font-size: 9px; }
.language-row select { width: 100%; height: 45px; padding: 0 29px 0 12px; border: 1px solid var(--line); outline: 0; border-radius: 23px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 650; }
.swap { width: 36px; height: 45px; padding: 8px; border: 0; color: #53617d; background: transparent; }
.swap svg { width: 23px; height: 23px; }

.panel, .call-panel { padding: 21px 18px; border: 1px solid rgba(217,173,82,.2); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 14px 38px rgba(11,23,54,.07); }
.panel { text-align: center; }
.panel-illustration { width: 66px; height: 66px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; }
.panel-illustration.cyan { color: var(--cyan); background: linear-gradient(145deg, #eafcff, #dff5fb); }
.panel-illustration svg { width: 39px; height: 39px; }
.eyebrow { margin: 0 0 7px; color: #a37d31; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.panel h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.muted { margin: 10px auto 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.primary-button, .secondary-button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 24px; font-size: 13px; font-weight: 700; }
.primary-button { width: 100%; border: 0; color: #052036; background: linear-gradient(135deg, #f5dc98, #d4a64b); box-shadow: 0 9px 20px rgba(193,145,48,.2); }
.primary-button svg, .secondary-button svg { width: 19px; height: 19px; }
.primary-button.compact { width: auto; flex: 1; }
.secondary-button { border: 1px solid #d9e0ec; color: #53617b; background: #fff; }
.secondary-button.full { width: 100%; }
.fine-print { margin: 12px 0 0; color: #9aa4b7; font-size: 10px; }

.link-box { height: 50px; margin: 17px 0 12px; padding: 4px 5px 4px 14px; display: grid; grid-template-columns: 1fr 58px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.link-box input { min-width: 0; border: 0; outline: 0; color: #64708a; background: transparent; font-size: 10px; }
.link-box button { height: 40px; border: 0; border-radius: 10px; color: #087e9d; background: var(--cyan-light); font-size: 11px; font-weight: 700; }
.invite-actions { display: flex; gap: 8px; }
.invite-actions .secondary-button { flex: 0 0 auto; }
.participant-badge { width: fit-content; margin: 0 auto 13px; padding: 6px 12px; border-radius: 15px; color: #087e9d; background: var(--cyan-light); font-size: 10px; font-weight: 700; }
.privacy-note { margin: 14px 0; padding: 11px 12px; display: flex; align-items: center; gap: 8px; border-radius: 12px; color: #65728d; background: #f4f7fb; font-size: 10px; text-align: left; }
.privacy-note svg { width: 18px; height: 18px; flex: 0 0 18px; }

.call-panel { padding-bottom: 17px; }
.call-status { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; padding-bottom: 15px; border-bottom: 1px solid #edf0f5; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #52d398; box-shadow: 0 0 0 5px rgba(82,211,152,.12); }
.call-status strong { display: block; font-size: 13px; }
.call-status small { display: block; margin-top: 3px; color: #8994aa; font-size: 11px; font-variant-numeric: tabular-nums; }
.rate { padding: 5px 8px; border-radius: 12px; color: #9b782f; background: #fbf5e8; font-size: 9px; }
.speaker-card { margin-top: 15px; padding: 15px; border-radius: 17px; background: linear-gradient(145deg, #f0fbfe, #eef5fb); border-left: 3px solid #4bccec; }
.speaker-label { display: flex; align-items: center; justify-content: space-between; color: #52617d; font-size: 10px; }
.speaker-label i { color: #8c97aa; font-style: normal; }
.speaker-label.translated { color: #9b772d; }
.source-text, .translated-text { min-height: 42px; margin: 7px 0; color: #1a2a4e; font-size: 14px; line-height: 1.55; }
.translated-text { color: #8b6421; }
.translation-divider { height: 1px; margin: 8px 0 10px; background: rgba(24,175,209,.16); }
.own-caption { margin-top: 11px; padding: 11px 13px; border: 1px solid #eee5d2; border-radius: 14px; background: #fdfaf4; }
.own-caption span { color: #a37d31; font-size: 9px; }
.own-caption p { margin: 4px 0 0; color: #6f7890; font-size: 11px; line-height: 1.5; }
.connection-warning { margin-top: 10px; padding: 8px; border-radius: 9px; color: #9a6620; background: #fff4da; font-size: 10px; text-align: center; }
.call-controls { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.call-controls button { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; color: #53617b; background: transparent; font-size: 10px; }
.call-controls button span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #dde3ed; border-radius: 50%; background: #fff; box-shadow: 0 7px 16px rgba(11,23,54,.06); }
.call-controls button svg { width: 23px; height: 23px; }
.call-controls button[aria-pressed="true"] span { color: #fff; background: #60708f; }
.call-controls .danger span { border-color: transparent; color: #fff; background: var(--danger); }
.call-tip { margin: 5px 0 0; color: #9ca6b8; font-size: 9px; text-align: center; }

.face-panel { padding-top: 18px; }
.face-transcript { min-height: 160px; margin: 15px 0; padding: 13px; overflow: auto; border: 1px solid #e4e9f1; border-radius: 15px; background: #f8fafc; text-align: left; }
.face-transcript .placeholder { margin: 48px 0; color: #a1aabc; font-size: 11px; text-align: center; }
.face-message { margin: 0 0 10px; padding: 10px; border-radius: 11px; background: #fff; }
.face-message b { display: block; margin-bottom: 5px; color: #60708d; font-size: 9px; }
.face-message p { margin: 3px 0; font-size: 11px; line-height: 1.45; }
.face-message .translated { color: #93702d; }
.face-controls { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 5px; }
.face-controls.disabled { opacity: .55; }
.talk-button { min-height: 78px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 17px; background: #fff; }
.talk-button.gold { border: 1px solid #dcb050; color: #9a7126; }
.talk-button.cyan { border: 1px solid #2dbbdc; color: #0783a0; }
.talk-button.active { color: #fff; transform: scale(.98); }
.talk-button.gold.active { background: linear-gradient(135deg, #ddb151, #be842c); }
.talk-button.cyan.active { background: linear-gradient(135deg, #21b9d9, #0789a9); }
.talk-button svg { width: 27px; height: 27px; flex: 0 0 27px; }
.talk-button span { font-size: 12px; font-weight: 700; text-align: left; }
.talk-button small { display: block; margin-top: 4px; font-size: 8.5px; font-weight: 500; white-space: nowrap; }
.voice-divider { height: 31px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.voice-divider i { width: 2px; height: 11px; border-radius: 2px; background: #8d9ab1; }
.voice-divider i:nth-child(2), .voice-divider i:nth-child(4) { height: 21px; }
.voice-divider i:nth-child(3) { height: 29px; }

dialog { width: min(calc(100% - 32px), 390px); padding: 25px 22px; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 24px 70px rgba(5,11,25,.32); }
dialog::backdrop { background: rgba(5,11,25,.55); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 12px; font-size: 18px; }
dialog ul { margin: 0; padding-left: 20px; color: #65718b; font-size: 12px; line-height: 1.8; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; color: #60708a; background: transparent; font-size: 25px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; max-width: min(360px, calc(100% - 32px)); padding: 10px 16px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; border-radius: 18px; color: #fff; background: rgba(5,11,25,.9); font-size: 11px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(24,175,209,.42); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }

@media (max-width: 360px) {
  .content { padding-inline: 11px; }
  .app-header { padding-inline: 11px; grid-template-columns: 34px 40px 1fr 34px; gap: 6px; }
  .brand-icon { width: 40px; height: 40px; }
  .header-copy h1 { font-size: 15px; }
  .panel, .call-panel { padding-inline: 13px; }
  .talk-button { padding: 7px 5px; gap: 5px; }
  .talk-button small { font-size: 7.5px; }
}

@media (min-width: 700px) {
  body { padding: 28px 0; }
  .app-shell { min-height: calc(100vh - 56px); border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* 2026-09-12 Me Uni: 所在地选择 + 我的原话 */
.region-row{border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:10px 12px 8px;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.region-row legend{font-size:12px;opacity:.75;padding:0 4px}
.region-row label{font-size:14px;display:flex;align-items:center;gap:6px}
.region-row .region-tip{flex-basis:100%;margin:2px 0 0}
.own-source{opacity:.7;font-size:13px;margin:0 0 2px}
.call-controls{grid-template-columns:repeat(4,minmax(0,1fr))}

.engine-row{margin:0 0 12px}

/* 2026-09-12: 提示放顶部, 手机底部会被浏览器工具栏挡住 */
.toast{top:calc(env(safe-area-inset-top,0px) + 14px) !important;bottom:auto !important;font-size:15px !important;padding:12px 16px !important;background:#1f1b14 !important;color:#fff !important;z-index:20000 !important}

/* 2026-09-12 iOS 长按按钮弹出'拷贝/查询'菜单: 禁止选中与长按呼出 */
.talk-button,.talk-button *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
