/* ================= 文件分享 · 新版面板（sf-*） ================= */
.sf-wrap {
  --sf-ink: #241c20;
  --sf-sub: #8b7f85;
  --sf-line: #f0e7e4;
  --sf-soft: #fbf7f6;
  --sf-red: #ff3b30;
  --sf-grad: linear-gradient(135deg, #ff7a45 0%, #ff3b30 62%, #f2261b 100%);
  --sf-shadow: 0 12px 30px rgba(126, 66, 56, .07);
  display: block;
}

/* ---- 顶部 ---- */
.sf-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.sf-head-l { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sf-badge {
  width: 46px; height: 46px; flex: none;
  border-radius: 15px; display: grid; place-items: center;
  background: var(--sf-grad); color: #fff;
  box-shadow: 0 10px 22px rgba(255, 59, 48, .28);
}
.sf-badge svg { width: 22px; height: 22px; }
.sf-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--sf-ink); margin: 0; }
.sf-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--sf-sub); }
.sf-head-r { display: flex; align-items: center; gap: 9px; }
.sf-kpi {
  min-width: 74px; padding: 9px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--sf-line);
  text-align: center; box-shadow: var(--sf-shadow);
}
.sf-kpi b { display: block; font-size: 17px; line-height: 1.15; color: var(--sf-ink); }
.sf-kpi span { font-size: 11px; color: var(--sf-sub); letter-spacing: .5px; }
.sf-kpi.is-accent {
  border-color: rgba(255, 59, 48, .18);
  background: linear-gradient(180deg, #fff6f4, #fff);
}
.sf-kpi.is-accent b { color: #f2261b; }
.sf-icon-btn {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px solid var(--sf-line); color: #6c6067;
  display: grid; place-items: center; transition: .18s;
}
.sf-icon-btn:hover { color: var(--sf-red); border-color: rgba(255,59,48,.3); transform: translateY(-1px); }
.sf-icon-btn svg { width: 17px; height: 17px; }
.sf-icon-btn.is-spinning svg { animation: sfSpin .6s linear infinite; }
@keyframes sfSpin { to { transform: rotate(360deg); } }

/* ---- 两栏布局 ---- */
.sf-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 400px);
  gap: 16px; align-items: stretch;
}
.sf-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-col > .sf-card:not(.sf-filelist-card) { flex: 0 0 auto; }
.sf-filelist-card { flex: 1 1 auto; min-height: 280px; display: flex; flex-direction: column; }
.sf-filelist-card > .sf-list { flex: 1 1 auto; }
.sf-card {
  background: #fff; border: 1px solid var(--sf-line); border-radius: 20px;
  box-shadow: var(--sf-shadow); padding: 16px;
  animation: sfRise .5s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes sfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- 上传区 ---- */
.sf-drop {
  position: relative; border-radius: 16px; cursor: pointer;
  border: 1.6px dashed #ecd8d3; background: linear-gradient(180deg, #fffaf9, #fff);
  padding: 26px 20px; text-align: center; transition: .2s;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.sf-drop:hover { border-color: rgba(255,59,48,.45); background: #fff7f5; }
.sf-drop.is-drag { border-color: var(--sf-red); background: #fff2ef; transform: scale(.995); }
.sf-drop.has-file { border-style: solid; border-color: rgba(255,59,48,.28); background: #fff8f6; padding: 18px; }
.sf-drop-glyph {
  width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  background: var(--sf-grad); color: #fff; box-shadow: 0 10px 22px rgba(255,59,48,.26);
  animation: sfBreathe 2.8s ease-in-out infinite;
}
.sf-drop-glyph svg { width: 24px; height: 24px; }
@keyframes sfBreathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.sf-drop-title { font-size: 14.5px; font-weight: 700; color: var(--sf-ink); }
.sf-drop-title em { font-style: normal; color: var(--sf-red); }
.sf-drop-hint { font-size: 12px; color: var(--sf-sub); }
.sf-drop.has-file .sf-drop-glyph,
.sf-drop.has-file .sf-drop-title,
.sf-drop.has-file .sf-drop-hint { display: none; }

.sf-picked {
  display: none; width: 100%; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; padding: 10px 12px;
}
.sf-drop.has-file .sf-picked { display: flex; }
.sf-picked-tile {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none;
  background: var(--sf-grad); display: grid; place-items: center;
}
.sf-picked-tile img { width: 100%; height: 100%; object-fit: cover; }
.sf-picked-txt { flex: 1; min-width: 0; text-align: left; }
.sf-picked-txt b { display: block; font-size: 13.5px; color: var(--sf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-picked-txt i { display: block; font-style: normal; font-size: 11.5px; color: var(--sf-sub); margin-top: 2px; }
.sf-picked-x {
  width: 26px; height: 26px; border-radius: 9px; flex: none; cursor: pointer;
  display: grid; place-items: center; color: #a99ea3; background: var(--sf-soft);
}
.sf-picked-x:hover { color: var(--sf-red); background: #ffefec; }
.sf-picked-x svg { width: 13px; height: 13px; }

/* ---- 备注 + 上传按钮 ---- */
.sf-upload-foot { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.sf-field { flex: 1; min-width: 0; }
.sf-field-label { display: block; font-size: 11.5px; color: var(--sf-sub); margin-bottom: 6px; letter-spacing: .4px; }
.sf-input {
  width: 100%; height: 40px; border-radius: 11px; padding: 0 12px;
  border: 1px solid var(--sf-line); background: var(--sf-soft);
  font-size: 13px; color: var(--sf-ink); font-family: inherit; transition: .16s;
}
.sf-input:focus { outline: none; border-color: rgba(255,59,48,.42); background: #fff; box-shadow: 0 0 0 3px rgba(255,59,48,.08); }
.sf-upload-btn {
  height: 40px; padding: 0 18px; border: none; border-radius: 11px; cursor: pointer; flex: none;
  background: var(--sf-grad); color: #fff; font-size: 13.5px; font-weight: 700; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 10px 20px rgba(255,59,48,.24); transition: .18s;
}
.sf-upload-btn svg { width: 15px; height: 15px; }
.sf-upload-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(255,59,48,.32); }
.sf-upload-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sf-upload-btn.is-busy { pointer-events: none; }
.sf-progress { display: none; align-items: center; gap: 9px; margin-top: 10px; }
.sf-progress.is-on { display: flex; }
.sf-progress-track { flex: 1; height: 6px; border-radius: 99px; background: #f0e7e4; overflow: hidden; }
.sf-progress-bar { height: 100%; width: 0; border-radius: 99px; background: var(--sf-grad); transition: width .2s; }
.sf-progress-txt { font-size: 11.5px; color: var(--sf-sub); min-width: 34px; text-align: right; }
.sf-tip { margin: 10px 0 0; font-size: 11.5px; color: var(--sf-sub); line-height: 1.6; }

/* ---- 文件列表 ---- */
.sf-list { display: flex; flex-direction: column; gap: 10px; }
.sf-file {
  display: flex; gap: 13px; padding: 14px;
  background: #fff; border: 1px solid var(--sf-line); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(126,66,56,.045);
  transition: .2s; animation: sfRise .45s cubic-bezier(.22,.9,.3,1) both;
}
.sf-file:hover { border-color: rgba(255,59,48,.22); box-shadow: 0 12px 26px rgba(126,66,56,.09); }
.sf-file.is-off { opacity: .62; }
.sf-file.is-new { animation: sfPop .6s cubic-bezier(.22,.9,.3,1) both; }
@keyframes sfPop { 0% { transform: scale(.97); box-shadow: 0 0 0 3px rgba(255,59,48,.2); } 100% { transform: none; } }
.sf-file-ico {
  position: relative; width: 46px; height: 46px; border-radius: 13px; flex: none; overflow: hidden;
  background: var(--sf-grad); display: grid; place-items: center;
}
.sf-file-ico img { width: 100%; height: 100%; object-fit: cover; }
.sf-file-ico i {
  position: absolute; left: 0; right: 0; bottom: 0; font-style: normal;
  font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: rgba(0,0,0,.42); text-align: center; padding: 1px 0;
}
.sf-file-main { flex: 1; min-width: 0; }
.sf-file-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sf-file-name {
  font-size: 13.8px; font-weight: 700; color: var(--sf-ink); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-chip {
  font-size: 11px; padding: 2.5px 8px; border-radius: 99px;
  background: var(--sf-soft); color: var(--sf-sub); border: 1px solid var(--sf-line);
  white-space: nowrap;
}
.sf-chip.is-ok { color: #1a8a52; background: #effaf3; border-color: #d6f0e0; }
.sf-chip.is-off { color: #a0585a; background: #fdf0f0; border-color: #f7dcdc; }
.sf-file-link { display: flex; gap: 7px; margin-top: 9px; }
.sf-link-pill {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px; border-radius: 10px;
  background: var(--sf-soft); border: 1px solid var(--sf-line); color: #a99ea3;
}
.sf-link-pill svg { width: 13px; height: 13px; flex: none; }
.sf-link-pill input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 12px; color: #6c6067; font-family: ui-monospace, Menlo, monospace;
}
.sf-btn {
  height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer; flex: none;
  border: 1px solid var(--sf-line); background: #fff; color: #5c5157;
  font-size: 12px; font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
  transition: .16s;
}
.sf-btn svg { width: 13px; height: 13px; }
.sf-btn:hover { border-color: rgba(255,59,48,.34); color: var(--sf-red); background: #fff7f5; }
.sf-btn.is-primary { background: var(--sf-grad); color: #fff; border: none; font-weight: 700;
  box-shadow: 0 6px 14px rgba(255,59,48,.22); }
.sf-btn.is-primary:hover { color: #fff; transform: translateY(-1px); }
.sf-btn.is-danger:hover { color: #d2271d; background: #fff0ee; border-color: #f6cfcb; }
.sf-btn.is-done { color: #1a8a52; border-color: #d6f0e0; background: #effaf3; }
.sf-file-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 9px; font-size: 11.5px; color: var(--sf-sub);
}
.sf-file-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sf-file-meta svg { width: 12px; height: 12px; opacity: .8; }
.sf-file-acts { margin-left: auto; display: flex; gap: 6px; }
.sf-recent { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sf-recent-item {
  font-size: 11px; color: var(--sf-sub); background: var(--sf-soft);
  border-radius: 8px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px;
}
.sf-recent-item svg { width: 11px; height: 11px; }
.sf-recent-item b { color: #6c6067; font-weight: 600; }
.sf-recent-ip { color: #a99ea3; }
.sf-logs {
  margin-top: 10px; border-top: 1px dashed var(--sf-line); padding-top: 10px;
  font-size: 12px; color: var(--sf-sub); max-height: 260px; overflow: auto;
}
.sf-logs table { width: 100%; border-collapse: collapse; }
.sf-logs th { text-align: left; font-weight: 600; font-size: 11px; color: #a99ea3; padding: 4px 6px; }
.sf-logs td { padding: 5px 6px; border-top: 1px solid #f7f1ef; font-size: 11.5px; }

/* ---- 空状态 / 骨架 ---- */
.sf-empty { text-align: center; padding: 38px 16px; color: var(--sf-sub); }
.sf-empty-art {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center; background: var(--sf-soft); color: #c2b6ba;
}
.sf-empty-art svg { width: 26px; height: 26px; }
.sf-empty-title { font-size: 14px; font-weight: 700; color: var(--sf-ink); }
.sf-empty-sub { font-size: 12px; margin-top: 5px; }
.sf-skeleton span {
  display: block; height: 74px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(100deg, #f7f1ef 30%, #fdf9f8 50%, #f7f1ef 70%);
  background-size: 200% 100%; animation: sfShimmer 1.3s linear infinite;
}
@keyframes sfShimmer { to { background-position: -200% 0; } }

/* ---- 更新页设置卡 ---- */
.sf-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.sf-sec-title { font-size: 13.5px; font-weight: 800; color: var(--sf-ink); display: flex; align-items: center; gap: 8px; }
.sf-sec-title::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--sf-grad);
}
.sf-sec-link {
  font-size: 11.5px; color: var(--sf-red); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px;
  background: #fff4f2;
}
.sf-sec-link:hover { background: #ffece9; }
.sf-ta {
  width: 100%; min-height: 132px; resize: vertical; border-radius: 12px; padding: 10px 12px;
  border: 1px solid var(--sf-line); background: var(--sf-soft); color: var(--sf-ink);
  font-size: 13px; line-height: 1.7; font-family: inherit; transition: .16s;
}
.sf-ta:focus { outline: none; border-color: rgba(255,59,48,.42); background: #fff; box-shadow: 0 0 0 3px rgba(255,59,48,.08); }
.sf-hint { font-size: 11.5px; color: var(--sf-sub); margin: 7px 0 0; line-height: 1.6; }
.sf-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sf-row .sf-btn { height: 36px; }
.sf-grow { flex: 1; }

.sf-toggle-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 11px 12px; border-radius: 13px; background: var(--sf-soft); border: 1px solid var(--sf-line);
}
.sf-toggle-txt { flex: 1; min-width: 0; }
.sf-toggle-txt b { display: block; font-size: 12.8px; color: var(--sf-ink); }
.sf-toggle-txt i { font-style: normal; font-size: 11.2px; color: var(--sf-sub); }
.sf-switch {
  position: relative; width: 44px; height: 25px; border-radius: 99px; flex: none;
  background: #e6dbd8; cursor: pointer; transition: .22s; border: none; padding: 0;
}
.sf-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .22s;
}
.sf-switch.is-on { background: linear-gradient(135deg,#ff7a45,#ff3b30); }
.sf-switch.is-on::after { left: 22px; }

.sf-more { margin-top: 12px; }
.sf-more > summary {
  font-size: 12px; color: var(--sf-sub); cursor: pointer; list-style: none;
  padding: 6px 0; display: flex; align-items: center; gap: 6px;
}
.sf-more > summary::-webkit-details-marker { display: none; }
.sf-more > summary::after { content: "▾"; font-size: 10px; transition: .2s; }
.sf-more[open] > summary::after { transform: rotate(180deg); }
.sf-smtp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sf-smtp .sf-field-full { grid-column: 1 / -1; }
.sf-smtp .sf-input { height: 36px; font-size: 12.5px; }
.sf-mini-btn {
  height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--sf-line); background: #fff; color: #5c5157; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; transition: .16s;
}
.sf-mini-btn:hover { color: var(--sf-red); border-color: rgba(255,59,48,.32); background: #fff7f5; }
.sf-mini-btn.is-primary { background: var(--sf-grad); color: #fff; border: none; font-weight: 700; }
.sf-mini-btn.is-primary:hover { color: #fff; }
.sf-mini-btn.is-spinning svg { animation: sfSpin .6s linear infinite; }

/* ---- 订阅列表 v2 ---- */
.sf-subs-card { overflow: hidden; }
.sf-subs-sum { display: flex; flex-direction: column; gap: 9px; margin: 5px 0 11px; }
.sf-subs-meter { display: flex; height: 4px; border-radius: 999px; background: #f2eae9; overflow: hidden; }
.sf-subs-meter > i { display: block; height: 100%; flex: none; transition: width .55s cubic-bezier(.22,.9,.3,1); }
.sf-subs-meter-ok { width: 0; background: linear-gradient(90deg, #63dd9f, #22b168); }
.sf-subs-meter-off { width: 0; background: #ddcfd2; }
.sf-subs-legend { display: flex; gap: 16px; font-size: 11px; color: var(--sf-sub); letter-spacing: .3px; }
.sf-subs-legend > span { display: inline-flex; align-items: center; }
.sf-subs-legend b { color: var(--sf-ink); font-weight: 700; margin-left: 4px; font-size: 11.5px; }
.sf-subs-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.sf-subs-dot.is-ok { background: #2bb673; box-shadow: 0 0 0 2px rgba(43,182,115,.14); }
.sf-subs-dot.is-off { background: #d3c7ca; }
.sf-subs-tools { margin-bottom: 9px; }
.sf-subs-tools .sf-input { height: 34px; font-size: 12.3px; }
.sf-subs {
  display: flex; flex-direction: column; gap: 7px;
  max-height: 302px; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 3px; margin-right: -3px;
  scrollbar-width: thin; scrollbar-color: #e4d9d7 transparent;
}
.sf-subs::-webkit-scrollbar { width: 6px; }
.sf-subs::-webkit-scrollbar-track { background: transparent; }
.sf-subs::-webkit-scrollbar-thumb { background: #e7dcda; border-radius: 999px; }
.sf-subs::-webkit-scrollbar-thumb:hover { background: #d8c9c6; }
.sf-sub-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; flex: none;
  border-radius: 12px; background: #fff; border: 1px solid var(--sf-line);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.sf-sub-item:hover { border-color: rgba(255,59,48,.24); background: #fffaf9; box-shadow: 0 4px 14px rgba(180,110,100,.07); }
.sf-sub-item.is-off { background: #fbf7f6; }
.sf-sub-item.is-off .sf-sub-mail { color: #8b7f85; }
.sf-sub-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: .5px; overflow: hidden;
  background: var(--sf-mail-bg, linear-gradient(140deg, #ff9a6b, #ff5a3c));
  border: 1px solid var(--sf-mail-border, transparent);
  box-shadow: var(--sf-mail-shadow, 0 4px 10px rgba(255,90,60,.22));
  transition: filter .16s, opacity .16s;
}
.sf-sub-ico svg { display: block; width: 20px; height: 20px; }
.sf-mail-txt { color: #fff; font-weight: 800; line-height: 1; font-family: inherit; text-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sf-sub-item.is-off .sf-sub-ico { filter: saturate(.15); opacity: .55; box-shadow: none; }
.sf-sub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sf-sub-mail {
  font-size: 12.4px; color: var(--sf-ink); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-sub-meta { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sf-sub-status {
  flex: none; font-size: 10px; font-weight: 700; padding: 1px 7px 2px; border-radius: 999px;
  letter-spacing: .4px; line-height: 1.5;
}
.sf-sub-status.is-ok { color: #168a52; background: #e4f7ed; }
.sf-sub-status.is-off { color: #8b7f85; background: #efe9e8; }
.sf-sub-time {
  font-size: 10.6px; color: #a99ea3; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-sub-del {
  width: 26px; height: 26px; border-radius: 9px; border: none; cursor: pointer; flex: none;
  background: transparent; color: #ddd1d4; display: grid; place-items: center;
  transition: color .15s, background .15s;
}
.sf-sub-item:hover .sf-sub-del { color: #b9a9ae; }
.sf-sub-del:hover { color: var(--sf-red); background: #ffefec; }
.sf-sub-del svg { width: 12px; height: 12px; }
.sf-subs-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 12px; font-size: 11.8px; color: var(--sf-sub); text-align: center; line-height: 1.7;
}
.sf-subs-empty svg { color: #ded2d0; }
.sf-subs-foot { margin-top: 10px; font-size: 10.8px; color: #ad9fa4; text-align: center; letter-spacing: .3px; }
.sf-subs-foot b { color: #6a5f64; font-weight: 700; }

/* ---- 窄屏 ---- */
@media (max-width: 1180px) {
  .sf-grid { grid-template-columns: minmax(0, 1fr); }
  .sf-col-side { order: 2; }
}
@media (max-width: 640px) {
  .sf-head-r { width: 100%; }
  .sf-kpi { flex: 1; }
  .sf-upload-foot { flex-wrap: wrap; }
  .sf-upload-btn { width: 100%; justify-content: center; }
  .sf-smtp { grid-template-columns: 1fr; }
}

/* ================= 兼容旧 style.css 的 .share-* 规则 ================= */
.sf-list .share-card {
  position: relative;
  gap: 13px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #f0e7e4;
  background: #fff;
}
.sf-list .share-card::before { display: none; }
.sf-list .share-card-body { display: flex; flex-direction: column; gap: 0; }
.sf-list .share-link-input { height: auto; width: 100%; }
.sf-list .share-logs {
  padding: 12px 13px; border-radius: 13px; background: #fbfcfd;
  border: 1px solid rgba(17, 19, 24, .06);
}
.sf-recent { margin-top: 0; }

/* 微调：说明区保存行 */
.sf-update-card .sf-row { gap: 10px; }
.sf-update-card .sf-row .sf-hint { text-align: right; line-height: 1.4; }
.sf-sec-link { font-weight: 600; }

/* ================= 阿奇索能力中心（agx-*） ================= */
.agx-wrap {
  margin-top: 26px; padding: 22px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.agx-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.agx-head-l { display: flex; align-items: center; gap: 13px; min-width: 0; }
.agx-badge {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: .5px; background: linear-gradient(135deg, #ff7a45, #ff3b30 62%, #e5231b);
  box-shadow: 0 9px 20px rgba(255, 59, 48, .22);
}
.agx-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: .3px; color: var(--ink); }
.agx-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.agx-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--slate); background: #f7f8fa; border: 1px solid var(--line); white-space: nowrap;
}
.agx-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 4px;
  border: 1px solid var(--line); border-radius: 13px; background: #f8f9fb; margin-bottom: 18px;
}
.agx-tab {
  padding: 8px 15px; border: 0; border-radius: 10px; background: transparent;
  color: var(--slate); font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .18s var(--ease), color .18s var(--ease);
}
.agx-tab:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.agx-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(17,19,24,.07); }
.agx-panel { display: none; }
.agx-panel.active { display: block; animation: agxFade .26s var(--ease) both; }
@keyframes agxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.agx-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.agx-toolbar button, .agx-actions button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 15px;
  border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.agx-toolbar button:hover, .agx-actions button:hover { transform: translateY(-1px); }
.agx-toolbar button:disabled, .agx-actions button:disabled { opacity: .5; cursor: wait; transform: none; }
.agx-toolbar button.secondary, .agx-actions button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.agx-toolbar button.danger, .agx-actions button.danger { background: #fff; color: var(--brand); border-color: rgba(193,18,31,.28); }
.agx-input {
  font-family: inherit; font-size: 12.5px; padding: 9px 12px; min-width: 190px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none;
}
.agx-input:focus { border-color: rgba(17,19,24,.35); }
.agx-select { min-width: 132px; }
.agx-hint { font-size: 11.5px; color: var(--muted); }
.agx-warn {
  margin: 0 0 14px; padding: 10px 13px; border-radius: 10px; font-size: 12px;
  color: #8a3a12; background: #fff7f0; border: 1px solid #ffe1c9;
}
.agx-divider { height: 1px; background: var(--line); margin: 18px 0; }
.agx-h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.agx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.agx-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.agx-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.agx-card-img { width: 100%; height: 118px; object-fit: cover; display: block; background: #f6f7f9; }
.agx-card-body { padding: 11px 13px 13px; }
.agx-card-title { font-size: 12.5px; font-weight: 700; line-height: 1.45; color: var(--ink); min-height: 36px; }
.agx-card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--muted); }
.agx-card-meta b { color: var(--ink); font-weight: 700; }
.agx-card-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.agx-tag { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.agx-tag.ok { color: var(--ok); background: rgba(20,122,92,.09); }
.agx-tag.warn { color: var(--warn); background: rgba(180,83,9,.1); }
.agx-mini {
  font-family: inherit; font-size: 11px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer;
}
.agx-mini:hover { color: var(--ink); border-color: rgba(17,19,24,.3); }
.agx-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.agx-list::-webkit-scrollbar { width: 6px; }
.agx-list::-webkit-scrollbar-thumb { background: rgba(17,19,24,.13); border-radius: 6px; }
.agx-row {
  display: grid; grid-template-columns: 128px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
}
.agx-row-time { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.agx-row-main { min-width: 0; font-size: 12px; color: var(--ink); line-height: 1.5; }
.agx-row-main b { font-weight: 700; }
.agx-row-side { font-size: 11.5px; color: var(--slate); text-align: right; white-space: nowrap; }
.agx-json {
  margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: #fafbfc; font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  color: var(--slate); white-space: pre-wrap; word-break: break-all; max-height: 340px; overflow: auto;
}
.agx-json:empty { display: none; }
.agx-empty { padding: 26px 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.agx-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 11px; }
.agx-act { padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.agx-act.danger { border-color: rgba(193,18,31,.10); }
.agx-act-title { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.agx-act-keys { font-size: 10.5px; color: var(--muted); font-family: var(--mono); margin-bottom: 9px; }
.agx-act-fields { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.agx-act-fields input { width: calc(50% - 3px); min-width: 120px; font-size: 11.5px; padding: 7px 9px; }
.agx-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.agx-chips span {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 11px; color: var(--slate); background: #fff;
}
.agx-chips b { color: var(--ink); font-family: var(--mono); }
@media (max-width: 760px) {
  .agx-wrap { padding: 16px; }
  .agx-row { grid-template-columns: 1fr; gap: 4px; }
  .agx-row-side { text-align: left; }
}

/* ---- 红果更新页：淘宝 ID / 手机尾号绑定 ---- */
.hg-tip { font-size: 11.8px; color: var(--sf-sub); line-height: 1.75; margin: 2px 0 10px; }
.hg-tip b { color: var(--sf-ink); font-weight: 700; }
.hg-meter { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.3px; color: var(--sf-sub); margin-bottom: 10px; }
.hg-meter b { color: var(--sf-ink); font-weight: 700; }
.hg-card .sf-input { min-width: 0; font-size: 12px; }
.hg-card .sf-row .sf-input { flex: 1; }
.hg-card .sf-ta { min-height: 74px; font-size: 12px; }
.hg-bind-list { margin-top: 11px; max-height: 168px; overflow-y: auto; display: flex; flex-direction: column;
                gap: 6px; scrollbar-width: thin; scrollbar-color: #e4d9d7 transparent; }
.hg-bind-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px;
                border: 1px solid var(--sf-line); background: #fff; font-size: 11.6px; flex: none; }
.hg-bind-item .k { font-weight: 700; color: var(--sf-ink); flex: none; }
.hg-bind-item .v { color: var(--sf-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hg-bind-item .grow { flex: 1; }
.hg-bind-item button { border: none; background: transparent; color: #c9bdc0; cursor: pointer;
                       font-family: inherit; font-size: 11px; flex: none; }
.hg-bind-item button:hover { color: var(--sf-red); }
.hg-empty { font-size: 11.5px; color: #ad9fa4; text-align: center; padding: 12px; }

/* ---- 红果页下载记录（IP · 地区） ---- */
.hg-dls { margin-top: 12px; }
.hg-dls-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.hg-dls-title { font-size: 12px; font-weight: 800; color: var(--sf-ink); display: flex; align-items: center; gap: 8px; }
.hg-dls-title::before { content: ""; width: 4px; height: 12px; border-radius: 2px; background: var(--sf-grad); }
.hg-dl-list {
  display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto;
  padding-right: 3px; margin-right: -3px;
  scrollbar-width: thin; scrollbar-color: #e4d9d7 transparent;
}
.hg-dl-list::-webkit-scrollbar { width: 6px; }
.hg-dl-list::-webkit-scrollbar-thumb { background: #e7dcda; border-radius: 999px; }
.hg-dl-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; flex: none;
  border: 1px solid var(--sf-line); border-radius: 11px; background: #fff;
  font-size: 11.6px; color: var(--sf-sub);
}
.hg-dl-item .t { color: #a99ea3; flex: none; }
.hg-dl-item .ip { font-weight: 700; color: var(--sf-ink); font-family: ui-monospace, Menlo, monospace; flex: none; }
.hg-dl-item .rg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-src-tag {
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .3px; flex: none;
  color: #f2261b; background: #fff0ee; border: 1px solid #ffd9d4;
  border-radius: 99px; padding: 1px 6px;
}

/* ================= 软件商店（扫码购买） ================= */
.shop-tip { margin: 0 0 10px; font-size: 11.8px; line-height: 1.75; color: var(--sf-sub); }
.shop-kpis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.shop-kpis span {
  font-size: 11.4px; color: var(--sf-sub); padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--sf-line); background: #fffaf9;
}
.shop-kpis b { color: var(--sf-ink); font-weight: 800; }

.shop-qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
@media (max-width: 640px) { .shop-qr-row { grid-template-columns: 1fr; } }
.shop-qr-item {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1px dashed var(--sf-line); border-radius: 14px; background: #fffdfc;
}
.shop-qr-thumb {
  width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--sf-line); background: #f7f2f0;
  display: grid; place-items: center; color: #c9b8b3; font-size: 10px; overflow: hidden;
}
.shop-qr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-qr-meta { flex: 1; min-width: 0; }
.shop-qr-meta b { display: block; font-size: 12.2px; color: var(--sf-ink); }
.shop-qr-meta i { display: block; font-style: normal; font-size: 10.6px; color: var(--sf-sub); margin-top: 2px; }
.shop-qr-meta .sf-mini-btn { margin-top: 6px; padding: 3px 9px; font-size: 10.6px; }

.shop-plans { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 10px; }
.shop-plan {
  border: 1px solid var(--sf-line); border-radius: 14px; padding: 10px;
  background: #fffdfc; display: flex; flex-direction: column; gap: 8px;
}
.shop-plan-top { display: grid; grid-template-columns: 1.1fr .6fr .6fr 24px; gap: 7px; align-items: center; }
.shop-plan-top .sf-input { padding: 7px 9px; font-size: 12px; }
.shop-plan-bot { display: grid; grid-template-columns: 1fr 150px; gap: 7px; align-items: center; }
.shop-plan-bot .sf-input { padding: 7px 9px; font-size: 12px; }
.shop-plan-x {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  color: #c3b3ae; border: 1px solid var(--sf-line); background: #fff;
}
.shop-plan-x:hover { color: #f2261b; border-color: #ffd9d4; background: #fff6f5; }
.shop-plan-x svg { width: 11px; height: 11px; }
.shop-plan-sel { padding: 7px 8px; font-size: 11.5px; }
.shop-plan-flag { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sf-sub); }

.shop-secret {
  flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  padding: 7px 9px; border-radius: 9px; background: #fbf6f4; border: 1px solid var(--sf-line);
  color: #7c6f74; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.shop-orders { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding-right: 3px; }
.shop-orders::-webkit-scrollbar { width: 6px; }
.shop-orders::-webkit-scrollbar-thumb { background: #e7dcda; border-radius: 999px; }
.shop-order {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
  padding: 9px 11px; border: 1px solid var(--sf-line); border-radius: 12px; background: #fff;
}
.shop-order-l1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.8px; color: var(--sf-ink); }
.shop-order-l1 b { font-weight: 800; }
.shop-order-l1 .amt { color: #f2261b; font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.shop-order-l2 { grid-column: 1 / -1; font-size: 10.8px; color: #a99ea3; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-order-act { display: flex; align-items: center; gap: 5px; }
.shop-order-act .sf-mini-btn { padding: 4px 9px; font-size: 10.6px; }
.shop-st {
  font-size: 9.6px; font-weight: 800; padding: 1.5px 7px; border-radius: 999px;
  border: 1px solid transparent; letter-spacing: .3px;
}
.shop-st.pending { color: #b07b16; background: #fff8e8; border-color: #f7e2b5; }
.shop-st.claiming { color: #a5601a; background: #fff2e6; border-color: #f8d8bd; }
.shop-st.paid { color: #13855a; background: #eafaf1; border-color: #bfe9d3; }
.shop-st.expired, .shop-st.closed { color: #948a8f; background: #f6f2f1; border-color: #e8dedb; }
.shop-st.refund { color: #a12a2a; background: #fdeeee; border-color: #f5c9c9; }
.shop-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 800; color: #13855a;
  background: #eafaf1; border: 1px solid #bfe9d3; border-radius: 6px; padding: 0 5px;
}
.shop-empty { font-size: 11.5px; color: #ad9fa4; text-align: center; padding: 14px; }

/* ---- 软件商店：软件列表 ---- */
.shop-apps { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.shop-app {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--sf-line); border-radius: 13px; background: #fff;
}
.shop-app-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px; overflow: hidden;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #b48d92;
  background: linear-gradient(150deg, #fff3f2, #f7e8e6); border: 1px solid var(--sf-line);
}
.shop-app-ico img { width: 100%; height: 100%; object-fit: cover; }
.shop-app-main { flex: 1; min-width: 0; }
.shop-app-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.4px; color: var(--sf-ink); }
.shop-app-l1 b { font-weight: 800; }
.shop-app-ver {
  font-size: 9.6px; font-weight: 700; color: #9d8f94; border: 1px solid var(--sf-line);
  border-radius: 999px; padding: 0 5px;
}
.shop-app-l2 {
  margin-top: 3px; font-size: 10.8px; color: #a99ea3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-app-act { display: flex; align-items: center; gap: 5px; flex: none; }
.shop-app-act .sf-mini-btn { padding: 4px 9px; font-size: 10.6px; }

.shop-app-edit {
  margin: -2px 0 2px; padding: 10px; border: 1px dashed var(--sf-line);
  border-radius: 13px; background: #fffdfc; display: flex; flex-direction: column; gap: 8px;
}
.shop-app-edit .shop-plan-top { grid-template-columns: 1.3fr .7fr .7fr .7fr; }
.shop-app-ta { min-height: 54px; resize: vertical; font-size: 12px; line-height: 1.6; font-family: inherit; }
.shop-src {
  font-size: 9.4px; font-weight: 700; letter-spacing: .3px; padding: 1.5px 6px; border-radius: 999px;
  color: #6f6a86; background: #f1f0f7; border: 1px solid #e2e0ee;
}
