/* ===================================================================
   NiuBi 自建图床 · 样式
   设计语言对齐 up.sc.cn：浅色底 + 主色 #4671ff + 白卡片 + Inter
   自包含实现（不依赖 Bootstrap / 图标字体 CDN），离线也能正常显示
   =================================================================== */

:root {
  --primary: #4671ff;
  --primary-rgb: 70, 113, 255;
  --primary-hover: #2d57e8;
  --primary-light: rgba(70, 113, 255, .1);
  --surface: #f1f5f9;
  --surface-soft: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border-color: #e2e8f0;
  --ok: #10b981;
  --err: #ef4444;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h5, h6 { margin: 0; }

.container { max-width: 960px; margin: 0 auto; padding: 20px; }
.row { display: flex; flex-wrap: wrap; margin: -6px; }
.row > [class*="col-"] { padding: 6px; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
.spacer { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: .78rem; }
.err-text { color: var(--err); }
.mono { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.135em; flex: none; }

/* ------------------------------------------------------------ 顶部导航 */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.landing-nav.scrolled { border-bottom-color: var(--border-color); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text-main); }
.brand-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), .25); color: #fff; font-size: 16px;
}
.nav-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btn-nav {
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: .82rem;
  transition: all .2s; white-space: nowrap; border: 0; cursor: pointer; background: transparent;
}
.btn-nav-ghost { color: var(--text-muted); }
.btn-nav-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-nav-solid { color: #fff; background: var(--primary); box-shadow: 0 3px 10px rgba(var(--primary-rgb), .25); }
.btn-nav-solid:hover { background: var(--primary-hover); transform: translateY(-1px); color: #fff; }

/* ------------------------------------------------------------ Hero */
.landing-hero { text-align: center; padding: 56px 20px 32px; position: relative; overflow: hidden; }
.landing-hero h1 {
  font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 20px; line-height: 1.1;
  animation: fadeUp .7s .05s both cubic-bezier(.16, 1, .3, 1); position: relative; z-index: 1;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #2563eb, #06b6d4, var(--primary));
  background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-shift 6s ease infinite;
}
.hero-decor { position: absolute; pointer-events: none; z-index: 0; }
.hero-decor-1 { width: 72px; height: 72px; top: 20%; left: 4%; border-radius: 50%; background: linear-gradient(135deg, rgba(var(--primary-rgb), .1), rgba(59, 130, 246, .06)); animation: float-slow 7s ease-in-out infinite; }
.hero-decor-2 { width: 44px; height: 44px; top: 12%; right: 7%; border-radius: 50%; background: linear-gradient(135deg, rgba(6, 182, 212, .14), rgba(var(--primary-rgb), .05)); animation: float-med 5.5s ease-in-out infinite .8s; }
.hero-decor-3 { width: 32px; height: 32px; bottom: 28%; right: 10%; border-radius: 8px; transform: rotate(45deg); background: linear-gradient(135deg, rgba(245, 158, 11, .1), rgba(239, 68, 68, .06)); animation: float-slow 8s ease-in-out infinite 1.5s; }
.hero-decor-4 { width: 20px; height: 20px; top: 45%; left: 10%; border-radius: 50%; border: 2px solid rgba(var(--primary-rgb), .12); animation: float-fast 4s ease-in-out infinite .3s; }
.hero-decor-5 { width: 52px; height: 52px; bottom: 18%; left: 7%; border-radius: 14px; transform: rotate(-15deg); border: 2px solid rgba(6, 182, 212, .1); animation: float-med 6s ease-in-out infinite 2s; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(var(--primary-rgb), .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%);
}
.hero-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; position: relative; z-index: 1; animation: fadeUp .7s .12s both cubic-bezier(.16, 1, .3, 1); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 10px;
  font-size: .78rem; font-weight: 600; color: var(--text-main);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--border-color);
  backdrop-filter: blur(8px); transition: all .25s;
}
.hero-tag:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 6px 20px rgba(var(--primary-rgb), .15); transform: translateY(-2px); }
.hero-tag .ic { font-size: 15px; color: var(--primary); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; animation: fadeUp .7s .2s both cubic-bezier(.16, 1, .3, 1); }
.btn-hero {
  padding: 13px 28px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1); display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: 0;
}
.btn-hero-primary { background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%); color: #fff; box-shadow: 0 6px 20px -3px rgba(var(--primary-rgb), .4); }
.btn-hero-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px -4px rgba(var(--primary-rgb), .5); color: #fff; }
.btn-hero-outline { background: rgba(255, 255, 255, .85); color: var(--text-main); border: 1.5px solid var(--border-color); }
.btn-hero-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }

.hero-stats { display: flex; justify-content: center; align-items: center; margin-top: 24px; position: relative; z-index: 1; animation: fadeUp .8s .5s both cubic-bezier(.16, 1, .3, 1); }
.hero-stat { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.stat-num { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-label { font-size: .68rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; height: 28px; background: var(--border-color); }

/* ------------------------------------------- 主卡片（登录 / 上传，对齐 mock-upload-card） */
.mock-upload-card {
  max-width: 640px; margin: 36px auto 0; background: #fff;
  border: 1px solid var(--border-color); border-radius: 14px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .1);
  overflow: hidden; position: relative; text-align: left;
  animation: fadeUp .8s .4s both cubic-bezier(.16, 1, .3, 1); z-index: 1;
}
.mock-upload-header { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; background: #fafbfc; }
.mock-upload-header .dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; animation: status-blink 2s infinite; }
.mock-upload-body {
  padding: 36px 24px 28px; text-align: center; border: 2px dashed var(--border-color);
  border-radius: 10px; margin: 16px; background: #fafcff; transition: all .2s; cursor: pointer;
}
.mock-upload-body.hot { border-color: var(--primary); background: var(--primary-light); }
.mock-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
  font-size: 26px; position: relative;
}
.mock-icon::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(var(--primary-rgb), .15); animation: pulse-ring 2.5s infinite; }
.mock-upload-body h6 { font-weight: 700; margin-bottom: 5px; font-size: .9rem; }
.mock-upload-body p { font-size: .78rem; color: var(--text-faint); margin: 0; }
.mock-upload-footer { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid #f1f5f9; background: var(--surface-soft); flex-wrap: wrap; align-items: center; }
.mock-tag { padding: 5px 11px; border-radius: 7px; font-size: .7rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #166534; cursor: pointer; border: 1px solid transparent; user-select: none; }
.mock-tag.off { background: var(--surface); color: var(--text-faint); text-decoration: line-through; opacity: .85; }
.mock-tag:not(.off):hover { filter: brightness(.97); }
.mock-tag-link { background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #4338ca; }

/* ------------------------------------------------------------ 信任条 */
.trust-strip { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; padding: 16px 0 18px; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .82rem; font-weight: 500; transition: color .2s; }
.trust-item:hover { color: var(--text-main); }
.trust-item .ic { color: var(--ok); }

/* ------------------------------------------------------------ 分节 */
.landing-section { padding: 0 0 60px; }
.section-label {
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.section-title { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.section-desc { text-align: center; color: var(--text-muted); margin: 0 auto 36px; font-size: .92rem; max-width: 480px; line-height: 1.6; }

.feature-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 26px 20px;
  transition: all .35s cubic-bezier(.4, 0, .2, 1); height: 100%; position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #3b82f6); opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px -8px rgba(0, 0, 0, .09); border-color: transparent; }
.feature-card:hover::after { opacity: 1; }
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 20px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.feature-card h5 { font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.feature-card p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------ 使用流程 */
.flow-section { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); border-radius: 18px; padding: 44px 24px; margin-bottom: 60px; border: 1px solid #f1f5f9; }
.flow-steps { display: flex; justify-content: center; align-items: stretch; gap: 16px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.flow-step { flex: 1; min-width: 170px; text-align: center; padding: 24px 16px 20px; background: #fff; border-radius: 14px; border: 1px solid var(--border-color); transition: all .25s; position: relative; }
.flow-step:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .06); transform: translateY(-3px); }
.step-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), .3);
}
.step-icon { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.flow-step h6 { font-weight: 700; font-size: .84rem; margin-bottom: 4px; }
.flow-step p { font-size: .73rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.flow-arrow { display: flex; align-items: center; color: #cbd5e1; font-size: 18px; padding-top: 14px; }

/* ------------------------------------------------------------ 权益卡 */
.tier-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 28px 22px 24px;
  text-align: center; height: 100%; transition: all .3s; position: relative; overflow: hidden;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .06); }
.tier-card.featured { border-color: var(--primary); box-shadow: 0 8px 28px rgba(var(--primary-rgb), .1); background: linear-gradient(180deg, rgba(var(--primary-rgb), .02) 0%, #fff 40%); }
.tier-card.featured::before {
  content: '推荐'; position: absolute; top: 0; right: 0; background: var(--primary); color: #fff;
  padding: 4px 12px 4px 14px; border-radius: 0 14px 0 10px; font-size: .66rem; font-weight: 700;
}
.tier-card.mine { border-color: var(--primary); }
.tier-card.mine::after {
  content: '当前身份'; position: absolute; top: 0; left: 0; background: var(--primary-light); color: var(--primary);
  padding: 4px 12px; border-radius: 0 0 10px 0; font-size: .66rem; font-weight: 700;
}
.tier-icon { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tier-card h5 { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.tier-price { font-size: .78rem; color: var(--text-muted); margin-bottom: 16px; }
.tier-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.tier-card ul li { font-size: .8rem; color: var(--text-muted); padding: 7px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--surface-soft); }
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li .ic { color: var(--ok); font-size: 13px; }

/* ------------------------------------------------------------ 技术架构 */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tech-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; transition: all .25s; }
.tech-item:hover { border-color: rgba(var(--primary-rgb), .3); box-shadow: 0 4px 14px rgba(var(--primary-rgb), .05); transform: translateY(-1px); }
.tech-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.tech-content h6 { font-weight: 700; font-size: .82rem; margin-bottom: 2px; }
.tech-content p { font-size: .76rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ------------------------------------------------------------ FAQ */
.faq-item { border-bottom: 1px solid var(--surface); overflow: hidden; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; user-select: none; transition: color .2s; }
.faq-question:hover { color: var(--primary); }
.faq-question h6 { font-weight: 700; font-size: .88rem; color: inherit; margin: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.faq-question h6 .ic { color: var(--primary); font-size: 15px; }
.faq-chevron { font-size: 14px; color: var(--text-faint); transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4, 0, .2, 1); }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { font-size: .8rem; color: var(--text-muted); margin: 0; padding: 0 0 16px 28px; line-height: 1.7; }

/* ------------------------------------------------------------ CTA / 页脚 */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, #0ea5e9 100%);
  border-radius: 18px; padding: 52px 32px; text-align: center; color: #fff; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.cta-section::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; background: rgba(255, 255, 255, .06); border-radius: 50%; }
.cta-section::before { content: ''; position: absolute; left: -40px; top: -40px; width: 160px; height: 160px; background: rgba(255, 255, 255, .04); border-radius: 50%; }
.cta-section h3 { font-weight: 800; font-size: 1.5rem; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-section p { opacity: .9; margin: 0 auto 26px; font-size: .9rem; position: relative; z-index: 1; max-width: 440px; line-height: 1.6; }
.btn-cta {
  background: #fff; color: var(--primary); border: none; padding: 13px 34px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: all .3s; position: relative; z-index: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.btn-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); color: var(--primary); }
.landing-footer { text-align: center; padding: 24px 0 36px; color: var(--text-muted); font-size: .76rem; border-top: 1px solid #f1f5f9; }
.landing-footer a { font-weight: 500; }
.landing-footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ 通用组件：卡片 / 表单 / 按钮 */
.card { border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); background: var(--card-bg); margin-bottom: 24px; }
.card-body { padding: 24px; }
.card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.card h3 { font-size: .82rem; font-weight: 700; color: var(--text-muted); margin: 18px 0 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 16px; font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; border: 1px solid var(--border-color); color: var(--text-muted); }
.btn.ghost:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.btn.danger { background: var(--err); }
.btn.danger:hover { background: #dc2626; }
.btn.tiny { padding: 5px 11px; font-size: .75rem; border-radius: 8px; }

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--border-color); color: var(--text-main);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .88rem; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: #fff; border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 10px; padding: 8px 18px; font-weight: 600; font-size: .84rem; cursor: pointer; transition: all .2s; font-family: inherit; }
.tabs button:hover { color: var(--primary); border-color: var(--primary); }
.tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb), .25); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border-color); }
.badge.ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge.err { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.badge.warn { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge.admin { background: var(--primary-light); color: var(--primary); border-color: rgba(var(--primary-rgb), .25); }
.badge.vip { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.badge.free { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge.guest { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* ------------------------------------------------------------ 上传队列与结果 */
.queue { margin-top: 14px; }
.qitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 8px; background: var(--surface-soft); font-size: .82rem; }
.qitem .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.qitem.done { border-color: #bbf7d0; background: #f0fdf4; }
.qitem.fail { border-color: #fecaca; background: #fef2f2; }
.link-box { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 6px 8px; margin: 6px 0; }
.link-box code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: .76rem; color: var(--primary); font-family: Consolas, ui-monospace, monospace; }

/* ------------------------------------------------------------ 历史列表 */
ul.history { list-style: none; padding: 0; margin: 0; }
ul.history li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--surface); }
ul.history li:last-child { border-bottom: 0; }
/* 缩略图一律放在定宽容器里：图挂了也不会把表格/列表撑坏 */
.thumb-wrap {
  width: 52px; height: 52px; flex: none; border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.thumb-wrap.lg { width: 64px; height: 64px; }
.thumb-wrap a { display: block; width: 100%; height: 100%; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { color: var(--text-faint); font-size: 20px; line-height: 1; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hmeta { flex: 1; min-width: 0; }
.hmeta .fname { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmeta .sub { font-size: .74rem; color: var(--text-muted); }
.empty { text-align: center; color: var(--text-faint); font-size: .84rem; padding: 28px 0; }

/* ------------------------------------------------------------ 后台表格 */
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--surface); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-soft); }
tbody tr:hover td { background: #f8fbff; }
/* 用户表列多、长短差异大（游客行的用量文字很长），只靠 table{width:100%} 会被压扁成
   一堆换行的窄列：让它按内容撑开、交给外层 .table-scroll 横向滚动 —— 与图片表一致 */
#userTable { min-width: 840px; }
#userTable th, #userTable td { white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface-soft); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stat .k { color: var(--text-muted); font-size: .74rem; font-weight: 500; }
pre.def { background: var(--surface-soft); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; overflow: auto; max-height: 320px; font-size: .76rem; }

/* ------------------------------------------------------------ Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: var(--text-main); color: #fff; padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; font-size: .82rem; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--err); }

/* ------------------------------------------------------------ 界面弹窗（替代系统 confirm/prompt） */
body.ui-lock { overflow: hidden; }
.ui-mask {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 23, 42, .45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: 20px;
}
.ui-mask.show { display: flex; animation: uiFade .18s ease both; }
.ui-dialog {
  width: 100%; max-width: 460px; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .35);
  animation: uiPop .22s cubic-bezier(.16, 1, .3, 1) both;
}
.ui-dialog-head { padding: 20px 22px 0; }
.ui-dialog-head h5 { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.ui-dialog-body { padding: 10px 22px 2px; }
.ui-dialog-body .ui-text { margin: 0; font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.ui-dialog-body code { font-family: Consolas, ui-monospace, monospace; font-size: .82rem; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.ui-field { display: block; margin: 12px 0 0; }
.ui-field > span { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.ui-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; flex-wrap: wrap; }
.ui-dialog-foot .btn { min-width: 88px; }
.ui-code {
  background: var(--surface-soft); border: 1px solid var(--border-color); border-radius: 10px;
  padding: 10px 12px; font-family: Consolas, ui-monospace, monospace; font-size: .8rem;
  word-break: break-all; margin: 10px 0 0; color: var(--text-main);
}
@keyframes uiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse-ring { 0% { transform: scale(.95); opacity: .8; } 70% { transform: scale(1.18); opacity: 0; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes status-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-med { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-fast { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 768px) {
  .container { padding: 14px; }
  .landing-hero { padding: 32px 8px 20px; }
  .landing-hero h1 { font-size: 2rem; }
  .hero-decor, .hero-grid-bg { display: none; }
  .hero-tag { padding: 6px 12px; font-size: .72rem; }
  .hero-actions { flex-direction: column; gap: 10px; max-width: 260px; margin: 0 auto; }
  .btn-hero { width: 100%; justify-content: center; }
  .hero-stat { padding: 0 16px; }
  .stat-num { font-size: 1rem; }
  .mock-upload-card { margin-top: 20px; }
  .mock-upload-body { padding: 24px 14px 18px; margin: 10px; }
  .trust-strip { gap: 12px; padding: 12px 0 14px; }
  .trust-item { font-size: .75rem; }
  .landing-section { padding: 0 0 44px; }
  .section-title { font-size: 1.3rem; }
  .section-desc { font-size: .84rem; margin-bottom: 28px; }
  .flow-section { padding: 32px 16px; margin-bottom: 44px; }
  .flow-arrow { display: none; }
  .flow-step { min-width: 100%; }
  .feature-card { padding: 20px 16px; }
  .cta-section { padding: 36px 20px; }
  .cta-section h3 { font-size: 1.2rem; }
  ul.history li { gap: 10px; }
}
@media (max-width: 480px) {
  .landing-hero h1 { font-size: 1.5rem; }
  .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ===== 游客提示条（未登录也能直接上传） ===== */
.guest-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
  font-size: .8rem;
  font-weight: 500;
}
.guest-bar .ic { width: 15px; height: 15px; }
.guest-bar .btn.tiny { padding: 4px 10px; font-size: .75rem; }

.guest-back {
  margin-top: 14px;
  text-align: center;
  font-size: .82rem;
}
.guest-back a { color: #4671ff; text-decoration: none; }
.guest-back a:hover { text-decoration: underline; }
