:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e4e9f0;
  --text: #1c2430;
  --muted: #667386;
  --cyan: #0f6f96;
  --blue: #2463eb;
  --max: 1120px;
  --shadow: 0 16px 40px rgba(28, 36, 48, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 48% 24% at 100% 0%, rgba(255, 196, 140, 0.22), transparent 60%),
    radial-gradient(ellipse 36% 22% at 0% 0%, rgba(36, 99, 235, 0.08), transparent 62%),
    var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.intro-on .topbar,
body.intro-on main,
body.intro-on .footer { opacity: 0.35; transform: scale(0.99); }
.topbar, main, .footer { transition: opacity 420ms ease, transform 420ms ease; }

button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: rgba(36, 99, 235, 0.16); }

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eef3f8;
  color: #1c2838;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: calc(var(--max) + 44px);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; color: var(--muted); border-radius: 999px; }
.nav a.is-current { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(28, 36, 48, 0.06); }
.nav-download { color: #fff !important; background: var(--text) !important; box-shadow: none !important; }
.menu-button { display: none; }
.menu-button span, .menu-button span::before, .menu-button span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-button span { position: relative; }
.menu-button span::before, .menu-button span::after { content: ""; position: absolute; left: 0; }
.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }

main { max-width: var(--max); margin: 0 auto; padding: 12px 22px 72px; }

.hero { max-width: 760px; margin: 42px auto 20px; text-align: center; }
.kicker { margin: 0 0 12px; color: var(--cyan); letter-spacing: 0.16em; font-size: 13px; font-weight: 700; }
.logo {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #05070c;
  box-shadow: 0 8px 20px rgba(28, 36, 48, 0.16);
}
.logo img, img.logo { display: block; width: 100%; height: 100%; object-fit: cover; }
.wordmark { margin: 0 auto 18px; }
#home-kicker {
  position: relative;
  display: table;
  margin: 0 auto;
  padding: 0 0 16px 0.2em;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  color: transparent;
  background: linear-gradient(100deg, #1b2433 0%, #3e4d63 42%, #9a6234 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
#home-kicker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(8em, 62vw);
  height: 2px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #2463eb, #c4843a, transparent);
}
h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
h1 span {
  background: linear-gradient(100deg, #0f6f96, #2463eb 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 16px auto 0; max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero .button { margin-top: 28px; min-width: 148px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.button-primary { background: linear-gradient(100deg, #1f8fbf, #2463eb); color: #fff; font-weight: 700; }
.button-quiet { border-color: var(--line); color: var(--text); background: #fff; }
.button:disabled { opacity: 0.45; cursor: default; }
.home-status { margin-top: 22px; }

.workspace {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.partitions {
  min-width: 0;
  padding: 22px 16px 18px;
  background: #f7f9fb;
  border-right: 1px solid var(--line);
}
.partitions > p { margin: 2px 8px 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.partition-list { display: grid; gap: 8px; }
.partition {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  background: transparent;
}
.partition i { color: #8aa0b8; font-style: normal; }
.partition.is-active {
  border-color: #d5e2f2;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 36, 48, 0.05);
}
.partition.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, #1f8fbf, #2463eb);
}
.mini-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }

.browser { min-width: 0; padding: 22px 22px 16px; }
.search {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f8fb;
}
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px 0 12px;
}
.search-field span { flex: none; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.search-go { flex: none; min-height: 42px; padding: 0 22px; border-radius: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.crumbs button { color: var(--cyan); }
.list-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 8px 0 12px; }
.list-head small { color: var(--muted); }
.file-list { display: grid; gap: 10px; }
.entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.entry-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.entry:hover { border-color: #c9d7e8; }
.product-card b, .partition b, .entry b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card small, .partition small, .entry small { display: block; margin-top: 4px; color: #7b8796; font-size: 12px; }
.file-glyph, .folder-glyph {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #eef3f8;
  color: #243044;
  font-size: 12px;
  font-weight: 800;
}
.folder-glyph { background: linear-gradient(160deg, #e7a45a, #c4843a); color: #fffaf3; }
.entry .button { min-height: 38px; padding: 0 14px; }
.empty { margin: 12px 0 20px; color: var(--muted); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-height: 52px; }
.pager span { color: var(--muted); font-size: 13px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: var(--muted);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0%, #f4f6f8 70%);
}
.intro.is-leaving { animation: intro-out 640ms ease forwards; }
.intro-rings { position: absolute; width: min(78vw, 640px); aspect-ratio: 1; }
.intro-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(36, 99, 235, 0.12);
  border-radius: 50%;
}
.intro-rings i:nth-child(2) { inset: 11%; }
.intro-rings i:nth-child(3) { inset: 22%; }
.intro-core { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; }
.intro-core .logo { width: 112px; height: 112px; box-shadow: 0 18px 40px rgba(28, 36, 48, 0.18); }
.intro-core strong {
  font-size: clamp(40px, 12vw, 64px);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: transparent;
  background: linear-gradient(100deg, #1b2433, #9a6234);
  -webkit-background-clip: text;
  background-clip: text;
}
.intro-core small { color: var(--muted); font-size: 16px; }
.intro button {
  position: absolute;
  bottom: 48px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 36, 48, 0.28);
  backdrop-filter: blur(10px);
}
.dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}
.dialog small { color: var(--cyan); letter-spacing: 0.14em; }
.dialog h2 { margin: 10px 0; font-size: 24px; overflow-wrap: anywhere; }
.dialog p { margin: 0 0 16px; color: var(--muted); }
.direct-url { overflow-wrap: anywhere; font-size: 12px; color: var(--cyan); user-select: text; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
}
.dialog-orbit {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border: 2px solid rgba(36, 99, 235, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.bar {
  height: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eef6;
}
.bar::before {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #1f8fbf, var(--blue));
  animation: slide 1s ease infinite;
}
.bar.is-done::before { width: 100%; animation: none; }
.noscript { padding: 24px; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(280%); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

@media (max-width: 800px) {
  .topbar, main, .footer {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  input, textarea, select { font-size: 16px; }
  h1 { font-size: clamp(28px, 10vw, 40px); text-align: left; }
  .hero { margin-top: 24px; text-align: left; }
  .wordmark, #home-kicker { margin-left: 0; margin-right: auto; }
  .hero .button { width: 100%; }
  .menu-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
  }
  #site-nav {
    position: absolute;
    top: 64px;
    right: 14px;
    z-index: 30;
    display: none;
    min-width: 168px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }
  #site-nav.is-open { display: grid; box-shadow: var(--shadow); }
  #site-nav a { min-height: 44px; }
  .workspace { grid-template-columns: 1fr; border-radius: 18px; }
  .partitions, .browser { padding: 14px; }
  .partitions { border-right: 0; border-bottom: 1px solid var(--line); }
  .partition-list {
    display: grid;
    gap: 10px;
    width: 100%;
  }
  .partition {
    width: 100%;
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    background: #fff;
    border: 1px solid var(--line);
  }
  .search { width: 100%; }
  .entry {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }
  .entry b {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .entry .button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .entry-time { grid-column: 2; white-space: normal; }
  .crumbs button { min-height: 36px; }
  .dialog { width: 100%; padding: 56px 16px 18px; }
  .intro button { bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  #home-kicker { font-size: 42px; letter-spacing: 0.12em; padding-left: 0.12em; }
  .search { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .search-go, #clear-search { width: 100%; }
  .list-head { align-items: flex-start; flex-direction: column; }
  .pager { justify-content: stretch; }
  .pager .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none !important; }
}
