/* ============================================================
 * style.css — Jerry的成长日志
 * 现代、清爽、响应式；适配移动端与桌面端。
 * ============================================================ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #1f2530;
  --muted: #6b7280;
  --border: #e6e9ef;
  --primary: #2f6df6;
  --primary-dark: #1f56d6;
  --job: #0e9f6e;
  --autosar: #7c5cff;
  --log: #f59e0b;
  --danger: #e23b3b;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(20, 30, 60, 0.06);
  --shadow-lg: 0 8px 30px rgba(20, 30, 60, 0.10);
  --max: 1080px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 始终显示原生滚动条：短页面（无滚动条）与长页面（有滚动条）视口宽度一致，
     避免切换页面时左右晃动。右侧槽位由原生滚动条本身填充（非纯色），
     不会出现纯色白边/黑边。深色主题下配合 color-scheme:dark 渲染深色滚动条。 */
  overflow-y: scroll;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--autosar));
}
.site-nav { display: flex; gap: 18px; }
.site-nav a {
  color: var(--text); padding: 10px 16px; border-radius: 9px; font-weight: 500;
  font-size: 16.5px;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.site-nav a:hover { background: var(--surface-2); text-decoration: none; }
.site-nav a.active {
  color: #fff !important;
  /* 选中态：更深的主色 + 半透明，配合毛玻璃模糊让背景透出来，更有质感 */
  background: linear-gradient(135deg, rgba(31, 86, 214, 0.55), rgba(47, 109, 246, 0.38));
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 14px rgba(31, 86, 214, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text); }

/* ---------------- Search ---------------- */
.search-bar { margin: 16px auto 0; }
.search-bar input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); font-size: 15px; outline: none;
  box-shadow: var(--shadow);
}
.search-bar input:focus { border-color: var(--primary); }

/* ---------------- Main / blocks ---------------- */
main { padding: 26px 20px 60px; min-height: 60vh; }
.block { margin-top: 40px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.block-head h2 { font-size: 20px; margin: 0; }
/* 临时存储模式警告横幅 */
.storage-warn { margin: 4px 0 20px; padding: 12px 16px; border: 1px solid #f0c36d; border-left: 4px solid #e0a815; border-radius: 8px; background: #fff8e6; color: #7a5c00; font-size: 13.5px; line-height: 1.7; }
.storage-warn code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* AUTOSAR 作为技能推荐下的子分支，用左侧色条区隔 */
.sub-branch { margin-top: 36px; padding: 20px 22px; border: 1px solid var(--border); border-left: 4px solid #2563eb; border-radius: 10px; background: var(--surface); }
.sub-branch .block-head { margin-bottom: 14px; }
.sub-branch .block-head .muted { font-size: 13px; }
.more { font-weight: 600; white-space: nowrap; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 28px; margin: 0 0 6px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }

/* ---------------- Grid / cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
/* 关键：grid/flex 子项默认 min-width:auto 不会收缩到内容以下，宽表格会撑破视口；
   显式 min-width:0 允许卡片收缩，配合 table-layout:fixed 让表格在手机上折行不溢出 */
.grid > * { min-width: 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  min-width: 0;
}
.card-link { cursor: pointer; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.card-title { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-excerpt {
  color: var(--muted); font-size: 14px; margin: 0 0 12px;
  /* 统一卡片摘要显示为 3 行，超出截断（避免不同长度的摘要撑出不同行数导致卡片高度不一致） */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* badges & chips */
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.badge-job { background: var(--job); }
.badge-autosar { background: var(--autosar); }
.badge-log { background: var(--log); }
.tag-seed { font-size: 12px; color: var(--muted); border: 1px dashed var(--border); padding: 1px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.chip {
  font-size: 12.5px; padding: 3px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); border: 1px solid transparent;
}
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.chip-active { background: var(--primary); color: #fff; }
.chip-static { background: #eef2ff; color: var(--primary); }

/* 关于页「关注方向」标签：仅作用于此区域（不影响文章标签/首页/日志/筛选） */
/* 三组数据与右列「联系方式」4 行对齐：左右等高，3 组 chip 均分纵向空间，
   家常菜·中餐(第3组)贴底对齐「最喜欢的歌」，心理学(第2组)居中，三组间距均匀 */
.focus-block { display: flex; flex-direction: column; gap: 18px; }
.focus-block .chips {
  flex: 1 1 0;
  display: flex; flex-wrap: wrap; align-content: center;
  gap: 13px 32px; margin-top: 0;
}
.focus-block .chip {
  font-size: 14px; padding: 7px 15px; border-radius: 999px;
  background: #F6F3EF; color: #647873; border: 1px solid transparent;
}
.focus-block .chip:hover { border-color: #647873; color: #647873; background: #efe9e2; }

/* skill card */
.skill-card .skill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.skill-level { font-size: 12px; font-weight: 700; color: var(--primary); background: #eef2ff; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.stars { color: var(--log); letter-spacing: 2px; margin-bottom: 8px; font-size: 15px; }

/* log card */
.log-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.log-card-foot .chips { margin-top: 0; }
.log-card-btns { display: inline-flex; gap: 8px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  background: var(--primary); color: #fff; border: 1px solid var(--primary); cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); cursor: pointer; }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  display: flex; gap: 22px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-avatar {
  width: 140px; height: 140px; border-radius: 32px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--autosar));
}
.hero-title { margin: 0 0 4px; font-size: 32px; }     /* 首页 hero 标题放大 20260726 */
.hero-sub { margin: 0 0 12px; color: var(--muted); font-size: 18px; }  /* 首页 hero 副标题放大 20260726 */
.hero-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hero-banner { position: relative; margin: -28px -28px -28px 18px; flex: 0 1 520px; max-width: 52%; border-radius: 0 18px 18px 0; overflow: hidden; border-left: 5px solid #d4af37; box-shadow: inset 10px 0 18px -10px rgba(0,0,0,0.6); }
.hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-banner::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg,
    rgba(5,10,20,0.30) 0%,
    rgba(5,10,20,0.12) 25%,
    transparent 55%);
  pointer-events: none;
}

/* ---------------- Article / markdown ---------------- */
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.article-title { font-size: 28px; margin: 0 0 10px; line-height: 1.3; }
.article-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.log-extra { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--border); }
.log-extra h2 { font-size: 19px; margin: 0 0 10px; color: var(--primary-dark); }
.log-extra .markdown-body { background: var(--surface-2); border-radius: 10px; padding: 14px 18px; }

.markdown-body { font-size: 15.5px; color: var(--text); white-space: pre-wrap; tab-size: 4; -moz-tab-size: 4; }
.markdown-body h1 { font-size: 26px; margin: 1.2em 0 .5em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.markdown-body h2 { font-size: 21px; margin: 1.4em 0 .5em; padding-bottom: .25em; border-bottom: 1px solid var(--border); }
.markdown-body h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.markdown-body p { margin: .7em 0; }
.markdown-body ul, .markdown-body ol { padding-left: 1.5em; margin: .6em 0; }
.markdown-body li { margin: .3em 0; }
.markdown-body blockquote {
  margin: 1em 0; padding: .6em 1em; background: #f3f6ff; border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; color: #384153;
}
.markdown-body code {
  background: var(--surface-2); padding: .15em .45em; border-radius: 5px; font-size: 13.5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.markdown-body pre {
  background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 12px; overflow: auto; margin: 1em 0;
}
.markdown-body pre code { background: transparent; color: inherit; padding: 0; font-size: 13.5px; line-height: 1.6; }
.markdown-body table { border-collapse: collapse; width: 100%; max-width: 100%; margin: 1em 0; font-size: 14px; table-layout: fixed; }
/* 移动端表格强制折行：white-space:normal 覆盖任何继承的 nowrap，word-break/overflow-wrap 兜底长串（链接/编号）断行 */
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.markdown-body th { background: var(--surface-2); font-weight: 600; }
.markdown-body img { max-width: 100%; border-radius: 10px; }
.markdown-body a { color: var(--primary); }
.markdown-body { overflow-wrap: break-word; word-break: break-word; max-width: 100%; }

/* ---------------- Editor ---------------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.editor-form, .editor-preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.editor-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.editor-form input[type=text], .editor-form input[type=date], .editor-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 14px; font-family: inherit; outline: none; background: var(--surface);
}
.editor-form input:focus, .editor-form textarea:focus { border-color: var(--primary); }
.editor-form textarea { resize: vertical; font-family: "SFMono-Regular", Consolas, Menlo, monospace; line-height: 1.6; tab-size: 4; -moz-tab-size: 4; }
.editor-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tag-preset-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; flex-wrap: wrap; }
.tag-preset-row select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; }
.tag-preset-row select:focus { border-color: var(--primary); outline: none; }
.editor-actions { display: flex; gap: 10px; margin-top: 6px; }
.preview-head { font-weight: 700; margin-bottom: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------------- About ---------------- */
/* 关于页自我介绍块单独放大字号（仅此块，不影响文章/日志等其它 markdown 渲染） */
.markdown-body.about-bio { font-size: 22px; line-height: 1.4; }
.markdown-body.about-bio p { margin: .7em 0; }
/* 关于页底部 logo 解释块文字放大到 20px */
.logo-explainer-body { font-size: 22px; line-height: 1.5; color: var(--text); }
.logo-explainer-body p { margin: .6em 0; }
.logo-key { font-weight: 700; color: var(--primary-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.about-grid h3 { margin: 0 0 12px; font-size: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 17.5px; line-height: 1.55; }

/* ---------------- Empty / misc ---------------- */
.empty { color: var(--muted); padding: 30px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.loading { text-align: center; color: var(--muted); padding: 60px; }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px 20px; color: var(--muted); }
.loading-state p { margin: 0; font-size: 14.5px; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary, #2f6df6); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Footer ---------------- */
.site-footer { border: none; background: var(--surface); padding: 26px 0; margin-top: 30px; }
.site-footer p { margin: 4px 0; font-size: 13.5px; }
/* ICP 备案号链接：颜色与 footer 其他文字完全一致（继承），不加下划线（避免备案号下方出现白色横线）。
   仍为可点击链接（指向 beian.miit.gov.cn）。必须 !important 以覆盖 bg-blur.css 中全局 a { color:#93c5fd !important } 的冷蓝强制色。 */
.site-footer a { color: inherit !important; text-decoration: none !important; }

/* ---------------- Back to top ---------------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  /* —— 导航：收缩内容，白线不戳出、不穿透 Logo/登录/注册 —— */
  .nav-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 8px; height: 62px; }
  .brand { font-size: 16px; gap: 8px; min-width: 0; }
  .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
  .auth-area { margin-left: 0; gap: 6px; min-width: 0; }
  .auth-area .btn-sm { font-size: 14px; padding: 7px 12px; background: #1f2530; border: 1px solid rgba(212,175,55,0.35); position: relative; z-index: 2; } /* 深色不透明实底 + 黑金细边，彻底遮住任何透出的白线 */
  .auth-email { display: none; }   /* 移动端隐藏长邮箱，避免把 header 撑宽 */
  .site-nav {
    position: absolute; top: 62px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a { padding: 14px 20px; border-radius: 0; }

  /* —— Hero 移动端：金线贯穿整卡左侧，芯片图嵌底框右下 —— */
  .hero {
    flex-direction: column; text-align: center;
    border-left: 3px solid #d4af37;   /* 金色分割线，高度=整张 hero 卡片，不戳出底框 */
  }
  .hero .chips { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-banner {
    border-left: none;                /* 去掉 banner 自身那条会戳出底部的金线 */
    flex: none; max-width: none; width: 100%;
    margin: 14px -28px -28px -28px;   /* 贴 hero 卡片的左/右/下边，顶部留间距 */
    border-radius: 0 0 18px 18px;     /* 底部圆角贴合卡片 */
  }
  .hero-banner img { aspect-ratio: 2 / 1; }

  /* —— 其它 —— */
  .editor { grid-template-columns: 1fr; }
  .editor-form .row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
  .article { padding: 20px 18px; }
}

/* ---------------- 自定义确认弹窗 ---------------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-root[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(20, 28, 48, 0.45); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 24px; width: min(92vw, 380px);
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-msg { margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .btn { min-width: 72px; justify-content: center; }

/* ---------------- 头部登录区 ---------------- */
.auth-area { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.auth-area .btn-sm { font-size: 16px; padding: 9px 18px; }
.auth-email { font-size: 14px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 登录 / 注册 弹窗 ---------------- */
.auth-box { width: min(92vw, 360px); }
.auth-box h3 { margin: 0 0 14px; font-size: 18px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab { flex: 1; padding: 8px 0; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 14px; }
.auth-tab.active { background: var(--primary); border-color: var(--primary); color: #1a1205; font-weight: 600; }
.auth-box label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.auth-box label input { width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; }
.auth-box label input:focus { outline: none; border-color: var(--primary); }
.auth-msg { min-height: 18px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.auth-msg.ok { color: #0e9f6e; }
.auth-msg.err { color: #e5484d; }

/* ---------------- Toast 轻提示 ---------------- */
.toast-root { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: #1f2530; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { background: #0e9f6e; }
.toast-warn { background: #d97706; }
.toast-error { background: #e23b3b; }

/* 登录成功专用提示：浅绿底 / 深绿字 / 圆角 8px / 底部（footer 上方）/ 2 秒后渐隐 */
.login-success-toast {
  background: #e7f8ee;
  color: #1a7f43;
  border: 1px solid #b7ebcf;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(16, 120, 80, 0.14);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.login-success-toast.show { opacity: 1; transform: translateY(0); }
.login-success-toast.hide { opacity: 0; transform: translateY(-10px); }


