:root {
  --mars-bg: #050505;
  --mars-card: rgba(10, 10, 10, 0.92);
  --mars-border: rgba(255, 107, 53, 0.22);
  --mars-glow: #ff6b35;
  --mars-accent: #ff8c69;
  --hero-glow-1: rgba(255, 107, 53, 0.5);
  --hero-glow-2: rgba(255, 77, 79, 0.4);
  --hero-glow-3: rgba(255, 180, 120, 0.35);
  --angle: 0deg;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --site-header-h: 64px;
}

@keyframes orb-drift-1 {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

@keyframes dash-march {
  to { stroke-dashoffset: -20; }
}

* { box-sizing: border-box; }

/* 全局隐藏滚动条，保留滚动功能 */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html, body, #root { min-height: 100%; margin: 0; }

body {
  background: var(--mars-bg);
  color: rgba(255,255,255,.88);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body[theme-mode="dark"] { background: var(--mars-bg); }

.mars-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--mars-bg);
}

.mars-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 55% at 50% 32%,
    rgba(255, 107, 53, 0.16) 0%,
    rgba(255, 77, 79, 0.07) 38%,
    transparent 68%
  );
  animation: orb-drift-1 12s ease-in-out infinite;
}

.mars-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 45% 35% at 50% 28%,
    rgba(255, 200, 160, 0.06) 0%,
    transparent 60%
  );
}

/* React Bits Dot Grid — https://reactbits.dev/backgrounds/dot-grid */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dot-grid__wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.dot-grid__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

.page .semi-layout,
.page .site-layout {
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
}

.page .semi-layout-content,
.page .site-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  min-height: 0;
}

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Upload Shell (React Bits Pro inspired) ── */
.hero-shell {
  flex: 0 0 auto;
  min-height: calc(100dvh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  padding: 32px 24px;
  box-sizing: border-box;
}

.hero-card-wrap {
  position: relative;
  width: min(720px, 100%);
  animation: fade-up .8s cubic-bezier(.22, 1, .36, 1) both;
  border-radius: 28px;
}

/* Electric Border — https://reactbits.dev/animations/electric-border */
.electric-border {
  --electric-light-color: var(--electric-border-color, #ff6b35);
  position: relative;
  border-radius: inherit;
  overflow: visible;
  isolation: isolate;
}

.eb-canvas-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.eb-canvas { display: block; }

.eb-content {
  position: relative;
  border-radius: inherit;
  z-index: 1;
}

.eb-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.eb-glow-1,
.eb-glow-2,
.eb-background-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}

.eb-glow-1 {
  border: 2px solid color-mix(in srgb, var(--electric-border-color, #ff6b35) 60%, transparent);
  filter: blur(1px);
}

.eb-glow-2 {
  border: 2px solid var(--electric-light-color, #ff6b35);
  filter: blur(4px);
}

.eb-background-glow {
  z-index: -1;
  transform: scale(1.08);
  filter: blur(32px);
  opacity: 0.28;
  background: linear-gradient(-30deg, var(--electric-light-color, #ff6b35), transparent, var(--electric-border-color, #ff6b35));
}

.hero-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 56px) clamp(28px, 5vw, 48px);
  background: var(--mars-card);
  border: 1px solid rgba(255, 255, 255, .04);
  backdrop-filter: blur(32px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 107, 53, .08),
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fade-up .8s .1s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mars-glow);
  box-shadow: 0 0 8px rgba(255, 107, 53, .8);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-card h1,
.hero-card .hero-title {
  margin: 0 0 14px;
  font-family: "Instrument Serif", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: #fff;
}

.blur-text {
  margin: 0;
}

.blur-text-segment {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.blur-text--top .blur-text-segment {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(-50px);
}

.blur-text--bottom .blur-text-segment {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(50px);
}

.blur-text--top .blur-text-segment--animate {
  animation-name: blur-text-in-top;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  animation-fill-mode: forwards;
}

.blur-text--bottom .blur-text-segment--animate {
  animation-name: blur-text-in-bottom;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  animation-fill-mode: forwards;
}

.blur-text--instant .blur-text-segment {
  filter: none;
  opacity: 1;
  transform: none;
}

@keyframes blur-text-in-top {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(-50px);
  }
  50% {
    filter: blur(5px);
    opacity: .5;
    transform: translateY(5px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blur-text-in-bottom {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
  }
  50% {
    filter: blur(5px);
    opacity: .5;
    transform: translateY(-5px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card .hero-desc {
  margin: 0 auto 32px;
  max-width: 480px;
  color: rgba(255, 255, 255, .48);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  animation: fade-up .8s .2s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tab-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 24px;
}

.hero-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}

.hero-tab-pill svg { width: 15px; height: 15px; }

.hero-tab-pill:hover { color: rgba(255, 255, 255, .75); }

.hero-tab-pill.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hero-drop-zone {
  position: relative;
  border: none;
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  transition: background .25s;
  background: transparent;
  animation: fade-up .8s .25s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-drop-inner {
  position: relative;
  border-radius: 18px;
  padding: 40px 24px;
  background: rgba(255, 255, 255, .02);
  text-align: center;
  transition: background .25s;
}

.hero-drop-zone:hover .hero-drop-inner,
.hero-drop-zone.active .hero-drop-inner {
  background: rgba(255, 107, 53, .06);
}

.hero-drop-zone .eb-background-glow {
  opacity: 0.18;
}

/* React Bits Specular Button */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.specular-button:active { transform: scale(0.97); }

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button--upload {
  width: 64px;
  height: 64px;
  padding: 0;
  margin: 0 auto 14px;
  --sb-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.specular-button--upload .specular-button__label {
  display: flex;
  align-items: center;
  justify-content: center;
}

.specular-button--upload .specular-button__label svg {
  width: 26px;
  height: 26px;
}

.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

.hero-drop-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  animation: float-icon 3s ease-in-out infinite;
}

.hero-drop-icon svg { width: 26px; height: 26px; }

.hero-drop-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}

.hero-drop-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
}

.hero-url-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.hero-url-row .semi-input-wrapper { flex: 1; }

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0b0a0d;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .2s;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, .15);
}

.hero-btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.2s ease infinite;
}

.hero-btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.hero-btn-secondary:hover {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .04);
}

.hero-btn-secondary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hero-btn-clear:hover {
  border-color: rgba(255, 107, 53, .35);
  color: #ff8c69;
}

.hero-upload-panel {
  margin-top: 16px;
}

.upload-progress {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 107, 53, .06);
  border: 1px solid rgba(255, 107, 53, .16);
}

.upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.upload-progress-meta span:last-child {
  color: #ff8c69;
  font-weight: 600;
}

.upload-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b35, #ff8c69);
  box-shadow: 0 0 12px rgba(255, 107, 53, .45);
  transition: width .15s ease;
}

.hero-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: left;
  animation: fade-up .5s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-result-clear {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

.hero-result-clear:hover {
  border-color: rgba(255, 107, 53, .35);
  color: #ff8c69;
  background: rgba(255, 107, 53, .08);
}

.hero-result-list {
  padding-top: 4px;
}

.hero-result-list .history-list-item--fresh {
  animation: result-pop .45s cubic-bezier(.22, 1, .36, 1) both;
}

.history-list-item--pending {
  opacity: .92;
}

.history-list-thumb--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 107, 53, .35);
  background: rgba(255, 107, 53, .06);
  cursor: default;
}

.hero-result-pending-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #ff8c69;
  background: rgba(255, 107, 53, .1);
  animation: float-icon 2s ease-in-out infinite;
}

.hero-result-pending-track {
  width: min(320px, 100%);
  margin-top: 4px;
}

@keyframes result-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.hero-meta-item {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .04);
  min-width: 100px;
  transition: border-color .2s, background .2s;
}

.hero-meta-item:hover {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}

.hero-meta-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}

/* legacy hero (kept for other pages if needed) */
.hero { padding: 72px 24px 40px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--mars-border);
  background: rgba(255, 107, 53, .08);
  color: #ffb199; font-size: 12px; letter-spacing: .08em;
  margin-bottom: 20px;
}

.hero-badge svg { width: 14px; height: 14px; opacity: .9; }

.hero h1 {
  margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ffb199 45%, #ff6b35 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin: 0 auto; max-width: 620px; color: rgba(255,255,255,.55);
  font-size: 1.05rem; line-height: 1.7;
}

.stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 32px;
}

.stat-item {
  min-width: 120px; padding: 14px 20px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}

.stat-item b { display: block; font-size: 1.4rem; color: #ff8c69; }
.stat-item span { font-size: .82rem; color: rgba(255,255,255,.45); }

.main-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.home-history-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 24px 80px;
  flex-shrink: 0;
}

.home-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.home-history-more {
  color: #ff8c69;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.home-history-more:hover {
  opacity: .85;
}

.home-history-wrap > .semi-card,
.home-history-wrap .glass-card {
  width: 100%;
}

#upload,
#history {
  scroll-margin-top: calc(var(--site-header-h) + 12px);
}

.glass-card {
  background: var(--mars-card) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
  border-radius: 20px !important;
  transition: border-color .3s, box-shadow .3s;
}

.glass-card:hover {
  border-color: rgba(255,255,255,.1) !important;
  box-shadow:
    0 28px 90px rgba(0,0,0,.5),
    0 0 40px rgba(255, 107, 53, .04),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.drop-zone {
  border: 1.5px dashed rgba(255, 107, 53, .35);
  border-radius: 16px; padding: 48px 24px; text-align: center;
  cursor: pointer; transition: .25s;
  background: rgba(255, 107, 53, .04);
}

.drop-zone:hover, .drop-zone.active {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, .1);
  box-shadow: 0 0 40px rgba(255, 107, 53, .12);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px; margin-top: 16px;
}

.file-card {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: .2s;
  background: rgba(255,255,255,.04);
  position: relative;
}

.file-card-thumb {
  position: relative;
}

.file-card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, .65);
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s, background .2s, color .2s;
}

@media (hover: hover) {
  .file-card-remove {
    opacity: 0;
  }

  .file-card:hover .file-card-remove,
  .file-card-remove:focus-visible {
    opacity: 1;
  }
}

.file-card-remove:hover {
  background: rgba(220, 60, 60, .9);
  color: #fff;
}

.file-card:hover { transform: translateY(-2px); }
.file-card.selected { border-color: transparent; box-shadow: none; }

.file-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  background: #111;
}

.file-card .fname {
  padding: 8px; font-size: 11px; color: rgba(255,255,255,.65);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.history-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}

.history-row img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}

.history-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.history-thumb-wrap img {
  width: 100%;
  height: 100%;
  transition: transform .2s;
}

.history-thumb-wrap:hover img {
  transform: scale(1.08);
}

.history-thumb-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transition: opacity .2s;
}

.history-thumb-wrap:hover .history-thumb-mask {
  opacity: 1;
}

.file-card-img {
  cursor: zoom-in;
}

.file-card .semi-image-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.history-row .link-text {
  flex: 1; font-size: 12px; color: rgba(255,255,255,.55);
  word-break: break-all;
}


.semi-navigation-header {
  background: rgba(5, 5, 5, .65) !important;
  border-bottom: 1px solid rgba(255,255,255,.04);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: 0 !important;
}

.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 64px;
  max-width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 0 12px 0 8px;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 4px;
}

.site-header-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}

.site-header-brand-name {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #ff8c69);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header-brand-sub {
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  letter-spacing: .04em;
}

.site-header-bar .site-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  background: transparent !important;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 24px;
}

.feature-item {
  padding: 20px; border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.feature-item .icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 107, 53, .12); color: #ff8c69;
}

.feature-item .icon svg { width: 22px; height: 22px; }

.brand-logo {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,107,53,.3), rgba(255,77,79,.15));
  color: var(--mars-accent);
  box-shadow: 0 0 20px rgba(255, 107, 53, .12);
}

.brand-logo svg { width: 20px; height: 20px; }

.site-footer {
  text-align: center; padding: 40px 20px 60px;
  color: rgba(255,255,255,.28); font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.04);
}

.drop-icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: rgba(255, 107, 53, .1); color: #ff8c69;
}

.drop-icon svg { width: 32px; height: 32px; }

.tab-label { display: inline-flex; align-items: center; gap: 6px; }
.tab-label svg { width: 16px; height: 16px; }

.feature-item h4 { margin: 10px 0 6px; color: #fff; }
.feature-item p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; }

.mars-btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff4d4f) !important;
  border: none !important;
}

.btn-row { display: flex; gap: 12px; margin-top: 20px; }
.btn-row .semi-button { flex: 1; }

@media (max-width: 768px) {
  .hero-shell {
    padding: 24px 16px;
    min-height: calc(100dvh - var(--site-header-h));
    min-height: calc(100svh - var(--site-header-h));
  }
  .hero-card { padding: 32px 20px; border-radius: 22px; }
  .hero-card-wrap { border-radius: 22px; }
  .hero { padding-top: 48px; }
  .stats { gap: 12px; }
  .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-section { opacity: 1; transform: none; }
}

/* 认证页 Semi UI 深色适配 */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
}

.auth-links {
  text-align: center;
  margin-top: 8px;
}

.auth-links .semi-typography {
  color: rgba(255, 255, 255, .45) !important;
}

.auth-links a,
.auth-links .semi-typography a,
.auth-card .auth-links a {
  color: #ff8c69 !important;
  text-decoration: none;
  margin: 0 4px;
  transition: color .2s;
}

.auth-links a:hover,
.auth-links .semi-typography a:hover {
  color: #ffb08f !important;
}

.auth-card .semi-form-field-label-text {
  color: rgba(255,255,255,.75) !important;
}

.auth-card .semi-input-wrapper,
.auth-card .semi-input-wrapper:hover,
.auth-card .semi-input-wrapper-focus {
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.auth-card .semi-input {
  color: #fff !important;
  background: transparent !important;
}

.auth-card .semi-input::placeholder {
  color: rgba(255,255,255,.35) !important;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.75) !important;
}

.auth-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-code-row .semi-input-wrapper {
  flex: 1;
}

.auth-code-btn {
  flex-shrink: 0;
  min-width: 112px;
  white-space: nowrap;
}

/* 禁止浏览器自动填充高亮 */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,.35) inset !important;
  box-shadow: 0 0 0 1000px rgba(0,0,0,.35) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 99999s ease-out 0s;
}

/* 子页面通用布局 */
.subpage-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.subpage-wrap--wide {
  max-width: 1080px;
}

.subpage-hero {
  text-align: center;
  margin-bottom: 28px;
}

.subpage-title {
  margin: 0 0 10px;
  font-family: "Instrument Serif", "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  color: #fff;
}

.subpage-desc {
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: 1rem;
  line-height: 1.65;
}

.subpage-card {
  padding: 28px 28px 32px;
  border-radius: 20px;
}

.subpage-wrap--wide {
  max-width: 1080px;
}

.price-subpage.subpage-wrap--wide {
  max-width: min(1400px, 98vw);
}

.price-subpage__card,
.price-subpage__card.glass-card {
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.price-subpage__card:hover {
  border: none !important;
  box-shadow: none !important;
}

.price-subpage .subpage-hero {
  margin-bottom: 48px;
}

.price-subpage .subpage-title {
  font-size: clamp(2.6rem, 6vw, 3.4rem);
}

.price-subpage .subpage-desc {
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 auto;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.price-billing-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.price-billing-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, .28);
  background: rgba(255, 107, 53, .08);
}

.price-billing-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.price-billing-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #ff4d4f);
  box-shadow: 0 10px 24px rgba(255, 107, 53, .28);
}

.price-billing-tab:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 107, 53, .16);
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  min-height: 520px;
  padding: 48px 32px 36px;
  border-radius: 24px;
  border: 1px solid rgba(255, 107, 53, .24);
  background: linear-gradient(180deg, rgba(255, 107, 53, .14) 0%, rgba(255, 107, 53, .05) 100%);
  text-align: center;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.price-card--featured {
  border-color: rgba(255, 140, 105, .55);
  background: linear-gradient(180deg, rgba(255, 107, 53, .22) 0%, rgba(255, 107, 53, .08) 100%);
  box-shadow: 0 24px 56px rgba(255, 107, 53, .2);
  transform: translateY(-6px);
}

.price-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b35, #ff4d4f);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(255, 107, 53, .35);
}

.price-card:hover {
  border-color: rgba(255, 140, 105, .5);
  box-shadow: 0 24px 56px rgba(255, 107, 53, .18);
}

.price-card-name {
  margin: 0 0 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.price-card-quota {
  color: #ff8c69;
  font-size: 18px;
  margin-bottom: 20px;
}

.price-card-price {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-card-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  text-align: left;
  flex: 1;
}

.price-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.55;
}

.price-card-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 107, 53, .15);
  color: #ff8c69;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card-currency {
  font-size: 34px;
  margin-right: 4px;
  color: #ff8c69;
  align-self: flex-start;
  margin-top: 14px;
}

.price-card-btn {
  display: block;
  width: 100%;
  padding: 18px 0;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6b35, #ff4d4f);
  box-shadow: 0 12px 32px rgba(255, 107, 53, .28);
  margin-top: auto;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.price-card-btn:hover {
  opacity: .95;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 107, 53, .32);
}

button.price-card-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

button.price-card-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* 微信支付弹窗 */
.mars-pay-modal .semi-modal-content {
  background: rgba(14, 14, 18, .98) !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
}

.mars-pay-modal .semi-modal-header {
  background: transparent !important;
}

.mars-pay-modal .semi-modal-title {
  color: #fff !important;
}

.mars-pay-modal-desc {
  margin: 0 0 16px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}

.mars-pay-modal-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.mars-pay-modal-qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.mars-pay-modal-amount {
  text-align: center;
  color: #ff8c69;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mars-pay-modal-hint {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 320px;
  }
}

/* 上传记录页 */
.history-subpage.subpage-wrap--wide,
.history-subpage.subpage-wrap {
  max-width: min(1920px, 99.5vw);
  padding-left: 8px;
  padding-right: 8px;
}

.history-subpage {
  max-width: min(1920px, 99.5vw);
}

.history-subpage__card,
.history-subpage__card.glass-card {
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.history-subpage__card:hover {
  border: none !important;
  box-shadow: none !important;
}

.history-page-panel {
  min-height: 420px;
}

.history-loading {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.history-stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 107, 53, .12);
  border-bottom: 1px solid rgba(255, 107, 53, .12);
}

.history-stat-item {
  padding: 22px 16px;
  text-align: center;
  background: rgba(8, 8, 8, .85);
}

.history-stat-item b {
  display: block;
  color: #ff8c69;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.history-stat-item span {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  letter-spacing: .04em;
}

.history-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  gap: 12px;
}

.history-page-toolbar--end {
  justify-content: flex-end;
}

.history-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.history-view-toggle:hover {
  color: #ff8c69;
  border-color: rgba(255, 107, 53, .35);
  background: rgba(255, 107, 53, .08);
}

.history-list-wrap {
  padding: 8px 0 28px;
  width: 100%;
  max-width: 100%;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.history-list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 8px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
}

.history-list-item:last-child {
  border-bottom: none;
}

.history-list-thumb {
  width: 112px;
  height: 112px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
}

.history-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-list-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.history-list-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  min-width: 148px;
}

.history-list-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 140, 105, .78);
  font-size: 12px;
}

.history-list-pagination {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.history-list-pagination .semi-page {
  color: rgba(255, 255, 255, .65);
}

.history-list-pagination .semi-page-item-active {
  background: rgba(255, 107, 53, .2) !important;
  border-color: rgba(255, 107, 53, .4) !important;
  color: #ff8c69 !important;
}

.history-toolbar-label {
  color: rgba(255, 255, 255, .72) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-clear-btn {
  color: rgba(255, 140, 105, .85) !important;
}

.history-clear-btn:hover {
  color: #ff8c69 !important;
  background: rgba(255, 107, 53, .08) !important;
}

.history-gallery-wrap {
  padding: 8px 0 28px;
}

.tablet-stage {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
  width: 100%;
}

.tablet-device {
  position: relative;
  width: min(96vw, 900px);
  padding: 11px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 14%),
    linear-gradient(205deg, #7a7a84 0%, #56565f 16%, #43434b 42%, #32323a 68%, #24242c 86%, #18181f 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14),
    0 2px 0 rgba(255, 255, 255, .08),
    0 44px 110px rgba(0, 0, 0, .58),
    inset 0 1px 1px rgba(255, 255, 255, .34),
    inset 0 -2px 4px rgba(0, 0, 0, .45);
}

.tablet-device::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .38),
    inset 0 2px 10px rgba(255, 255, 255, .1);
}

.tablet-device::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 38px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, transparent 38%, transparent 62%, rgba(0, 0, 0, .12) 100%);
}

.tablet-button {
  position: absolute;
  z-index: 2;
  background: linear-gradient(180deg, #7a7a84 0%, #4a4a52 55%, #2e2e36 100%);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 1px 2px rgba(0, 0, 0, .35);
}

.tablet-button--power {
  top: -3px;
  right: 88px;
  width: 48px;
  height: 4px;
  border-radius: 0 0 3px 3px;
}

.tablet-bezel {
  position: relative;
  padding: 3px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #1a1a1e 0%, #050505 100%);
  border: 1px solid rgba(0, 0, 0, .85);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 18px rgba(0, 0, 0, .65);
}

.tablet-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 6;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #6a6a74 0%, #2a2a32 38%, #0a0a0e 72%, #000 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 0 0 2px rgba(0, 0, 0, .45),
    inset 0 1px 2px rgba(255, 255, 255, .15),
    inset 0 -2px 6px rgba(0, 0, 0, .9);
}

.tablet-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(64vh, 620px);
  border-radius: 24px;
  background: #000;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.tablet-screen:active {
  cursor: grabbing;
}

.tablet-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 6;
  width: 124px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 8px rgba(255, 255, 255, .15);
  pointer-events: none;
}

.tinder-stack {
  position: absolute;
  inset: 0;
}

.tinder-card {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  transform-origin: center bottom;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s;
}

.tinder-card--depth-0 {
  z-index: 3;
}

.tinder-card--depth-1 {
  z-index: 2;
  transform: scale(.985) translateY(6px);
  opacity: .9;
}

.tinder-card--depth-2 {
  z-index: 1;
  transform: scale(.97) translateY(12px);
  opacity: .75;
}

.tinder-card--prev-enter {
  z-index: 4;
  pointer-events: none;
}

.tinder-card.is-top {
  cursor: grab;
}

.tinder-card-media,
.tinder-card-media img {
  width: 100%;
  height: 100%;
}

.tinder-card-media {
  position: absolute;
  inset: 0;
}

.tinder-card-media img {
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}

.tinder-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 18px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .68) 52%, rgba(0, 0, 0, .9) 100%);
}

.tinder-card-overlay-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.tinder-card-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.tinder-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-inline-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
}

.history-inline-btn:hover {
  color: #fff;
}

.history-inline-btn--primary {
  color: #ff8c69;
}

.history-inline-btn--primary:hover {
  color: #ffb08f;
}

.history-inline-btn--danger {
  color: rgba(255, 255, 255, .45);
}

.history-inline-btn--danger:hover {
  color: #ff6b6b;
}

.history-inline-btn--favorite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-inline-btn--favorite.is-favorited {
  color: #ffc53d;
}

.history-inline-btn--favorite.is-favorited:hover {
  color: #ffd666;
}

.history-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 24px 20px;
  position: relative;
}

.history-slider-fav {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.history-nav-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.history-nav-fav-btn:hover {
  background: rgba(255, 197, 61, .12);
  border-color: rgba(255, 197, 61, .35);
  color: #fff;
}

.history-nav-fav-btn.is-favorited {
  color: #ffc53d;
  border-color: rgba(255, 197, 61, .35);
  background: rgba(255, 197, 61, .1);
}

.history-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}

.history-nav-btn:hover:not(:disabled) {
  background: rgba(255, 107, 53, .12);
  border-color: rgba(255, 107, 53, .35);
  color: #fff;
}

.history-nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.history-nav-indicator {
  min-width: 72px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}

.history-current-actions {
  display: none;
}

.history-timeline-section {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.history-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 4px 16px;
}

.history-timeline-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.history-timeline-head span {
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
}

.history-timeline {
  position: relative;
  padding: 0 4px 8px;
}

.history-timeline-group + .history-timeline-group {
  margin-top: 18px;
}

.history-timeline-date {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: #ff8c69;
  font-size: 13px;
  font-weight: 600;
}

.history-timeline-date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ff6b35;
  box-shadow: 0 0 12px rgba(255, 107, 53, .45);
}

.history-timeline-items {
  position: relative;
  padding-left: 22px;
}

.history-timeline-items::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 107, 53, .45), rgba(255, 107, 53, .08));
}

.history-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.history-timeline-item:hover {
  border-color: rgba(255, 107, 53, .22);
  background: rgba(255, 107, 53, .05);
}

.history-timeline-item.is-active {
  border-color: rgba(255, 107, 53, .38);
  background: rgba(255, 107, 53, .1);
  transform: translateX(4px);
}

.history-timeline-dot {
  position: absolute;
  left: -18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .25);
}

.history-timeline-item.is-active .history-timeline-dot {
  background: #ff6b35;
  box-shadow: 0 0 10px rgba(255, 107, 53, .5);
}

.history-timeline-time {
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.history-timeline-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.history-timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-timeline-name {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-empty {
  position: relative;
  text-align: center;
  padding: 72px 40px 64px;
  overflow: hidden;
}

.history-empty-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, .18) 0%, transparent 68%);
  pointer-events: none;
}

.history-empty-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  border-radius: 24px;
  color: #ff8c69;
  background: rgba(255, 107, 53, .1);
  border: 1px solid rgba(255, 107, 53, .22);
  box-shadow:
    0 0 40px rgba(255, 107, 53, .15),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.history-empty-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  color: #fff;
}

.history-empty-desc {
  position: relative;
  z-index: 1;
  margin: 0 auto 32px;
  max-width: 360px;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
  line-height: 1.7;
}

.history-empty-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 32px;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4d4f 100%);
  box-shadow: 0 12px 32px rgba(255, 107, 53, .28);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.history-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, .36);
  opacity: .95;
}

@media (max-width: 768px) {
  .history-stat-bar {
    grid-template-columns: 1fr;
  }

  .tablet-device {
    width: min(96vw, 100%);
    padding: 8px;
    border-radius: 30px;
  }

  .tablet-device::before {
    inset: 3px;
    border-radius: 24px;
  }

  .tablet-bezel {
    border-radius: 22px;
    padding: 2px;
  }

  .tablet-screen {
    max-height: min(52vh, 480px);
    border-radius: 20px;
  }

  .tablet-camera {
    top: 11px;
    width: 8px;
    height: 8px;
  }

  .tablet-button--power {
    right: 64px;
    width: 40px;
    height: 3px;
  }

  .tablet-home-indicator {
    width: 100px;
    height: 3px;
    bottom: 8px;
  }

  .tablet-stage {
    padding: 8px 0 12px;
  }

  .history-list-wrap {
    padding: 8px 0 20px;
  }

  .history-list-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
  }

  .history-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
    padding-left: 94px;
  }

  .history-list-thumb {
    width: 80px;
    height: 80px;
  }

  .history-page-toolbar {
    padding: 12px 0 0;
  }

  .history-slider-nav {
    flex-wrap: wrap;
  }

  .history-nav-btn {
    min-width: 0;
    flex: 1;
  }

  .history-timeline-section {
    margin: 0 16px;
  }

  .history-timeline-item {
    grid-template-columns: 48px 44px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .history-timeline-thumb {
    width: 44px;
    height: 44px;
  }

  .history-empty {
    padding: 56px 24px 48px;
  }
}

/* API 文档 */
.api-docs { margin-top: 8px; }

.api-section { margin-bottom: 4px; }

.api-endpoint {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.api-endpoint:last-child { border-bottom: 0; }

.api-endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.api-path {
  color: #36cfc9;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.api-summary { font-size: 13px; }

.api-block { padding-left: 4px; }

.api-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.8;
}

.api-list code {
  color: #36cfc9;
  background: rgba(54,207,201,.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.api-code-wrap {
  position: relative;
}

.api-copy-btn {
  position: absolute !important;
  top: 8px;
  right: 8px;
  color: rgba(255,255,255,.55) !important;
}

.api-code {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.api-table td,
.api-table th {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  color: rgba(255,255,255,.75);
  vertical-align: top;
}

.api-table td:first-child,
.api-table th:first-child {
  width: 140px;
  color: rgba(255,255,255,.5);
}

.api-table code {
  color: #36cfc9;
  font-size: 12px;
}

.api-table th {
  color: rgba(255,255,255,.45);
  font-weight: normal;
}

/* 收藏夹弹窗 */
.mars-fav-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mars-fav-modal-head .mars-pay-modal-desc {
  margin: 0;
  text-align: left;
  flex: 1;
}

.mars-fav-create-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 140, 105, .28);
  border-radius: 10px;
  background: rgba(255, 107, 53, .08);
  color: #ff8c69;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.mars-fav-create-btn:hover {
  background: rgba(255, 107, 53, .14);
  border-color: rgba(255, 140, 105, .45);
  color: #ffb08f;
}

.mars-fav-create-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.mars-fav-create-row .semi-input-wrapper {
  flex: 1;
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 12px !important;
}

.mars-fav-create-row .semi-input {
  color: #fff !important;
}

.mars-fav-create-row .semi-input::placeholder {
  color: rgba(255, 255, 255, .35) !important;
}

.mars-fav-folder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.mars-fav-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.mars-fav-folder-item:hover,
.mars-fav-folder-item.is-active {
  border-color: rgba(255, 107, 53, .35);
  background: rgba(255, 107, 53, .1);
}

.mars-fav-folder-name {
  font-size: 14px;
}

.mars-fav-folder-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.mars-fav-empty {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
}

.mars-fav-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.mars-fav-modal .semi-modal-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  padding: 16px 24px 20px !important;
}

.mars-fav-modal .semi-modal-body {
  padding-bottom: 8px !important;
}

.mars-fav-modal .semi-modal-close {
  color: rgba(255, 255, 255, .45) !important;
}

.mars-fav-modal .semi-modal-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .06) !important;
}

.mars-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s, opacity .2s;
}

.mars-modal-btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
}

.mars-modal-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}

.mars-modal-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4d4f 100%);
  box-shadow: 0 10px 24px rgba(255, 107, 53, .24);
}

.mars-modal-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 107, 53, .32);
}

.mars-modal-btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mars-modal-btn--compact {
  min-width: 72px;
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* 收藏夹页面 */
.favorites-subpage.subpage-wrap--wide,
.favorites-subpage.subpage-wrap {
  max-width: min(1920px, 99.5vw);
  padding-left: 8px;
  padding-right: 8px;
}

.favorites-subpage {
  max-width: min(1920px, 99.5vw);
}

.favorites-subpage__card,
.favorites-subpage__card.glass-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
}

.favorites-page-panel {
  min-height: 60vh;
  width: 100%;
}

.favorites-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.favorites-sidebar {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  padding: 16px;
}

.favorites-sidebar-head,
.favorites-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.favorites-sidebar-head h2,
.favorites-main-head h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.favorites-main-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
}

.favorites-create-btn {
  color: #ff8c69 !important;
}

.favorites-create-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.favorites-folder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.favorites-folder-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}

.favorites-folder-item.is-active {
  border-color: rgba(255, 107, 53, .35);
  background: rgba(255, 107, 53, .1);
}

.favorites-folder-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  text-align: left;
}

.favorites-folder-name {
  font-size: 14px;
}

.favorites-folder-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  text-align: center;
}

.favorites-folder-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.favorites-folder-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, .1);
}

.favorites-main {
  min-width: 0;
  width: 100%;
}

.favorites-link-history {
  color: #ff8c69;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.favorites-link-history:hover {
  color: #ffb08f;
}

.favorites-empty {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .favorites-layout {
    grid-template-columns: 1fr;
  }

  .history-slider-fav {
    position: static;
    transform: none;
    margin-top: 8px;
  }

  .history-slider-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
