/* ==========================================================================
   PandaCloud · 前台样式
   ========================================================================== */

/* ---------------------------------------------------------------- 顶栏 */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid transparent;
  background: rgba(246, 248, 252, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.site-head.is-scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--head-h);
  position: relative;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 10px rgba(11, 92, 190, .16));
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.brand-name em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: right .28s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  right: 0;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  padding-top: clamp(36px, 5.5vw, 76px);
  padding-bottom: clamp(32px, 4vw, 56px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.45rem, 4.9vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.14;
  max-width: 12.5em;
}

.hero .hl {
  color: var(--brand-strong);
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  height: 60px;
  padding: 7px 7px 7px 46px;
  max-width: 540px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.hero-search:focus-within {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(11, 124, 246, .13);
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-4);
  display: flex;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15.5px;
  height: 100%;
  padding: 0 4px;
}

.hero-search input::placeholder {
  color: #8a93a8;
}

.hero-search input:focus {
  outline: none;
}

.hero-search-btn {
  height: 46px;
  padding-inline: 26px;
  border-radius: 10px;
  flex: none;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.quick-chip b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.quick-chip:hover {
  background: var(--surface);
  color: var(--ink);
}

.quick-chip.is-active {
  background: var(--surface);
  color: var(--brand-strong);
}

.quick-chip.is-active b {
  color: var(--brand);
}

/* 首屏插画 */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
}

.hero-glow {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%,
      rgba(11, 124, 246, .26), rgba(11, 124, 246, .08) 44%, transparent 68%);
  filter: blur(4px);
  animation: glow-pulse 9s ease-in-out infinite alternate;
}

.hero-mascot {
  position: relative;
  width: clamp(268px, 34vw, 452px);
  height: auto;
  filter: drop-shadow(0 34px 44px rgba(9, 35, 76, .2));
  animation: float 9s ease-in-out infinite alternate;
}

/* ---------------------------------------------------------------- 文件库 */
.library {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5.2vw, 72px) clamp(40px, 5vw, 64px);
}

.lib-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lib-title h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.lib-title p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--ink-3);
}

.lib-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lib-search {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(190px, 22vw, 258px);
}

.lib-search input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.lib-search input::placeholder {
  color: #8a93a8;
}

.lib-search input:focus {
  outline: none;
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(11, 124, 246, .12);
}

.lib-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.lib-search button:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.lib-sort {
  position: relative;
  display: flex;
  align-items: center;
}

.lib-sort select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 40px 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.lib-sort select:focus {
  outline: none;
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(11, 124, 246, .12);
}

.lib-sort-ico {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  rotate: 90deg;
  display: flex;
  color: var(--ink-3);
  pointer-events: none;
}

.lib-sort-ico .ico {
  width: 16px;
  height: 16px;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip-row-tags {
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}

.chip-row-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-4);
  margin-right: 2px;
}

.lib-results {
  margin-top: 22px;
}

.lib-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.lib-summary b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lib-summary-hint {
  font-size: 12.5px;
  color: var(--ink-4);
}

/* 文件行 */
.file-list {
  border-top: 1px solid var(--line);
}

.file-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  margin-inline: -14px;
  border-radius: 12px;
  transition: background-color .24s var(--ease), box-shadow .24s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .file-row {
    animation: row-in .55s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 45ms + 40ms);
  }
}

.file-row:hover {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .07);
}

.file-type {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  background: #f1f4fa;
  color: var(--ink-2);
  border: 1px solid #e6ebf5;
}

.file-type[data-tone="archive"] { background: #fff6e6; color: #9a5b00; border-color: #f7e3c2; }
.file-type[data-tone="app"]     { background: var(--brand-soft); color: var(--brand-strong); border-color: #d3e4fc; }
.file-type[data-tone="image"]   { background: #fdf0f6; color: #a12e6c; border-color: #f8dcea; }
.file-type[data-tone="video"]   { background: #f3f0ff; color: #5b40c4; border-color: #e4ddfb; }
.file-type[data-tone="audio"]   { background: #eaf7f5; color: #0e6b62; border-color: #d2ede9; }
.file-type[data-tone="doc"]     { background: #eff2fa; color: #3a4a72; border-color: #e0e6f3; }
.file-type[data-tone="code"]    { background: #edf8ef; color: #1f6b33; border-color: #d6eeda; }
.file-type[data-tone="file"]    { background: #f1f4fa; color: #4c5872; border-color: #e5eaf4; }

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

.file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.file-title a {
  transition: color .2s var(--ease);
}

.file-title a:hover {
  color: var(--brand-strong);
}

.badge-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.file-note-wrap {
  margin-top: 5px;
}

.file-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.file-note.is-open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.file-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-strong);
  transition: color .2s var(--ease);
}

.file-note-toggle[hidden] {
  display: none;
}

.file-note-toggle .ico {
  transition: transform .22s var(--ease);
}

.file-note-toggle:hover {
  color: var(--brand-press);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-note-toggle[aria-expanded="true"] .ico {
  transform: rotate(180deg);
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.file-meta b {
  font-weight: 600;
  color: var(--ink-2);
}

.file-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
  opacity: .55;
}

.meta-cat {
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: background-color .2s var(--ease);
}

.meta-cat:hover {
  background: #e2ecfa;
}

.meta-tag {
  color: var(--ink-3);
  transition: color .2s var(--ease);
}

.meta-tag:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-dl {
  height: 42px;
  min-width: 104px;
  padding-inline: 18px;
  font-size: 14.5px;
}

.btn-dl.is-busy {
  pointer-events: none;
  opacity: .75;
}

.file-row .btn-quiet {
  font-size: 13px;
  color: var(--ink-3);
}

.file-row .btn-quiet:hover {
  color: var(--brand-strong);
}

/* 空状态 */
.empty-state {
  padding: clamp(40px, 6vw, 72px) 20px;
  text-align: center;
}

.empty-state img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  opacity: .92;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
}

.empty-state p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.pager-btn:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.pager-btn.is-off {
  opacity: .45;
  pointer-events: none;
}

.pager-now {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.pager-now b {
  color: var(--ink);
}

/* ---------------------------------------------------------------- 招募横幅 */
.promo-band {
  padding-bottom: clamp(48px, 6vw, 76px);
}

.promo-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--promo-a), var(--promo-b));
  color: #fff;
  overflow: hidden;
}

.promo-inner::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -60%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 66%);
  pointer-events: none;
}

.promo-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  flex: none;
}

.promo-mark img {
  width: 58px;
  height: auto;
}

.promo-copy h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.promo-copy > p:nth-of-type(1) {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
}

.promo-cta {
  position: relative;
  z-index: 1;
  height: 48px;
  padding-inline: 24px;
  border-radius: 12px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- 页脚 */
.site-foot {
  background: var(--footer);
  color: var(--footer-ink);
  padding: clamp(40px, 5vw, 60px) 0 22px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.foot-logo img {
  width: 34px;
  height: 34px;
}

.foot-desc {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--footer-ink);
  opacity: .86;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px;
  color: var(--footer-dim);
}

/* ---------------------------------------------------------------- 内页 */
.page-shell {
  padding-block: clamp(22px, 3.4vw, 40px) clamp(48px, 6vw, 80px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.crumb a {
  color: var(--ink-3);
  transition: color .2s var(--ease);
}

.crumb a:hover {
  color: var(--brand-strong);
}

.crumb span[aria-hidden] {
  color: var(--ink-4);
}

.page-intro {
  margin-top: 18px;
  max-width: 46em;
}

.page-intro h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.page-intro p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-3);
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  margin-top: clamp(24px, 3.4vw, 36px);
}

.form-shell {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}

.field-group + .field-group {
  margin-top: 26px;
}

.field-group legend {
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* 文件清单：逐行录入 */
.file-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 38px;
  gap: 8px;
  align-items: center;
}

.file-input-row input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.file-input-row input:hover {
  border-color: #bfc9dd;
}

.file-input-row input:focus {
  outline: none;
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(11, 124, 246, .13);
}

.file-input-size {
  position: relative;
  display: flex;
  align-items: center;
}

.file-input-size input {
  padding-right: 42px;
  font-variant-numeric: tabular-nums;
}

.file-input-unit {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--ink-3);
  pointer-events: none;
}

.file-input-del {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--ink-3);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.file-input-del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.file-inputs.has-error input {
  border-color: var(--danger);
  background: #fffafa;
}

.file-input-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.file-input-foot .help {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.file-input-foot .help.is-error {
  color: var(--danger);
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 8px 0 20px;
  border: 1px solid #d5e5fc;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.price-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.price-detail {
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.form-foot {
  margin-top: 12px;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-3);
}

.upload-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.aside-card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11.5px;
  font-weight: 700;
}

.steps b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.steps p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
}

.aside-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.aside-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-strong);
}

.aside-mail:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-quiet {
  background: #fbfcff;
}

/* 提交完成 */
.done-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}

.done-icon .ico {
  width: 26px;
  height: 26px;
}

.done-card h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.done-lede {
  margin: 10px auto 0;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.done-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.done-facts dt {
  font-size: 12px;
  color: var(--ink-3);
}

.done-facts dd {
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-all;
}

.done-files {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.done-files li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.done-files li:first-child {
  border-top: 0;
}

.done-files span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.done-files b {
  flex: none;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.done-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.done-note a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.done-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- 提示条 */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 18px 40px -20px rgba(4, 10, 24, .7);
  animation: toast-in .32s var(--ease);
}

.toast.is-out {
  animation: toast-out .28s var(--ease) forwards;
}

.toast .ico {
  width: 16px;
  height: 16px;
  color: #7fd3a8;
}

/* ---------------------------------------------------------------- 动效 */
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

@keyframes glow-pulse {
  from { opacity: .75; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1.03); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero-search,
  .hero-quick {
    animation: rise .85s var(--ease) both;
  }

  .hero h1 { animation-delay: .04s; }
  .hero-search { animation-delay: .14s; }
  .hero-quick { animation-delay: .22s; }

  .hero-art {
    animation: rise 1s var(--ease) both .1s;
  }
}

/* 列表刷新 */
.file-list.is-swapping {
  opacity: .35;
  transition: opacity .16s var(--ease);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
  }

  .hero-art {
    max-width: 420px;
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-copy {
    max-width: 34em;
  }

  .hero-art {
    order: 2;
    max-width: 400px;
    margin-top: 26px;
    aspect-ratio: auto;
  }

  .hero-mascot {
    width: min(320px, 62vw);
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .promo-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .promo-cta {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -28px rgba(10, 22, 46, .5);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }

  .lib-tools {
    width: 100%;
  }

  .lib-search {
    flex: 1;
    width: auto;
  }

  .done-facts {
    grid-template-columns: 1fr;
  }

  .file-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 8px;
    margin-inline: -8px;
  }

  .file-type {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 9.5px;
  }

  .file-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .btn-dl {
    flex: 1;
  }

  .file-title {
    font-size: 15.5px;
  }
}

@media (max-width: 640px) {
  :root {
    --head-h: 62px;
  }

  .brand-name em {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.2vw, 2.6rem);
    letter-spacing: -.022em;
  }

  .hero-search {
    height: 56px;
    padding-left: 42px;
  }

  .hero-search-btn {
    height: 42px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-art {
    max-width: 320px;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  .chip {
    height: 40px;
  }

  .chip-tag {
    height: 38px;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip-row-tags {
    padding-top: 12px;
  }

  .lib-summary {
    gap: 6px;
  }

  .lib-summary-hint {
    display: none;
  }

  .promo-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
  }

  .promo-mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .promo-mark img {
    width: 48px;
  }

  .form-shell {
    padding: 18px 16px;
  }

  .file-input-row {
    grid-template-columns: minmax(0, 1fr) 104px 36px;
    gap: 6px;
  }

  .file-input-row input {
    height: 44px;
    font-size: 14px;
  }

  .file-input-del {
    width: 36px;
    height: 36px;
  }

  .price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-value {
    font-size: 26px;
  }

  .done-card {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .file-actions {
    flex-wrap: wrap;
  }

  .file-actions .btn-quiet {
    flex: 1;
    justify-content: center;
  }
}
