:root {
  --bg-deep: #030508;
  --bg: #060b14;
  --card: rgba(8, 18, 32, 0.72);
  --text: #e8f4ff;
  --muted: #6b8cad;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.35);
  --magenta: #c850ff;
  --accent: #00e5ff;
  --ok: #00ff9d;
  --err: #ff3d6e;
  --border: rgba(0, 229, 255, 0.22);
  --glow: 0 0 20px rgba(0, 229, 255, 0.35), 0 0 40px rgba(0, 229, 255, 0.12);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --page-width: min(1120px, calc(100vw - 2.5rem));
  --page-width-narrow: min(800px, calc(100vw - 2rem));
  --page-width-info: min(1400px, calc(100vw - 1.5rem));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(0, 229, 255, 0.25);
}

.bg-glow-b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: rgba(200, 80, 255, 0.2);
  animation-delay: -6s;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

.container {
  position: relative;
  z-index: 2;
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 2.5vw, 2rem) 3rem;
}

.container-info {
  width: var(--page-width-info);
  max-width: 100%;
}

.container-info.info-reading {
  width: min(98vw, 1400px);
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

.glitch-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow:
    0 0 10px var(--cyan-dim),
    0 0 30px rgba(0, 229, 255, 0.25);
}

.subtitle {
  color: var(--muted);
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.site-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.site-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
  background: rgba(0, 14, 28, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.28);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, background 0.15s;
}

.site-quick-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}

.site-quick-btn-primary {
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.site-quick-btn-primary:hover {
  background: rgba(0, 229, 255, 0.18);
}

.site-quick-btn-accent {
  border-color: rgba(56, 189, 248, 0.55);
  color: #8fd4ff;
  background: rgba(56, 189, 248, 0.1);
}

.site-quick-btn-accent:hover {
  color: #b8e6ff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.site-quick-btn.is-current {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  cursor: default;
  pointer-events: none;
}

.site-quick-btn-home {
  border-color: rgba(0, 229, 255, 0.45);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.site-quick-btn-home:hover {
  background: rgba(0, 229, 255, 0.14);
}

.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, transparent 50%, rgba(200, 80, 255, 0.04) 100%);
  pointer-events: none;
}

.panel-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
  z-index: 1;
}

.panel-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.panel-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.panel-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.panel-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.label-icon {
  opacity: 0.6;
  margin-right: 0.35rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.sci-input,
input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(0, 10, 20, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sci-input:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 16px rgba(0, 229, 255, 0.2);
}

.sci-input::placeholder,
input::placeholder {
  color: rgba(107, 140, 173, 0.6);
}

.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 2px;
  background: rgba(0, 8, 18, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 1rem;
}

.file-picker:hover,
.file-picker.dragover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08);
}

.file-picker.uploading {
  pointer-events: none;
  opacity: 0.65;
}

.file-picker-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  opacity: 0.7;
  line-height: 1;
}

.file-picker-text {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.05em;
}

.file-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

button {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-submit {
  position: relative;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--cyan), #4df0ff);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.55);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.3);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.tasks-head .panel-label {
  margin-bottom: 0;
}

.hidden { display: none !important; }

.error {
  color: var(--err);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 8px rgba(255, 61, 110, 0.4);
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.task-card {
  position: relative;
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 2px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  background: rgba(0, 12, 24, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.task-card.pending { border-left-color: var(--muted); }
.task-card.downloading,
.task-card.uploading {
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
  animation: pulse-border 2s ease-in-out infinite;
}

.task-card.done {
  border-left-color: var(--ok);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.08);
}

.task-card.failed {
  border-left-color: var(--err);
  box-shadow: 0 0 12px rgba(255, 61, 110, 0.1);
}

@keyframes pulse-border {
  0%, 100% { box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05); }
  50% { box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.12); }
}

.task-card .status {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.task-card.pending .status { color: var(--muted); }
.task-card.downloading .status,
.task-card.uploading .status { color: var(--cyan); }
.task-card.done .status { color: var(--ok); }
.task-card.failed .status { color: var(--err); }

.task-card code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  word-break: break-all;
  opacity: 0.9;
}

.task-card .ok {
  color: var(--ok);
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

.progress-block { margin: 0.85rem 0 0; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.progress-track {
  height: 6px;
  background: rgba(0, 10, 20, 0.8);
  border-radius: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  border-radius: 1px;
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.task-card .progress-block { margin-top: 0.55rem; }

.task-latest {
  position: relative;
  z-index: 2;
}

.task-history {
  margin-top: 0.75rem;
}

.task-history-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
}

.task-history-summary::-webkit-details-marker {
  display: none;
}

.history-stack-preview {
  position: relative;
  height: 2.5rem;
  margin-bottom: 0.35rem;
}

.history-stack-layer {
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(0, 12, 24, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  top: calc(var(--i) * 6px);
  transform: scale(calc(1 - var(--i) * 0.03));
  opacity: calc(0.45 - var(--i) * 0.1);
  z-index: calc(3 - var(--i));
}

.history-summary-text {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.task-history[open] .history-stack-preview {
  display: none;
}

.task-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.task-card-compact {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  opacity: 0.88;
}

.task-card-compact .meta {
  margin-top: 0.2rem;
}

input:disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  :root {
    --page-width: calc(100vw - 1.5rem);
    --page-width-narrow: calc(100vw - 1.25rem);
    --page-width-info: calc(100vw - 1.25rem);
  }
  .container { padding: 1.5rem 0.75rem 2rem; }
  .glitch-title { letter-spacing: 0.06em; }
}

.admin-link,
.external-link {
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.admin-link:hover,
.external-link:hover {
  text-decoration: underline;
}

.external-link::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.75;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.btn-dl {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--cyan), #4df0ff);
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.btn-dl:hover {
  filter: brightness(1.1);
}

.url-meta {
  word-break: break-all;
  margin-top: 0.25rem;
}

.container-narrow {
  width: var(--page-width-narrow);
  max-width: 100%;
}

.countdown-block {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.countdown-label {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.countdown-line .countdown-value {
  font-size: 1rem;
}

.share-box {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px dashed var(--border);
  background: rgba(0, 12, 24, 0.5);
}

.share-code {
  word-break: break-all;
  color: var(--cyan);
}

.share-result {
  margin-top: 1rem;
}

.admin-upload-panel {
  margin-bottom: 1.25rem;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-delete {
  color: var(--err) !important;
  border-color: rgba(255, 61, 110, 0.35) !important;
}

.btn-copy {
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
}

.btn-cancel-upload {
  margin-top: 0.65rem;
  color: var(--err) !important;
  border-color: rgba(255, 61, 110, 0.35) !important;
}

.progress-block .btn-cancel-upload {
  width: 100%;
  text-align: center;
}

.share-box .btn-copy-all {
  width: 100%;
  margin-top: 0.75rem;
}

.copy-toast {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(4px);
}

.copy-toast.hidden {
  display: none;
}

.copy-toast-panel {
  width: min(100%, 360px);
  padding: 1.5rem 1.25rem 1.1rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.copy-toast-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--ok);
}

.copy-toast-msg {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.copy-toast-panel .btn-ghost {
  width: 100%;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(4px);
}

.wechat-modal.hidden {
  display: none;
}

.wechat-modal-panel {
  width: min(100%, 340px);
  padding: 1.25rem 1.15rem 1rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.wechat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wechat-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.wechat-qr-image {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.wechat-modal-hint {
  margin: 0 0 0.35rem;
}

.wechat-modal-id {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(0, 10, 20, 0.55);
  border: 1px solid var(--border);
}

.admin-tab {
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-tab:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.25);
}

.admin-tab.active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.admin-tabs-logout {
  flex-shrink: 0;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
  animation: admin-panel-in 0.22s ease-out;
}

.admin-tab-panel .panel {
  margin-top: 0;
}

.info-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.info-filter {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.info-filter:hover,
.info-filter.active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.info-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(0, 12, 24, 0.55);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: inherit;
}

.info-item:hover,
.info-item.pinned {
  border-color: rgba(0, 229, 255, 0.45);
}

.info-item.pinned {
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.info-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-item-time {
  margin-left: auto;
}

.info-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.info-item-summary {
  margin: 0.5rem 0 0;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  line-height: 1.55;
}

.info-type-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 170, 0.35);
}

.info-pin-badge {
  font-size: 0.72rem;
  color: var(--ok);
  letter-spacing: 0.06em;
}

.info-back-btn {
  margin-bottom: 0;
}

.info-home-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  transition: border-color 0.15s, background 0.15s;
}

.info-home-link:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.14);
}

.info-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.info-home-link-inline {
  text-decoration: none;
}

.info-detail-title {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.info-detail-summary {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.info-content-body {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: rgba(0, 8, 16, 0.8);
  border: 1px solid var(--border);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
}

.info-detail-view {
  width: 100%;
}

.info-detail-view .info-content-body {
  width: 100%;
  max-width: 100%;
  min-height: 12rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.8;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.info-detail-view .markdown-body img,
.info-detail-view .info-inline-image {
  max-width: 100%;
  height: auto;
}

.content-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.content-preview-modal.hidden {
  display: none;
}

.content-preview-panel {
  width: min(100%, 1100px);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.content-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.content-preview-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.content-preview-body {
  min-height: 40vh;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.8;
  padding: clamp(1rem, 2.5vw, 2rem);
}

.post-content-textarea {
  min-height: 160px;
  resize: vertical;
}

.post-check-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
}

.post-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.post-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.post-editor-hint {
  margin: 0 0 0.5rem;
}

.info-inline-image,
.markdown-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-family: var(--font-display);
  color: var(--cyan);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.06em;
}

.markdown-body h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); }
.markdown-body h2 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); }
.markdown-body h3 { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem); }

.markdown-body p {
  margin: 0.5rem 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}

.markdown-body li {
  margin: 0.25rem 0;
}

.markdown-body a {
  color: var(--magenta);
  text-decoration: underline;
}

.markdown-body code {
  padding: 0.1rem 0.35rem;
  background: rgba(0, 8, 16, 0.8);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
}

.markdown-body pre {
  margin: 0.75rem 0;
  padding: 0.75rem;
  overflow-x: auto;
  background: rgba(0, 8, 16, 0.8);
  border: 1px solid var(--border);
}

.markdown-body pre code {
  padding: 0;
  border: none;
  background: transparent;
}

.markdown-body blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(4px);
}

.site-popup.hidden {
  display: none;
}

.site-popup-panel {
  width: min(100%, 560px);
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.site-popup-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-align: center;
}

.site-popup-body {
  margin-bottom: 1rem;
  max-height: 50vh;
  overflow: auto;
}

.site-popup-close {
  width: 100%;
}

.popup-enabled-check {
  margin: 0.5rem 0 1rem;
}

.popup-admin-preview {
  margin: 0.75rem 0;
}

/* —— 品牌与页脚 —— */
.site-brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--cyan);
}

.site-brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  letter-spacing: 0.08em;
}

.panel-hint,
.field-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.field-hint {
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.submit-tips {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 229, 255, 0.15);
  background: rgba(0, 8, 16, 0.45);
  list-style: none;
}

.submit-tips li {
  position: relative;
  padding-left: 1rem;
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.submit-tips li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.file-selected-meta {
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.container-info + .site-footer,
.container-narrow + .site-footer {
  width: var(--page-width-info);
}

.container-narrow + .site-footer {
  width: var(--page-width-narrow);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
}

.site-footer-nav a,
.site-footer-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
}

.site-footer-nav a:hover,
.site-footer-link:hover {
  color: var(--cyan);
}

.site-footer-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.staff-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.75;
}

.staff-link:hover {
  color: var(--cyan);
  opacity: 1;
}

.inline-link {
  display: inline;
  padding: 0;
  font: inherit;
  color: var(--cyan);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* —— 联系客服弹窗 —— */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(4px);
}

.contact-modal.hidden {
  display: none;
}

.contact-modal-panel {
  width: min(100%, 380px);
  padding: 1.25rem 1.15rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.contact-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.contact-tab {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
}

.contact-tab.active {
  color: var(--cyan);
  border-color: var(--cyan);
}

.contact-panel {
  display: none;
  text-align: center;
}

.contact-panel.active {
  display: block;
}

.contact-qr-image {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.contact-wechat-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-open-link {
  display: inline-block;
  width: 100%;
  margin-top: 0.75rem;
  text-decoration: none;
  text-align: center;
}

.contact-hint-desktop {
  display: none;
}

@media (min-width: 768px) {
  .contact-hint-mobile {
    display: none;
  }
  .contact-hint-desktop {
    display: block;
  }
}

/* —— 状态徽章 —— */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.status-badge.status-pending { color: var(--muted); }
.status-badge.status-downloading,
.status-badge.status-uploading { color: var(--cyan); border-color: rgba(0, 229, 255, 0.35); }
.status-badge.status-done { color: var(--ok); border-color: rgba(0, 255, 157, 0.35); }
.status-badge.status-failed { color: var(--err); border-color: rgba(255, 61, 110, 0.35); }

.task-id-row {
  margin-top: 0.35rem;
}

.info-newbie-badge {
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.info-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-popup-actions .site-popup-close {
  flex: 1;
  min-width: 8rem;
}

.share-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}

.share-box-actions .btn-copy-all {
  flex: 1;
  min-width: 10rem;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  align-items: center;
}

.admin-filter-input {
  flex: 1;
  min-width: 10rem;
  margin-bottom: 0;
}

.admin-filter-select {
  width: auto;
  min-width: 8rem;
  margin-bottom: 0;
}

.info-content-body,
.markdown-body {
  font-family: var(--font-body), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.github-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}

.github-link-row code {
  word-break: break-all;
}

.github-preview,
.github-ready {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(0, 14, 28, 0.55);
}

.github-preview .btn-submit,
.github-ready .btn-submit {
  margin-top: 0.75rem;
  margin-right: 0.5rem;
}

.github-direct-link {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.github-ready-title {
  margin-bottom: 0.5rem;
}

.github-remaining {
  color: #7ee787;
  font-weight: 600;
}

.github-redownload-btn {
  margin-top: 0.85rem;
}

.task-card .btn-github-task-dl {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 12rem;
}

.site-quick-btn-github {
  border-color: rgba(167, 139, 250, 0.55);
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1);
}

.site-quick-btn-github:hover {
  color: #ddd6fe;
  border-color: #a78bfa;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.25);
}

.access-key-created {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.06);
}

.access-key-plain-area {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.65rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 8, 16, 0.55);
  border: 1px solid var(--border);
  resize: vertical;
}

.access-key-created-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.access-key-plain {
  display: block;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.admin-inline-label {
  margin-bottom: 0;
  align-self: center;
}

html.simple-mode .scanlines {
  opacity: 0.06;
}

html.simple-mode .bg-glow {
  opacity: 0.18;
  animation: none;
}

html.simple-mode .bg-grid {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 0.9rem;
  }
  .site-quick-nav {
    gap: 0.5rem;
  }
  .site-quick-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 9.5rem;
    font-size: 0.92rem;
  }
  .scanlines {
    opacity: 0.2;
  }
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .admin-tab {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-top: 3rem;
  }
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .btn-glow,
  .task-card.downloading,
  .task-card.uploading,
  .admin-tab-panel.active {
    animation: none;
  }
}
