*, *::before, *::after { box-sizing: border-box; }

* { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus, .mode-btn:focus, [role="button"]:focus { outline: none; }

:root {
  --ink:    #f2f4f8;
  --dim:    rgba(242, 244, 248, .46);
  --faint:  rgba(242, 244, 248, .22);
  --accent: #6ea8ff;
  --blue:   #2e6cff;
  --blue-2: #3b7bff;
  --green:  #a5f5c4;
  --red:    #ff8e9e;
  --ease:   cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);

  /* 液态玻璃令牌（对标 Liquid Glass 组件库：通透基底 / 边缘高光 / 深邃投影） */
  --lg-body:   linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(196,216,255,.03) 46%, rgba(255,255,255,.05) 100%);
  --lg-border: rgba(255, 255, 255, .12);
  --lg-gloss:  inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 10px 20px -12px rgba(255, 255, 255, .14);
  --lg-rim:    inset 1px 0 0 rgba(150, 190, 255, .07), inset -1px 0 0 rgba(180, 150, 255, .07);
  --lg-depth:  inset 0 -1px 0 rgba(255, 255, 255, .03);
  --lg-shadow: 0 42px 84px -42px rgba(0, 0, 0, .96);
  --lg-scrim:  rgba(10, 14, 26, .28);
  --lg-blur:   blur(34px) saturate(170%);
  --lg-glow:   0 14px 30px -12px rgba(46, 108, 255, .65);
  --lg-sheen:  linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.025) 34%, transparent 52%);
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: #fff url('https://t.alcy.cc/ycy') center / cover fixed no-repeat;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 环境光 */
.ambient {
  position: fixed;
  inset: -25%;
  z-index: 0;
pointer-events: none;
  background:
    radial-gradient(48% 38% at 50% -6%, rgba(46, 108, 255, .22), transparent 68%),
    radial-gradient(36% 30% at 50% 108%, rgba(120, 90, 220, .14), transparent 70%),
    radial-gradient(30% 26% at 88% 30%, rgba(60, 160, 235, .10), transparent 72%);
  filter: blur(30px);
  animation: breathe 16s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .78; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* 通用液态玻璃 */
.glass {
  background: var(--lg-body);
  background-color: var(--lg-scrim);
  backdrop-filter: var(--lg-blur);
  -webkit-backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-border);
  box-shadow:
    var(--lg-gloss),
    var(--lg-rim),
    var(--lg-depth),
    var(--lg-shadow);
}

/* ============================================================
   认证层
============================================================ */
.auth {
position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  transition: opacity .62s var(--ease), visibility .62s;
}
.auth.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  position: relative;
  margin: auto;
  width: min(420px, 100%);
  padding: 44px 36px 34px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .08) 0%,
    rgba(196, 216, 255, .028) 46%,
    rgba(255, 255, 255, .05) 100%);
  background-color: rgba(12, 16, 28, .30);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 30px 70px -32px rgba(0, 0, 0, .7);
  transition: transform .62s var(--ease), filter .62s var(--ease);
  animation: rise .95s var(--ease) both;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  pointer-events: none;
}
.auth.hide .auth-card {
  transform: scale(.955) translateY(-14px);
  filter: blur(10px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(12px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.auth-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 17px;
  background:
    radial-gradient(120% 120% at 30% 20%,
      rgba(255, 255, 255, .96),
      rgba(150, 200, 255, .55) 46%,
      rgba(70, 130, 240, .32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 14px 32px -14px rgba(70, 140, 255, .95);
  animation: logoPop .9s .12s var(--spring) both;
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(.5) rotate(-18deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.auth-title {
  margin: 20px 0 0;
  text-align: center;
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -.4px;
  animation: fade .8s .18s var(--ease) both;
}
.auth-sub {
  margin: 9px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: .1px;
  animation: fade .8s .24s var(--ease) both;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tabs {
position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  margin-top: 26px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  animation: fade .8s .3s var(--ease) both;
}
.tab {
  position: relative;
  z-index: 1;
  height: 40px;
  border: 0;
  background: none;
  border-radius: 10px;
  color: var(--dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .3px;
  cursor: pointer;
  transition: color .4s var(--ease);
}
.tab.active { color: #fff; }
.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(75, 133, 255, .34), rgba(46, 108, 255, .26));
  border: 1px solid rgba(150, 195, 255, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 6px 18px -8px rgba(20, 60, 150, .8),
    0 0 14px -4px rgba(75, 133, 255, .4);
  transition: transform .55s var(--spring);
}
.tabs[data-mode="register"] .tab-indicator { transform: translateX(100%); }

.auth-form {
  margin-top: 22px;
  animation: fade .8s .36s var(--ease) both;
}

.field-wrap {
  position: relative;
display: flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 16px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition:
    background .45s var(--ease),
    border-color .45s var(--ease),
    box-shadow .45s var(--ease);
}
.field-wrap:focus-within {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(110, 168, 255, .35);
  box-shadow: 0 0 0 4px rgba(46, 108, 255, .12);
}
.field-wrap.invalid {
  border-color: rgba(255, 142, 158, .42);
  box-shadow: 0 0 0 4px rgba(255, 142, 158, .07);
}

.field-wrap .ic {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: rgba(200, 222, 255, .4);
  transition: color .4s var(--ease);
}
.field-wrap:focus-within .ic { color: rgba(207, 226, 255, .82); }
.field-wrap .ic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-wrap input {
flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: .1px;
}
.field-wrap input::placeholder {
  color: var(--faint);
  transition: opacity .4s var(--ease);
}
.field-wrap input:focus::placeholder { opacity: .6; }

.mail-ok {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(165, 245, 196, .16);
  box-shadow: inset 0 0 0 1px rgba(165, 245, 196, .38);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.mail-ok::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg) translate(.5px, -1px);
}
.mail-ok.show { opacity: 1; transform: scale(1); }

.eye {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(200, 222, 255, .38);
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.eye:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.eye svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eye .off { display: none; }
.eye.on .on { display: none; }
.eye.on .off { display: block; }

.confirm-slot {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition:
    max-height .5s var(--ease),
    opacity .38s var(--ease),
    margin .5s var(--ease);
}
.confirm-slot.open {
  max-height: 70px;
  opacity: 1;
  margin-bottom: 12px;
}

/* 验证码输入行：获取验证码按钮 */
.code-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: rgba(200, 224, 255, .12);
  color: rgba(207, 226, 255, .9);
  font-family: inherit;
font-size: 12.5px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.code-btn:hover { background: rgba(200, 224, 255, .2); }
.code-btn:disabled { color: rgba(200, 222, 255, .35); cursor: not-allowed; }

/* 代码托管模式入口（对接后端 /s/api/host-code） */

.auth-error {
  min-height: 18px;
  margin: 2px 2px 10px;
  font-size: 12.5px;
  letter-spacing: .1px;
  color: var(--red);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.auth-error.show { opacity: 1; transform: translateY(0); }

.auth-submit {
  position: relative;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #3b7bff, #2e6cff);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: .6px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    var(--lg-glow),
    0 8px 20px -10px rgba(0, 0, 0, .6);
  transition:
    background .35s var(--ease),
transform .45s var(--spring),
    box-shadow .35s var(--ease);
}
.auth-submit:hover {
  background: linear-gradient(160deg, #4d88ff, #3370ff);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    0 18px 34px -12px rgba(46, 108, 255, .75),
    0 10px 24px -12px rgba(0, 0, 0, .7);
}
.auth-submit:active { transform: translateY(0) scale(.98); }
.auth-submit .txt {
  display: inline-block;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.auth-submit.loading { pointer-events: none; }
.auth-submit.loading .txt { opacity: 0; transform: translateY(-8px); }

.auth-submit .spin {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s var(--ease), transform .4s var(--spring);
}
.auth-submit.loading .spin {
  opacity: 1;
  transform: scale(1);
  animation: spin .68s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .2px;
  line-height: 1.7;
  color: var(--faint);
  animation: fade .8s .42s var(--ease) both;
}
.auth-hint b {
  color: rgba(207, 226, 255, .6);
  font-weight: 560;
}

.shake { animation: shake .52s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  12%, 88% { transform: translateX(-3px); }
  24%, 76% { transform: translateX(5px); }
  36%, 62% { transform: translateX(-7px); }
  48%      { transform: translateX(7px); }
}

/* ============================================================
   主应用
============================================================ */
.app {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .62s var(--ease), visibility .62s;
}
.app.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
padding: 92px 20px 100px;
}
.app-inner > .card { margin-top: auto; margin-bottom: auto; }

/* 公告横幅（液态玻璃） */
.announce-banner { width: 100%; max-width: 560px; margin-bottom: 14px; }
.announce-inner {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 18px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.announce-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto;
  background: linear-gradient(135deg, #7db4ff, #b78bff); box-shadow: 0 0 10px rgba(125,180,255,.8);
}
.announce-text { flex: 1 1 auto; min-width: 0; }
.announce-title { font-size: 13px; font-weight: 600; color: #eaf2ff; margin-bottom: 3px; }
.announce-content { font-size: 12px; color: var(--dim); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.announce-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--dim); font-size: 15px;
}
.announce-close:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.msg-report {
  margin-left: 8px; font-size: 10px; cursor: pointer;
  color: #9db8e6; background: none; border: 1px solid rgba(157,184,230,.3); border-radius: 7px; padding: 1px 7px;
}
.msg-report:hover { color: #fff; border-color: rgba(157,184,230,.6); }

/* 底部液态玻璃导航 */
.bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 26px;
  touch-action: none;
  background-image: var(--lg-sheen), var(--lg-body);
  background-color: var(--lg-scrim);
  backdrop-filter: var(--lg-blur);
  -webkit-backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-border);
  transition:
    opacity .38s var(--ease),
    transform .5s var(--spring),
    box-shadow .4s var(--ease);
  box-shadow:
    var(--lg-gloss),
    var(--lg-rim),
    var(--lg-depth),
    var(--lg-shadow);
}

/* 抽屉打开时：底部导航淡出隐藏、不可点 */
body.drawer-open .bottom-nav {
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
}
.bn-item {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px 7px;
  border: 0;
  background: transparent;
  color: rgba(220, 232, 255, .72);
  border-radius: 18px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.bn-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.bn-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bn-label {
  font-size: 11px;
  letter-spacing: .4px;
  line-height: 1;
}
.bn-item:hover { color: #fff; }
.bn-item.active { color: #fff; }
.bn-item:active { transform: scale(.94); }

/* 底部导航滑动高亮胶囊 */
.bn-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 108, 255, .28), rgba(46, 108, 255, .16));
  border: 1px solid rgba(150, 195, 255, .26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 8px 18px -10px rgba(46, 108, 255, .7);
  transition: left .5s var(--spring), width .5s var(--spring);
  z-index: 0;
}

/* 拖拽过程中胶囊跟手，关闭弹跳过渡 */
.bottom-nav.dragging .bn-indicator {
  transition: none;
}

/* 汉堡 */
.menu-btn {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px -14px rgba(0, 0, 0, .7);
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .4s var(--spring);
}
.menu-btn:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
}
.menu-btn:active { transform: scale(.93); }

.menu-btn .ln {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: top .45s var(--ease), transform .45s var(--ease), opacity .28s var(--ease);
}
.l1 { top: 16px; }
.l2 { top: 22px; }
.l3 { top: 28px; }
.menu-btn.loading .ln { opacity: 0; }
.menu-btn .ring2 {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, .16);
  border-top-color: var(--ink);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s var(--ease), transform .4s var(--spring);
}
.menu-btn.loading .ring2 {
  opacity: 1; transform: scale(1);
  animation: spin .65s linear infinite;
}

.menu-btn.open .l1 { top: 22px; transform: rotate(45deg); }
.menu-btn.open .l2 { opacity: 0; }
.menu-btn.open .l3 { top: 22px; transform: rotate(-45deg); }

/* 用户胶囊 */
.user-pill {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 16px 0 6px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px -14px rgba(0, 0, 0, .7);
cursor: default;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.user-pill:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .17);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
  color: #0a0c12;
  background: linear-gradient(135deg, #e9f1ff, #b9d4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  text-transform: uppercase;
}
.user-pill .mail {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .1px;
  color: rgba(238, 245, 255, .66);
}

/* 遮罩 */
.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 6, 12, .52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease);
}
.mask.show { opacity: 1; pointer-events: auto; }

/* 抽屉 */
.drawer {
position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 55;
  width: clamp(290px, 44vw, 400px);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  transform: translateX(-103%);
  transition: transform .72s var(--ease);
  background:
    linear-gradient(165deg,
      rgba(178, 210, 255, .16) 0%,
      rgba(128, 168, 230, .10) 52%,
      rgba(64, 104, 192, .15) 100%);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  border-right: 1px solid rgba(180, 212, 255, .24);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, .08),
    36px 0 90px -50px rgba(0, 0, 0, .7);
  will-change: transform;
}
.drawer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), transparent);
  pointer-events: none;
}
.drawer::after {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 222, 255, .55), transparent);
}
.drawer.show { transform: translateX(0); }

.d-head, .d-item, .d-storage, .d-foot {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.drawer.show .d-head { opacity: 1; transform: translateX(0); transition-delay: .16s; }
.drawer.show .d-item:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: .23s; }
.drawer.show .d-item:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: .3s; }
.drawer.show .d-item:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: .37s; }
.drawer.show .d-item:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: .44s; }
.drawer.show .d-item:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: .5s; }
.drawer.show .d-item:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: .57s; }
.drawer.show .d-storage { opacity: 1; transform: translateX(0); transition-delay: .63s; }
.drawer.show .d-foot { opacity: 1; transform: translateX(0); transition-delay: .69s; }

.d-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(190, 220, 255, .14);
}
.d-logo {
  width: 42px; height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
  background:
    radial-gradient(120% 120% at 30% 20%,
      rgba(255, 255, 255, .95),
      rgba(150, 200, 255, .55) 45%,
      rgba(70, 130, 240, .35) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 8px 22px -10px rgba(70, 140, 255, .9);
}
.d-name { font-size: 16px; font-weight: 620; letter-spacing: -.1px; color: #fff; }
.d-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .2px;
  color: rgba(205, 228, 255, .55);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-nav { display: grid; gap: 6px; overflow-y: auto; min-height: 0; }

.d-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(238, 245, 255, .72);
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: .2px;
  text-align: left;
  cursor: pointer;
transition: background .3s var(--ease), color .3s var(--ease);
}
.d-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.d-item.danger:hover { background: rgba(255, 120, 140, .16); color: #ffd6dd; }

.d-ic {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: rgba(220, 238, 255, .9);
  transition: background .3s var(--ease);
}
.d-item:hover .d-ic { background: rgba(255, 255, 255, .15); }
.d-ic svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 我的文件面板 */
.files-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 72px 0 90px;
  background: transparent;
}
.files-modal.show { display: flex; }
.files-card {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .08) 0%,
    rgba(196, 216, 255, .03) 50%,
    rgba(255, 255, 255, .05) 100%);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(190, 220, 255, .14);
}
.files-head .t { font-size: 16px; font-weight: 640; color: #fff; }
.files-head .s { margin-top: 3px; font-size: 11.5px; color: rgba(205, 228, 255, .6); }
.files-close {
  border: 0; background: rgba(255,255,255,.1); color: #dceaff;
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 15px;
}
.files-close:hover { background: rgba(255,255,255,.2); }
.files-list { overflow-y: auto; padding: 12px 14px; display: grid; gap: 8px; }
.files-empty { padding: 34px 0; text-align: center; color: rgba(205,228,255,.55); font-size: 13px; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 13px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13.5px; color: #eef5ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin-top: 3px; font-size: 11px; color: rgba(205,228,255,.55); }
.file-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.file-btn {
  border: 0; border-radius: 9px; padding: 7px 11px;
  font-size: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,.12); color: #eaf3ff;
}
.file-btn:hover { background: rgba(255,255,255,.22); }
.file-btn.del { background: rgba(255,110,130,.18); color: #ffd6dd; }
.file-btn.del:hover { background: rgba(255,110,130,.32); }
.file-btn.del.arm { background: rgba(255,80,100,.85); color: #fff; }
.files-foot {
  padding: 12px 20px; font-size: 11.5px; color: rgba(205,228,255,.6);
  border-top: 1px solid rgba(190,220,255,.14);
display: flex; justify-content: space-between; align-items: center;
}

/* ---------- 聊天频道 ---------- */
.channel-modal {
  position: fixed; inset: 0; z-index: 30; display: none;
  padding: 72px 0 90px;
  background: transparent;
}
.channel-modal.show { display: flex; }
.channel-card {
  position: relative;
  width: 100%; height: 100%; max-width: none; max-height: none;
  display: flex; flex-direction: column;
  border-radius: 0; overflow: hidden;
  background: linear-gradient(180deg,
    rgba(255,255,255,.075) 0%,
    rgba(196,216,255,.028) 46%,
    rgba(255,255,255,.05) 100%);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  border: 0;
  box-shadow: none;
  animation: channelPop .55s var(--spring) both;
}
.channel-card::before {
  content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  pointer-events: none;
}
@keyframes channelPop {
  from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.channel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 15px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.channel-head .t { font-size: 17px; font-weight: 640; letter-spacing: -.2px; color: #fff; }
.channel-head .s { margin-top: 3px; font-size: 11.5px; color: var(--dim); }
.channel-head-acts { display: flex; align-items: center; gap: 9px; }
.channel-members {
  font-size: 11.5px; color: var(--dim);
  padding: 6px 11px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
}
.channel-leave {
  border: 1px solid rgba(255,110,130,.28); border-radius: 10px; padding: 7px 12px;
font-size: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255,110,130,.14); color: #ffd6dd;
  transition: background .3s var(--ease), transform .4s var(--spring), box-shadow .3s var(--ease);
}
.channel-leave:hover { background: rgba(255,110,130,.26); box-shadow: 0 8px 18px -10px rgba(255,90,110,.6); transform: translateY(-1px); }
.channel-leave:active { transform: scale(.95); }
.channel-leave.arm { background: rgba(255,80,100,.85); color: #fff; border-color: transparent; }

.channel-body {
  flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 14px; align-content: start;
}
.channel-empty { padding: 36px 0; text-align: center; color: var(--dim); font-size: 13px; }
.msg { display: flex; flex-direction: column; max-width: 78%; animation: msgIn .42s var(--ease) both; }
.msg.mine { justify-self: end; align-items: flex-end; }
.msg.other { justify-self: start; align-items: flex-start; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
to   { opacity: 1; transform: none; }
}
.msg-meta { font-size: 11px; color: var(--dim); margin-bottom: 5px; }
.msg-bubble {
  padding: 10px 13px; border-radius: 16px 16px 16px 6px;
  font-size: 13.5px; line-height: 1.55; color: #eef5ff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 22px -14px rgba(0,0,0,.75);
  word-break: break-word; white-space: pre-wrap;
  transition: transform .4s var(--spring), box-shadow .3s var(--ease);
}
.msg-bubble:hover { transform: translateY(-1px); }
.msg.mine .msg-bubble {
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, rgba(79,142,247,.88), rgba(59,111,224,.92));
  border-color: rgba(160,200,255,.3);
  box-shadow: 0 12px 26px -14px rgba(40,90,200,.8);
}
/* @ 提及高亮 */
.msg .mention {
  display: inline-block; padding: 0 5px; border-radius: 6px;
  color: #9ec6ff; background: rgba(80,140,255,.16);
  font-weight: 600; white-space: nowrap;
}
.msg .mention-all { color: #ffd98a; background: rgba(255,176,60,.18); }
.msg.mentioned .msg-bubble {
  border-color: rgba(120,175,255,.4);
  box-shadow: 0 0 0 3px rgba(46,108,255,.12), 0 12px 26px -14px rgba(40,90,200,.8);
}
/* @ 选择浮层 */
.mention-pop {
  position: absolute; left: 16px; right: 16px; bottom: 84px;
  max-height: 220px; overflow-y: auto; z-index: 30;
  border-radius: 16px; padding: 6px;
  background: rgba(20,28,46,.92); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 44px -18px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mention-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.mention-item {
  padding: 10px 12px; border-radius: 11px; font-size: 13.5px; color: #eaf2ff;
  cursor: pointer; transition: background .2s var(--ease);
}
.mention-item:hover { background: rgba(80,140,255,.16); }
.mention-item.mention-all { color: #ffd98a; font-weight: 600; }
.channel-quit { padding: 28px 22px; display: grid; gap: 14px; justify-items: center; }
.channel-quit-tip { font-size: 13px; color: var(--dim); text-align: center; line-height: 1.6; }
.channel-join-btn {
  border: 0; border-radius: 13px; padding: 11px 22px; font-size: 13.5px; cursor: pointer;
font-family: inherit; color: #fff;
  background: linear-gradient(135deg, #3b7bff, #2e6cff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--lg-glow);
  transition: transform .4s var(--spring), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.channel-join-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 30px -12px rgba(40,90,200,.9); }
.channel-join-btn:active { transform: scale(.95); }

.channel-foot {
  display: flex; gap: 10px; padding: 13px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.channel-input {
  flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.055);
  border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--ink);
  font-family: inherit; outline: none;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.channel-input:focus {
background: rgba(255,255,255,.07); border-color: rgba(110,168,255,.32);
  box-shadow: 0 0 0 4px rgba(46,108,255,.10);
}
.channel-input::placeholder { color: var(--faint); }
.channel-send {
  flex: 0 0 auto; border: 0; border-radius: 14px; padding: 0 20px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  background: linear-gradient(160deg, #3b7bff, #2e6cff);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--lg-glow), 0 8px 20px -10px rgba(0,0,0,.6);
  transition: transform .45s var(--spring), background .3s var(--ease), box-shadow .35s var(--ease);
}
.channel-send:hover { background: linear-gradient(160deg, #4d88ff, #3370ff); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 16px 30px -12px rgba(46,108,255,.7), 0 10px 22px -12px rgba(0,0,0,.7); }
.channel-send:active { transform: scale(.94); }
.edit-badge {
  display: none;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(255, 200, 90, .2);
  color: #ffe2a8;
  border: 1px solid rgba(255, 200, 90, .35);
}
.edit-badge.show { display: inline-block; }
/* 通用提示气泡 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 80;
  transform: translate(-50%, 16px);
  max-width: min(86vw, 420px);
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(59, 111, 224, .92), rgba(30, 72, 170, .94));
  border: 1px solid rgba(160, 200, 255, .28);
  box-shadow: 0 14px 40px -14px rgba(0, 10, 40, .8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #eaf3ff;
  font-size: 13.5px;
  letter-spacing: .3px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 存储指示器 */
.d-storage {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 15px;
}
.d-storage-ring {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}
.d-storage-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 4;
}
.ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 138; /* 2 * pi * 22 */
  stroke-dashoffset: 138;
  transition: stroke-dashoffset .7s var(--ease);
}
.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.d-storage-info {
  flex: 1;
  min-width: 0;
}
.d-storage-info .title {
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: .2px;
  color: rgba(238, 245, 255, .8);
}
.d-storage-info .sub {
  margin-top: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  color: rgba(200, 222, 255, .45);
  letter-spacing: .2px;
}
.d-storage.warn .ring-fill { stroke: #ffb340; }
.d-storage.warn .d-storage-info .title { color: #ffb340; }
.d-storage.full .ring-fill { stroke: var(--red); }
.d-storage.full .d-storage-info .title { color: var(--red); }

.d-foot {
  padding-top: 22px;
  font-size: 11.5px;
  letter-spacing: .4px;
  color: rgba(200, 222, 255, .34);
}

/* ============================================================
   主卡片
============================================================ */
.card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 46px 38px 34px;
  border-radius: 34px;
  opacity: 0;
}
.app.show .card { animation: rise .9s var(--ease) both; }

/* 进入应用时：顶部按钮 / 账号胶囊 / 底部导航依次登场 */
.app.show ~ .menu-btn   { animation: rise .8s .10s var(--ease) backwards; }
.app.show ~ .user-pill  { animation: rise .8s .16s var(--ease) backwards; }
.app.show ~ .bottom-nav { animation: rise .8s .24s var(--ease) backwards; }

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  pointer-events: none;
}

header { text-align: center; }

h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -.5px;
  line-height: 1.25;
}
header p {
  margin: 11px 0 0;
  font-size: 13.5px;
  letter-spacing: .1px;
  line-height: 1.5;
color: var(--dim);
}

/* 模式切换 */
.mode-switch {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  animation: fade .8s .24s var(--ease) both;
}
.mode-box {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.mode-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 34px;
  padding: 0 8px;
  border: 0;
  background: none;
  border-radius: 10px;
  color: var(--dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 540;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .4s var(--ease);
}
.mode-btn.active { color: #fff; }
.mode-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(75, 133, 255, .34), rgba(46, 108, 255, .26));
  border: 1px solid rgba(150, 195, 255, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 6px 18px -8px rgba(20, 60, 150, .8),
    0 0 14px -4px rgba(75, 133, 255, .4);
  transition: transform .5s var(--spring);
}
.mode-box[data-mode="code"] .mode-indicator { transform: translateX(100%); }
.mode-box[data-mode="image"] .mode-indicator { transform: translateX(200%); }

/* 输入区域 */
.input-area {
  margin-top: 20px;
  animation: fade .8s .3s var(--ease) both;
  transition: height .4s var(--ease);
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 22px;
  height: 66px;
  border-radius: 21px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition:
    background .5s var(--ease),
    border-color .5s var(--ease),
    box-shadow .5s var(--ease);
}
.bar:focus-within {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(110, 168, 255, .30);
  box-shadow: 0 0 0 4px rgba(46, 108, 255, .10);
}

/* 拖拽悬停：蓝色辉光 + 虚线边 + 松开提示遮罩 */
.bar.dragover {
  border-color: rgba(110, 168, 255, .55);
  border-style: dashed;
  background: rgba(46, 108, 255, .10);
  box-shadow:
    0 0 0 4px rgba(46, 108, 255, .14),
    0 18px 36px -16px rgba(46, 108, 255, .5);
  transform: translateY(-2px);
}
.bar.dragover::after {
  content: "松开鼠标，载入文件";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(6, 10, 20, .32);
  color: #eaf2ff;
  font-size: 14px;
  letter-spacing: .5px;
  pointer-events: none;
  z-index: 2;
}

/* 代码模式下的 bar 变形 */
.bar.code-mode {
  height: auto;
  min-height: 220px;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  border-radius: 20px;
}
/* 拖拽状态 */
.bar.code-mode.dragover {
  border-color: rgba(110, 168, 255, .5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(46, 108, 255, .12);
}

/* 代码工具栏 */
.code-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-bottom: 10px;
  width: 100%;
}
.bar.code-mode .code-toolbar {
  display: flex;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 540;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.upload-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.upload-btn:active {
  transform: scale(0.96);
}
.upload-btn svg {
  width: 14px;
  height: 14px;
}
.file-name {
  font-size: 12px;
  color: var(--dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 输入框（URL 模式） */
.url-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
outline: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .1px;
}
.url-input::placeholder { color: var(--faint); transition: opacity .4s var(--ease); }
.url-input:focus::placeholder { opacity: .65; }

/* 代码框（Code 模式） */
.code-input {
  display: none;
  flex: 1;
  width: 100%;
  min-height: 180px;
  padding: 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  outline: 0;
  resize: vertical;
  color: #dfeaff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .1px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.code-input:focus {
  border-color: rgba(110, 168, 255, .3);
  box-shadow: 0 0 0 3px rgba(46, 108, 255, .10);
}
.code-input::placeholder { color: rgba(242, 244, 248, .2); }

.bar.code-mode .url-input { display: none; }
.bar.code-mode .code-input { display: block; }

/* ---------- 图片模式 ---------- */
.bar.image-mode {
  height: auto; min-height: 180px; flex-direction: column;
  align-items: stretch; padding: 16px; border-radius: 20px;
}
.bar.image-mode .url-input, .bar.image-mode .code-input, .bar.image-mode .code-toolbar { display: none; }
.bar.image-mode.dragover { border-color: rgba(110,168,255,.5); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(46,108,255,.12); }
.image-picker { display: none; flex-direction: column; gap: 12px; }
.bar.image-mode .image-picker { display: flex; }
.image-hint { font-size: 12px; color: var(--dim); }
.image-preview {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 14px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06);
}
.image-preview img {
  max-width: 100%; max-height: 220px; object-fit: contain;
  border-radius: 10px; align-self: center;
}
.image-preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); }
.image-preview-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-clear {
  flex: 0 0 auto; border: 0; border-radius: 8px; padding: 5px 10px;
  font-size: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255,110,130,.16); color: #ffd6dd;
  transition: background .3s var(--ease), transform .4s var(--spring);
}
.image-clear:hover { background: rgba(255,110,130,.3); }
.image-clear:active { transform: scale(.95); }
.bar.image-mode .go { width: 100%; height: 46px; margin-top: 12px; border-radius: 12px; }

/* 提交按钮 */
.go {
  position: relative;
  flex: 0 0 auto;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: stretch;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(160deg, #3b7bff, #2e6cff);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    var(--lg-glow),
    0 8px 20px -10px rgba(0, 0, 0, .6);
  transition:
    transform .45s var(--spring),
    background .3s var(--ease),
    box-shadow .35s var(--ease);
}
.go-label { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.go-seg {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.go-seg:hover { background: rgba(255, 255, 255, .14); }
.go-divider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 12px 0;
  background: rgba(255, 255, 255, .18);
}
.go-seg.copy.disabled { color: rgba(255, 255, 255, .42); cursor: default; }
.go-seg.copy.disabled:hover { background: transparent; }
.go-seg.copy.done { color: #8ff0b6; }
.go:hover {
  background: linear-gradient(160deg, #4d88ff, #3370ff);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    0 16px 30px -12px rgba(46, 108, 255, .7),
    0 10px 22px -12px rgba(0, 0, 0, .7);
}
.go:active { transform: translateY(0) scale(.94); }

/* 链接模式：拆分按钮固定宽度，避免两段被挤压、文字竖排 */
.bar:not(.code-mode):not(.image-mode) .go { min-width: 164px; }

.bar.code-mode .go,
.bar.image-mode .go {
  width: 100%;
  height: 46px;
margin-top: 12px;
  border-radius: 12px;
}

.arrow, .copy-ic {
  width: 19px; height: 19px;
  transition: opacity .3s var(--ease), transform .5s var(--spring);
}
.arrow path, .copy-ic rect, .copy-ic path {
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 21px; height: 21px;
  border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
}
.go.loading .arrow,
.go.loading .copy-ic { opacity: 0; transform: scale(.4) translateX(6px); }
.go.loading .ring  { opacity: 1; transform: scale(1); animation: spin .68s linear infinite; }

.bar.shake { animation: shake .52s cubic-bezier(.36, .07, .19, .97) both; }

/* 进度 */
.loading {
  display: none;
  margin-top: 26px;
  padding: 0 4px;
}
.loading.show { display: block; animation: fade .55s var(--ease) both; }

.line {
  height: 2px;
border-radius: 2px;
  background: rgba(255, 255, 255, .075);
  overflow: hidden;
}
.line i {
  display: block;
  height: 100%; width: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(207, 226, 255, .7);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 13px;
  font-size: 12.5px;
  letter-spacing: .2px;
  color: var(--dim);
}
.meta .num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: rgba(207, 226, 255, .72);
}

/* 结果 */
.result {
  display: none;
  margin-top: 22px;
  padding: 20px 20px 19px;
  border-radius: 21px;
  background: rgba(255, 255, 255, .032);
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 20px 44px -30px rgba(0, 0, 0, .9);
}
.result.show { display: block; animation: pop .68s var(--ease) both; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-10px) scale(.975); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: rgba(207, 226, 255, .55);
}
.tag .mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(160, 240, 190, .16);
  box-shadow: inset 0 0 0 1px rgba(160, 240, 190, .4);
}
.tag .mark::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg) translate(.5px, -1px);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 15px;
  font-weight: 520;
  letter-spacing: .2px;
  color: #dfeaff;
  text-decoration: none;
  transition: color .35s var(--ease);
}
.link:hover { color: #fff; }
.link.preview { cursor: pointer; }
.link.preview::after {
  content: " ↗";
  font-size: 12px;
  color: var(--dim);
  transition: color .3s;
}
.link.preview:hover::after { color: var(--accent); }

.copy {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: .2px;
  cursor: pointer;
  overflow: hidden;
  transition:
    background .35s var(--ease),
    border-color .35s var(--ease),
    transform .4s var(--spring),
    color .3s var(--ease);
}
.copy:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
transform: translateY(-1px);
}
.copy:active { transform: translateY(0) scale(.95); }
.copy.done {
  color: var(--green);
  border-color: rgba(165, 245, 196, .28);
  background: rgba(165, 245, 196, .09);
}

.icons {
  position: relative;
  width: 14px; height: 14px;
  flex: 0 0 auto;
}
.icons svg {
  position: absolute;
  inset: 0;
  width: 14px; height: 14px;
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.icons svg path, .icons svg rect {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.i-check { opacity: 0; transform: scale(.5) rotate(-30deg); }
.copy.done .i-copy  { opacity: 0; transform: scale(.5) rotate(30deg); }
.copy.done .i-check { opacity: 1; transform: scale(1) rotate(0); }

.ripple {
  position: absolute;
  left: var(--rx, 50%);
  top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(165, 245, 196, .45);
  transform: scale(0);
  animation: ripple .68s var(--ease) forwards;
pointer-events: none;
}
@keyframes ripple { to { transform: scale(22); opacity: 0; } }

.origin {
  margin-top: 13px;
  font-size: 11.5px;
  letter-spacing: .1px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 历史 */
.history {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.history-title {
  font-size: 11.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 560;
  color: var(--dim);
}
.history-clear {
  border: 0;
  background: none;
  padding: 4px 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: var(--faint);
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.history-clear:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }

.history-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 4px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.history-item:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
}
.history-item:first-child { animation: itemIn .5s var(--ease) both; }
@keyframes itemIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hi-main { flex: 1; min-width: 0; }
.hi-short {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
font-weight: 520;
  color: #dfeaff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hi-short .type-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  background: rgba(207, 226, 255, .15);
  color: var(--accent);
  vertical-align: middle;
  margin-right: 5px;
  font-family: -apple-system, sans-serif;
}
.hi-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .1px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hi-copy {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--dim);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.hi-copy:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .18);
}
.hi-copy.done {
  color: var(--green);
border-color: rgba(165, 245, 196, .3);
  background: rgba(165, 245, 196, .1);
}

.history-empty {
  display: none;
  margin: 0;
  padding: 20px 0 6px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .2px;
  color: var(--faint);
}

/* 响应式 */
@media (max-width: 520px) {
  .auth { padding: 18px; }
  .auth-card { padding: 34px 24px 28px; border-radius: 28px; }

  .app-inner { padding: 80px 16px 92px; }
  .drawer { width: 82vw; padding: 26px 22px 22px; }
  .card { padding: 38px 24px 30px; border-radius: 28px; }
  h1 { font-size: 23px; }
  header p { font-size: 12.5px; }
  
  .bar { height: 60px; padding-left: 18px; border-radius: 18px; }
  .bar.code-mode { min-height: 200px; }
  .url-input { font-size: 14px; }
  .bar:not(.code-mode):not(.image-mode) .go { width: auto; min-width: 160px; height: 46px; border-radius: 14px; }
  .bar.code-mode .go, .bar.image-mode .go { width: 100%; }
  
  .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .copy { justify-content: center; height: 40px; }
.history-list { max-height: 190px; }

  .user-pill { height: 42px; padding: 0 12px 0 5px; }
  .avatar { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
  .user-pill .mail { max-width: 96px; font-size: 12px; }
  .menu-btn { width: 42px; height: 42px; }
  .menu-btn .ln { left: 12px; right: 12px; }
  .l1 { top: 14px; } .l2 { top: 20px; } .l3 { top: 26px; }
  .menu-btn.open .l1, .menu-btn.open .l3 { top: 20px; }
  
  .d-storage { padding: 12px; gap: 10px; }
  .d-storage-ring { width: 44px; height: 44px; }

  .bottom-nav { padding: 6px; gap: 2px; border-radius: 22px; }
  .bn-item { padding: 7px 2px 6px; gap: 3px; }
  .bn-ic { width: 28px; height: 28px; }
  .bn-ic svg { width: 20px; height: 20px; }
  .bn-label { font-size: 10px; }
}

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

/* ============================================================
   交互增强层：微交互极致打磨 + 表面美化
   ============================================================ */

/* 可聚焦元素的清晰焦点环（不破坏原有轮廓清除） */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(207, 226, 255, .6);
  outline-offset: 2px;
}

/* 可按压元素预备合成层，避免动画抖动 */
.d-item, .file-btn, .files-close, .channel-leave, .image-clear,
.history-clear, .code-btn, .eye, .upload-btn, .channel-send,
.channel-join-btn, .menu-btn, .user-pill, .mode-btn, .tab {
  will-change: transform;
}

/* ---------- 主按钮：扫光 + 上浮柔光 ---------- */
.auth-submit,
.go,
.channel-send,
.channel-join-btn {
  position: relative;
  isolation: isolate;
}
.auth-submit::after,
.go::after,
.channel-send::after,
.channel-join-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -90%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.auth-submit:hover::after,
.go:hover::after,
.channel-send:hover::after,
.channel-join-btn:hover::after {
  left: 135%;
}
.auth-submit:hover,
.go:hover,
.channel-send:hover,
.channel-join-btn:hover {
  filter: brightness(1.04);
}

/* ---------- 次级 / 幽灵按钮：悬停上浮，按压回弹 ---------- */
.d-item,
.file-btn,
.files-close,
.channel-leave,
.image-clear,
.history-clear,
.code-btn,
.upload-btn {
  transition: background .3s var(--ease), color .3s var(--ease),
    border-color .3s var(--ease), transform .35s var(--spring),
    box-shadow .3s var(--ease);
}
.d-item:hover,
.file-btn:hover,
.files-close:hover,
.channel-leave:hover,
.image-clear:hover,
.history-clear:hover,
.code-btn:hover,
.upload-btn:hover {
  transform: translateY(-1px);
}
.d-item:active,
.file-btn:active,
.files-close:active,
.channel-leave:active,
.image-clear:active,
.history-clear:active,
.code-btn:active,
.upload-btn:active {
  transform: scale(.95);
}

/* 幽灵按钮内图标轻微前移 */
.d-ic,
.upload-btn svg,
.file-btn svg {
  transition: transform .35s var(--spring), background .3s var(--ease), color .3s var(--ease);
}
.d-item:hover .d-ic,
.upload-btn:hover svg {
  transform: translateX(2px);
}

/* ---------- 顶部分段切换（登录/注册、三种模式） ---------- */
.tab,
.mode-btn {
  transition: color .35s var(--ease), transform .35s var(--spring);
}
.tab:hover:not(.active),
.mode-btn:hover:not(.active) {
  color: var(--ink);
}
.tab:active,
.mode-btn:active {
  transform: scale(.96);
}

/* ---------- 顶栏：汉堡 / 用户胶囊 ---------- */
.menu-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 12px 26px -10px rgba(90, 150, 255, .55);
}
.menu-btn:active { transform: scale(.92); }

.user-pill {
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--spring);
}
.user-pill:hover { transform: translateY(-1px); }
.avatar { transition: transform .4s var(--spring); }
.user-pill:hover .avatar { transform: rotate(-4deg) scale(1.05); }

/* ---------- 输入行：聚焦光晕过渡统一 ---------- */
.field-wrap, .bar, .channel-input, .code-input {
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}

/* ---------- 结果链接：下划线由左扫入 ---------- */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease), color .3s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- 历史记录项 ---------- */
.history-item {
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.history-item:hover { transform: translateY(-1px); }
.hi-copy:hover { transform: translateY(-1px); }
.hi-copy:active { transform: scale(.95); }

/* ---------- 表面美化：细滚动条 ---------- */
.history-list::-webkit-scrollbar,
.files-list::-webkit-scrollbar,
.channel-body::-webkit-scrollbar { width: 5px; }
.history-list::-webkit-scrollbar-thumb,
.files-list::-webkit-scrollbar-thumb,
.channel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 99px;
}
.history-list::-webkit-scrollbar-thumb:hover,
.files-list::-webkit-scrollbar-thumb:hover,
.channel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .28);
}

/* 禁用态统一不可点 */
button:disabled { cursor: not-allowed; }

/* ============================================================
   升级 v2：按压涟漪 / 指示器辉光 / 聚焦增强
   ============================================================ */

/* 可按压按钮留出定位与裁剪，供涟漪落点 */
.d-item, .file-btn, .files-close, .channel-leave, .image-clear,
.history-clear, .code-btn, .eye, .upload-btn, .channel-send,
.channel-join-btn, .hi-copy, .go-seg, .tab, .mode-btn {
  position: relative;
  overflow: hidden;
}

/* 涟漪：中性白光，深浅按钮都适配 */
.ripple { background: rgba(255, 255, 255, .30); }

/* 激活胶囊辉光 + 顶部高光 */
.tab-indicator,
.mode-indicator {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 6px 18px -8px rgba(20, 60, 150, .8),
    0 0 14px -4px rgba(75, 133, 255, .4);
}

/* 输入光标高亮 + 聚焦光晕 */
.field-wrap input, .url-input, .code-input, .channel-input {
  caret-color: var(--accent);
}
.field-wrap:focus-within,
.bar:focus-within,
.code-input:focus,
.channel-input:focus {
  box-shadow: 0 0 0 4px rgba(46, 108, 255, .10);
}

/* 分段按钮按下提亮 */
.go-seg:active { background: rgba(255, 255, 255, .35); }

/* ============================================================
   聊天频道 UI 质感升级
   ============================================================ */

/* 卡片柔光层次 */
.channel-card {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .075) 0%,
    rgba(196, 216, 255, .028) 48%,
    rgba(255, 255, 255, .05) 100%);
}

/* 成员数胶囊：悬停微亮 */
.channel-members {
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.channel-members:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .16);
}

/* 消息气泡：通用轻玻璃质感 */
.msg-bubble {
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 10px 22px -16px rgba(0, 0, 0, .8);
}
.msg-bubble:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 14px 26px -16px rgba(0, 0, 0, .85);
}

/* 自己的消息：蓝色渐变 + 顶部高光 + 底部内阴影 */
.msg.mine .msg-bubble {
  background: linear-gradient(135deg, rgba(75, 133, 255, .92), rgba(46, 108, 255, .95));
  border-color: rgba(170, 208, 255, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(20, 50, 120, .25),
    0 14px 28px -14px rgba(40, 90, 200, .85);
}

/* 昵称高亮，自己一侧时间偏亮 */
.msg-meta { letter-spacing: .2px; }
.msg.mine .msg-meta { color: rgba(190, 216, 255, .75); }

/* 输入框聚焦光晕加强 */
.channel-input:focus {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(110, 168, 255, .32);
  box-shadow: 0 0 0 4px rgba(46, 108, 255, .10);
}

/* 空状态：呼吸圆点 + 柔和排版 */
.channel-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .3px;
}
.channel-empty::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: emptyPulse 2.2s ease-in-out infinite;
}
@keyframes emptyPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.25); }
}

/* ============================================================
   液态玻璃反光增强：镜面光泽 / 边缘虹彩 / 菲涅尔轮廓
   ============================================================ */

/* 统一叠加斜向镜面光泽与通透基底 */
.glass,
.auth-card,
.channel-card,
.files-card,
.drawer,
.menu-btn,
.user-pill,
.mode-box,
.bar,
.field-wrap,
.history-item,
.file-row,
.msg-bubble {
  background-image: var(--lg-sheen), var(--lg-body);
}

/* 主面板：顶部高光 + 两侧虹彩亮边 + 深邃投影 */
.auth-card,
.card,
.channel-card,
.files-card,
.drawer {
  background-color: var(--lg-scrim);
  box-shadow:
    var(--lg-gloss),
    var(--lg-rim),
    var(--lg-depth),
    var(--lg-shadow);
}

/* 悬浮 / 聚焦时边缘高光微亮 */
.menu-btn:hover,
.user-pill:hover,
.mode-box:hover,
.bar:focus-within,
.field-wrap:focus-within,
.channel-input:focus {
  border-color: rgba(170, 205, 255, .22);
}

/* 全屏视图：频道 / 文件卡片不保留悬浮投影与描边 */
.channel-card,
.files-card {
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

/* 账号安全弹窗 */
.security-modal{position:fixed;inset:0;z-index:30;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(6,10,16,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.security-modal.show{display:flex}
.security-card{width:100%;max-width:380px;border-radius:20px;padding:22px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(196,216,255,.04));border:1px solid rgba(190,220,255,.16);backdrop-filter:blur(30px) saturate(160%);-webkit-backdrop-filter:blur(30px) saturate(160%);box-shadow:0 12px 34px rgba(0,0,0,.38)}
.security-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.security-head .t{font-size:17px;font-weight:640;color:#fff}
.security-head .s{margin-top:3px;font-size:11.5px;color:rgba(205,228,255,.6)}
.security-card .field-wrap{margin-bottom:12px}
.sec-err{margin-top:12px;font-size:12.5px;color:#ff8a80;min-height:16px;text-align:center;line-height:1.5}

/* ---------- 找回密码 ---------- */
.forgot-link{display:block;width:100%;margin-top:13px;padding:2px 0;background:none;border:none;cursor:pointer;font-size:12px;color:rgba(205,228,255,.5);letter-spacing:.2px;text-align:center;transition:color .2s ease}
.forgot-link:hover{color:rgba(205,228,255,.88)}
.forgot-options{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.forgot-opt{width:100%;text-align:left;cursor:pointer;padding:14px 16px;border-radius:16px;border:1px solid rgba(190,220,255,.16);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(196,216,255,.03));backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);transition:border-color .2s ease,box-shadow .2s ease,transform .18s ease}
.forgot-opt:active{transform:scale(.985)}
.forgot-opt.sel{border-color:rgba(120,180,255,.55);box-shadow:0 0 0 1px rgba(120,180,255,.35),0 8px 22px rgba(80,150,255,.18)}
.forgot-opt .opt-title{font-size:14px;font-weight:620;color:#fff}
.forgot-opt .opt-desc{margin-top:4px;font-size:11.5px;color:rgba(205,228,255,.6);line-height:1.5}
