﻿/* ============================================
   91工具（91gongju.com）- 样式表
   ============================================ */
:root {
  --bg: #f4f6f7;
  --card: #ffffff;
  --ink: #16202a;
  --ink2: #5d6b7a;
  --ink3: #98a4b1;
  --line: #e6eaee;
  --brand: #0f9d76;
  --brand-2: #12b886;
  --brand-dark: #0a7d5e;
  --brand-bg: #ecfdf5;
  --amber: #f59e0b;
  --radius: 14px;
  --shadow-s: 0 1px 2px rgba(16, 32, 42, .05);
  --shadow-m: 0 6px 20px rgba(16, 32, 42, .08);
  --shadow-l: 0 18px 48px rgba(16, 32, 42, .14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 内容较短的页面（如会员中心）也让页脚贴底，不留灰块 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: inherit; }
::selection { background: #b7f0dd; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===================== 顶部导航 ===================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(140deg, #16c79a, #0e9f78 60%, #0a7d5e);
  box-shadow: 0 4px 12px rgba(15, 157, 118, .32);
}

.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 16.5px; letter-spacing: .3px; }
.brand-txt i {
  font-style: normal; font-size: 10.5px; color: var(--ink3);
  letter-spacing: .4px;
}
.brand-num {
  font-family: var(--mono); font-size: 17px; font-weight: 800;
  letter-spacing: -1px;
}

.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 520px; }
.search .s-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--ink3); fill: none; stroke-width: 2;
  pointer-events: none;
}
.search input {
  width: 100%; min-width: 0; height: 40px; padding: 0 44px 0 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #f7f9fa; outline: none;
  transition: .18s;
}
.search input:focus { background: #fff; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(18, 184, 134, .12); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--ink3);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff;
}

.hdr-act { margin-left: auto; flex: none; display: flex; gap: 8px; }

.chips-wrap { border-top: 1px solid transparent; }
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding-top: 0; padding-bottom: 9px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; font-size: 13px; color: var(--ink2);
  border: 1px solid transparent; transition: .16s; white-space: nowrap;
}
.chip:hover { background: var(--brand-bg); color: var(--brand-dark); }
.chip.on { background: var(--brand-bg); color: var(--brand-dark); border-color: #bff0dd; font-weight: 600; }

/* ===================== 首页 Hero ===================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #0b8f6d 0%, #10a67f 42%, #17bd93 72%, #34d3a8 100%);
  color: #fff; padding: 34px 0 38px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22), transparent 42%),
    radial-gradient(circle at 6% 96%, rgba(255, 255, 255, .14), transparent 38%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; }

.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; opacity: .95; }
.hero-top .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .6); }

.hero h1 {
display:none !important;
  margin-top: 12px; font-size: 30px; font-weight: 700; letter-spacing: .6px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.hero h1 small { font-size: 14px; font-weight: 400; opacity: .82; letter-spacing: .2px; }

.hero-motto {
display:none !important;
  margin-top: 8px; font-size: 13.5px; opacity: .9; display: flex; align-items: center; gap: 6px;
}

.progress-box {
  margin-top: 22px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  backdrop-filter: blur(6px);
}
.progress-box .pg-main { flex: 1 1 260px; min-width: 220px; }
.pg-label { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .9; margin-bottom: 7px; }
.pg-label b { font-family: var(--mono); font-size: 13px; }
.pg-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ffe08a, #fbbf24); transition: width .6s ease; }
.pg-stats { display: flex; gap: 26px; }
.pg-stats div { text-align: center; }
.pg-stats b { display: block; font-family: var(--mono); font-size: 18px; line-height: 1.25; }
.pg-stats span { font-size: 11.5px; opacity: .82; }

/* ===================== 分类区块 ===================== */
main { padding-bottom: 60px; min-height: 50vh; flex: 1 0 auto; }

.cat { margin-top: 0px; scroll-margin-top: 130px; position: relative; }

/* 点击顶部菜单定位到分区后，给目标区块一层柔和的呼吸式高亮，
   提示「你要找的是这一块」。用伪元素叠加，不改变布局、不挡点击。 */
.cat::after {
  content: ''; position: absolute; inset: -8px -14px; border-radius: 18px;
  pointer-events: none; opacity: 0;
  background: var(--cfg, #0f9d76);
}
.cat.cat-flash::after { animation: catFlash 1.5s ease-out both; }
@keyframes catFlash {
 0%   { opacity: 0; }
  14%  { opacity: .25; }   /* 原来是 .085 → 调深 */
  40%  { opacity: .1; }    /* 原来是 .035 → 调深 */
  64%  { opacity: .15; }   /* 原来是 .06  → 调深 */
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cat.cat-flash::after { animation: none; }
}

.cat-head {
  display: flex; align-items: center; gap: 10px;
    margin-bottom: 5px;
    margin-top: 15px;
}
.cat-head .cicon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px;
  background: var(--cbg); color: var(--cfg);
}
.cat-head h2 { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.cat-head .count { font-size: 12px; color: var(--ink3); font-family: var(--mono); }
.cat-head .line { flex: 1; height: 1px; background: var(--line); }

/* ===================== 工具卡片 ===================== */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
}

.card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  transition: .18s cubic-bezier(.2, .7, .3, 1);
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #c6efdf;
  box-shadow: 0 8px 22px rgba(15, 157, 118, .13);
}
.card:hover .c-ico { transform: scale(1.06); }

.c-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--cbg); transition: .18s;
}
.c-body { min-width: 0; flex: 1; }
.c-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-hot { font-size: 11px; color: var(--ink3); margin-top: 3px; font-family: var(--mono); }

/* 分类配色 */
.cat-text     { --cbg:#eaf2ff; --cfg:#3b82f6; }
.cat-lang     { --cbg:#f1ecfe; --cfg:#8b5cf6; }
.cat-finance  { --cbg:#fef3e2; --cfg:#f59e0b; }
.cat-date     { --cbg:#e3f8fd; --cfg:#06b6d4; }
.cat-convert  { --cbg:#fdeaf4; --cfg:#ec4899; }
.cat-image    { --cbg:#e8f9ee; --cfg:#22c55e; }
.cat-codec    { --cbg:#eaecfe; --cfg:#6366f1; }
.cat-dev      { --cbg:#eef2f6; --cfg:#64748b; }
.cat-life     { --cbg:#feecef; --cfg:#f43f5e; }
.cat-net      { --cbg:#e4faf6; --cfg:#0f9d76; }

/* ===================== 空状态 ===================== */
.empty {
  text-align: center; padding: 70px 20px; color: var(--ink2);
}
.empty .e-ico { font-size: 40px; opacity: .5; }
.empty p { margin-top: 10px; font-size: 14px; }
.empty .q { font-family: var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ===================== 工具详情页 ===================== */
.tool-page { padding-top: 24px; max-width: 940px; }

.crumb { font-size: 12.5px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.crumb a:hover { color: var(--brand); }

.tool-head { margin: 12px 0 18px; display: flex; align-items: center; gap: 12px; }
.tool-head .t-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--cbg); color: var(--cfg);
}
.tool-head h1 { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.tool-head p { font-size: 13px; color: var(--ink2); margin-top: 2px; }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-s);
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink2);
  margin-bottom: 7px;
}
.hint-inline { font-weight: 400; color: var(--ink3); font-size: 11.5px; }

.input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fbfcfd; outline: none; transition: .16s;
}
.input:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(18, 184, 134, .1); }
textarea.input { resize: vertical; line-height: 1.65; min-height: 44px; }
textarea.out { background: #f7faf9; }
.mono { font-family: var(--mono); font-size: 13px; }
select.input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a4b1' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0 18px; }
.actions:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ink2);
  transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: #c6efdf; color: var(--brand-dark); background: #f7fffb; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(15, 157, 118, .24);
}
.btn-primary:hover { background: linear-gradient(135deg, #0fb57f, var(--brand-dark)); color: #fff; box-shadow: 0 5px 16px rgba(15, 157, 118, .3); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn-ghost:hover { background: var(--brand-bg); }

/* ---- JSON 树形结果（可逐层折叠） ---- */
.json-box { border: 1px solid var(--line); border-radius: 10px; background: #f7faf9; overflow: hidden; }
.json-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 7px 5px 12px; background: #fff; border-bottom: 1px solid var(--line);
}
.json-tip { font-size: 11.5px; color: var(--ink3); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.json-tools { display: flex; gap: 6px; flex: 0 0 auto; }
.jbtn {
  height: 25px; padding: 0 9px; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink2);
  transition: .15s; white-space: nowrap;
}
.jbtn:hover:not(:disabled) { border-color: #c6efdf; color: var(--brand-dark); background: #f7fffb; }
.jbtn:disabled { opacity: .4; cursor: not-allowed; }

.json-box textarea.out { border: 0; border-radius: 0; background: transparent; padding: 12px 14px; }
.json-box textarea.out:focus { box-shadow: none; border-color: transparent; }

.json-tree { display: none; padding: 11px 14px; min-height: 150px; max-height: 460px; overflow: auto; }
.json-box.tree-on .json-tree { display: block; }
.json-box.tree-on textarea.out { display: none; }

.jt-line {
  position: relative; padding-left: 15px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word; border-radius: 5px;
}
.jt-line:hover { background: rgba(15, 157, 118, .055); }
.jt-head, .jt-tail { cursor: pointer; user-select: none; }
.jt-tog {
  position: absolute; left: 0; top: 50%; margin-top: -5px; width: 13px;
  font-size: 8px; line-height: 1; color: #9fadb9; text-align: center;
  transition: transform .15s ease;
}
.jt-node.collapsed > .jt-head .jt-tog { transform: rotate(-90deg); }
.jt-kids { padding-left: 14px; margin-left: 4px; border-left: 1px solid #e4eae7; }

.jt-node.collapsed > .jt-kids,
.jt-node.collapsed > .jt-tail { display: none; }
.jt-node:not(.collapsed) > .jt-head .jt-comma-head,
.jt-node:not(.collapsed) > .jt-head .jt-brief { display: none; }

.jt-key { color: #0a7d5e; }
.jt-idx { color: #9fadb9; }
.jt-str { color: #b45309; }
.jt-num { color: #1d4ed8; }
.jt-bool { color: #7c3aed; }
.jt-null { color: #94a3b8; font-style: italic; }
.jt-punc { color: #8b98a5; }
.jt-comma-head, .jt-comma-close { color: #8b98a5; }
.jt-cut { color: #c9d2d9; }
.jt-brief { color: #9aa8b4; font-style: italic; font-size: 11.5px; margin: 0 2px; }

.seg {
  display: inline-flex; flex-wrap: wrap; gap: 3px;
  background: #f2f5f6; border-radius: 10px; padding: 3px;
}
.seg-btn {
  padding: 6px 13px; border-radius: 7px; font-size: 12.5px;
  color: var(--ink2); transition: .14s; white-space: nowrap;
}
.seg-btn:hover { color: var(--brand-dark); }
.seg-btn.active { background: #fff; color: var(--brand-dark); font-weight: 600; box-shadow: var(--shadow-s); }

/* 结果展示 */
.kv { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv > div {
  background: #fff; padding: 9px 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.kv .k { color: var(--ink2); font-size: 12.5px; }
.kv .v { font-family: var(--mono); font-size: 13.5px; font-weight: 600; word-break: break-all; text-align: right; }
.kv .v.big { font-size: 16px; color: var(--brand-dark); }

.big-out {
  background: linear-gradient(160deg, #f3fdf9, #eef9f5);
  border: 1px solid #cdf0e2; border-radius: 12px;
  padding: 16px 18px; font-size: 19px; font-weight: 700;
  color: var(--brand-dark); letter-spacing: .5px; word-break: break-all;
  min-height: 56px; display: flex; align-items: center;
  line-height: 1.5;
}
.big-out.empty-val { color: var(--ink3); font-weight: 400; font-size: 14px; }

.note {
  margin-top: 14px; padding: 10px 13px;
  background: #fffdf5; border: 1px solid #fdeec8; border-radius: 9px;
  font-size: 12px; color: #8a6a1f; line-height: 1.65;
}

.err { color: #dc2626; font-size: 12.5px; margin-top: 8px; }
.ok { color: var(--brand-dark); font-size: 12.5px; margin-top: 8px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.tbl th { font-size: 12px; color: var(--ink2); font-weight: 600; background: #fafcfb; }
table.tbl td.num { font-family: var(--mono); text-align: right; }
table.tbl tr:last-child td { border-bottom: none; }

/* 数字求和的明细表 */
.ns-detail-box {
  max-height: 320px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.ns-detail-box table.tbl th { position: sticky; top: 0; z-index: 1; }
.ns-desc { color: var(--ink2); font-size: 12.5px; word-break: break-all; }
.ns-mul {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 11.5px; color: var(--brand-dark);
}
.ns-more { color: var(--ink3); font-size: 12px; text-align: center; }

mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
mark.cur { background: #ffd166; }

.tag-list { display: flex; flex-wrap: wrap; gap: 2px; }
.tag {
  font-size: 20px; line-height: 1; padding: 7px 8px; border-radius: 7px;
  transition: .12s; cursor: pointer;
}
.tag:hover { background: var(--brand-bg); transform: scale(1.15); }

/* 相关工具 */
.related { margin-top: 26px; }
.related h3 { font-size: 14px; margin-bottom: 10px; color: var(--ink2); }
.related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-list a {
  font-size: 12.5px; padding: 6px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; color: var(--ink2);
  transition: .16s;
}
.related-list a:hover { border-color: #c6efdf; color: var(--brand-dark); background: var(--brand-bg); }

/* 秒表 */
.timer-display {
  font-family: var(--mono); font-size: 52px; font-weight: 700;
  text-align: center; letter-spacing: 1px; color: var(--ink);
  padding: 18px 0 8px; font-variant-numeric: tabular-nums;
}
.timer-display small { font-size: 22px; color: var(--ink3); }
.lap-list { max-height: 220px; overflow-y: auto; margin-top: 14px; }
.lap-list div {
  display: flex; justify-content: space-between; padding: 6px 10px;
  font-family: var(--mono); font-size: 13px; border-bottom: 1px dashed var(--line);
}

/* 反应测试 */
.react-box {
  height: 220px; border-radius: 14px; display: grid; place-items: center;
  background: #eef2f4; color: var(--ink2); font-size: 15px; cursor: pointer;
  user-select: none; transition: background .12s; text-align: center; padding: 20px;
}
.react-box.wait { background: #f59e0b; color: #fff; font-weight: 600; }
.react-box.go { background: #10b981; color: #fff; font-weight: 700; font-size: 26px; }
.react-box.early { background: #ef4444; color: #fff; font-weight: 600; }

/* 颜色预览 */
.swatch { height: 110px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; }
.shades { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 10px; }
.shades span { height: 26px; border-radius: 5px; cursor: pointer; }

/* 图片工具 */
.drop {
  border: 1.5px dashed #d4dde4; border-radius: 12px; padding: 26px;
  text-align: center; color: var(--ink2); background: #fbfcfd; cursor: pointer;
  transition: .16s;
}
.drop:hover, .drop.over { border-color: var(--brand-2); background: var(--brand-bg); color: var(--brand-dark); }
.preview-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-top: 12px; }
.qr-box { display: grid; place-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 220px; }
.qr-box svg, .qr-box img { max-width: 240px; height: auto; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 16px);
  background: #16202a; color: #fff; padding: 9px 18px; border-radius: 22px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .24s;
  z-index: 999; box-shadow: var(--shadow-l);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 页脚 */
footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 28px 0 34px; color: var(--ink2); font-size: 12.5px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
.foot-in p { line-height: 1.85; }
.foot-in .f-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 13px; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--brand); }
/* 页脚备案号链接：跟正文同色不抢眼，悬停变主题色 */
.foot-in p a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.foot-in p a:hover { color: var(--brand); }

/* 响应式 */
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .hero h1 { font-size: 24px; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .pg-stats { width: 100%; justify-content: space-around; }
}

@media (max-width: 640px) {
  .hdr-in { height: 58px; gap: 10px; }
  .brand-txt i { display: none; }
  .search kbd { display: none; }
  .search input { padding-right: 12px; height: 36px; font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
  .brand-txt b { font-size: 15px; }
  .hdr-act { display: none; }
  .hero { padding: 24px 0 28px; }
  .hero h1 { font-size: 21px; }
  .hero-motto { font-size: 12px; }
  .hero-top { font-size: 12px; gap: 8px; }
  .progress-box { padding: 12px 14px; gap: 14px; }
  .pg-stats { gap: 18px; }
  .pg-stats b { font-size: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 10px 9px; gap: 8px; }
  .c-ico { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  .c-name { font-size: 12.5px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .tool-head h1 { font-size: 19px; }
  .timer-display { font-size: 40px; }
  .tool-page { padding-top: 16px; }
  .cat { padding-top: 22px; }
}

/* ===================== 网址导航 ===================== */

/* 顶部搜索引擎：输入框 + 引擎选择 + 搜索按钮，一条横排 */
.nav-search { padding-top: 26px; }
.ns-form {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 8px 7px 13px;
  box-shadow: var(--shadow-s);
  transition: border-color .16s, box-shadow .16s;
}
.ns-form:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(18, 184, 134, .12); }
.ns-ico { flex: none; font-size: 15px; opacity: .5; line-height: 1; }
.ns-input {
  flex: 1 1 auto; min-width: 0; height: 34px;
  border: 0; outline: 0; background: transparent; font-size: 14px;
}
.ns-input::placeholder { color: var(--ink3); }
.ns-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- 引擎选择器：按钮 + 下拉面板（带站点图标与描述） ---- */
.ns-picker { position: relative; flex: none; }
.ns-cur {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 9px 0 7px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #f7f9fa; cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.ns-cur:hover { background: #fff; border-color: #d4dde4; }
.ns-picker.open .ns-cur {
  background: #fff; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, .10);
}
.ns-cur:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
/* 按钮内层也要 flex：否则图标是行内图片、按文字基线对齐，
   选完引擎后图标会偏上 / 文字偏下（这里踩过） */
.ns-cur-in { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ns-eico {
  display: block;                 /* 消掉行内图片底部的基线间隙 */
  width: 18px; height: 18px; flex: none; border-radius: 4px;
  object-fit: contain; background: #fff;
}
.ns-cur-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; line-height: 1;   /* 行高归 1，与图标严格对中 */
}
.ns-caret { width: 11px; height: 11px; flex: none; color: var(--ink3); transition: transform .18s ease; }
.ns-picker.open .ns-caret { transform: rotate(180deg); color: var(--brand-dark); }

.ns-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  width: 232px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.ns-picker.open .ns-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .16s ease, transform .16s ease;
}
.ns-menu-h {
  font-size: 11px; color: var(--ink3); letter-spacing: .5px;
  padding: 6px 10px 5px; user-select: none;
}
.ns-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 9px; border-radius: 10px; text-align: left;
  transition: background .14s;
}
.ns-opt:hover { background: #f2f7f5; }
.ns-opt.active { background: var(--brand-bg); }
.ns-eico-l { width: 22px; height: 22px; border-radius: 6px; }
.ns-opt-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ns-opt-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ns-opt-desc { font-size: 11.5px; color: var(--ink3); line-height: 1.35; }
.ns-check {
  flex: none; width: 16px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--brand);
  opacity: 0; transform: scale(.6); transition: opacity .14s, transform .14s;
}
.ns-opt.active .ns-check { opacity: 1; transform: none; }

.ns-btn {

  flex: none; height: 34px; padding: 0 18px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  transition: background .16s, transform .1s;
}
.ns-btn:hover { background: var(--brand-dark); }
.ns-btn:active { transform: translateY(1px); }
.ns-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.nav-sec { padding-top: 28px; }

.nav-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nav-bar h2 { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.nav-bar .cicon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: #e4faf6; color: #0f9d76;
}
.nav-bar .count { font-size: 12px; color: var(--ink3); font-family: var(--mono); }
.nav-bar .line { flex: 1; height: 1px; background: var(--line); min-width: 16px; }

/* 收藏操作开关：常驻在「我的收藏」小节标题里，有收藏才显示（.show 由 nav.js 的 paint() 切换） */
.nav-gear {
  width: 22px; height: 22px; padding: 0; flex: none;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink3); cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.nav-gear.show { display: inline-flex; }
.nav-gear:hover { background: var(--brand-bg); color: var(--brand-dark); border-color: #c6efdf; }
.nav-gear .gear-i { transition: transform .3s ease; }
.nav-gear.on { background: var(--brand-bg); color: var(--brand-dark); border-color: var(--brand); }
.nav-gear.on .gear-i { transform: rotate(90deg); }
.nav-gear:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nav-group { margin-bottom: 13px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group h4 {
  font-size: 12px; color: var(--ink3); font-weight: 600;
  margin-bottom: 7px; letter-spacing: .4px;
}

/* 「我的收藏」小节：常驻在新闻资讯等分组上面，小标题同款式 */
.nav-fav h4.fav-h {
  display: flex; align-items: center; gap: 7px;
}
.fav-h .fav-count { font-size: 11px; color: var(--ink3); font-family: var(--mono); letter-spacing: 0; }
.fav-h .nav-gear { margin-left: -2px; }
.nav-fav .fav-body { min-height: 10px; }

.link-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

.link-card {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  transition: .16s cubic-bezier(.2, .7, .3, 1); position: relative;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: #c6efdf;
  box-shadow: 0 8px 20px rgba(15, 157, 118, .12);
}
.link-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  background: #f2f6f7; color: #3f4c58;
}
/* 真实站点图标（favicon）：等比缩放，不拉伸变形；取不到时该元素不渲染，
   会自动退回上面的 emoji / 首字母，所以这里不用管失败态 */
.link-ico img { width: 20px; height: 20px; display: block; object-fit: contain; }
.link-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.link-name {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-desc {
  font-size: 11px; color: var(--ink3); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lc-act { position: absolute; top: 5px; right: 5px; display: none; gap: 3px; transition: .15s; }
/* 编辑 / 删除默认收起，点导航栏上的齿轮（.nav-gear）才出现 */
.nav-body.manage .lc-act { display: flex; }
.lc-btn {
  width: 21px; height: 21px; border-radius: 6px;
  display: grid; place-items: center; font-size: 10px; line-height: 1;
  background: #fff; border: 1px solid var(--line); color: var(--ink2);
}
.lc-btn:hover { border-color: #c6efdf; color: var(--brand-dark); }
.lc-btn.del:hover { background: #fff2f2; border-color: #f6cfcf; color: #dc2626; }

.link-add {
  border: 1.5px dashed #d5dee5; border-radius: 11px; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink3); font-size: 12.5px; background: transparent; transition: .16s;
}
.link-add:hover { border-color: var(--brand-2); color: var(--brand-dark); background: var(--brand-bg); }

.nav-empty { font-size: 12.5px; color: var(--ink3); padding: 12px 2px 2px; line-height: 1.8; }

.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14, 28, 38, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 430px; background: #fff; border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow-l);
  animation: popIn .18s cubic-bezier(.2, .8, .3, 1);
}
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.modal .actions { margin-bottom: 0; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }

@media (max-width: 640px) {
  /* 搜索条在窄屏收紧，保证输入框还有足够宽度 */
  .nav-search { padding-top: 18px; }
  .ns-form { gap: 6px; padding: 6px 6px 6px 10px; }
  .ns-ico { display: none; }
  .ns-input { height: 32px; font-size: 13px; }
  .ns-cur { height: 32px; padding: 0 7px 0 5px; gap: 5px; }
  .ns-cur-in { gap: 5px; }
  .ns-cur-name { font-size: 12.5px; }
  .ns-menu { width: 210px; }
  .ns-btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .link-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .lc-act { gap: 2px; top: 4px; right: 4px; }
  .link-card { padding: 8px; gap: 7px; }
  .link-ico { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .link-ico img { width: 18px; height: 18px; }
  .link-name { font-size: 12.5px; }
  .link-desc { font-size: 10.5px; }
  .nav-bar .line { display: none; }
}

/* ===================== 右侧悬浮入口（会员中心 + 意见反馈） ===================== */
.float-dock {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 7px; z-index: 90;
}
/* 桌面端三个入口直接铺开，不需要这个收纳按钮 */
.float-toggle { display: none; }
.float-member,
.float-feedback,
.float-thanks {

  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 9px; border-radius: 12px 0 0 12px;
  border: 0; font: inherit; color: #fff; cursor: pointer;
  transition: padding .18s, box-shadow .18s, background .18s;
}
.float-member {
  background: linear-gradient(160deg, #17c495, #0f9d76);
  box-shadow: -6px 0 22px rgba(15, 157, 118, .22);
}
.float-member:hover { padding-right: 13px; box-shadow: -8px 0 28px rgba(15, 157, 118, .32); }
.float-member.logged { background: linear-gradient(160deg, #0f9d76, #0a6f54); }

/* 反馈是次要入口，用蓝灰，不与主色抢注意力 */
.float-feedback {
  background: linear-gradient(160deg, #6c7d8e, #47535f);
  box-shadow: -6px 0 22px rgba(71, 83, 95, .2);
}
.float-feedback:hover { padding-right: 13px; box-shadow: -8px 0 28px rgba(71, 83, 95, .3); }

/* 赞赏用暖金色，比反馈更轻，不和主色抢注意力 */
.float-thanks {
  background: linear-gradient(160deg, #f2b04a, #d98a2b);
  box-shadow: -6px 0 22px rgba(217, 138, 43, .22);
}
.float-thanks:hover { padding-right: 13px; box-shadow: -8px 0 28px rgba(217, 138, 43, .34); }

.fm-ico { font-size: 16px; line-height: 1; }
.fm-text {
  writing-mode: vertical-rl; font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; white-space: nowrap;
}

/* 移动端圆钮里的三横线，展开时转成 ×（用 CSS 画，不依赖字体图标） */
.ft-bars {
  display: block; position: relative; width: 17px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: background .16s;
}
.ft-bars::before,
.ft-bars::after {
  content: ''; position: absolute; left: 0;
  width: 17px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease;
}
.ft-bars::before { top: -5px; }
.ft-bars::after { top: 5px; }
.float-dock.open .ft-bars { background: transparent; }
.float-dock.open .ft-bars::before { transform: translateY(5px) rotate(45deg); }
.float-dock.open .ft-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ===================== 意见反馈弹窗 ===================== */
.fb-modal { max-width: 520px; }
.fb-modal h3 { margin-bottom: 5px; }
.fb-sub { font-size: 12.5px; color: var(--ink3); margin-bottom: 16px; line-height: 1.7; }
.fb-kind { width: 100%; }
.fb-kind .seg-btn { flex: 1; text-align: center; padding: 7px 10px; }
.fb-modal textarea.input {
  min-height: 116px; resize: vertical; line-height: 1.75;
  font-family: inherit; font-size: 13px;
}
.fb-count { margin-top: 5px; text-align: right; font-size: 11.5px; color: var(--ink3); }
.fb-done { text-align: center; }
.fb-done-ico {
  width: 54px; height: 54px; margin: 4px auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: #fff;
  background: linear-gradient(140deg, #16c79a, #0a7d5e);
  box-shadow: 0 8px 20px rgba(15, 157, 118, .28);
}
.fb-done .fb-sub { margin-bottom: 18px; }
.fb-done .actions { justify-content: center; }

/* ===================== 赞赏弹窗 ===================== */
.tn-modal { max-width: 380px; max-height: 94vh; overflow-y: auto; }
.tn-modal h3 { margin-bottom: 5px; }
.tn-sub { font-size: 12.5px; color: var(--ink3); line-height: 1.75; margin-bottom: 14px; }
.tn-tabs { width: 100%; margin-bottom: 12px; }
.tn-tabs .seg-btn { flex: 1; text-align: center; padding: 7px 10px; }

.tn-code {
  display: grid; place-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfd;
}
/* 收款码是整张海报图，限制高度避免小屏弹窗被撑爆 */
.tn-code img {
  display: block; width: auto; max-width: 100%; max-height: 46vh;
  object-fit: contain; border-radius: 8px; cursor: zoom-in;
}
.tn-tip { margin-top: 10px; font-size: 12px; color: var(--ink3); text-align: center; }
.tn-modal .actions { margin-top: 14px; margin-bottom: 0; justify-content: center; }

/* 打赏记录 tab */
.tn-pane[hidden] { display: none; }
.tn-recs { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tn-rec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 0 4px 8px; font-size: 12px; color: var(--ink3);
}
.tn-rec-list { list-style: none; margin: 0; padding: 0; }
.tn-rec {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px; font-size: 13px; line-height: 1.5;
}
.tn-rec:nth-child(odd) { background: #fafbfc; }
.tn-rec-at { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-rec-amt {
  margin-left: auto; font-weight: 600; color: var(--brand-dark);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tn-way {
  flex: none; font-size: 11px; line-height: 1.7; padding: 0 6px;
  border: 1px solid transparent; border-radius: 5px;
}
.tn-way-wechat { color: #0f9d58; background: #eefaf3; border-color: #d5f0e2; }
.tn-way-alipay { color: #1677ff; background: #eff6ff; border-color: #d9e8ff; }
.tn-way-other { color: var(--ink3); background: #f3f5f7; border-color: var(--line); }
.tn-rec-tip {
  padding: 30px 8px; text-align: center; line-height: 1.95;
  font-size: 12.5px; color: var(--ink3);
}
.tn-rec-tip a { color: var(--brand-dark); font-weight: 600; cursor: pointer; }
.tn-rec-foot {
  margin-top: 9px; text-align: center; line-height: 1.7;
  font-size: 11.5px; color: var(--ink3);
}

/* ===================== 账号弹窗 ===================== */
.auth-modal h3 { margin-bottom: 4px; }
.auth-sub { font-size: 12.5px; color: var(--ink3); margin-bottom: 16px; line-height: 1.6; }
.auth-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.auth-foot a { color: var(--brand-dark); font-weight: 600; cursor: pointer; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot i { color: var(--line); font-style: normal; }
.auth-modal .actions { margin-bottom: 0; }

/* ===================== 会员中心 ===================== */
.member-page { padding-top: 26px; max-width: 900px; }

.member-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.m-ava {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #16c79a, #0a7d5e);
  box-shadow: 0 6px 18px rgba(15, 157, 118, .26);
}
.m-ava-guest { background: #e8eef0; color: #8b9aa5; box-shadow: none; }
.m-info { flex: 1; min-width: 0; }
.m-info h1 { font-size: 21px; font-weight: 700; }
.m-info p { font-size: 13px; color: var(--ink2); margin-top: 2px; word-break: break-all; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-sub { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }

.member-list { display: flex; flex-direction: column; }
.m-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.m-row:last-child { border-bottom: none; }
.m-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
  background: #f1f6f5; color: #0a7d5e;
}
.m-ico img { width: 20px; height: 20px; display: block; object-fit: contain; }
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-name { font-size: 14px; font-weight: 600; }
.m-name:hover { color: var(--brand-dark); }
.m-url { font-size: 11.5px; color: var(--ink3); font-family: var(--mono); }
.m-act { display: flex; gap: 6px; flex: none; }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-danger { color: #d33; }
.btn-danger:hover { background: #fff4f4; border-color: #f6cfcf; color: #c02626; }

/* ---- 收藏列表：编辑 / 删除默认收起，点齿轮才出现 ---- */
.mb-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mb-gear {
  width: 36px; height: 36px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink3); cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.mb-gear:hover { background: var(--brand-bg); color: var(--brand-dark); border-color: #c6efdf; }
.mb-gear .gear-i { transition: transform .3s ease; }
.mb-gear.on { background: var(--brand-bg); color: var(--brand-dark); border-color: var(--brand); }
.mb-gear.on .gear-i { transform: rotate(90deg); }
.mb-gear:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 列表本身是 JS 渲染的，所以「默认隐藏」可以纯靠 CSS，不存在 JS 挂掉就永远改不了的问题 */
.member-list .m-act [data-edit],
.member-list .m-act [data-del] { display: none; }
.member-list.manage .m-act [data-edit],
.member-list.manage .m-act [data-del] { display: inline-flex; }

.member-note { font-size: 13px; color: var(--ink2); line-height: 1.9; }
.member-tip { margin-top: 14px; font-size: 12px; color: var(--ink3); }
.member-empty { text-align: center; padding: 34px 10px; color: var(--ink2); }
.member-empty p { margin-top: 6px; font-size: 13.5px; }

/* 收藏列表分页 */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--line);
}
.pager-info { font-size: 12px; color: var(--ink3); }
.pager-btns { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pg-btn {
  min-width: 30px; height: 30px; padding: 0 9px;
  font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink2); transition: .15s;
}
.pg-btn:hover:not(:disabled):not(.active) { border-color: #c6efdf; color: var(--brand-dark); background: #f7fffb; }
.pg-btn.active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 157, 118, .22);
}
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-gap { min-width: 16px; text-align: center; color: var(--ink3); font-size: 12px; line-height: 30px; }

.member-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.member-feats .feat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.member-feats .feat b { font-size: 13.5px; }
.member-feats .feat span { font-size: 12px; color: var(--ink3); line-height: 1.7; }
.member-guest .actions .btn { margin-top: 4px; }

@media (max-width: 640px) {
  /* 手机上收成右下角一个圆钮，点开再向上展开三个入口 */
  .float-dock {
    top: auto; bottom: 74px; right: 14px; transform: none;
    flex-direction: column; align-items: flex-end; gap: 9px;
    max-width: calc(100vw - 24px);
  }
  .float-member, .float-feedback, .float-thanks {
    flex-direction: row; border-radius: 22px; padding: 9px 15px;
    box-shadow: 0 6px 20px rgba(16, 32, 42, .18);
    transform-origin: right bottom;
    transition: opacity .18s ease, transform .18s ease, visibility .18s, box-shadow .18s;
  }
  /* 收起态：只剩圆钮，其它入口透明且不接收点击。
     注意「收起」是靠 JS 加的 .collapsed 才生效 —— 万一脚本没加载，
     三个入口照常显示（退回旧样子），不会整块入口都点不到。 */
  .float-dock.collapsed:not(.open) { pointer-events: none; }
  .float-dock.collapsed:not(.open) .float-member,
  .float-dock.collapsed:not(.open) .float-feedback,
  .float-dock.collapsed:not(.open) .float-thanks {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(10px) scale(.9);
  }
  .float-dock.collapsed:not(.open) .float-toggle { pointer-events: auto; }

  .float-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
    color: #fff; cursor: pointer;
    background: linear-gradient(150deg, #17c495, #0f9d76);
    box-shadow: 0 8px 22px rgba(15, 157, 118, .34);
    transition: transform .16s, box-shadow .16s;
  }
  .float-toggle:active { transform: scale(.93); }

  .float-member:hover, .float-feedback:hover, .float-thanks:hover { padding-right: 15px; }
  .fm-text { writing-mode: horizontal-tb; letter-spacing: .5px; font-size: 12px; }
  .member-page { padding-top: 18px; }
  .m-info h1 { font-size: 18px; }
  /* 长邮箱只占一行，超出用省略号，避免把「退出登录」挤到上一行 */
  .m-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
  .member-head .btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .m-ava { width: 46px; height: 46px; font-size: 19px; border-radius: 13px; }
  .member-feats { grid-template-columns: 1fr; }
  .m-row { gap: 9px; }
  .m-act { gap: 4px; }
  .m-act .btn-sm { padding: 0 7px; }
  .m-url { display: none; }
}

/* ===================== 文本去重分隔 ===================== */
/* 分隔符选择行：原分隔符 [下拉 (自定义输入)] 修改后分隔符 [下拉 (自定义输入)] */
.ds-sepbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 2px 0 14px;
}
.ds-lab {
  font-size: 13px; font-weight: 600; color: var(--ink2);
  white-space: nowrap;
}
.ds-sel {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #f7f9fa; color: var(--ink2); font-size: 13px;
  cursor: pointer; outline: none; max-width: 150px;
  transition: background .16s, border-color .16s, color .16s;
}
.ds-sel:hover { background: #fff; color: var(--ink); }
.ds-sel:focus { background: #fff; border-color: var(--brand-2); color: var(--ink); }
.ds-custom {
  width: 150px; height: 34px; padding: 0 10px; font-size: 13px;
  border-radius: 9px;
}

@media (max-width: 640px) {
  /* 窄屏：标签和控件分两行也放得下 */
  .ds-sepbar { gap: 6px; }
  .ds-lab2 { margin-left: 8px; }
  .ds-sel { height: 32px; max-width: 128px; font-size: 12.5px; }
  .ds-custom { width: 130px; height: 32px; }
}
