/* ===== Taourl 全站样式 =====
   视觉参考：mjbr.hansafe.cn 的版式语言（浅紫蓝渐变底、居中 hero、
   大圆角卡片、内联输入 + 主色按钮、三栏特性卡）；文案与功能为本站自有。
   调色板刻意固定为一套，改主题只改下面的 :root。 */

:root {
  --ink: #20253a;
  --muted: #69728c;
  --line: #e6e9f2;
  --bg: #f6f7fb;
  --card: #ffffff;
  --primary: #5365e9;
  --primary-dark: #3d4ed1;
  --soft: #eff1ff;
  --success: #168c68;
  --danger: #c94646;
  --radius-lg: 22px;
  --radius: 17px;
  --radius-sm: 13px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #f1f4ff 0, var(--bg) 420px);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: none; }

.container {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- 头部 / 品牌 ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(58, 74, 160, .12);
}
.brand-mark svg { width: 48px; height: 48px; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
}
.brand-tag {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #8d95ac;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.nav a.active { color: var(--primary); font-weight: 700; }
.nav a.solid {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(83, 101, 233, .2);
}
.nav a.solid:hover { background: var(--primary-dark); color: #fff; }
.nav .nav-user { color: #8d95ac; font-size: 13px; padding-left: 8px; }

/* ---- 主区域 ---- */
main { padding: 24px 0 34px; }

/* ---- 首页 hero ---- */
.intro {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}
.intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.16;
}
.intro p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* ---- 生成卡 ---- */
.generator {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(205, 211, 237, .86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 50px rgba(41, 53, 115, .1);
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.input-row { display: flex; gap: 10px; }

/* ---- Cloudflare Turnstile ---- */
.turnstile-box {
  margin: 14px 0 2px;
  min-height: 68px;
  max-width: 100%;
}
.turnstile-box .cf-turnstile { max-width: 100%; }
.turnstile-fallback {
  margin: 12px 0 2px;
  padding: 13px 14px;
  border: 1px solid #d9e0f5;
  border-radius: 12px;
  background: #f8faff;
}
.turnstile-fallback-title {
  margin: 0;
  color: #34406b;
  font-size: 14px;
  font-weight: 700;
}
.turnstile-fallback-desc {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.turnstile-fallback .turnstile-fallback-input {
  width: 76px;
}
.turnstile-fallback-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-right: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
}
.turnstile-fallback-input {
  width: 76px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #cfd6ea;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
}
.turnstile-fallback-input:focus {
  border-color: #8c98f5;
  box-shadow: 0 0 0 3px rgba(83, 101, 233, .12);
}

.url-input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #cfd6ea;
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.url-input::placeholder { color: #a8b0c4; }
.url-input:focus { border-color: #8c98f5; box-shadow: 0 0 0 4px rgba(83, 101, 233, .12); }

.form-label { font-size: 15px; }

.submit {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(83, 101, 233, .24);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.submit:focus-visible { outline: 3px solid rgba(83, 101, 233, .3); outline-offset: 3px; }

.form-help { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.form-help b { color: var(--ink); font-weight: 700; }

/* 更多选项：默认折叠，避免和主输入框抢视觉 */
.advanced {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed #eceef7;
}
.advanced summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  color: #7d86a0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before {
  content: "+";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.advanced[open] summary::before { content: "−"; }
.advanced summary:hover { color: var(--ink); }

.advanced-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.advanced-body .adv-label { font-size: 12px; color: #8d95ac; font-weight: 600; }

.adv-input {
  display: flex;
  align-items: center;
  border: 1px solid #e3e7f3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.adv-input .prefix {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border-right: 1px solid #eff1f8;
  background: #f8f9fd;
  color: #9aa2b8;
  font-size: 12px;
  white-space: nowrap;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-input input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  font-size: 13.5px;
  background: transparent;
}
.adv-input input:focus { box-shadow: none !important; }

.adv-title { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #e3e7f3; border-radius: 10px; font: inherit; font-size: 13.5px; background: #fff; }
.adv-title:focus { border-color: #8c98f5; box-shadow: 0 0 0 3px rgba(83, 101, 233, .1); }

.adv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }


/* ---- 提示与报错 ---- */
.errors {
  list-style: none;
  margin: 14px 0 0;
  padding: 11px 14px;
  background: #fff5f5;
  border: 1px solid #f3d2d2;
  border-radius: 12px;
  color: var(--danger);
  font-size: 14px;
}
.errors li + li { margin-top: 4px; }

.notice {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin: 0 0 16px;
}
.notice.ok { background: #f3fcf8; border: 1px solid #cfeee2; color: var(--success); }
.notice.info { background: var(--soft); border: 1px solid #dfe4ff; color: var(--primary-dark); }

/* ---- 生成结果 ---- */
.result {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #cfeee2;
  border-radius: 15px;
  background: #f3fcf8;
}
.result .ok-line { margin: 0 0 9px; color: var(--success); font-size: 14px; font-weight: 700; }
.result .shorturl {
  font-size: 20px;
  font-weight: 700;
  color: #116f54;
  word-break: break-all;
  margin-bottom: 12px;
}
.result .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.qr-box {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dff3ea;
  flex-wrap: wrap;
}
.qr-box svg { width: 132px; height: 132px; }
.qr-box .qr-tip { font-size: 12px; color: #7b848f; }

/* ---- 游客管理链接 ---- */
.manage-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.manage-title { font-size: 13px; font-weight: 700; color: #444c66; margin-bottom: 6px; }
.manage-url {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
  background: #f6f7fc;
  border: 1px dashed #dfe4f2;
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.manage-tip { font-size: 12px; color: #8d95ac; margin-top: 10px; line-height: 1.6; }

/* ---- 特性三栏 ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.feature {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.feature-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}
.feature h2 { margin: 17px 0 7px; font-size: 16px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.notice-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 17px 19px;
  border: 1px solid #ececf4;
  border-radius: 15px;
  color: #68718a;
  background: #fafaff;
  font-size: 13px;
  line-height: 1.75;
}
.notice-block strong { color: #4f5872; flex: 0 0 auto; white-space: nowrap; }

/* ---- 通用卡片（内页 / 账号 / 详情） ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(41, 53, 115, .05);
}
.card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* 内页小标题 */
.page-head { margin: 0 0 22px; }
.page-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.page-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---- 表单（内页） ---- */
label.field-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 7px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="datetime-local"], input[type="number"], textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d9deeb;
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: #8c98f5;
  box-shadow: 0 0 0 3px rgba(83, 101, 233, .12);
}

.form-row { margin-bottom: 16px; }
.form-row .hint { font-size: 12px; color: #97a0b8; margin-top: 6px; }

.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 16px rgba(83, 101, 233, .18);
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.gray {
  background: #fff;
  color: #3f4762;
  border: 1px solid #dfe3ee;
  box-shadow: none;
}
.btn.gray:hover { background: #f5f6fb; }
.btn.danger { background: var(--danger); box-shadow: 0 8px 16px rgba(201, 70, 70, .18); }
.btn.danger:hover { background: #b03a3a; }
.btn.sm { padding: 7px 13px; font-size: 13px; font-weight: 600; box-shadow: none; }

/* ---- 表格 ---- */
.table-wrap { overflow-x: auto; }
table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.list th {
  text-align: left;
  font-weight: 700;
  color: #5a6480;
  background: #f8f9fd;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
}
table.list td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f3f9;
  vertical-align: middle;
}
table.list tr:hover td { background: #fbfcff; }
table.list td.url { max-width: 340px; word-break: break-all; color: var(--muted); font-size: 13px; }
table.list td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.cell-actions-inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cell-actions-inner form { display: inline; }
.cell-tags, .cell-badges { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.badge.on { background: #e9f8f1; color: var(--success); }
.badge.off { background: #f1f3f9; color: #6c7590; }
.badge.exp { background: #fff4e5; color: #95530b; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #3f4762; }
.pager a:hover { border-color: #cfd6ea; }
.pager .cur { color: #8d95ac; }

/* ---- 统计卡 ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(41, 53, 115, .04);
}
.stat .k { font-size: 12px; color: #8d95ac; }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }

/* ---- 柱状图 ---- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.chart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.chart .bar {
  width: 100%;
  max-width: 42px;
  background: linear-gradient(180deg, #8b97f7, #5365e9);
  border-radius: 5px 5px 0 0;
  min-height: 3px;
  transition: height .2s;
}
.chart .cnt { font-size: 12px; color: #5a6480; margin-bottom: 5px; }
.chart .day { font-size: 11px; color: #97a0b8; margin-top: 6px; white-space: nowrap; }

/* ---- 详情页 ---- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.detail-head .shorturl { font-size: 20px; font-weight: 800; color: var(--primary); word-break: break-all; letter-spacing: -.02em; }
.meta-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.meta-list li { padding: 6px 0; border-bottom: 1px dashed #f0f2f8; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list b { color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.empty { text-align: center; color: #97a0b8; padding: 36px 0; }

/* ---- API 文档 / 代码块 ---- */
.code-block {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fd;
  color: #333a52;
  font: 13px/1.7 ui-monospace, Consolas, "SFMono-Regular", monospace;
  white-space: pre;
  overflow-x: auto;
}
code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1f3fa;
  font-size: 13px;
  font-family: ui-monospace, Consolas, monospace;
}

/* ---- 页脚 ---- */
.site-footer {
  padding: 27px 0 34px;
  border-top: 1px solid var(--line);
  color: #7e879c;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}
.site-footer p { max-width: 820px; margin: 0 auto; }
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 13px;
  margin-top: 9px;
}
.site-footer .footer-links a { color: #6472a9; }
.site-footer .footer-links a:hover { color: var(--primary); }
.site-footer .footer-tip { margin-top: 10px; color: #98a0b8; font-size: 12px; }
.site-footer .footer-lang {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .02em;
}
.site-footer .footer-links .footer-lang { margin-top: 0; }
.site-footer .footer-lang a { color: #8b94ad; font-weight: 600; }
.site-footer .footer-lang a.active { color: var(--primary); }
.site-footer .footer-lang a:hover { color: var(--primary); }
.site-footer .footer-lang span { color: #aab1c3; }

/* ---- V5：标签 / 二维码工作台 / 筛选 ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.tag-chip.group { outline: 2px solid rgba(32, 37, 58, .14); outline-offset: 0; }
.tag-empty { color: #aab2bc; font-size: 12px; }

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #eceff7;
  border-radius: 13px;
  background: #fafbff;
}
.filter-bar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #8d95ac; }
.filter-bar select { min-width: 190px; height: 36px; padding: 0 10px; border: 1px solid #dfe3ee; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.filter-bar .btn { padding: 8px 14px; }

.qr-studio {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}
.qr-preview {
  flex: 0 0 auto;
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  padding: 8px;
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  background: #fff;
}
.qr-preview svg { display: block; width: 100%; height: 100%; }
.qr-controls { flex: 1; min-width: 270px; display: grid; gap: 9px; }
.qr-controls .qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qr-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8d95ac; }
.qr-controls input[type="text"], .qr-controls select { height: 34px; padding: 0 9px; font-size: 13px; }
.qr-controls input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 2px 4px;
  border: 1px solid #dfe3ee;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.qr-controls .actions { margin-top: 2px; }
.qr-tip { font-size: 12px; color: #7b848f; line-height: 1.7; }

/* ---- 品牌二维码工作台 ---- */
.qr-workbench {
  --qwb-ink: #123e39;
  --qwb-soft: #65756d;
  --qwb-cream: #fffaf1;
  --qwb-line: #e7dfcf;
  --qwb-lime: #d8ff72;
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1px solid #e2ddcf;
  border-radius: 18px;
  overflow: hidden;
  background: var(--qwb-cream);
  color: var(--qwb-ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(25, 57, 45, .05);
}
.qrs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 17px;
  border-bottom: 1px solid #e9e1d2;
  background: linear-gradient(100deg, #fffdf7, #f7f2e6);
}
.qrs-heading { min-width: 0; }
.qrs-eyebrow {
  display: block;
  color: #7f8c84;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
}
.qrs-heading h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 0;
  color: var(--qwb-ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.qrs-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #dfe7d6;
  border-radius: 100px;
  background: #fbfff2;
  color: #4b6a50;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.qrs-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fa33e;
  box-shadow: 0 0 0 3px rgba(111, 163, 62, .12);
}
.qrs-status.is-warning {
  border-color: #f0d8c4;
  background: #fff8f0;
  color: #a56035;
}
.qrs-status.is-warning i { background: #d9854e; box-shadow: 0 0 0 3px rgba(217, 133, 78, .12); }

.qrs-body {
  display: grid;
  grid-template-columns: minmax(270px, 326px) minmax(0, 1fr);
  align-items: stretch;
}
.qrs-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 524px;
  padding: 38px 17px 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(216,255,114,.14), transparent 34%),
    linear-gradient(145deg, #0b2c27 0%, #123e39 54%, #0b3329 100%);
}
.qrs-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.17) .7px, transparent .7px);
  background-size: 18px 18px;
}
.qr-workbench[data-preset="mono"] .qrs-stage {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.1), transparent 34%),
    linear-gradient(145deg, #111417, #252b2c 55%, #151a1b);
}
.qr-workbench[data-preset="sunset"] .qrs-stage {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,215,156,.18), transparent 34%),
    linear-gradient(145deg, #54271d, #7d3524 55%, #4c241b);
}
.qr-workbench[data-preset="electric"] .qrs-stage {
  background:
    radial-gradient(circle at 18% 10%, rgba(102,236,195,.16), transparent 34%),
    linear-gradient(145deg, #07333b, #0a5060 55%, #062a30);
}
.qrs-stage-meta {
  position: absolute;
  top: 14px;
  right: 17px;
  left: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}
.qrs-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(100%, 282px);
  padding: 13px 14px 11px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  background: var(--qwb-cream);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .24), inset 0 1px 0 #fff;
  transition: padding .18s ease, background .18s ease;
}
.qrs-frame-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.qrs-frame-brand { display: flex; flex-direction: column; min-width: 0; }
.qrs-frame-brand b {
  color: var(--qwb-ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.25;
}
.qrs-frame-brand small {
  color: #8e9a92;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
}
.qrs-frame-no {
  flex: 0 0 auto;
  color: #9ba59f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .12em;
}
.qrs-frame-no b { color: #718078; font-size: 8px; }
.qrs-code-shell {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 4px;
  border: 1px solid #ebe4d7;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.qrs-code { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; }
.qrs-code svg { display: block; width: 100% !important; height: 100% !important; }
.qrs-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--qwb-lime);
  border-style: solid;
  pointer-events: none;
}
.qrs-corner-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.qrs-corner-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.qrs-corner-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.qrs-corner-br { right: 6px; bottom: 6px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }
.qrs-frame-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid #e9e2d3;
}
.qrs-frame-foot b {
  min-width: 0;
  overflow: hidden;
  color: var(--qwb-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrs-frame-foot span {
  flex: 0 0 auto;
  color: #8a978f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .02em;
}
.qrs-frame.is-bare {
  gap: 0;
  padding: 9px;
  border: 0;
  background: #fff;
}
.qrs-frame.is-bare .qrs-frame-head,
.qrs-frame.is-bare .qrs-frame-foot { display: none; }
.qrs-frame.is-bare .qrs-code-shell { padding: 0; border: 0; border-radius: 4px; }
.qrs-frame.is-bare .qrs-corner { display: none; }
.qrs-stage-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  color: rgba(255,255,255,.52);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.qrs-stage-note span {
  width: 17px;
  height: 1px;
  background: rgba(216,255,114,.6);
}
.qrs-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 13px 16px 14px;
  border-left: 1px solid #eee7da;
  background: #fffdf8;
}
.qrs-section { padding: 8px 0 10px; border-bottom: 1px solid #eee8dc; }
.qrs-section-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.qrs-section-head > span {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--qwb-ink);
  color: var(--qwb-lime);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.qrs-section-head h4 {
  margin: 0;
  color: #394c43;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.qrs-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qrs-preset {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 5px;
  border: 1px solid #e6dfd2;
  border-radius: 8px;
  background: #fff;
  color: #56645d;
  font: inherit;
  font-size: 8px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qrs-preset i {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(110deg, var(--s1), var(--s2));
}
.qrs-preset span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrs-preset:hover { border-color: #b6c7b8; transform: translateY(-1px); }
.qrs-preset.is-active {
  border-color: var(--qwb-ink);
  box-shadow: 0 0 0 1px var(--qwb-ink);
  background: #fbfff2;
  color: var(--qwb-ink);
  font-weight: 700;
}
.qrs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.qrs-field { display: flex; min-width: 0; flex-direction: column; gap: 3px; color: #7d887f; font-size: 9px; font-weight: 600; }
.qrs-field select,
.qrs-field input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 0 8px;
  border: 1px solid #dfe6da;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #394c43;
  font: inherit;
  font-size: 10px;
}
.qrs-field select:focus,
.qrs-field input[type="text"]:focus { border-color: #8cb29f; box-shadow: 0 0 0 3px rgba(22,124,105,.1); }
.qrs-color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.qrs-color {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid #e3e9de;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.qrs-color input[type="color"] {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.qrs-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.qrs-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.qrs-color span { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.qrs-color small { color: #8c978f; font-size: 7px; }
.qrs-color b { overflow: hidden; color: #56645d; font-size: 8px; font-weight: 700; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.qrs-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #e8eee2;
}
.qrs-inline-slim { margin-top: 7px; padding-top: 0; border-top: 0; }
.qrs-toggle-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.qrs-toggle-label b { color: #43554c; font-size: 10px; font-weight: 700; }
.qrs-toggle-label small { color: #8b978e; font-size: 8px; }
.qrs-switch { position: relative; display: inline-block; width: 32px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.qrs-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qrs-switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d8ded7;
  transition: background .16s ease;
}
.qrs-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .16s ease;
}
.qrs-switch input:checked + i { background: var(--qwb-ink); }
.qrs-switch input:checked + i::after { transform: translateX(14px); }
.qrs-switch input:focus-visible + i { outline: 2px solid #9ecbb8; outline-offset: 2px; }
.qrs-logo-tools { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.qrs-letter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.qr-workbench .qrs-letter-input {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0 4px;
  border: 1px solid #dfe6da;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--qwb-ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.qr-workbench .qrs-letter-input:focus { border-color: #8cb29f; box-shadow: 0 0 0 3px rgba(22,124,105,.1); }
.qr-workbench .qrs-letter-input:disabled { border-color: #e6e8e2; background: #f5f6f1; color: #a4aba5; cursor: not-allowed; }
.qrs-mini {
  height: 23px;
  padding: 0 7px;
  border: 1px solid #dfe6da;
  border-radius: 6px;
  background: #fff;
  color: #52645a;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}
.qrs-mini:hover { border-color: #a9c4b1; color: var(--qwb-ink); }
.qrs-file-name {
  max-width: 108px;
  overflow: hidden;
  color: #8e998f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrs-field-wide { margin-top: 7px; }
.qrs-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 7px; margin-top: 11px; }
.qrs-download {
  display: flex !important;
  height: 43px !important;
  min-height: 43px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 4px 11px !important;
  border: 1px solid var(--qwb-ink) !important;
  border-radius: 8px !important;
  background: var(--qwb-ink) !important;
  color: #fff !important;
  text-align: left;
  line-height: 1.25;
}
.qrs-download span { font-size: 10px; font-weight: 700; }
.qrs-download small { font-size: 7px; font-weight: 600; letter-spacing: .08em; opacity: .66; }
.qrs-download-ghost {
  border-color: #d9e3d6 !important;
  background: #fff !important;
  color: var(--qwb-ink) !important;
}
.qrs-download:hover { filter: brightness(1.08); }
.qrs-download:disabled { opacity: .55; cursor: wait; }
.qrs-footnote { margin: 8px 0 0; color: #8a968e; font-size: 8px; line-height: 1.5; }
.qrs-error { padding: 22px 12px; color: #a56035; font-size: 11px; text-align: center; }
.qrs-toast {
  position: fixed;
  z-index: 99999;
  bottom: 26px;
  left: 50%;
  padding: 9px 17px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  background: #123e39;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(9, 35, 27, .28);
  transform: translateX(-50%);
  animation: qrs-toast-in .18s ease-out;
}
.qrs-toast.is-error { background: #8e3e2f; }
@keyframes qrs-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 760px) {
  .qr-workbench { border-radius: 15px; }
  .qrs-head { align-items: flex-start; padding: 12px 13px; }
  .qrs-heading h3 { font-size: 19px; }
  .qrs-status { margin-top: 1px; font-size: 8px; }
  .qrs-body { grid-template-columns: 1fr; }
  .qrs-stage { min-height: 420px; padding: 38px 18px 25px; }
  .qrs-panel { padding: 12px 13px 13px; border-top: 1px solid #eee7da; border-left: 0; }
  .qrs-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qrs-frame { width: min(100%, 270px); }
}
@media (max-width: 480px) {
  .qrs-head { gap: 8px; }
  .qrs-heading h3 { font-size: 18px; }
  .qrs-status { padding: 4px 6px; font-size: 7px; }
  .qrs-status i { width: 4px; height: 4px; }
  .qrs-stage { min-height: 360px; padding: 34px 15px 22px; }
  .qrs-frame { width: min(100%, 245px); }
  .qrs-color-row { grid-template-columns: 1fr 1fr; }
  .qrs-color:last-child { grid-column: 1 / -1; }
  .qrs-actions { grid-template-columns: 1fr; }
  .qrs-download { height: 40px !important; min-height: 40px; }
  .qrs-download small { display: none; }
}
@media (max-width: 360px) {
  .qrs-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qrs-heading h3 { white-space: nowrap; }
  .qrs-status { align-self: flex-start; }
}


.utm-box { margin-top: 4px; padding: 12px 14px; border: 1px dashed #e2e6f2; border-radius: 12px; background: #fafbff; }
.utm-box .adv-label { margin-bottom: 8px; }
.utm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.utm-grid input { height: 36px; padding: 0 10px; font-size: 13px; }
.utm-grid .utm-wide { grid-column: 1 / -1; }
.utm-preset { width: 100%; height: 36px; margin-bottom: 8px; padding: 0 10px; border: 1px solid #dfe3ee; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }

/* ---- 响应式 ---- */
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); max-width: 560px; }
  .site-header { padding: 18px 0 14px; gap: 10px; flex-wrap: wrap; }
  .brand { gap: 9px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-mark svg { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand-tag { display: none; }
  .nav { gap: 1px; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .nav .nav-user { display: none; }
  main { padding: 22px 0 24px; }
  .intro { margin-bottom: 22px; }
  .intro p { font-size: 14.5px; }
  .generator { padding: 18px; border-radius: 16px; }
  .form-label { font-size: 14px; }
  .input-row { flex-direction: column; }
  .url-input { height: 52px; padding: 0 14px; }
  .submit { width: 100%; height: 52px; }
  .advanced-body { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .notice-block { margin-top: 18px; padding: 14px 15px; }
  .notice-block strong { white-space: normal; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .card h2 { font-size: 18px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 26px; }
  .page-head p { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 23px; }
  .two-col { grid-template-columns: 1fr; }
  .adv-two { grid-template-columns: 1fr; }
  .utm-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; padding: 10px 12px; }
  .filter-bar label { flex: 1 1 100%; }
  .filter-bar select { width: 100%; min-width: 0; }
  .qr-studio { flex-direction: column; gap: 14px; }
  .qr-box { flex-direction: column; align-items: stretch; gap: 14px; }
  .qr-box .qr-preview { align-self: center; }
  .qr-box .qr-controls { min-width: 0; width: 100%; }
  .qr-preview { width: 180px; height: 180px; }
  .qr-controls { min-width: 0; width: 100%; }
  .qr-controls .qr-grid { grid-template-columns: 1fr 1fr; }
  .detail-head { flex-direction: column; }
  .detail-head .actions { width: 100%; }
  .detail-head .actions .btn { flex: 1 1 auto; text-align: center; }
  .result { padding: 16px; }
  .result .row { align-items: stretch; }
  .result .row .btn { flex: 1 1 auto; text-align: center; }
  .result .shorturl { font-size: 16px; }
  .pager { flex-wrap: wrap; font-size: 13px; }
  .pager a { min-height: 40px; display: inline-flex; align-items: center; }
  .site-footer { padding: 22px 0 26px; font-size: 12px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table-cards { overflow: visible; }
  .responsive-list thead { display: none; }
  .responsive-list tbody { display: block; }
  .responsive-list tr {
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(41, 53, 115, .04);
  }
  .responsive-list tr:last-child { margin-bottom: 0; }
  .responsive-list td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px dashed #f0f2f8;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
  }
  .responsive-list td:last-child { border-bottom: 0; }
  .responsive-list td::before {
    content: attr(data-label);
    flex: 0 0 76px;
    color: #8d95ac;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
  }
  .responsive-list td.primary {
    display: block;
    padding: 0 0 9px;
    margin-bottom: 3px;
    border-bottom: 1px solid #eef0f7;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }
  .responsive-list td.primary::before { display: none; }
  .responsive-list.api-endpoint-list tr { display: flex; flex-direction: column; }
  .responsive-list.api-endpoint-list td.primary { order: -1; }
  .responsive-list td[data-label="说明"] { display: block; text-align: left; }
  .responsive-list td[data-label="说明"]::before { display: block; margin-bottom: 3px; }
  .responsive-list td.url { max-width: none; text-align: right; }
  .responsive-list td.cell-actions { display: block; padding-top: 9px; text-align: left; }
  .responsive-list td.cell-actions::before { display: block; margin-bottom: 6px; }
  .responsive-list .cell-actions-inner { display: flex; flex-wrap: wrap; gap: 6px; }
  .responsive-list .cell-actions-inner form { display: inline; }
  .responsive-list .cell-actions-inner .btn { min-height: 36px; }
  .tag-chip { max-width: 130px; }
  .code-block { font-size: 12px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .site-header { padding: 14px 0 10px; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { padding: 7px 9px; }
  .nav a.solid { margin-left: auto; }
  .intro { text-align: left; margin-bottom: 18px; }
  .intro h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.03em; }
  .intro p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
  .generator { padding: 15px; border-radius: 15px; }
  .url-input, .submit { height: 50px; }
  .form-help { font-size: 12px; }
  .card { padding: 15px 13px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 13.5px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 12px; }
  .stat .k { font-size: 11px; }
  .stat .v { font-size: 21px; }
  .filter-bar .btn { width: 100%; }
  .qr-controls .qr-grid { grid-template-columns: 1fr; }
  .qr-preview { width: 160px; height: 160px; }
  .detail-head .actions .btn { flex: 1 1 calc(50% - 6px); }
  .detail-head .actions form { flex: 1 1 calc(50% - 6px); }
  .detail-head .actions form .btn { width: 100%; }
  .result .row .btn { flex: 1 1 100%; }
  .responsive-list td::before { flex-basis: 68px; }
  .responsive-list td.primary { font-size: 15px; }
  .notice-block { flex-direction: column; gap: 4px; }
  .chart { gap: 6px; }
  .chart .day { font-size: 10px; }
  .site-footer .footer-links { gap: 0 9px; }
}

@media (max-width: 380px) {
  .intro h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.04em; }
}

/* 移动端表单：16px 防止 iOS 聚焦自动放大 */
@media (max-width: 680px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="url"],
  input[type="datetime-local"], input[type="number"], textarea, select {
    font-size: 16px;
  }
  .adv-input .prefix, .adv-input input { height: 42px; }
  .adv-title { height: 42px; font-size: 16px; }
  .qr-controls input[type="text"], .qr-controls select,
  .utm-grid input, .utm-preset, .filter-bar select {
    height: 40px;
    font-size: 16px;
  }
  .qr-controls input[type="color"] { height: 40px; }
  .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
  .btn.sm { min-height: 38px; }
}

