/* ============ SeqKan 在线体验版 ============ */
:root {
  --demo-top: 36px;
  --demo-bottom: 38px;
}

body {
  padding-top: var(--demo-top);
  padding-bottom: var(--demo-bottom);
  box-sizing: border-box;
}

#app {
  height: calc(100vh - var(--demo-top) - var(--demo-bottom)) !important;
}

/* 顶部提示条 */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--demo-top);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #123a86;
  color: #fff;
  font: 12px/1 "Microsoft YaHei", system-ui, sans-serif;
  z-index: 90;
}
.demo-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #123a86;
  font-weight: 700;
  letter-spacing: .2px;
}
.demo-note {
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-examples {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}
.demo-examples button {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.demo-examples button:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6);
}
.demo-dl {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #123a86;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.demo-dl:hover { background: #e8f0ff; }

/* 顶部条按钮：记录 / 账号 */
.demo-btn {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 12px/1 "Microsoft YaHei", system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.demo-btn b { font-weight: 700; color: #9fd0ff; }
.demo-btn:hover { background: rgba(255, 255, 255, .22); }
.demo-lang {
  min-width: 38px;
  font-weight: 700;
  letter-spacing: .3px;
}
.demo-account.is-on {
  border-color: #7ee2a8;
  background: rgba(126, 226, 168, .18);
  color: #d8ffe8;
}

/* 记录 / 账号弹窗内容 */
.demo-sec-title {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5b7290;
}
.demo-list {
  max-height: 210px;
  overflow: auto;
  border: 1px solid #e3ebf7;
  border-radius: 10px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef3fb;
}
.demo-row:last-child { border-bottom: none; }
.demo-row-main { flex: 1; min-width: 0; }
.demo-row-main b {
  display: block;
  font-size: 13px;
  color: #1c2a3d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-row-main span {
  font-size: 11.5px;
  color: #8496ad;
}
.demo-row-act { display: flex; gap: 6px; flex: none; }
.demo-row-act button,
.demo-link {
  padding: 3px 9px;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #fff;
  color: #33455f;
  font: 12px/1.5 "Microsoft YaHei", system-ui, sans-serif;
  cursor: pointer;
}
.demo-row-act button:hover { border-color: #9db4d6; }
.demo-link {
  border: none;
  padding: 0 2px;
  background: transparent;
  color: #1554c1;
  text-decoration: underline;
}
.demo-empty {
  padding: 14px 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #8496ad;
  text-align: center;
}

/* 账号表单 */
.demo-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.demo-form input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  font: 13px/1 "Microsoft YaHei", system-ui, sans-serif;
  color: #1c2a3d;
  outline: none;
}
.demo-form input:focus { border-color: #1554c1; box-shadow: 0 0 0 2px rgba(21, 84, 193, .12); }
.demo-err {
  min-height: 16px;
  margin-bottom: 8px;
  color: #d03050;
  font-size: 12px;
}
.demo-primary {
  border: none !important;
  background: #1554c1 !important;
  color: #fff !important;
  font-weight: 700;
}
.demo-primary:hover { background: #0d3b8c !important; }

/* 轻提示 */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--demo-bottom) + 16px);
  transform: translate(-50%, 8px);
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(20, 34, 56, .92);
  color: #fff;
  font: 12.5px/1.4 "Microsoft YaHei", system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 300;
}
.demo-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 底部常驻引导 */
.demo-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--demo-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #f1f6ff;
  border-top: 1px solid #cfdcf3;
  color: #33455f;
  font: 12px/1 "Microsoft YaHei", system-ui, sans-serif;
  z-index: 90;
}
.demo-cta a {
  color: #1554c1;
  font-weight: 700;
  text-decoration: none;
}
.demo-cta a:hover { text-decoration: underline; }

/* 锁定态 */
.demo-locked {
  position: relative;
  opacity: .72;
  cursor: not-allowed !important;
}
.demo-locked .demo-lock {
  margin-left: 3px;
  font-size: 10px;
  vertical-align: 1px;
  opacity: .85;
}

/* 功能说明弹窗 */
.demo-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 44, .5);
}
.demo-gate[hidden] { display: none; }
.demo-gate-card {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 20, 40, .28);
  color: #1c2a3d;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
}
.demo-gate-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.demo-gate-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #46586f;
}
.demo-gate-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.9;
  color: #33455f;
}
.demo-gate-card li::before {
  content: "✓";
  margin-right: 7px;
  color: #18a058;
  font-weight: 700;
}
.demo-gate-actions {
  display: flex;
  gap: 10px;
}
.demo-gate-actions a,
.demo-gate-actions button {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: 13px/1 "Microsoft YaHei", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.demo-gate-actions a {
  border: none;
  background: #1554c1;
  color: #fff;
  font-weight: 700;
}
.demo-gate-actions a:hover { background: #0d3b8c; }
.demo-gate-actions button {
  border: 1px solid #cfd9e8;
  background: #fff;
  color: #33455f;
}
.demo-gate-actions button:hover { border-color: #9db4d6; }
/* 保存弹窗：本地格式选择 */
.demo-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}
.demo-save-row label { font-size: 13px; color: #4a5a72; white-space: nowrap; }
.demo-save-row select {
  flex: 1;
  max-width: 210px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #fff;
  color: #33455f;
  font: 13px/1 "Microsoft YaHei", system-ui, sans-serif;
}
.demo-gate-actions button.demo-primary { border: none; background: #1554c1; color: #fff; font-weight: 700; }
.demo-gate-actions button.demo-primary:hover { background: #0d3b8c; }
.demo-gate-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #8a9bb3;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.demo-gate-x:hover { color: #33455f; }

.demo-user-menu { position: fixed; }

/* 只读分享提示条 */
.demo-share-bar {
  position: fixed;
  top: var(--demo-top);
  left: 0;
  right: 0;
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 12px;
  background: #fff7e6;
  border-bottom: 1px solid #f2d9a8;
  color: #8a5a00;
  font: 12px/1.4 "Microsoft YaHei", system-ui, sans-serif;
}
.demo-share-bar a { color: #1554c1; text-decoration: none; }
.demo-share-bar a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .demo-note,
  .demo-examples { display: none; }
  .demo-dl { margin-left: auto; }
}
