:root {
  color-scheme: dark;
  --bg: #07101c;
  --bg-deep: #050b13;
  --panel: rgba(12, 25, 42, .88);
  --panel-strong: #0f1f33;
  --line: rgba(142, 183, 218, .14);
  --line-strong: rgba(142, 183, 218, .23);
  --text: #eef7ff;
  --muted: #8da2b7;
  --muted-strong: #b8c7d5;
  --accent: #22d3c5;
  --accent-strong: #00b9c7;
  --accent-soft: rgba(34, 211, 197, .12);
  --folder: #f7c55c;
  --danger: #ff6d7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --radius-lg: 24px;
  --radius-md: 15px;
  --max-width: 1180px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg-deep); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 5%, rgba(0, 185, 199, .08), transparent 30%),
    radial-gradient(circle at 91% 22%, rgba(31, 103, 176, .09), transparent 28%),
    linear-gradient(160deg, #081321 0%, var(--bg-deep) 52%, #07111d 100%);
  overflow-x: hidden;
}

button, input, select { font: inherit; }

a { color: inherit; }

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:disabled { opacity: .45; cursor: wait; }

.is-hidden { display: none !important; }

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .12;
}

.page-glow-one { top: -230px; right: -100px; background: #1ed6c6; }
.page-glow-two { bottom: -280px; left: -160px; background: #1978c8; }

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 235, 220, .36);
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(34, 211, 197, .16), rgba(0, 77, 96, .12));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 185, 199, .08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; letter-spacing: .04em; }
.brand-copy small { color: #668097; font-size: 9px; letter-spacing: .24em; }

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 13px;
  transition: .2s ease;
}

.support-link:hover { color: var(--accent); border-color: rgba(34, 211, 197, .35); background: var(--accent-soft); }
.support-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 35px auto 0;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 18px 4px 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}

.eyebrow span { width: 26px; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 {
  margin: 15px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.hero-stat {
  min-width: 126px;
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 24, 39, .56);
  backdrop-filter: blur(16px);
  text-align: right;
}

.hero-stat span { display: block; color: var(--accent); font-size: 26px; font-weight: 750; line-height: 1; }
.hero-stat small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

.browser-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(15, 31, 51, .93), rgba(8, 18, 31, .92));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(24px);
}

.file-column { min-width: 0; }
.shop-panel { padding: 22px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(145deg, rgba(16, 35, 54, .93), rgba(9, 21, 35, .95)); }
.shop-eyebrow { color: var(--accent); font-size: 11px; line-height: 1.6; }
.shop-panel h2 { margin: 9px 0; font-size: 22px; letter-spacing: -.02em; }
.shop-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.shop-links { display: grid; gap: 10px; margin-top: 20px; }
.shop-link { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255, 255, 255, .025); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.shop-link:hover { border-color: rgba(34, 211, 197, .4); background: var(--accent-soft); }
.shop-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.shop-link.jd .shop-mark { color: #ff929b; background: rgba(237, 37, 62, .14); }
.shop-link.taobao .shop-mark { color: #ffb47b; background: rgba(255, 117, 30, .14); }
.shop-link-copy { min-width: 0; flex: 1; }
.shop-link strong { display: block; font-size: 13px; font-weight: 600; }
.shop-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.shop-link svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.shop-note { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }

@media (min-width: 1180px) {
  .content-layout.has-shop-panel { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 22px; }
  .shop-panel { position: sticky; top: 24px; }
  .has-shop-panel .table-heading, .has-shop-panel .file-row { grid-template-columns: minmax(230px, 1fr) 86px 140px 84px; gap: 14px; }
}

@media (max-width: 1179px) {
  .shop-panel { margin-top: 22px; }
  .shop-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.browser-top {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  min-height: 25px;
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.breadcrumb-item {
  max-width: min(300px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb-item:hover { color: var(--accent); }
.breadcrumb-item.current { color: var(--text); font-weight: 600; pointer-events: none; }
.breadcrumb-separator { color: #41566a; }
.home-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.toolbar { display: flex; align-items: center; gap: 12px; }
.refresh-button { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; }
.refresh-button.is-loading svg { animation: spin 1s linear infinite; }

.search-box {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 13, 23, .45);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-box:focus-within { border-color: rgba(34, 211, 197, .5); box-shadow: 0 0 0 3px rgba(34, 211, 197, .07); }
.search-box svg { width: 18px; flex: 0 0 auto; fill: none; stroke: #738ba0; stroke-width: 1.7; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #5e7386; }
.search-box kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: #60778b; background: rgba(255, 255, 255, .025); font: 11px/1.5 inherit; }

.sort-box {
  height: 46px;
  padding: 0 12px 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(4, 13, 23, .45);
  font-size: 12px;
}

.sort-box select { max-width: 135px; border: 0; outline: 0; color: var(--muted-strong); background: transparent; cursor: pointer; }
.sort-box select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sort-box option { color: var(--text); background: var(--panel-strong); }

.table-heading,
.file-row {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) 110px 170px 94px;
  gap: 18px;
  align-items: center;
}

.table-heading {
  min-height: 48px;
  padding: 0 24px;
  color: #657c91;
  background: rgba(5, 14, 25, .34);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}

.file-list { padding: 0 12px; }

.file-row {
  min-height: 76px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(142, 183, 218, .09);
  transition: background .18s ease, transform .18s ease;
}

.file-row:last-child { border-bottom: 0; }
.file-row:hover { border-radius: 12px; background: rgba(34, 211, 197, .045); }

.file-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 137, 174, .17);
  border-radius: 12px;
  color: #8bb6d8;
  background: rgba(77, 126, 167, .08);
}

.file-icon.folder { color: var(--folder); border-color: rgba(247, 197, 92, .18); background: rgba(247, 197, 92, .08); }
.file-icon.video { color: #bb98ff; border-color: rgba(187, 152, 255, .18); background: rgba(187, 152, 255, .08); }
.file-icon.audio { color: #d5a5ef; border-color: rgba(213, 165, 239, .18); background: rgba(213, 165, 239, .08); }
.file-icon.archive { color: #ff9f6e; border-color: rgba(255, 159, 110, .18); background: rgba(255, 159, 110, .08); }
.file-icon.document { color: #66b6ff; border-color: rgba(102, 182, 255, .18); background: rgba(102, 182, 255, .08); }
.file-icon.image { color: #71d99a; border-color: rgba(113, 217, 154, .18); background: rgba(113, 217, 154, .08); }
.file-icon.software { color: #4be1d4; border-color: rgba(75, 225, 212, .18); background: rgba(75, 225, 212, .08); }
.file-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.file-copy { min-width: 0; }

.file-name {
  display: inline;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.file-name:hover { color: var(--accent); }
.file-type-label { display: block; margin-top: 3px; color: #667d91; font-size: 11px; }
.file-size, .file-date { color: var(--muted); font-size: 12px; }
.file-details { display: contents; }
.file-actions { display: flex; justify-content: flex-end; gap: 7px; }

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8299ad;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: .18s ease;
}

.icon-button:hover { color: var(--accent); border-color: rgba(34, 211, 197, .35); background: var(--accent-soft); transform: translateY(-1px); }
.icon-button.primary { color: #061817; border-color: rgba(34, 211, 197, .65); background: linear-gradient(145deg, #3ee1d3, #15baaF); }
.icon-button.primary:hover { color: #031110; background: #55ebde; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.state-box {
  min-height: 280px;
  padding: 55px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.state-box strong { margin-top: 15px; font-size: 15px; }
.state-box small { margin-top: 8px; color: var(--muted); font-size: 12px; }
.state-box button { margin-top: 17px; padding: 9px 15px; border: 1px solid rgba(34, 211, 197, .35); border-radius: 10px; color: var(--accent); background: var(--accent-soft); cursor: pointer; }
.state-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }

.loader { width: 34px; height: 34px; border: 2px solid rgba(34, 211, 197, .13); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.browser-footer {
  min-height: 55px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #64798c;
  background: rgba(5, 14, 25, .36);
  font-size: 11px;
}

.usage-tip { margin: 14px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 26px auto 0;
  padding: 18px 4px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #536a7d;
  font-size: 11px;
}

.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #41596c; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 10;
  padding: 11px 17px;
  border: 1px solid rgba(34, 211, 197, .28);
  border-radius: 11px;
  color: #dffefa;
  background: rgba(9, 28, 39, .94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .22s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .site-header { height: 76px; }
  .shell { margin-top: 12px; }
  .hero { padding-top: 20px; }
  .hero-stat { display: none; }
  .browser-top { padding: 18px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: stretch; }
  .search-box { grid-column: 1 / -1; }
  .sort-box { justify-content: space-between; }
  .sort-box select { max-width: none; flex: 1; text-align: right; }
  .table-heading { display: none; }
  .file-list { padding: 5px 10px; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; min-height: 92px; padding: 14px 10px; }
  .file-main { grid-column: 1 / -1; align-items: flex-start; }
  .file-details { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 14px; grid-column: 1; grid-row: 2; padding-left: 56px; }
  .file-size { white-space: nowrap; }
  .file-date { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-actions { grid-column: 2; grid-row: 2; }
  .file-actions .copy-action { display: none; }
  .browser-footer { padding: 0 18px; }
  .browser-footer span:last-child { display: none; }
}

@media (max-width: 560px) {
  .site-header, .shell, .site-footer { width: min(calc(100% - 24px), var(--max-width)); }
  .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
  .brand-copy strong { font-size: 14px; }
  .support-link span { display: none; }
  .support-link { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .hero { padding: 32px 2px 25px; }
  .hero h1 { margin-top: 12px; font-size: 34px; }
  .hero p { font-size: 13px; }
  .browser-card { border-radius: 18px; }
  .browser-top { padding: 16px 14px; }
  .breadcrumbs { margin-bottom: 15px; }
  .search-box kbd { display: none; }
  .file-row { column-gap: 10px; }
  .file-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .file-details { padding-left: 52px; }
  .site-footer { flex-wrap: wrap; }
  .shop-panel { padding: 19px; border-radius: 18px; }
  .shop-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
