.hfr2-root {

  --c-primary: #f6821f;
  --c-primary-dark: #d96d0e;
  --c-bg: #f5f6f8;
  --c-panel: #ffffff;
  --c-border: #e3e6ea;
  --c-text: #24292f;
  --c-text-2: #6b7280;
  --c-danger: #d93025;
  --c-danger-bg: #fdecea;
  --c-success: #188038;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.hfr2-root, .hfr2-root * {
 box-sizing: border-box; margin: 0; padding: 0; }
.hfr2-root {
 height: 100%; }
.hfr2-root {

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.hfr2-root .hidden {
 display: none !important; }
.hfr2-root button {
 font-family: inherit; cursor: pointer; }
.hfr2-root input, .hfr2-root select {
 font-family: inherit; font-size: 14px; }
.hfr2-root .btn {

  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--c-border);
  background: var(--c-panel); color: var(--c-text);
  border-radius: 8px; font-size: 13.5px; line-height: 1;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap; user-select: none;
}
.hfr2-root .btn:hover {
 background: #f0f1f3; }
.hfr2-root .btn:disabled {
 opacity: 0.5; cursor: not-allowed; }
.hfr2-root .btn-primary {
 background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hfr2-root .btn-primary:hover {
 background: var(--c-primary-dark); }
.hfr2-root .btn-danger {
 background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.hfr2-root .btn-danger:hover {
 background: #b3251c; }
.hfr2-root .btn-sm {
 padding: 6px 11px; font-size: 12.5px; }
.hfr2-root .btn-block {
 width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.hfr2-root .btn-icon {
 padding: 8px; }
.hfr2-root .btn-link {
 background: none; border: none; color: var(--c-text-2); font-size: 12.5px; margin-top: 14px; text-decoration: underline; }
.hfr2-root .btn-link:hover {
 color: var(--c-danger); }
.hfr2-root .center-screen {
 min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hfr2-root .auth-card {

  width: 100%; max-width: 380px; background: var(--c-panel);
  border-radius: 14px; box-shadow: var(--shadow); padding: 36px 32px; text-align: center;
}
.hfr2-root .auth-card-wide {
 max-width: 440px; text-align: left; }
.hfr2-root .auth-card-wide h1 {
 text-align: center; }
.hfr2-root .auth-logo {
 margin-bottom: 10px; }
.hfr2-root .auth-card h1 {
 font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.hfr2-root .auth-sub {
 color: var(--c-text-2); font-size: 12.5px; margin-bottom: 22px; line-height: 1.5; text-align: center; }
.hfr2-root .auth-card label {
 display: block; font-size: 12.5px; color: var(--c-text-2); margin: 13px 0 5px; font-weight: 500; }
.hfr2-root .auth-card .req {
 color: var(--c-danger); }
.hfr2-root .auth-card input {

  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border);
  border-radius: 8px; outline: none; transition: border-color 0.15s;
}
.hfr2-root .auth-card input:focus {
 border-color: var(--c-primary); }
.hfr2-root .auth-card form > .btn {
 margin-top: 20px; }
.hfr2-root #form-unlock input {
 text-align: center; }
.hfr2-root .form-error {
 color: var(--c-danger); font-size: 12.5px; margin-top: 10px; text-align: center; }
.hfr2-root #screen-main {
 display: flex; flex-direction: column; height: 100vh; }
.hfr2-root .topbar {

  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--c-panel); border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.hfr2-root .topbar-left {
 display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.hfr2-root .topbar-right {
 display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hfr2-root .bucket-badge {

  background: #fff3e6; color: var(--c-primary-dark); border: 1px solid #f8d7b3;
  padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.hfr2-root .breadcrumb {
 display: flex; align-items: center; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.hfr2-root .breadcrumb::-webkit-scrollbar {
 display: none; }
.hfr2-root .crumb {

  background: none; border: none; color: var(--c-text-2); font-size: 13.5px;
  padding: 4px 6px; border-radius: 6px;
}
.hfr2-root .crumb:hover {
 background: #f0f1f3; color: var(--c-text); }
.hfr2-root .crumb.current {
 color: var(--c-text); font-weight: 600; cursor: default; }
.hfr2-root .crumb-sep {
 color: #c3c8ce; font-size: 12px; }
.hfr2-root .searchbox {

  display: flex; align-items: center; gap: 6px; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: 8px; padding: 0 10px; color: var(--c-text-2);
}
.hfr2-root .searchbox input {
 border: none; background: none; outline: none; padding: 8px 0; width: 150px; }
.hfr2-root .select {

  padding: 8px 8px; border: 1px solid var(--c-border); border-radius: 8px;
  background: var(--c-panel); color: var(--c-text); outline: none; font-size: 13px;
}
.hfr2-root .toolbar {

  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: var(--c-panel); border-bottom: 1px solid var(--c-border); flex-wrap: wrap;
}
.hfr2-root .toolbar-left, .hfr2-root .toolbar-right {
 display: flex; align-items: center; gap: 8px; }
.hfr2-root .view-toggle {
 display: flex; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.hfr2-root .view-btn {
 padding: 8px 11px; background: var(--c-panel); border: none; color: var(--c-text-2); display: flex; }
.hfr2-root .view-btn.active {
 background: #fff3e6; color: var(--c-primary-dark); }
.hfr2-root .selection-bar {

  display: flex; align-items: center; gap: 14px; padding: 8px 16px;
  background: #fff8f0; border-bottom: 1px solid #f8d7b3; flex-wrap: wrap;
}
.hfr2-root .chk-wrap {
 display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.hfr2-root .sel-count {
 font-size: 13px; color: var(--c-primary-dark); font-weight: 600; }
.hfr2-root .sel-actions {
 display: flex; gap: 8px; margin-left: auto; }
.hfr2-root .content {
 flex: 1; overflow: auto; position: relative; padding-bottom: 30px; }
.hfr2-root .statusbar {

  padding: 6px 16px; background: var(--c-panel); border-top: 1px solid var(--c-border);
  font-size: 12px; color: var(--c-text-2);
}
.hfr2-root .state-block {

  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 70px 20px; color: var(--c-text-2); text-align: center;
}
.hfr2-root .state-sub {
 font-size: 12.5px; opacity: 0.75; }
.hfr2-root .state-err {
 color: var(--c-danger); max-width: 520px; word-break: break-all; }
.hfr2-root .spinner {

  width: 30px; height: 30px; border: 3px solid var(--c-border);
  border-top-color: var(--c-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.hfr2-root .spinner-light {
 border-color: rgba(255,255,255,0.25); border-top-color: #fff; position: absolute; }
@keyframes spin {
 to { transform: rotate(360deg); } }
.hfr2-root .file-table {
 width: 100%; border-collapse: collapse; background: var(--c-panel); }
.hfr2-root .file-table th {

  text-align: left; font-size: 12px; color: var(--c-text-2); font-weight: 600;
  padding: 9px 10px; border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; background: var(--c-panel); z-index: 2; user-select: none;
}
.hfr2-root .file-table th.sortable {
 cursor: pointer; }
.hfr2-root .file-table th.sortable:hover {
 color: var(--c-text); }
.hfr2-root .sort-mark {
 margin-left: 3px; font-size: 10px; }
.hfr2-root .file-table td {
 padding: 8px 10px; border-bottom: 1px solid #f0f1f3; font-size: 13.5px; vertical-align: middle; }
.hfr2-root .file-table tbody tr {
 transition: background 0.1s; }
.hfr2-root .file-table tbody tr:hover {
 background: #fafbfc; }
.hfr2-root .file-table tbody tr.row-selected {
 background: #fff8f0; }
.hfr2-root .col-chk {
 width: 36px; text-align: center; }
.hfr2-root .col-size {
 width: 100px; }
.hfr2-root .col-time {
 width: 170px; }
.hfr2-root .col-ops {
 width: 150px; }
.hfr2-root .name-cell {
 display: flex; align-items: center; gap: 9px; min-width: 0; }
.hfr2-root .name-cell .fname {

  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw;
  cursor: pointer;
}
.hfr2-root .name-cell .fname:hover {
 color: var(--c-primary-dark); text-decoration: underline; }
.hfr2-root .ficon {
 width: 30px; height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; }
.hfr2-root .ficon-folder {
 background: #fbbc04; }
.hfr2-root .ficon-image {
 background: #34a853; padding: 0; overflow: hidden; }
.hfr2-root .ficon-image img {
 width: 100%; height: 100%; object-fit: cover; display: block; }
.hfr2-root .ficon-file {
 background: #9aa0a6; }
.hfr2-root .ficon-video {
 background: #7b61c9; }
.hfr2-root .ficon-audio {
 background: #e0669b; }
.hfr2-root .ficon-zip {
 background: #b07b4f; }
.hfr2-root .ficon-doc {
 background: #4285f4; }
.hfr2-root .ops-cell {
 display: flex; gap: 2px; }
.hfr2-root .op-btn {

  background: none; border: none; padding: 5px 6px; border-radius: 6px;
  color: var(--c-text-2); display: inline-flex; font-size: 12px;
}
.hfr2-root .op-btn:hover {
 background: #f0f1f3; color: var(--c-text); }
.hfr2-root .op-btn.op-danger:hover {
 background: var(--c-danger-bg); color: var(--c-danger); }
.hfr2-root .cell-muted {
 color: var(--c-text-2); font-size: 12.5px; }
.hfr2-root .grid-view {

  display: grid; gap: 12px; padding: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.hfr2-root .gcard {

  background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; position: relative; transition: box-shadow 0.15s, border-color 0.15s;
}
.hfr2-root .gcard:hover {
 box-shadow: var(--shadow); }
.hfr2-root .gcard.row-selected {
 border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.hfr2-root .gthumb {

  height: 110px; display: flex; align-items: center; justify-content: center;
  background: #f0f1f3; cursor: pointer; overflow: hidden; position: relative;
}
.hfr2-root .gthumb img {
 width: 100%; height: 100%; object-fit: cover; display: block; }
.hfr2-root .thumb-fill {
 width: 100%; height: 100%; }
.hfr2-root .thumb-fill img {
 width: 100%; height: 100%; object-fit: cover; display: block; }
.hfr2-root .gthumb .big-icon {
 width: 44px; height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.hfr2-root .gname {

  padding: 8px 10px 2px; font-size: 12.5px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.hfr2-root .gname:hover {
 color: var(--c-primary-dark); }
.hfr2-root .gmeta {
 padding: 0 10px 8px; font-size: 11px; color: var(--c-text-2); display: flex; justify-content: space-between; gap: 4px; }
.hfr2-root .gchk {
 position: absolute; top: 7px; left: 7px; z-index: 3; transform: scale(1.15); accent-color: var(--c-primary); display: none; }
.hfr2-root .gcard:hover .gchk, .hfr2-root .gcard.row-selected .gchk, .hfr2-root .grid-view.selecting .gchk {
 display: block; }
.hfr2-root .gops {

  position: absolute; top: 5px; right: 5px; z-index: 3; display: none; gap: 2px;
  background: rgba(255,255,255,0.92); border-radius: 7px; padding: 2px;
}
.hfr2-root .gcard:hover .gops {
 display: flex; }
.hfr2-root input[type="checkbox"] {
 accent-color: var(--c-primary); cursor: pointer; }
.hfr2-root .drop-overlay {

  position: absolute; inset: 0; z-index: 30; background: rgba(246, 130, 31, 0.08);
  border: 2.5px dashed var(--c-primary); border-radius: 10px; margin: 8px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.hfr2-root .drop-inner {

  background: var(--c-primary); color: #fff; padding: 12px 26px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
}
.hfr2-root .lightbox {

  position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 14, 0.93);
  display: flex; flex-direction: column; user-select: none;
}
.hfr2-root .lb-stage {
 flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.hfr2-root .lb-stage img {

  max-width: 92vw; max-height: calc(100vh - 90px);
  transition: transform 0.25s ease; object-fit: contain;
  box-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.hfr2-root .lb-btn {

  position: absolute; z-index: 5; background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.hfr2-root .lb-btn:hover {
 background: rgba(255,255,255,0.24); }
.hfr2-root .lb-close {
 top: 16px; right: 16px; font-size: 17px; }
.hfr2-root .lb-prev {
 left: 14px; top: 50%; transform: translateY(-50%); font-size: 30px; padding-bottom: 4px; }
.hfr2-root .lb-next {
 right: 14px; top: 50%; transform: translateY(-50%); font-size: 30px; padding-bottom: 4px; }
.hfr2-root .lb-bar {

  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  color: #e8eaed; font-size: 13px;
}
.hfr2-root .lb-name {
 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.hfr2-root .lb-counter {
 color: #9aa0a6; }
.hfr2-root .lb-tools {
 margin-left: auto; display: flex; gap: 6px; }
.hfr2-root .lb-tool {

  background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px;
  border-radius: 8px; font-size: 17px;
}
.hfr2-root .lb-tool:hover {
 background: rgba(255,255,255,0.24); }
.hfr2-root .modal-mask {

  position: fixed; inset: 0; z-index: 150; background: rgba(15, 17, 20, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.hfr2-root .modal {

  width: 100%; max-width: 430px; background: var(--c-panel); border-radius: 14px;
  padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  max-height: 86vh; display: flex; flex-direction: column;
  animation: pop 0.18s ease;
}
@keyframes pop {
 from { transform: scale(0.96); opacity: 0; } }
.hfr2-root .modal h3 {
 font-size: 16px; margin-bottom: 14px; }
.hfr2-root .modal-body {
 font-size: 13.5px; line-height: 1.6; color: var(--c-text); overflow-y: auto; }
.hfr2-root .modal-body input[type="text"], .hfr2-root .modal-body input[type="password"] {

  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px;
  outline: none; margin-top: 4px;
}
.hfr2-root .modal-body input:focus {
 border-color: var(--c-primary); }
.hfr2-root .modal-body .warn-text {
 color: var(--c-danger); font-size: 12.5px; margin-top: 10px; }
.hfr2-root .modal-body .hint-text {
 color: var(--c-text-2); font-size: 12.5px; margin-top: 8px; word-break: break-all; }
.hfr2-root .modal-foot {
 display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.hfr2-root .folder-pick {
 border: 1px solid var(--c-border); border-radius: 8px; max-height: 230px; overflow-y: auto; margin-top: 8px; }
.hfr2-root .fp-item {

  display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #f0f1f3;
}
.hfr2-root .fp-item:last-child {
 border-bottom: none; }
.hfr2-root .fp-item:hover {
 background: #fafbfc; }
.hfr2-root .fp-item.selected {
 background: #fff3e6; color: var(--c-primary-dark); font-weight: 600; }
.hfr2-root .fp-indent {
 display: inline-block; }
.hfr2-root .upload-panel {

  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  width: 330px; max-width: calc(100vw - 32px);
  background: var(--c-panel); border-radius: 12px; box-shadow: 0 6px 28px rgba(0,0,0,0.18);
  overflow: hidden;
}
.hfr2-root .up-head {

  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #24292f; color: #fff; font-size: 13px;
}
.hfr2-root .up-head span {
 flex: 1; }
.hfr2-root .up-mini {
 background: none; border: none; color: #cbd1d8; font-size: 13px; padding: 2px 6px; }
.hfr2-root .up-mini:hover {
 color: #fff; }
.hfr2-root .up-list {
 max-height: 250px; overflow-y: auto; }
.hfr2-root .up-item {
 padding: 9px 14px; border-bottom: 1px solid #f0f1f3; font-size: 12.5px; }
.hfr2-root .up-item:last-child {
 border-bottom: none; }
.hfr2-root .up-row {
 display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.hfr2-root .up-fname {
 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfr2-root .up-status {
 color: var(--c-text-2); flex-shrink: 0; }
.hfr2-root .up-status.ok {
 color: var(--c-success); }
.hfr2-root .up-status.err {
 color: var(--c-danger); }
.hfr2-root .up-bar {
 height: 4px; background: #eef0f2; border-radius: 4px; overflow: hidden; }
.hfr2-root .up-fill {
 height: 100%; background: var(--c-primary); border-radius: 4px; width: 0%; transition: width 0.2s; }
.hfr2-root .toast-wrap {

  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw;
}
.hfr2-root .toast {

  background: #24292f; color: #fff; padding: 10px 18px; border-radius: 9px;
  font-size: 13.5px; box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  animation: toastIn 0.22s ease; max-width: 92vw; word-break: break-all;
}
.hfr2-root .toast.success {
 background: var(--c-success); }
.hfr2-root .toast.error {
 background: var(--c-danger); }
@keyframes toastIn {
 from { transform: translateY(-14px); opacity: 0; } }
@media (max-width: 720px) {
.hfr2-root .topbar {
 padding: 8px 10px; }
.hfr2-root .toolbar {
 padding: 8px 10px; }
.hfr2-root .searchbox input {
 width: 95px; }
.hfr2-root .col-time {
 display: none; }
.hfr2-root .file-table th.col-time, .hfr2-root .file-table td.col-time {
 display: none; }
.hfr2-root .col-ops {
 width: 90px; }
.hfr2-root .ops-cell .op-btn.op-secondary {
 display: none; }
.hfr2-root .name-cell .fname {
 max-width: 38vw; }
.hfr2-root .grid-view {
 grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 9px; padding: 10px; }
.hfr2-root .gthumb {
 height: 88px; }
.hfr2-root .btn {
 padding: 8px 10px; }
.hfr2-root .lb-name {
 max-width: 30vw; }
.hfr2-root .sel-actions {
 margin-left: 0; }
.hfr2-root .upload-panel {
 right: 8px; bottom: 8px; }

}
@media (max-width: 460px) {
.hfr2-root .col-size {
 display: none; }
.hfr2-root .file-table th.col-size, .hfr2-root .file-table td.col-size {
 display: none; }
.hfr2-root .topbar-right {
 width: 100%; }
.hfr2-root .searchbox {
 flex: 1; }
.hfr2-root .searchbox input {
 width: 100%; }

/* ============ 存储用量分析面板（仪表盘风格） ============ */
.hfr2-stats {
  position: fixed;
  inset: 0;
  z-index: 9000;
}
.hfr2-stats.hidden { display: none; }

.hfr2-stats .hs-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  animation: hsFadeIn .2s ease-out;
}
@keyframes hsFadeIn { from{opacity:0} to{opacity:1} }

.hfr2-stats .hs-panel {
  width: 100%;
  max-width: 920px;
  background: var(--c-panel);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.04),
    0 20px 60px rgba(0,0,0,.20),
    0 8px 24px rgba(0,0,0,.10);
  overflow: hidden;
  margin: auto;
  animation: hsSlideUp .3s ease-out;
}
@keyframes hsSlideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }

/* ---- 头部 ---- */
.hfr2-stats .hs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
}
.hfr2-stats .hs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hfr2-stats .hs-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--c-primary), #ffab40);
  border-radius: 7px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M21 12a9 9 0 11-6.22-8.56M21 3v6h-6'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M21 12a9 9 0 11-6.22-8.56M21 3v6h-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hfr2-stats .hs-actions {
  display: flex;
  gap: 8px;
}

/* ---- 副标题 / 进度条 ---- */
.hfr2-stats .hs-sub {
  padding: 10px 22px;
  font-size: 13px;
  color: var(--c-text-2);
  background: #fefce8;
  border-bottom: 1px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hfr2-stats .hs-sub::before {
  content: "ℹ";
  font-weight: 700;
  color: #d97706;
  font-size: 14px;
}
.hfr2-stats .hs-progress {
  height: 4px;
  background: rgba(246,130,31,.15);
  overflow: hidden;
}
.hfr2-stats .hs-progress.hidden { display: none; }
.hfr2-stats .hs-bar {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--c-primary), #ffb347);
  border-radius: 0 2px 2px 0;
  transition: width .35s ease;
  position: relative;
}
.hfr2-stats .hs-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35));
}

/* ---- 内容区 ---- */
.hfr2-stats .hs-body {
  padding: 22px;
  max-height: 72vh;
  overflow-y: auto;
}
.hfr2-stats .hs-body::-webkit-scrollbar { width: 6px; }
.hfr2-stats .hs-body::-webkit-scrollbar-track { background: transparent; }
.hfr2-stats .hs-body::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

.hfr2-stats .hs-empty {
  text-align: center;
  color: var(--c-text-2);
  padding: 48px 0;
  font-size: 14px;
}
.hfr2-stats .hs-empty::before {
  content: "📂";
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .6;
}

/* ========== 概览卡片（4 列大卡片） ========== */
.hfr2-stats .hs-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.hfr2-stats .hs-card {
  background: linear-gradient(145deg, #fff 0%, #f9fafb 100%);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.hfr2-stats .hs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.hfr2-stats .hs-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), #ffb347);
  border-radius: 14px 14px 0 0;
}
.hfr2-stats .hs-card-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.25;
  word-break: break-all;
  letter-spacing: -.3px;
}
.hfr2-stats .hs-card-label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-text-2);
  font-weight: 500;
}

/* ========== 区块通用 ========== */
.hfr2-stats .hs-section {
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.hfr2-stats .hs-h {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--c-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 环形图 + 图例（左右布局） ========== */
.hfr2-stats .hs-donut-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.hfr2-stats .hs-donut {
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
}
.hfr2-stats .hs-donut-num {
  font-size: 18px;
  font-weight: 800;
  fill: var(--c-text);
}
.hfr2-stats .hs-donut-cap {
  font-size: 11px;
  fill: var(--c-text-2);
  font-weight: 500;
}
.hfr2-stats .hs-legend {
  flex: 1;
  min-width: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.hfr2-stats .hs-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--c-bg);
  transition: background .15s;
}
.hfr2-stats .hs-leg-item:hover {
  background: #eef2ff;
}
.hfr2-stats .hs-dot {
  width: 11px;
  height: 11px;
  border-radius: 3.5px;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.hfr2-stats .hs-leg-name {
  color: var(--c-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12.5px;
}
.hfr2-stats .hs-leg-val {
  color: var(--c-text-2);
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;
}

/* ========== 横向条形图（目录占用） ========== */
.hfr2-stats .hs-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hfr2-stats .hs-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
}
.hfr2-stats .hs-bar-label {
  font-size: 13px;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.hfr2-stats .hs-bar-track {
  height: 22px;
  background: var(--c-bg);
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
}
.hfr2-stats .hs-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding-left: 10px;
}
.hfr2-stats .hs-bar-fill .hs-bar-pct {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  white-space: nowrap;
}
.hfr2-stats .hs-bar-val {
  font-size: 12.5px;
  color: var(--c-text-2);
  white-space: nowrap;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

/* ========== 按月柱状图 ========== */
.hfr2-stats .hs-month {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 180px;
  padding-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.hfr2-stats .hs-mcol {
  flex: 1 0 auto;
  min-width: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.hfr2-stats .hs-mbar {
  width: 85%;
  min-height: 3px;
  background: linear-gradient(180deg, var(--c-primary) 0%, #ffab40 100%);
  border-radius: 5px 5px 2px 2px;
  transition: height .45s cubic-bezier(.22,1,.36,1);
  position: relative;
  cursor: default;
  box-shadow: 0 2px 6px rgba(246,130,31,.2);
}
.hfr2-stats .hs-mbar:hover {
  filter: brightness(1.08);
  box-shadow: 0 3px 10px rgba(246,130,31,.35);
}
.hfr2-stats .hs-mlabel {
  font-size: 10.5px;
  color: var(--c-text-2);
  margin-top: 5px;
  white-space: nowrap;
  font-weight: 500;
}

/* ========== 最大文件 Top20 表格 ========== */
.hfr2-stats .hs-toplist {
  display: flex;
  flex-direction: column;
}
.hfr2-stats .hs-top-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: background .15s;
}
.hfr2-stats .hs-top-row:nth-child(even) {
  background: var(--c-bg);
}
.hfr2-stats .hs-top-row:hover {
  background: #f0f4ff;
}
.hfr2-stats .hs-rank {
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hfr2-stats .hs-top-row:nth-child(1) .hs-rank { background: linear-gradient(135deg,#ffd700,#ffaa00); color: #7c5800; }
.hfr2-stats .hs-top-row:nth-child(2) .hs-rank { background: linear-gradient(135deg,#e0e0e0,#bdbdbd); color: #555; }
.hfr2-stats .hs-top-row:nth-child(3) .hs-rank { background: linear-gradient(135deg,#cd7f32,#a66828); color: #fff; }
.hfr2-stats .hs-top-row:nth-child(n+4) .hs-rank { background: var(--c-bg); color: var(--c-text-2); border: 1px solid var(--c-border); }
.hfr2-stats .hs-top-name {
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12.5px;
}
.hfr2-stats .hs-top-size {
  color: var(--c-primary);
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- 扫描中提示 ---------- */
.hfr2-stats .hs-scanning {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-2);
  padding: 14px 0;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-top: 8px;
  animation: hsPulse 1.8s ease-in-out infinite;
}
@keyframes hsPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hfr2-stats .hs-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hfr2-stats .hs-card { padding: 14px 12px; }
  .hfr2-stats .hs-card-val { font-size: 19px; }
  .hfr2-stats .hs-donut-wrap { flex-direction: column; align-items: center; gap: 18px; }
  .hfr2-stats .hs-legend { grid-template-columns: 1fr; width: 100%; }
  .hfr2-stats .hs-bar-row { grid-template-columns: 90px 1fr auto; gap: 8px; }
  .hfr2-stats .hs-section { padding: 14px; }
  .hfr2-stats .hs-body { padding: 14px; }
  .hfr2-stats .hs-panel { border-radius: 12px; }
}

