:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --soft: #f1f3f6;
  --field: #f7f8fa;
  --line: #eceef2;
  --line-2: #e2e6ed;
  --text: #1b1f27;
  --text-2: #3d4553;
  --muted: #767f8d;
  --faint: #9aa2af;
  --blue: #2b6cf6;
  --blue-2: #1e5ce0;
  --blue-soft: #eef3ff;
  --blue-line: #d9e3fd;
  --danger: #e5484d;
  --ok: #17a673;
  --ok-bg: #e9f8f1;
  --ok-line: #c8ecdc;
  --ok-fg: #0d8a5f;
  --strip-bg: #f2f5fd;
  --strip-fg: #2f6bf0;
  --strip-line: #e8eefc;
  --tip-bg: #eff4ff;
  --tip-line: #dfe8fd;
  --tip-fg: #4a5b7c;
  --note-bg: #f1f6ff;
  --note-line: #dde9fd;
  --note-fg: #2f5aa8;
  --warn-bg: #fff8ea;
  --warn-line: #ffe9c2;
  --warn-fg: #96650f;
  --shadow-sm: 0 2px 10px rgba(24, 40, 80, 0.04);
  --shadow-md: 0 6px 22px rgba(24, 40, 80, 0.06);
  --radius: 10px;
  --header-h: 58px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1117;
  --panel: #161b24;
  --panel-2: #1a212b;
  --soft: #222a36;
  --field: #1b222d;
  --line: #232b37;
  --line-2: #2d3746;
  --text: #e7ebf3;
  --text-2: #c3cbd8;
  --muted: #8c96a6;
  --faint: #6b7584;
  --blue: #5b8cff;
  --blue-2: #7ba4ff;
  --blue-soft: #1a2440;
  --blue-line: #2a3d63;
  --danger: #ff6b6f;
  --ok: #35c48d;
  --ok-bg: #12291f;
  --ok-line: #1f4a36;
  --ok-fg: #55d4a1;
  --strip-bg: #141c2c;
  --strip-fg: #86a9ff;
  --strip-line: #1e2a44;
  --tip-bg: #16203a;
  --tip-line: #243356;
  --tip-fg: #a9bbe0;
  --note-bg: #16203a;
  --note-line: #243356;
  --note-fg: #9db6ea;
  --warn-bg: #2a2113;
  --warn-line: #4a3a1c;
  --warn-fg: #e0b071;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.topstrip {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--strip-fg);
  background: var(--strip-bg);
  border-bottom: 1px solid var(--strip-line);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.hwrap {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1160px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #2f6bff 0%, #6f4bff 100%);
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.28);
}

.logo-img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 23px;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

.logo-img-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(61, 107, 245, 0.28);
}

.brand-name {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
}

.hnav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 4px;
}

.hnav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.hnav a:hover { color: var(--blue); }

.hright {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hicon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.hicon svg { width: 17px; height: 17px; }
.hicon:hover { color: var(--text); background: var(--soft); }

.hicon .ico-sun { display: none; }
html[data-theme="dark"] .hicon .ico-moon { display: none; }
html[data-theme="dark"] .hicon .ico-sun { display: block; }

.hsep { width: 1px; height: 14px; background: var(--line-2); }

.huser {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.huser a,
.huser button {
  font-size: 12.5px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

.huser a:hover,
.huser button:hover { color: var(--blue); }

.huser .uname {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}

.huser .admin-chip {
  font-size: 10.5px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.6;
}

.huser .hsep { width: 1px; height: 12px; background: var(--line-2); }

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
#footLinks { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.foot-label { color: var(--faint); }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.foot-line { line-height: 1.8; }
.foot-line a { color: inherit; }
.foot-line a:hover { color: var(--blue); }
#footIcp:not(:empty) { margin-left: 8px; }

.page { min-height: calc(100vh - 250px); min-height: calc(100dvh - 250px); }

.home {
  padding: clamp(56px, 7vw, 96px) 20px clamp(48px, 6vw, 80px);
}

.hero { max-width: 680px; margin: 0 auto; text-align: center; }

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-brand h1 {
  margin: 0;
  font-size: clamp(25px, 4.6vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-sub {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.bigsearch {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  margin-top: 34px;
  padding: 0 4px 0 44px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bigsearch:focus-within {
  border-color: var(--blue-line);
  box-shadow: 0 6px 24px rgba(43, 108, 246, 0.13);
}

.search-ico {
  position: absolute;
  left: 17px;
  width: 17px;
  height: 17px;
  color: var(--faint);
}

.bigsearch input,
.ressbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 14.5px;
  color: var(--text);
}

.bigsearch input::placeholder,
.ressbar input::placeholder { color: var(--faint); }

.bigsearch button,
.ressbar button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: 0;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 50%;
  transition: background 0.15s;
}

.bigsearch button svg,
.ressbar button svg { width: 18px; height: 18px; stroke-width: 2.1; }

.bigsearch button:hover,
.ressbar button:hover { background: var(--blue-2); }
.bigsearch button:disabled,
.ressbar button:disabled { opacity: 0.6; }

.quickrow {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.qbtn {
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 12px;
}

.qbtn:hover { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }

.quickrow:empty,
.kwcloud:empty { display: none; }

.kwcloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 26px;
}

.kw {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 11px;
  transition: color 0.13s, background 0.13s;
}

.kw:hover { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }

.results {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.main { min-width: 0; }

.fcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.fcard.tip {
  background: var(--tip-bg);
  border-color: var(--tip-line);
  padding: 11px 12px;
}

.fcard.tip p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--tip-fg);
}

.fcard.tip b { color: var(--blue); font-weight: 500; }

.fcard-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 1px 2px 9px;
}

.fcard-head .mini { margin-left: auto; }

.fico { width: 13px; height: 13px; color: var(--faint); }

.frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.frow > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.frow select {
  flex: 1;
  min-width: 0;
  max-width: 132px;
  height: 26px;
  padding: 0 20px 0 8px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--field) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239aa2af' stroke-width='3' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 7px center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.frow select:focus { border-color: var(--blue-line); }

.togs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.tog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.tog input { position: absolute; opacity: 0; pointer-events: none; }

.tog i {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background 0.15s;
  flex-shrink: 0;
}

.tog i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--panel);
  transition: transform 0.15s;
}

.tog input:checked + i { background: var(--blue); }
.tog input:checked + i::after { transform: translateX(12px); }

.fbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
}

.fbtns button {
  height: 28px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

.fbtns button:hover { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }

.clear-filter {
  align-self: flex-start;
  font-size: 12px;
  color: var(--faint);
  background: none;
  border: none;
  padding: 2px 4px;
}

.clear-filter:hover { color: var(--blue); }

.ressbar {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 4px 0 40px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.ressbar:focus-within { border-color: var(--blue-line); }

.ressbar .search-ico { left: 15px; width: 16px; height: 16px; }

.ressbar button { width: 38px; height: 38px; }

.resultline {
  margin: 14px 2px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.resultline b { color: var(--text); font-weight: 500; }

.resultline .hl { color: var(--blue); }

.cards { display: flex; flex-direction: column; gap: 10px; }

.rcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px 11px;
  transition: border-color 0.15s, box-shadow 0.15s;
  animation: rise 0.22s ease both;
}

.rcard:hover { border-color: var(--line-2); box-shadow: 0 3px 14px rgba(24, 40, 80, 0.05); }

@keyframes rise {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

.rcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.netbadge {
  --nd: #2b6cf6;
  font-size: 11px;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--nd);
  background: color-mix(in srgb, var(--nd) 11%, var(--panel));
}

.netbadge[data-type="baidu"] { --nd: #1a56c4; }
.netbadge[data-type="aliyun"] { --nd: #6d3bbf; }
.netbadge[data-type="quark"] { --nd: #1779c4; }
.netbadge[data-type="uc"] { --nd: #1a56c4; }
.netbadge[data-type="115"] { --nd: #b32b23; }
.netbadge[data-type="tianyi"] { --nd: #a8580b; }
.netbadge[data-type="mobile"] { --nd: #0b7a4b; }
.netbadge[data-type="123"] { --nd: #1f5fbf; }
.netbadge[data-type="lanzou"] { --nd: #2b5fd9; }
.netbadge[data-type="magnet"], .netbadge[data-type="ed2k"] { --nd: #4b5262; }
.netbadge[data-type="web"] { --nd: #767f8d; }
.netbadge[data-type="pending"] { --nd: #8a6d1f; }

html[data-theme="dark"] .netbadge {
  color: color-mix(in srgb, var(--nd) 55%, #fff);
  background: color-mix(in srgb, var(--nd) 26%, transparent);
}

.rcard-src { font-size: 11px; color: var(--faint); }

.rcard-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

.rcard-title a {
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.rcard-title a:hover { color: var(--blue); }

.filelist {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filelist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
  min-width: 0;
}

.filelist .fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filelist .more { font-size: 11.5px; color: var(--faint); }

.fico-file {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #e8776f;
}

.fico-file[data-k="video"] { color: #e8776f; }
.fico-file[data-k="image"] { color: #38a169; }
.fico-file[data-k="doc"] { color: #2b6cf6; }
.fico-file[data-k="audio"] { color: #b7791f; }
.fico-file[data-k="archive"] { color: #8b5cf6; }

.racts {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.act {
  font-size: 11.5px;
  line-height: 1.7;
  padding: 1px 9px;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 5px;
}

.act:hover { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }

.act.primary-act {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue-line);
}

.codechip {
  font-size: 11px;
  color: var(--warn-fg);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 5px;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.codechip:hover { background: color-mix(in srgb, var(--warn-fg) 14%, var(--warn-bg)); }

.rfoot {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--faint);
}

.rfoot .sep { color: var(--line-2); }

.rfoot .cross {
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 0 5px;
}

.rfoot .tagchip {
  color: var(--text-2);
  background: var(--soft);
  border-radius: 4px;
  padding: 0 5px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfoot .acts-r { margin-left: auto; display: flex; gap: 10px; }

.rfoot button {
  font-size: 11.5px;
  color: var(--faint);
  background: none;
  border: none;
  padding: 0;
}

.rfoot button:hover { color: var(--blue); }

.skeleton {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.sk-line {
  height: 11px;
  border-radius: 4px;
  background: var(--soft);
  margin-bottom: 9px;
  animation: pulse 1.4s ease-in-out infinite;
}

.sk-line.w60 { width: 60%; }
.sk-line.w90 { width: 90%; }
.sk-line.w35 { width: 35%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px 20px;
  text-align: center;
}

.empty .t { font-size: 14px; color: var(--text-2); }
.empty .s { margin-top: 6px; font-size: 12.5px; color: var(--faint); }

.detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 20px 70px;
}

.dcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
}

.dhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.dtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  font-size: 12.5px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 6px;
}

.dtag svg { width: 13px; height: 13px; }

.did {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dtitle {
  margin: 14px 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.dfiles {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  max-height: 210px;
  overflow-y: auto;
  background: var(--panel-2);
}

.dfiles .filelist { margin: 0; }
.dfiles .filelist li { font-size: 12.5px; }

.dinfo {
  margin: 14px 0 0;
  padding: 0;
}

.drow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.drow:last-child { border-bottom: none; }

.drow::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3f7bf7;
}

.drow .k { color: var(--muted); width: 74px; flex-shrink: 0; }
.drow .v { color: var(--text-2); min-width: 0; word-break: break-word; }
.drow .v.ok { color: var(--ok); }
.drow .v.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.drow .v.html { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.linkstate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.linkstate::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.linkstate.ok { --ls: #0d8a5f; }
.linkstate.dead { --ls: #b8680a; }
.linkstate.unknown { --ls: #6b7481; }

.linkstate {
  color: var(--ls);
  background: color-mix(in srgb, var(--ls) 13%, var(--panel));
}

html[data-theme="dark"] .linkstate.ok { --ls: #45d29b; }
html[data-theme="dark"] .linkstate.dead { --ls: #f0b45f; }
html[data-theme="dark"] .linkstate.unknown { --ls: #a4aebe; }

.lswhy { color: var(--faint); font-size: 12px; }

.dchip {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dchip:hover { background: var(--blue-soft); color: var(--blue); }

.rcard-report {
  font-size: 11px;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--note-fg);
  background: var(--note-bg);
  border: 1px solid var(--note-line);
}

.rcard-dead {
  font-size: 11px;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--warn-fg);
  background: var(--warn-bg);
}

.dlink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.dlink .u {
  flex: 1;
  min-width: 0;
  color: var(--blue);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlink .u:hover { text-decoration: underline; }

.dfeedback {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--warn-fg);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 9px;
}
.dfeedback.is-mine { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }

.dfb-head { display: flex; align-items: center; gap: 10px; }
.dfb-head b { font-weight: 500; font-size: 12.5px; color: var(--warn-fg); }
.dfeedback.is-mine .dfb-head b { color: var(--ok-fg); }
.dfb-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
}
.dfb-count b { color: var(--warn-fg); font-weight: 600; }
.dfeedback.is-mine .dfb-count b { color: var(--ok-fg); }

.dfb-sub { margin: 6px 0 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }

.dfb-types { display: flex; flex-wrap: wrap; gap: 6px; }
.rtype {
  font-size: 11.5px;
  line-height: 22px;
  padding: 0 9px;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.rtype:hover { border-color: var(--warn-line); color: var(--warn-fg); }
.rtype.on {
  color: #fff;
  background: var(--warn-fg);
  border-color: var(--warn-fg);
}

.dfeedback textarea {
  width: 100%;
  margin-top: 9px;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  resize: vertical;
  min-height: 40px;
  outline: none;
}
.dfeedback textarea:focus { border-color: var(--warn-line); }

.dfb-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.dfb-hint { font-size: 11.5px; color: var(--faint); }
.dfb-submit {
  margin-left: auto;
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  color: #fff;
  background: var(--warn-fg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.dfb-submit:hover { filter: brightness(0.94); }
.dfb-submit[disabled] { opacity: 0.55; cursor: default; }
.dfeedback.is-mine .dfb-submit { background: var(--ok-fg); }

.dnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--note-fg);
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: 8px;
}

.dnote .ico { width: 14px; height: 14px; flex-shrink: 0; color: #3f7bf7; }

.dactions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.dactions button,
.dbtn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text-2);
  text-decoration: none;
}

.dactions button:hover { color: var(--blue); border-color: var(--blue-line); }

.dactions button.primary,
.dbtn.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.dactions button.primary:hover,
.dbtn.primary:hover { background: var(--blue-2); border-color: var(--blue-2); }

#rulesDlgList {
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 4px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  width: min(600px, calc(100vw - 40px));
}

dialog::backdrop { background: rgba(20, 26, 38, 0.34); }

.dlg { padding: 18px 20px 16px; }

.dlg h2 { margin: 0; font-size: 15px; font-weight: 600; }

.dlg-desc { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }

.dlg-body { font-size: 12.5px; color: var(--text-2); line-height: 1.85; }
.dlg-body p { margin: 0 0 8px; }
.dlg-body code {
  font-size: 11.5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}

.field { display: block; margin-bottom: 11px; }

.field > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus { border-color: var(--blue-line); }

.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.dlg-actions .ghost { width: auto; height: 32px; padding: 0 14px; font-size: 12.5px; }

.primary {
  height: 32px;
  padding: 0 16px;
  font-size: 12.5px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
}

.primary:hover { background: var(--blue-2); }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(24, 40, 80, 0.1);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 50;
}

.toast.show { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hwrap { gap: 18px; }
  .hnav { gap: 18px; }
  .results { grid-template-columns: 204px minmax(0, 1fr); gap: 16px; padding: 18px 18px 72px; }
}

@media (max-width: 860px) {
  .hwrap { padding: 0 14px; gap: 12px; }
  .hnav { display: none; }
  .hero-brand h1 { font-size: 27px; }
  .home { padding: 48px 16px 56px; }
  .results { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 70px; gap: 12px; }
  .sidebar { position: static; }
  .sidebar .fcard { min-width: 0; }
  .sidebar .fcard.tip { display: none; }
  .sidebar .fcard:nth-of-type(3) { display: none; }
  .ressbar { height: 42px; }
  .rcard { padding: 12px 13px 10px; }
  .detail { padding: 14px 14px 60px; }
}

@media (max-width: 560px) {
  .topstrip { height: auto; min-height: 32px; padding: 5px 12px; line-height: 1.5; }
  .brand-name { font-size: 15.5px; }
  .hero-sub { font-size: 12.5px; }
  .bigsearch { height: 48px; padding-left: 40px; }
  .bigsearch .search-ico { left: 14px; }
  .quickrow { gap: 6px; margin-top: 18px; }
  .kwcloud { gap: 7px; padding: 0; }
  .qbtn, .kw { padding: 5px 10px; }
  .dfb-submit { width: 100%; margin-left: 0; justify-content: center; }
  .toast { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

@media (hover: none) and (pointer: coarse) {
  .qbtn, .kw { min-height: 32px; }
  .hicon { width: 36px; height: 36px; }
  .tog { height: 34px; }
  .fbtns button { height: 34px; }
  .act { min-height: 30px; }
  .dbtn, .dactions button { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
