/* ============================================================================
   短链接生成器（运营板块）· 独立样式文件
   ----------------------------------------------------------------------------
   🔴 为什么单独一个文件、不写进 style.css：
     style.css 全站共用且**多会话并发改**，动它 = 每次上线都要整文件覆盖别人的改动
     （站里最惨的一次事故就是这么来的）。本功能样式全部带 `srt-` 前缀装在这里，
     并排在 style.css 之后加载。
   🔴 `[hidden]` 兜底：本站多处用 display:flex/grid，会盖掉 [hidden] 的 display:none，
     所以每个子页都要自己补一条（漏了就是"该藏的没藏住"）。
   ==========================================================================*/

#sub-short [hidden] { display: none !important; }

.srt-wrap { padding: 0 14px 96px; }

/* ---------- 顶部说明卡 ---------- */
.srt-hero {
  position: relative; overflow: hidden;
  margin: 12px 0 14px; padding: 18px 16px 16px;
  border-radius: 18px; color: #eef3ff;
  background: linear-gradient(135deg, #1b2440 0%, #26356b 52%, #4a53a8 100%);
  box-shadow: 0 8px 22px rgba(38, 53, 107, .24);
}
.srt-hero-glow {
  position: absolute; right: -30px; top: -48px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 68%);
}
.srt-hero-t { position: relative; font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.srt-hero-s { position: relative; margin-top: 7px; font-size: 12.5px; line-height: 1.65; color: rgba(238,243,255,.86); }
.srt-hero-flow { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.srt-fchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: 11.5px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
}
.srt-fchip i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; font-style: normal;
  font-size: 10px; font-weight: 800; color: #1b2440; background: #c3cbf5;
}

/* ---------- 卡片 ---------- */
.srt-card {
  background: #fff; border-radius: 16px; padding: 16px;
  margin-bottom: 14px; box-shadow: 0 2px 12px rgba(20, 30, 60, .07);
}
.srt-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.srt-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #4a53a8, #6b7ae0);
}
.srt-hd h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1a1f36; }
.srt-tip { margin-left: auto; font-size: 11.5px; color: #98a2b8; }

/* ---------- 输入区 ---------- */
.srt-inputrow { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .srt-inputrow { flex-direction: row; align-items: stretch; } }

.srt-input {
  flex: 1; width: 100%; box-sizing: border-box;
  padding: 13px 14px; border-radius: 12px; font-size: 14px;
  border: 1.5px solid #e2e6ef; background: #fafbfd; color: #1a1f36;
  transition: border-color .16s, background .16s;
}
.srt-input::placeholder { color: #b6bdcc; }
.srt-input:focus { outline: none; border-color: #6b7ae0; background: #fff; }

.srt-go {
  flex: 0 0 auto; min-width: 132px;
  padding: 13px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4a53a8, #6b7ae0);
  box-shadow: 0 4px 14px rgba(74, 83, 168, .28);
  transition: opacity .16s, transform .1s;
}
.srt-go:active { transform: translateY(1px); }
.srt-go:disabled { opacity: .45; box-shadow: none; cursor: default; }

.srt-err { margin-top: 10px; font-size: 12.5px; color: #d92d20; }

/* ---------- 结果区 ---------- */
.srt-result { margin-top: 4px; }
.srt-reslabel { font-size: 12px; color: #98a2b8; margin-bottom: 8px; }
.srt-linkbox {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #f2f4ff, #eef7f5);
  border: 1.5px dashed #c3cbf5;
}
.srt-link {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: #324ab2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.2px;
  word-break: break-all; line-height: 1.45;
}
.srt-mini {
  flex: 0 0 auto; padding: 8px 13px; border-radius: 9px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; border: 0;
  background: #fff; color: #324ab2; box-shadow: 0 1px 5px rgba(74,83,168,.16);
}
.srt-mini.copied { background: #0a8a45; color: #fff; }
.srt-orig { margin-top: 9px; font-size: 12px; color: #8b94a8; word-break: break-all; line-height: 1.55; }
.srt-orig b { color: #5b6478; font-weight: 600; }

/* ---------- 最近生成 ---------- */
.srt-list { display: flex; flex-direction: column; gap: 9px; }
.srt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px; background: #fafbfd;
  border: 1px solid #eef1f7;
}
.srt-item-main { flex: 1; min-width: 0; }
.srt-item-code {
  font-size: 13.5px; font-weight: 700; color: #324ab2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.srt-item-url {
  margin-top: 3px; font-size: 11.5px; color: #98a2b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srt-hits {
  flex: 0 0 auto; font-size: 11px; color: #0a8a45;
  background: #e8f7ee; border-radius: 999px; padding: 3px 9px;
}
.srt-del {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: #b6bdcc; padding: 4px 2px;
}
.srt-del:hover { color: #d92d20; }
.srt-empty { text-align: center; padding: 26px 10px; color: #b6bdcc; font-size: 13px; }

/* ---------- 底部说明 ---------- */
.srt-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: #fff8e6; border-left: 4px solid #f0b429;
  font-size: 12.5px; line-height: 1.7; color: #6b5b2a;
}
.srt-note b { color: #4a3f1a; }
