:root {
 color-scheme: dark;
 --bg: #141520;
 --panel: #1d1f2d;
 --line: #303141;
 --purple: #ad27fa;
 --purple-soft: rgba(173, 39, 250, 0.14);
 --purple-line: rgba(190, 120, 255, 0.26);
 --purple-text: #d7a6ff;
 --muted: #9798ad;
 --text: #f3f1fa;
 --room-surface-1: #1d1e2c;
 --room-surface-2: #26283a;
 --room-surface-3: #31334a;
 --room-border: rgba(255, 255, 255, 0.08);
 --room-border-strong: rgba(196, 148, 255, 0.24);
 --danger: #e5535b;
 --danger-soft: rgba(229, 83, 91, 0.18);
 --ease: cubic-bezier(0.22, 1, 0.36, 1);
 font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
}

* {
 box-sizing: border-box;
}

[hidden] {
 display: none !important;
}

body {
 margin: 0;
 background: var(--bg);
 color: var(--text);
 -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
 font: inherit;
}

button, a, input, select, textarea {
 outline-offset: 4px;
}

button {
 cursor: pointer;
 color: inherit;
 border: 0;
 background: none;
 padding: 0;
}

button:disabled {
 opacity: 0.45;
 cursor: wait;
}

a {
 color: inherit;
 text-decoration: none;
}

/* ====== 首页（完全保持原有设计样式） ====== */
.shell {
 max-width: 1180px;
 margin: auto;
 padding: 28px 36px 70px;
}

.topbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 18px 22px;
 background: #232534;
 border: 1px solid #ffffff06;
 border-radius: 18px;
}

.brand {
 display: flex;
 align-items: center;
 gap: 11px;
 font-size: 21px;
 font-weight: 750;
 letter-spacing: -0.5px;
}

.logo {
 background: linear-gradient(140deg, #c842ff, #7438ef);
 border-radius: 15px;
 display: grid;
 place-items: center;
 width: 38px;
 height: 40px;
 color: white;
 font-size: 22px;
}

.brand small {
 font-size: 12px;
 font-weight: 400;
 letter-spacing: 0;
 color: #b1a9c6;
 border-left: 1px solid #555164;
 padding-left: 12px;
}

.pill {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 border: 1px solid #54416a;
 border-radius: 50px;
 padding: 7px 12px;
 color: #cf9df5;
 font-size: 12px;
}

.dot {
 width: 6px;
 height: 6px;
 background: #b23cf5;
 border-radius: 50%;
}

.intro {
 margin: 46px 0 28px;
 display: flex;
 justify-content: space-between;
 align-items: end;
}

.eyebrow {
 color: #b97af0;
 font-size: 11px;
 letter-spacing: 2px;
 margin-bottom: 10px;
}

h1 {
 font-size: 28px;
 margin: 0 0 10px;
 letter-spacing: -0.7px;
}

p {
 color: var(--muted);
 line-height: 1.7;
 margin: 0;
 font-size: 13px;
}

.tagline {
 font-size: 12px;
 color: #79798e;
}

.hero {
 position: relative;
 overflow: hidden;
 border: 1px solid #5f327761;
 border-radius: 22px;
 padding: 30px 34px;
 background: radial-gradient(ellipse at 77% 15%, #66218a40, transparent 65%), linear-gradient(110deg, #251d35, #1b1d2a);
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 24px;
}

.hero-icon {
 display: grid;
 place-items: center;
 width: 46px;
 height: 46px;
 border: 1px solid #ad42ef40;
 background: #a124ed21;
 border-radius: 13px;
 color: #c76bff;
 font-size: 26px;
 margin-bottom: 18px;
}

.hero h2 {
 margin: 0 0 8px;
 font-size: 22px;
}

.hero p {
 color: #c3a9d9;
}

.hero-foot {
 display: flex;
 gap: 18px;
 color: #a095af;
 font-size: 12px;
 margin-top: 25px;
}

.primary {
 border: 1px solid #d463ff40;
 background: linear-gradient(115deg, #a127f7, #bb21f4);
 border-radius: 40px;
 padding: 12px 25px;
 box-shadow: 0 6px 22px #a11bea20;
 font-weight: 600;
 white-space: nowrap;
}

.primary:hover:not(:disabled) {
 filter: brightness(1.12);
}

.outline {
 border: 1px solid #444153;
 border-radius: 30px;
 padding: 9px 18px;
 font-size: 13px;
}

.configbanner {
 background: #69392f30;
 border: 1px solid #80573750;
 border-radius: 10px;
 padding: 12px 16px;
 color: #e5b28a;
 font-size: 12px;
 margin: 20px 0;
}

.listhead {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin: 40px 0 18px;
}

.listhead h2 {
 font-size: 18px;
 font-weight: 550;
 margin: 0;
}

.listhead h2::before {
 content: "";
 display: inline-block;
 width: 4px;
 height: 17px;
 background: var(--purple);
 border-radius: 4px;
 margin-right: 10px;
 vertical-align: -2px;
}

.count {
 font-size: 13px;
 color: #77798f;
 margin-left: 8px;
}

.search {
 background: #1c1e2a;
 border: 1px solid var(--line);
 border-radius: 9px;
 color: var(--text);
 padding: 10px 14px;
 width: 235px;
 font-size: 12px;
}

.meetings {
 display: grid;
 gap: 12px;
}

.meeting {
 background: linear-gradient(100deg, #202230, #1b1d29);
 border: 1px solid #303141;
 border-radius: 15px;
 padding: 21px 23px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 15px;
}

.meeting h3 {
 font-size: 15px;
 font-weight: 550;
 margin: 0 0 13px;
}

.meeting .meta {
 display: flex;
 gap: 18px;
 flex-wrap: wrap;
 font-size: 11px;
 color: #8e8fa4;
}

.meeting .type {
 color: #c48af0;
 background: #a536df16;
 padding: 3px 8px;
 border-radius: 4px;
 margin-left: 10px;
 font-size: 10px;
 font-weight: 400;
}

.enter {
 font-size: 12px;
 background: #a32aeb1c;
 border: 1px solid #9a3ed64d;
 color: #d6a2ff;
 border-radius: 25px;
 padding: 9px 21px;
}

.empty {
 text-align: center;
 border: 1px dashed #383544;
 border-radius: 18px;
 padding: 60px 20px;
 color: #8e8b9f;
}

.empty-symbol {
 font-size: 32px;
 color: #8e4fb1;
 margin-bottom: 16px;
}

.empty h3 {
 color: #cbc5d5;
 font-size: 16px;
 font-weight: 500;
}

.footer {
 text-align: center;
 margin-top: 35px;
 color: #66687e;
 font-size: 11px;
}

/* ====== 弹窗（保留原有紫色系视觉） ====== */
.overlay {
 position: fixed;
 inset: 0;
 background: #070710b8;
 backdrop-filter: blur(7px);
 -webkit-backdrop-filter: blur(7px);
 display: grid;
 place-items: center;
 z-index: 30;
 padding: 20px;
}

.modal {
 width: min(460px, 100%);
 background: #222331;
 border: 1px solid #494052;
 border-radius: 22px;
 padding: 28px;
 box-shadow: 0 20px 90px #0006;
}

.modalhead {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 8px;
}

.modal h2 {
 font-size: 21px;
 margin: 0;
}

.close {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-size: 22px;
 color: #9390a6;
}

.close:hover {
 background: rgba(255, 255, 255, 0.06);
 color: var(--text);
}

.modal p {
 margin-bottom: 24px;
}

label {
 display: block;
 color: #c7c4d4;
 font-size: 12px;
 margin-bottom: 9px;
}

.field {
 width: 100%;
 background: #181a25;
 color: var(--text);
 border: 1px solid #444052;
 border-radius: 10px;
 padding: 12px;
 margin-bottom: 20px;
}

.twocol {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 15px;
}

.checklabel {
 display: flex;
 align-items: center;
 gap: 9px;
 margin: 0 0 23px;
}

.checklabel input {
 accent-color: var(--purple);
 width: 16px;
 height: 16px;
}

.mutual-switch {
 justify-content: space-between;
 background: #30243e;
 padding: 13px 15px;
 border: 1px solid #6b4187;
 border-radius: 10px;
 cursor: pointer;
}

.mutual-switch input {
 appearance: none;
 width: 36px;
 height: 20px;
 border-radius: 20px;
 background: #535263;
 position: relative;
 margin: 0;
 cursor: pointer;
 flex: none;
}

.mutual-switch input::before {
 content: "";
 position: absolute;
 top: 3px;
 left: 3px;
 width: 14px;
 height: 14px;
 background: #e8e3f0;
 border-radius: 50%;
 transition: transform 0.15s;
}

.mutual-switch input:checked {
 background: #a927f0;
}

.mutual-switch input:checked::before {
 transform: translateX(16px);
}

.mutual-switch span {
 margin-right: auto;
 margin-left: 10px;
 order: -1;
}

.language-hint {
 background: #a13bdd0c;
 border: 1px solid #74429342;
 border-radius: 9px;
 padding: 12px;
 font-size: 11px !important;
 line-height: 1.8 !important;
 margin: 0 0 22px !important;
 color: #b4a5c6 !important;
}

.modal .primary {
 width: 100%;
}

/* 轻量化顶部微胶囊提示（不再遮挡底部声波点与对话正文） */
#toast {
 position: fixed;
 top: 14px;
 left: 50%;
 transform: translateX(-50%) translateY(-6px);
 max-width: min(380px, 88vw);
 z-index: 50;
 background: rgba(26, 27, 40, 0.88);
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 border: 1px solid rgba(255, 255, 255, 0.10);
 border-radius: 10px;
 padding: 7px 14px;
 font-size: 12px;
 line-height: 1.45;
 color: #dcd7ec;
 text-align: center;
 pointer-events: none;
 opacity: 0;
 display: none;
 box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
 transition: opacity 180ms ease-out, transform 180ms ease-out;
}

#toast.is-visible {
 opacity: 1;
 transform: translateX(-50%) translateY(0);
}

/* ====== 房间页：极简流式排版 + Pnuts 主题紫点缀 ====== */
.room {
 height: 100vh;
 height: 100dvh;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 background:
  radial-gradient(70% 300px at 50% 0%, rgba(168, 55, 245, 0.14), transparent 76%),
  var(--bg);
}

.roomhead {
 flex: none;
 z-index: 10;
 padding: 8px 0 6px;
}

.roomhead-bar {
 height: 48px;
 padding: 0 20px;
 display: grid;
 grid-template-columns: 72px 1fr 72px;
 align-items: center;
 gap: 10px;
}

.roomhead-bar .back {
 justify-self: start;
}

.roomhead-bar .clear-data {
 justify-self: end;
}

.icon-btn {
 width: 36px;
 height: 36px;
 border-radius: 999px;
 display: inline-grid;
 place-items: center;
 color: #b8b3ca;
 transition: background 150ms ease-out, color 150ms ease-out;
 flex: none;
}

.icon-btn:hover:not(:disabled) {
 background: rgba(173, 39, 250, 0.14);
 color: var(--text);
}

.icon-btn svg {
 width: 18px;
 height: 18px;
 stroke: currentColor;
 fill: none;
 stroke-width: 1.8;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.roomtitle {
 min-width: 0;
 text-align: center;
}

.roomtitle h1 {
 font-size: 14px;
 font-weight: 500;
 margin: 0;
 color: #cbc5dc;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 letter-spacing: 0;
}

.roomtitle p {
 display: none;
}

/* 参考豆包同传：无外框束缚的独立双翼语种下拉胶囊 + 即点即选菜单 */
.roomhead {
 position: relative;
 flex: none;
 z-index: 20;
 padding: 8px 0 6px;
}

.roomhead-lang {
 position: relative;
 width: min(352px, calc(100% - 32px));
 margin: 2px auto 4px;
}

.langbar {
 width: 100%;
 height: 42px;
 display: grid;
 grid-template-columns: 1fr auto 1fr;
 align-items: center;
 gap: 10px;
}

.lang-side {
 height: 38px;
 border-radius: 999px;
 background: rgba(42, 34, 64, 0.72);
 border: 1px solid rgba(196, 136, 255, 0.22);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-width: 0;
 padding: 0 14px;
 transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.lang-side:hover:not(:disabled),
.lang-side.is-open {
 background: rgba(58, 46, 88, 0.88);
 border-color: rgba(212, 162, 255, 0.45);
}

.lang-side:active:not(:disabled) {
 transform: scale(0.98);
}

.lang-side.is-open .lang-caret svg {
 transform: rotate(180deg);
}

.lang-name {
 font-size: 15px;
 font-weight: 600;
 color: #f6f3ff;
 letter-spacing: 0.01em;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.lang-caret {
 display: inline-grid;
 place-items: center;
 color: #b5a6cc;
 flex: none;
}

.lang-caret svg {
 width: 13px;
 height: 13px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
 transition: transform 150ms ease-out;
}

.lang-bridge {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: rgba(173, 39, 250, 0.16);
 border: 1px solid rgba(206, 152, 255, 0.24);
 color: #d884ff;
 display: inline-grid;
 place-items: center;
 transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.lang-bridge:hover:not(:disabled) {
 background: rgba(173, 39, 250, 0.28);
 border-color: rgba(216, 168, 255, 0.46);
 color: #f3dcff;
}

.lang-bridge:active:not(:disabled) {
 transform: scale(0.94);
}

.lang-bridge svg {
 width: 15px;
 height: 15px;
 stroke: currentColor;
 fill: none;
 stroke-width: 1.9;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.lang-dropdown {
 position: absolute;
 top: calc(100% + 8px);
 left: 0;
 right: 0;
 width: 100%;
 padding: 12px;
 background: rgba(29, 26, 45, 0.97);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 border: 1px solid rgba(196, 138, 255, 0.30);
 border-radius: 16px;
 box-shadow: 0 20px 56px rgba(0, 0, 0, 0.62);
 z-index: 35;
 animation: sheet-up 140ms var(--ease);
}

.lang-dropdown-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 padding: 2px 4px 10px;
 border-bottom: 1px solid rgba(196, 148, 255, 0.14);
 margin-bottom: 8px;
}

.lang-dropdown-caption {
 font-size: 12px;
 font-weight: 500;
 color: #b9aed0;
}

.dropdown-mutual {
 margin: 0 !important;
 padding: 5px 10px !important;
 border-radius: 999px !important;
 background: rgba(173, 39, 250, 0.12) !important;
 border: 1px solid rgba(196, 138, 255, 0.26) !important;
 gap: 8px !important;
}

.dropdown-mutual span {
 margin: 0 !important;
 font-size: 12px;
 color: #efe8fc;
}

.lang-dropdown-list {
 max-height: 220px;
 overflow-y: auto;
 overscroll-behavior: contain;
 scrollbar-width: thin;
 scrollbar-color: rgba(190, 130, 255, 0.24) transparent;
}

.lang-dropdown-hint {
 margin: 8px 0 0 !important;
 padding: 9px 11px !important;
}

.lang-option {
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 padding: 9px 12px;
 border-radius: 9px;
 font-size: 14px;
 color: #e2dcf2;
 text-align: left;
 transition: background 120ms ease-out, color 120ms ease-out;
}

.lang-option:hover {
 background: rgba(173, 39, 250, 0.14);
 color: #ffffff;
}

.lang-option.is-selected {
 background: rgba(173, 39, 250, 0.22);
 color: #f7ecff;
 font-weight: 600;
}

.lang-option-label {
 display: inline-flex;
 align-items: baseline;
 gap: 6px;
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.lang-option-label small {
 font-size: 11px;
 font-weight: 400;
 color: #a899c2;
}

.lang-check {
 display: inline-grid;
 place-items: center;
 color: #d580ff;
 flex: none;
}

.lang-check svg {
 width: 15px;
 height: 15px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2.2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.ghost-btn {
 height: 32px;
 padding: 0 12px;
 border-radius: 999px;
 font-size: 13px;
 color: #b8b2cb;
 transition: background 150ms ease-out, color 150ms ease-out;
 white-space: nowrap;
}

.ghost-btn:hover:not(:disabled) {
 background: rgba(173, 39, 250, 0.14);
 color: #e6ccff;
}

.clear-notice {
 flex: none;
 max-width: 740px;
 width: calc(100% - 32px);
 margin: 6px auto 0;
 padding: 10px 16px;
 background: #2c203b;
 border: 1px solid #684278;
 border-radius: 12px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
 font-size: 13px;
 color: #d8c2e6;
}

.clear-notice button {
 color: #dca3ff;
 font-weight: 500;
 text-decoration: underline;
}

/* ====== 带首尾透明羽化渐变的独立滚动视窗（对齐豆包首尾渐隐效果） ====== */
.room-stage {
 flex: 1;
 min-height: 0;
 position: relative;
 display: flex;
 flex-direction: column;
}

.room-scroll {
 flex: 1;
 min-height: 0;
 overflow-y: auto;
 overflow-anchor: none;
 overscroll-behavior: contain;
 padding-bottom: 58px;
 scrollbar-width: thin;
 scrollbar-color: rgba(190, 130, 255, 0.18) transparent;
 -webkit-mask-image: linear-gradient(
  to bottom,
  transparent 0px,
  rgba(0, 0, 0, 0.28) 18px,
  rgba(0, 0, 0, 0.74) 40px,
  #000 62px,
  #000 calc(100% - 66px),
  rgba(0, 0, 0, 0.74) calc(100% - 42px),
  rgba(0, 0, 0, 0.28) calc(100% - 18px),
  transparent 100%
 );
 mask-image: linear-gradient(
  to bottom,
  transparent 0px,
  rgba(0, 0, 0, 0.28) 18px,
  rgba(0, 0, 0, 0.74) 40px,
  #000 62px,
  #000 calc(100% - 66px),
  rgba(0, 0, 0, 0.74) calc(100% - 42px),
  rgba(0, 0, 0, 0.28) calc(100% - 18px),
  transparent 100%
 );
}

.room-scroll::-webkit-scrollbar {
 width: 5px;
}

.room-scroll::-webkit-scrollbar-thumb {
 background: rgba(190, 130, 255, 0.18);
 border-radius: 999px;
}

.scroll-nav {
 position: absolute;
 right: 14px;
 bottom: 16px;
 z-index: 6;
 display: flex;
 flex-direction: column;
 gap: 8px;
}

.scroll-nav-btn {
 width: 34px;
 height: 34px;
 border-radius: 50%;
 background: rgba(38, 33, 58, 0.92);
 border: 1px solid rgba(196, 138, 255, 0.34);
 color: #e6d0ff;
 display: grid;
 place-items: center;
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
 transition: transform 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out;
}

.scroll-nav-btn:hover {
 background: rgba(58, 46, 88, 0.96);
 border-color: rgba(212, 162, 255, 0.52);
 transform: translateY(-1px);
}

.scroll-nav-btn svg {
 width: 15px;
 height: 15px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

/* ====== 无框流式杂志对话区 ====== */
.transcript {
 width: 100%;
 max-width: 740px;
 margin: 0 auto;
 padding: 48px 24px 8px;
}

.roomempty {
 text-align: center;
 margin: 14vh auto 0;
 max-width: 360px;
}

.roomempty .hero-icon {
 margin: 0 auto 20px;
 width: 58px;
 height: 58px;
 font-size: 28px;
 border-radius: 18px;
}

.roomempty h2 {
 font-size: 19px;
 font-weight: 500;
 color: #ebe6f7;
 margin: 0 0 10px;
}

.roomempty p {
 margin: 0;
 font-size: 13px;
 line-height: 1.8;
 color: #9692ac;
}

.entry {
 position: relative;
 padding: 22px 0;
 border-bottom: 1px solid rgba(196, 160, 255, 0.09);
 transition: opacity 150ms ease-out;
}

.entry:first-child {
 padding-top: 4px;
}

.entry.is-playing::before {
 content: "";
 position: absolute;
 left: -14px;
 top: 24px;
 bottom: 24px;
 width: 2.5px;
 border-radius: 3px;
 background: linear-gradient(180deg, #d580ff, #9b30f2);
 box-shadow: 0 0 12px rgba(173, 39, 250, 0.45);
}

.entry-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 margin-bottom: 8px;
 font-size: 12px;
}

.entry-lang-pair {
 font-weight: 500;
 color: #be85f7;
}

.entry-metrics {
 font-size: 11px;
 color: #8c88a3;
 opacity: 0.55;
 font-variant-numeric: tabular-nums;
 transition: opacity 150ms ease-out;
}

.entry:hover .entry-metrics {
 opacity: 0.92;
}

.entry-duration + .entry-duration::before {
 content: " · ";
}

.bubble {
 margin: 0;
 padding: 0;
 border: 0;
 background: transparent;
 overflow-wrap: anywhere;
 white-space: pre-wrap;
 text-wrap: pretty;
}

.bubblelabel {
 display: none;
}

.bubble.original {
 font-size: 15px;
 line-height: 1.65;
 color: #a5a3bc;
 margin-bottom: 8px;
}

.in-turn-draft {
 color: #d5ceeb;
}

.in-turn-dot {
 display: inline-block;
 width: 6px;
 height: 6px;
 margin-left: 6px;
 vertical-align: middle;
 border-radius: 50%;
 background: #c56bff;
 box-shadow: 0 0 8px rgba(197, 107, 255, 0.55);
 animation: pulse 1.1s ease-in-out infinite;
}

.bubble.translated {
 font-size: 20px;
 font-weight: 500;
 line-height: 1.58;
 color: #f6f4fc;
 letter-spacing: -0.01em;
}

.translation-pending {
 padding: 4px 0;
}

.pending-label {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 color: #b89fd4;
 font-size: 14px;
 font-weight: 400;
}

.inline-pending {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 margin-left: 10px;
 color: #b89fd4;
 font-size: 13px;
 font-weight: 400;
 vertical-align: middle;
}

.loading-dots {
 display: inline-flex;
 gap: 4px;
}

.loading-dots i {
 width: 4px;
 height: 4px;
 background: #c57cff;
 border-radius: 50%;
 animation: dot-pulse 1.2s ease-in-out infinite;
}

.loading-dots i:nth-child(2) { animation-delay: 0.18s; }
.loading-dots i:nth-child(3) { animation-delay: 0.36s; }

.errorline {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
 font-size: 13px;
 font-weight: 400;
 color: #f49ca4;
 margin-top: 4px;
}

.slice-error-bar {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
 margin-top: 10px;
 font-size: 12px;
 font-weight: 400;
 color: #f49ca4;
}

.retry {
 border: 1px solid rgba(244, 156, 164, 0.38);
 border-radius: 999px;
 padding: 4px 12px;
 font-size: 12px;
 color: #fbc2c7;
 transition: background 150ms ease-out;
}

.retry:hover:not(:disabled) {
 background: rgba(244, 156, 164, 0.12);
}

/* 段落底部主题紫轻点缀音频微条（固定最小高度防止按钮生成时列表跳动） */
.entry-actions {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
 min-height: 28px;
 margin-top: 12px;
}

.entry-speech {
 display: inline-flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
 min-height: 28px;
 font-size: 12px;
}

.speech-entry-status {
 font-size: 12px;
 color: #bd8ef2;
}

.speech-play,
.speech-retry,
.speech-generate,
.original-audio-play {
 display: inline-flex;
 align-items: center;
 gap: 5px;
 height: 28px;
 padding: 0 12px;
 border-radius: 999px;
 border: 1px solid rgba(186, 122, 248, 0.22);
 background: rgba(168, 55, 245, 0.09);
 color: #d6baf5;
 font-size: 12px;
 transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.speech-play:hover:not(:disabled),
.speech-retry:hover:not(:disabled),
.speech-generate:hover:not(:disabled),
.original-audio-play:hover:not(:disabled) {
 background: rgba(168, 55, 245, 0.20);
 color: #f4eaff;
 border-color: rgba(202, 148, 255, 0.42);
}

.original-audio {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 12px;
 color: #8c88a3;
}

.original-audio-meta {
 font-size: 11px;
 color: #8c88a3;
 opacity: 0.78;
 font-variant-numeric: tabular-nums;
}

.speech-error {
 font-size: 12px;
 color: #f49ca4;
}

/* 实时流式识别草稿（字号行距与正文原文严格一致，防止转正瞬间换行跳动） */
.asr-draft {
 width: 100%;
 max-width: 740px;
 margin: 0 auto;
 padding: 18px 24px;
 overflow-anchor: none;
}

.asr-draft-inner {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 font-size: 15px;
 line-height: 1.65;
 color: #cfc9e3;
}

.draft-live-dot {
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: #c56bff;
 box-shadow: 0 0 8px rgba(197, 107, 255, 0.6);
 margin-top: 9px;
 flex: none;
 animation: pulse 1.1s ease-in-out infinite;
}

/* 移除正文中冗余的句间聆听提示行 */
.live-loading {
 display: none !important;
}

/* ====== 底部豆包式三点声波指示 + 主题紫悬浮胶囊坞 ====== */
.roomfooter {
 flex: none;
 z-index: 15;
 padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

.controls {
 max-width: 460px;
 margin: 0 auto;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 12px;
 pointer-events: auto;
}

/* 借鉴豆包同传：三颗圆角竖向伸缩胶囊在上、状态文案在下居中排列 */
.controlstatus {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-height: 40px;
}

.doubao-dots {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 height: 18px;
}

.doubao-dots i {
 width: 6px;
 height: 6px;
 border-radius: 999px;
 background: rgba(196, 142, 255, 0.42);
 transition: height 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.recording .doubao-dots i,
.remote-active .doubao-dots i {
 background: linear-gradient(180deg, #df9eff, #a838f5);
 box-shadow: 0 0 10px rgba(173, 39, 250, 0.38);
 animation: doubao-wave 1.05s ease-in-out infinite;
}

.recording .doubao-dots i:nth-child(1),
.remote-active .doubao-dots i:nth-child(1) {
 animation-delay: 0s;
}

.recording .doubao-dots i:nth-child(2),
.remote-active .doubao-dots i:nth-child(2) {
 animation-delay: 0.18s;
}

.recording .doubao-dots i:nth-child(3),
.remote-active .doubao-dots i:nth-child(3) {
 animation-delay: 0.36s;
}

.status-text {
 font-size: 12px;
 color: #9c96b3;
 letter-spacing: 0.01em;
}

.dock {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 8px 12px;
 background: rgba(29, 30, 45, 0.92);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 border: 1px solid rgba(190, 128, 255, 0.22);
 border-radius: 999px;
 box-shadow: 0 14px 38px rgba(7, 6, 14, 0.58);
}

.dock-pill {
 height: 42px;
 padding: 0 15px;
 border-radius: 999px;
 background: rgba(168, 55, 245, 0.13);
 border: 1px solid rgba(190, 128, 255, 0.28);
 color: #e2c7ff;
 font-size: 12px;
 font-weight: 500;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
 white-space: nowrap;
}

.dock-pill:hover:not(:disabled) {
 background: rgba(168, 55, 245, 0.24);
 border-color: rgba(206, 156, 255, 0.45);
 color: #ffffff;
}

.dock-icon {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: var(--room-surface-2);
 border: 1px solid rgba(255, 255, 255, 0.08);
 color: #c7c1da;
 display: inline-grid;
 place-items: center;
 transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.dock-icon:hover:not(:disabled) {
 background: rgba(168, 55, 245, 0.18);
 border-color: rgba(196, 142, 255, 0.34);
 color: #f6f0ff;
}

.dock-icon.is-muted {
 color: #78748f;
 opacity: 0.72;
}

.dock-icon svg {
 width: 18px;
 height: 18px;
 stroke: currentColor;
 fill: none;
 stroke-width: 1.8;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.mic {
 width: 54px;
 height: 54px;
 border-radius: 50%;
 background: linear-gradient(135deg, #b833ff, #7c2ae8);
 border: 2px solid rgba(224, 172, 255, 0.28);
 color: #ffffff;
 display: inline-grid;
 place-items: center;
 box-shadow: 0 6px 22px rgba(161, 27, 234, 0.36);
 transition: transform 150ms ease-out, filter 150ms ease-out, background 150ms ease-out;
}

.mic:hover:not(:disabled) {
 transform: scale(1.03);
 filter: brightness(1.08);
}

.mic:active:not(:disabled) {
 transform: scale(0.96);
}

.mic svg {
 width: 21px;
 height: 21px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.mic.active {
 background: linear-gradient(135deg, #ee6b53, #d63f67);
 border-color: rgba(255, 190, 180, 0.32);
 box-shadow: 0 0 0 6px rgba(238, 107, 83, 0.16);
}

.audiohint {
 display: none;
}

/* ====== 设置抽屉（统一紫色系深灰质感） ====== */
.settings-backdrop {
 position: fixed;
 inset: 0;
 z-index: 25;
 background: rgba(7, 7, 16, 0.64);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
 display: grid;
 align-items: end;
 justify-items: center;
 padding: 16px;
}

.settings-sheet {
 width: min(460px, 100%);
 background: #212232;
 border: 1px solid #4d3d60;
 border-radius: 20px;
 padding: 22px 22px 24px;
 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
 animation: sheet-up 200ms var(--ease);
}

.sheet-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-bottom: 18px;
}

.sheet-head h2 {
 font-size: 16px;
 font-weight: 600;
 margin: 0;
}

.sheet-grid {
 display: flex;
 flex-direction: column;
 gap: 14px;
}

.tts-settings,
.playback-mode-settings,
.vad-settings,
.recognition-controls {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 font-size: 13px;
 color: #cfc6df;
}

.tts-settings label,
.playback-mode-settings label,
.vad-settings label,
.recognition-controls label {
 margin: 0;
 color: #cfc6df;
}

.tts-settings select,
.playback-mode-settings select,
.vad-settings select,
.recognition-controls select {
 min-width: 178px;
 padding: 8px 12px;
 border: 1px solid #58436d;
 border-radius: 10px;
 background: #181926;
 color: #f3ecfc;
 font-size: 13px;
 transition: border-color 150ms ease-out;
}

.tts-settings select:hover:not(:disabled),
.playback-mode-settings select:hover:not(:disabled),
.vad-settings select:hover:not(:disabled),
.recognition-controls select:hover:not(:disabled) {
 border-color: #9e5be2;
}

/* ====== 过滤低音量人声（还原截图开关 + 虚线紫框说明 + 1~10 档紫色滑块） ====== */
.low-vol-section {
 margin-top: 2px;
 padding-top: 14px;
 border-top: 1px solid rgba(196, 148, 255, 0.14);
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.low-vol-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.low-vol-label-group {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 min-width: 0;
}

.low-vol-title {
 margin: 0;
 font-size: 13px;
 color: #cfc6df;
 cursor: pointer;
}

.low-vol-help {
 width: 20px;
 height: 20px;
 border-radius: 50%;
 display: inline-grid;
 place-items: center;
 color: var(--purple);
 flex: none;
 transition: background 150ms ease-out, transform 150ms ease-out;
}

.low-vol-help:hover {
 background: rgba(173, 39, 250, 0.16);
}

.low-vol-help svg {
 width: 16px;
 height: 16px;
 stroke: currentColor;
 fill: none;
 stroke-width: 1.8;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.purple-switch {
 appearance: none;
 -webkit-appearance: none;
 width: 42px;
 height: 24px;
 border-radius: 999px;
 background: #4a495c;
 position: relative;
 margin: 0;
 cursor: pointer;
 flex: none;
 transition: background 160ms ease-out;
}

.purple-switch::before {
 content: "";
 position: absolute;
 top: 3px;
 left: 3px;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 background: #ffffff;
 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
 transition: transform 160ms ease-out;
}

.purple-switch:checked {
 background: var(--purple);
}

.purple-switch:checked::before {
 transform: translateX(18px);
}

.purple-switch:disabled {
 opacity: 0.48;
 cursor: wait;
}

.low-vol-tip {
 border: 1px dashed var(--purple);
 background: rgba(173, 39, 250, 0.08);
 border-radius: 10px;
 padding: 11px 13px;
 font-size: 12px;
 line-height: 1.65;
 color: #dfd4f2;
}

.low-vol-slider-wrap {
 display: flex;
 flex-direction: column;
 gap: 8px;
 padding-top: 2px;
}

.low-vol-slider-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 font-size: 13px;
 color: #cfc6df;
}

.low-vol-slider-head label {
 margin: 0;
 color: #cfc6df;
}

.low-vol-slider-head output {
 font-size: 13px;
 font-variant-numeric: tabular-nums;
 color: #ede6fa;
 font-weight: 500;
}

.low-vol-range {
 -webkit-appearance: none;
 appearance: none;
 width: 100%;
 height: 6px;
 border-radius: 999px;
 outline: none;
 cursor: pointer;
 margin: 4px 0;
}

.low-vol-range::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 background: var(--purple);
 border: 2px solid #f7ebff;
 box-shadow: 0 2px 8px rgba(173, 39, 250, 0.55);
 transition: transform 120ms ease-out;
}

.low-vol-range::-webkit-slider-thumb:hover {
 transform: scale(1.1);
}

.low-vol-range::-moz-range-thumb {
 width: 18px;
 height: 18px;
 border-radius: 50%;
 background: var(--purple);
 border: 2px solid #f7ebff;
 box-shadow: 0 2px 8px rgba(173, 39, 250, 0.55);
}

.low-vol-scale {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 font-size: 11px;
 color: #9691ab;
}

.speech-controls-section {
 margin-top: 16px;
 padding-top: 16px;
 border-top: 1px solid rgba(196, 148, 255, 0.14);
}

.speech-toolbar {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}

.speech-switch {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 margin-right: auto;
 font-size: 13px;
 color: #dec7ed;
 cursor: pointer;
}

.speech-switch input {
 accent-color: var(--purple);
 width: 15px;
 height: 15px;
}

.speech-toolbar button,
.speech-blocked button {
 border: 1px solid rgba(186, 122, 248, 0.34);
 border-radius: 999px;
 padding: 6px 13px;
 color: #dcb6f9;
 font-size: 12px;
 background: rgba(168, 55, 245, 0.12);
 transition: background 150ms ease-out, color 150ms ease-out;
}

.speech-toolbar button:hover:not(:disabled),
.speech-blocked button:hover:not(:disabled) {
 background: rgba(168, 55, 245, 0.24);
 color: #ffffff;
}

.speech-toolbar .speech-enable {
 background: linear-gradient(115deg, #a127f7, #bb21f4);
 color: #ffffff;
 border-color: transparent;
 font-weight: 500;
}

.speech-description {
 font-size: 12px;
 margin: 10px 0 0;
 color: #9f94b5;
}

.speech-blocked {
 margin-top: 10px;
 font-size: 12px;
 color: #f49ca4;
 display: flex;
 gap: 8px;
 align-items: center;
 flex-wrap: wrap;
}

@keyframes pulse {
 50% { opacity: 0.3; }
}

@keyframes dot-pulse {
 50% { opacity: 0.25; transform: translateY(-2px); }
}

@keyframes doubao-wave {
 0%, 100% {
  height: 6px;
  opacity: 0.58;
 }
 45% {
  height: 16px;
  opacity: 1;
 }
}

@keyframes sheet-up {
 from { opacity: 0; transform: translateY(12px); }
 to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1400px) {
 .shell { padding-top: 40px; }
 .hero { padding: 38px 40px; }
}

@media (max-width: 640px) {
 .shell { padding: 15px 16px 40px; }
 .topbar { padding: 15px; }
 .brand small, .tagline { display: none; }
 .intro { margin: 34px 0 22px; }
 h1 { font-size: 24px; }
 .hero { padding: 25px; display: block; }
 .hero .primary { margin-top: 22px; width: 100%; }
 .hero-foot { gap: 12px; font-size: 10px; }
 .listhead { gap: 12px; flex-wrap: wrap; }
 .search { width: 100%; }
 .meeting { padding: 18px 15px; }
 .meeting h3 { line-height: 1.8; }
 .meeting .meta { gap: 10px; }
 .meeting .type { display: none; }
 .enter { padding: 9px 13px; }
 .modal { padding: 24px; }
 .modal .twocol { grid-template-columns: 1fr; gap: 0; }

 .roomhead-bar { padding: 0 12px; grid-template-columns: 56px 1fr 56px; height: 44px; }
 .roomhead-lang { width: min(332px, calc(100% - 28px)); }
 .langbar { height: 40px; gap: 8px; }
 .lang-side { height: 36px; padding: 0 12px; }
 .lang-name { font-size: 14px; }
 .transcript { padding: 42px 16px 8px; }
 .asr-draft { padding: 14px 16px; }
 .bubble.translated { font-size: 18px; }
 .bubble.original { font-size: 14px; }
 .entry.is-playing::before { left: -10px; }
 .settings-backdrop { padding: 0; }
 .settings-sheet { border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
 }
}

/* 精准房间的识别过程按需展开。 */
.precision-details{margin-top:12px;color:var(--muted,#8c8e9d);font-size:12px;line-height:1.7}.precision-details summary{cursor:pointer}.precision-details>div{padding:8px 0;border-bottom:1px solid #ffffff12}.precision-details p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0;color:inherit}
