/* ==========================================================================
   YJ Feed Radar — 设计系统
   ========================================================================== */

:root {
  /* 让浏览器把原生控件（下拉列表弹层、滚动条、日期选择器）也画成深色。
     不加这行的话，select 的下拉弹层会是白底，而 option 继承了浅色文字，
     结果就是白字白底、看不见。 */
  color-scheme: dark;

  /* 底色：近黑的冷调，带一点蓝紫 */
  --bg:            #090b11;
  --bg-glow-1:     rgba(99, 102, 241, .10);
  --bg-glow-2:     rgba(34, 211, 238, .07);

  /* 表面层级 */
  --surface:       #11141c;
  --surface-2:     #161a24;
  --surface-3:     #1c2130;
  --surface-hi:    #222839;

  /* 描边 */
  --line:          rgba(255, 255, 255, .07);
  --line-2:        rgba(255, 255, 255, .12);
  --line-3:        rgba(255, 255, 255, .18);

  /* 文字 */
  --fg:            #e9edf6;
  --fg-dim:        #98a1b8;
  --fg-dim2:       #646d82;

  /* 品牌渐变 */
  --acc-1:         #6366f1;
  --acc-2:         #22d3ee;
  --acc-grad:      linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --acc-soft:      rgba(99, 102, 241, .14);

  /* 语义色 */
  --ok:            #34d399;
  --warn:          #fbbf24;
  --err:           #f87171;

  /* 平台色 */
  --c-x:           #4aa8ff;
  --c-xueqiu:      #f2645a;
  --c-wechat:      #2ec27e;
  --c-cls:         #f0a53a;
  --c-rss:         #c084fc;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 28px 70px -20px rgba(0,0,0,.8);
  --shadow-glow: 0 0 0 1px rgba(99,102,241,.35), 0 10px 34px -12px rgba(99,102,241,.5);

  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; min-height: 100%;
  max-width: 100%; overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* 背景氛围光 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, var(--bg-glow-1), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, var(--bg-glow-2), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(99,102,241,.05), transparent 60%);
}

a { color: #8ab4ff; text-decoration: none; transition: color .15s; }
a:hover { color: #b4cdff; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: rgba(99,102,241,.35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.09); border-radius: 99px;
  border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); background-clip: content-box; }

/* ==========================================================================
   顶栏
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 22px;
  background: rgba(9, 11, 17, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), rgba(34,211,238,.4), transparent);
  opacity: .55;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap; user-select: none;
}
.brand .mark {
  position: relative;
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--acc-grad);
  display: grid; place-items: center;
  box-shadow:
    0 6px 20px -4px rgba(99,102,241,.72),
    0 2px 6px -2px rgba(34,211,238,.4),
    inset 0 1px 0 rgba(255,255,255,.45);
}
/* 顶部一层高光，做出玻璃质感 */
.brand .mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,0) 58%);
  pointer-events: none;
}
.brand .mark svg { width: 21px; height: 21px; display: block; position: relative; }

.brand .name {
  font-size: 19.5px; font-weight: 780; letter-spacing: -.4px;
  color: var(--fg);
  text-shadow: 0 1px 14px rgba(99,102,241,.22);
}
.brand .yj {
  background: var(--acc-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 820;
}
.brand .live {
  width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52,211,153,.16); margin-left: 3px;
  transition: .2s;
}
.brand .live.busy {
  background: var(--warn); box-shadow: 0 0 0 3px rgba(251,191,36,.18);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

.stats { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.stat {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 11px; border-radius: 99px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-dim2);
  transition: .16s;
}
.stat:hover { background: rgba(255,255,255,.06); }
.stat b { color: var(--fg); font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }

.spacer { flex: 1; min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-dim); white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-dim2); flex: none; }
.pill.on  .dot { background: var(--ok);   box-shadow: 0 0 8px rgba(52,211,153,.8); }
.pill.off .dot { background: var(--err);  box-shadow: 0 0 8px rgba(248,113,113,.7); }
.pill.ro  { color: var(--warn); border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.08); }
.pill.ro .dot { background: var(--warn); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: var(--fg);
  border: 1px solid var(--line-2);
  cursor: pointer; white-space: nowrap;
  font-size: 13.5px; font-weight: 500;
  transition: background .16s, border-color .16s, transform .12s, box-shadow .16s;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: var(--line-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn.primary {
  background: var(--acc-grad);
  border-color: transparent;
  color: #08111c; font-weight: 650;
  box-shadow: 0 6px 20px -8px rgba(99,102,241,.9);
}
.btn.primary:hover { filter: brightness(1.09); box-shadow: 0 8px 26px -8px rgba(99,102,241,1); }

.btn.danger { color: #ffb3b3; border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.08); }
.btn.danger:hover { background: rgba(248,113,113,.16); }

.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 8px 10px; }

/* 订阅源排序的小方块按钮 */
.btn.sm.icon {
  padding: 3px 0; width: 26px; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.25;
}
.btn:disabled { opacity: .28; cursor: not-allowed; }
.btn:disabled:hover {
  background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--fg-dim);
}
.ord-cell { white-space: nowrap; }
.ord-cell .btn + .btn { margin-left: 4px; }

/* 只读提示条 */
.readonly-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; font-size: 12.5px;
  color: #ffd98a;
  background: linear-gradient(90deg, rgba(251,191,36,.05), rgba(251,191,36,.14), rgba(251,191,36,.05));
  border-bottom: 1px solid rgba(251,191,36,.2);
}
.readonly-banner b { color: #ffe6ad; font-weight: 650; }

/* 抓取失败的原因提示 */
.notice {
  background: linear-gradient(180deg, rgba(248,113,113,.07), rgba(248,113,113,.03));
  border: 1px solid rgba(248,113,113,.22);
  border-radius: var(--r);
  padding: 12px 15px; margin-bottom: 16px;
}
.notice .nhead {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 650; color: #ffb3b3; margin-bottom: 8px;
}
.notice .nrow {
  display: flex; gap: 9px; align-items: baseline;
  font-size: 12.5px; color: var(--fg-dim); line-height: 1.7;
  padding: 3px 0;
}
.notice .nrow + .nrow { border-top: 1px solid rgba(255,255,255,.05); padding-top: 7px; margin-top: 4px; }
.notice .nname { color: var(--fg); font-weight: 600; flex: none; white-space: nowrap; }
.notice .nauto {
  flex: none; font-size: 11px; padding: 1px 7px; border-radius: 99px;
  background: rgba(52,211,153,.13); color: var(--ok); white-space: nowrap;
}
.notice .nmanual {
  flex: none; font-size: 11px; padding: 1px 7px; border-radius: 99px;
  background: rgba(251,191,36,.15); color: var(--warn); white-space: nowrap;
}

/* ==========================================================================
   布局
   ========================================================================== */
.layout { display: flex; align-items: flex-start; }

.sidebar {
  width: 244px; flex: none;
  position: sticky; top: 62px;
  height: calc(100vh - 62px); overflow-y: auto;
  padding: 18px 12px 40px;
  border-right: 1px solid var(--line);
}
.side-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--fg-dim2); padding: 4px 12px 9px;
}

.src-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; margin-bottom: 2px;
  border-radius: 10px; cursor: pointer;
  color: var(--fg-dim); font-size: 14.5px;
  transition: background .15s, color .15s;
}
.src-item:hover { background: rgba(255,255,255,.045); color: var(--fg); }
.src-item.active {
  background: linear-gradient(90deg, var(--acc-soft), rgba(34,211,238,.05));
  color: var(--fg); font-weight: 550;
}
.src-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 19px; border-radius: 0 3px 3px 0; background: var(--acc-grad);
}
.src-item .pdot { width: 7.5px; height: 7.5px; border-radius: 50%; flex: none; }
.src-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-item .badge {
  font-size: 11.5px; padding: 1px 7px; border-radius: 99px;
  background: rgba(255,255,255,.07); color: var(--fg-dim);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.src-item.active .badge { background: rgba(99,102,241,.22); color: #cfd6ff; }
.src-item .st { width: 6.5px; height: 6.5px; border-radius: 50%; flex: none; }
.st.ok   { background: var(--ok);   box-shadow: 0 0 7px rgba(52,211,153,.7); }
.st.err  { background: var(--err);  box-shadow: 0 0 7px rgba(248,113,113,.6); }
.st.warn { background: var(--warn); box-shadow: 0 0 7px rgba(251,191,36,.55); }
.st.idle { background: var(--fg-dim2); }

.main { flex: 1; min-width: 0; padding: 22px 26px 100px; }
.main > * { max-width: 940px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   工具条
   ========================================================================== */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 380px; }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--fg-dim2); pointer-events: none;
}
.toolbar input[type=search], .toolbar select {
  padding: 9px 13px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line); color: var(--fg);
  outline: none; transition: border-color .16s, background .16s, box-shadow .16s;
  appearance: none;
}
.toolbar input[type=search] { width: 100%; padding-left: 35px; }
.toolbar select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646d82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.toolbar input:focus, .toolbar select:focus {
  border-color: rgba(99,102,241,.6); background-color: rgba(99,102,241,.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}
.toolbar input::placeholder { color: var(--fg-dim2); }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--fg-dim); }
.switch input { display: none; }
.switch .track {
  width: 38px; height: 21px; border-radius: 99px; flex: none;
  background: rgba(255,255,255,.09); border: 1px solid var(--line-2);
  position: relative; transition: .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--fg-dim);
  transition: .2s cubic-bezier(.4,0,.2,1);
}
.switch input:checked + .track { background: var(--acc-grad); border-color: transparent; }
.switch input:checked + .track::after { left: 20px; background: #08111c; }
.switch:hover .track { border-color: var(--line-3); }

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0)) , var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  animation: cardIn .35s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } }
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
/* ---- 未读 vs 已读：色条 + 亮度 + 角标，三重区分 ---- */

/* 未读：左侧渐变条 + 略亮的底 + 标题加粗 */
.card.unread {
  border-color: rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(99,102,241,.062), rgba(255,255,255,0)) , var(--surface);
}
.card.unread::before {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
  border-radius: 99px; background: var(--acc-grad);
}
.card.unread .card-head .who { color: var(--fg); font-weight: 650; }

.unread-dot {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 1px 7px; border-radius: 99px;
  color: #dbe1ff; background: rgba(99,102,241,.28);
  border: 1px solid rgba(99,102,241,.42);
  flex: none;
}

/* 已读：比未读稍微暗一点就行。
   注意别用整体 opacity —— 深色背景下一压就发灰发闷，看久了眼睛累。
   改成只把文字降一档颜色 + 去掉色条和角标，柔和但依然分得清。 */
.card.read {
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.012);
}
.card.read .card-head .who { color: var(--fg-dim); font-weight: 520; }
.card.read .title { color: var(--fg-dim); font-weight: 570; }
.card.read .body { color: var(--fg-dim); }
.card.read .card-foot { opacity: .8; }
.card.read .imgs img { filter: grayscale(.3) brightness(.92); }

.card.is-new { box-shadow: var(--shadow-glow); }

.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.avatar {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #0b1018;
}
.card-head .who { font-weight: 620; font-size: 13.5px; letter-spacing: -.1px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  border: 1px solid transparent; letter-spacing: .2px;
}
.card-head .time { color: var(--fg-dim2); font-size: 12px; margin-left: auto; white-space: nowrap; }

.card .title {
  font-size: 15.5px; font-weight: 620; line-height: 1.5;
  margin: 3px 0 7px; letter-spacing: -.15px; color: #f2f5fb;
}
.card .body {
  color: #c2cade; font-size: 13.8px; line-height: 1.78;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  overflow: hidden;
}
.card .body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.card .more {
  display: inline-block; margin-top: 6px; font-size: 12.5px;
  color: #8ab4ff; cursor: pointer; font-weight: 500;
}
.card .more:hover { color: #b4cdff; }

.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 11px; flex-wrap: wrap; }
.card-foot a { font-size: 12.5px; font-weight: 500; }
.card-foot .meta { color: var(--fg-dim2); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.imgs { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }
.imgs img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-3);
  transition: transform .2s, border-color .2s;
}
.imgs img:hover { transform: scale(1.03); border-color: var(--line-3); }

.rt {
  margin-top: 11px; padding: 10px 13px;
  border-left: 2px solid rgba(99,102,241,.5);
  background: rgba(255,255,255,.028); border-radius: 0 10px 10px 0;
  color: var(--fg-dim); font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.rt b { color: #cfd6ff; font-weight: 620; }

.empty { text-align: center; color: var(--fg-dim2); padding: 80px 20px; line-height: 2; }
.empty .big { font-size: 44px; margin-bottom: 14px; opacity: .8; }
.empty .t { font-size: 15px; color: var(--fg-dim); margin-bottom: 6px; }

/* ==========================================================================
   弹窗
   ========================================================================== */
.mask {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
  background: rgba(4,6,10,.72);
  backdrop-filter: blur(6px);
}
.mask.show { display: flex; }

.modal {
  width: 100%; max-width: 800px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 200px), var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .26s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.modal.wide { max-width: 1020px; }
.modal h2 {
  margin: 0 0 6px; font-size: 19px; font-weight: 680; letter-spacing: -.3px;
}
.modal h3 {
  font-size: 13px; font-weight: 650; color: var(--fg-dim);
  letter-spacing: .3px; text-transform: none;
  margin: 22px 0 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.modal .sub { color: var(--fg-dim2); font-size: 12.8px; margin-bottom: 18px; line-height: 1.7; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.field { margin-bottom: 14px; min-width: 0; }
.field > label {
  display: block; font-size: 12px; color: var(--fg-dim);
  margin-bottom: 6px; font-weight: 600; letter-spacing: .1px;
}
/* 必填 / 可选 标注 */
.field > label .req, .field > label .opt {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  padding: 1px 6px; border-radius: 99px; margin-left: 6px; vertical-align: 1px;
}
.field > label .req {
  color: #ffb4b4; background: rgba(248,113,113,.14);
  border: 1px solid rgba(248,113,113,.3);
}
.field > label .opt {
  color: var(--fg-dim2); background: rgba(255,255,255,.055);
  border: 1px solid var(--line-2);
}
.field label.switch {
  display: inline-flex; margin-bottom: 0; font-weight: 400;
  font-size: 13px; color: var(--fg);
}
.field input[type=text], .field input[type=number], .field input[type=password],
.field select, .field textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); color: var(--fg);
  outline: none; transition: border-color .16s, background .16s, box-shadow .16s;
  font-family: inherit;
}
.field textarea { resize: vertical; line-height: 1.65; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(99,102,241,.6); background-color: rgba(99,102,241,.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim2); }

/* 下拉选项：显式给深色底 + 浅色字。
   Windows 上原生弹层不吃继承的 background，必须单独写 option。 */
select option,
select optgroup {
  background-color: var(--surface-2);
  color: var(--fg);
}
select option:checked,
select option:hover {
  background-color: #2a3350;
  color: #fff;
}
/* 下拉箭头：给 .field select 补一个（.toolbar select 上面已经自己画过了） */
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.7 6 8l3-3.3' fill='none' stroke='%2398a1b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px;
  padding-right: 32px;
}
.field .hint { font-size: 11.5px; color: var(--fg-dim2); margin-top: 6px; line-height: 1.65; }
.field .hint code, .modal .sub code {
  background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px;
  font-family: var(--mono); font-size: 11px; color: #9fd0ff;
}

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

.note {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
  border-left: 2px solid var(--acc-1);
  border-radius: 0 10px 10px 0;
  padding: 12px 15px; font-size: 12.5px; color: var(--fg-dim);
  line-height: 1.8; margin-bottom: 16px;
}
.note b { color: var(--fg); font-weight: 620; }
.note code {
  background: rgba(0,0,0,.32); padding: 1px 6px; border-radius: 5px;
  font-family: var(--mono); font-size: 11px; color: #9fd0ff;
}

/* 订阅源表格 */
table.src-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.src-table th {
  text-align: left; color: var(--fg-dim2); font-weight: 650; font-size: 11px;
  text-transform: uppercase; letter-spacing: .7px;
  padding: 9px 10px; border-bottom: 1px solid var(--line-2);
}
table.src-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.src-table tr:last-child td { border-bottom: none; }
table.src-table tbody tr { transition: background .14s; }
table.src-table tbody tr:hover td { background: rgba(255,255,255,.028); }
.msg-ok  { color: var(--ok); }
.msg-err { color: var(--err); }
.msg-dim { color: var(--fg-dim2); }

.logbox {
  max-height: 340px; overflow: auto;
  background: rgba(0,0,0,.34); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85;
}
.logbox .l-ok  { color: var(--ok); }
.logbox .l-err { color: var(--err); }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 200;
  transform: translateX(-50%) translateY(16px) scale(.97);
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 99px;
  background: rgba(28,33,48,.94);
  border: 1px solid var(--line-3);
  color: var(--fg); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .22s, transform .22s cubic-bezier(.2,.7,.3,1);
  pointer-events: none; max-width: 82vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast.ok  { border-color: rgba(52,211,153,.42); }
.toast.err { border-color: rgba(248,113,113,.42); }

/* 加载更多 */
.load-more { text-align: center; margin: 26px 0 10px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .layout { display: block; }
  .main { padding: 14px 13px 70px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 13px; gap: 8px; }
  .topbar .btn { padding: 7px 11px; font-size: 13px; }
  .brand .mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand .mark svg { width: 18px; height: 18px; }
  .brand .name { font-size: 16.5px; }
  .stats { gap: 5px; margin-left: 0; }
  .stat { padding: 4px 9px; font-size: 11.5px; }
  .stat-24h { display: none; }
  .search-wrap { max-width: none; flex: 1 1 100%; }
  .toolbar select { flex: 1; min-width: 120px; }
  .card { padding: 14px 15px; border-radius: 14px; }
  .card .title { font-size: 15px; }
  .card .body { font-size: 13.5px; }
  .card .body.clamp { -webkit-line-clamp: 8; }
  .card-head .time { margin-left: 0; width: 100%; }
  .imgs img { width: 92px; height: 92px; }
  .modal { padding: 20px 17px; border-radius: 16px; }
  .mask { padding: 14px 9px; }
  table.src-table { display: block; overflow-x: auto; white-space: nowrap; }
  .readonly-banner { font-size: 12px; padding: 8px 13px; text-align: center; }
}
@media (max-width: 560px) {
  .brand .live { display: none; }
  .stat-unread { display: none; }
  #proxy-pill { display: none; }
}
