/* ZIP 本机解压 · 绿 / 白 / 黑 */
.zx-page {
  --zx-green: #059669;
  --zx-green-dark: #047857;
  --zx-green-soft: #ecfdf5;
  --zx-ink: #111827;
  --zx-muted: #6b7280;
  --zx-line: #e5e7eb;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  color: var(--zx-ink);
}

.zx-hero {
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.28);
}

.zx-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zx-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.zx-badge-free {
  background: #fff;
  color: #047857 !important;
  -webkit-text-fill-color: #047857;
  border-color: #fff;
}

.zx-share-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.zx-share-btn:hover,
.zx-share-btn:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.zx-hero h1 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 750;
  color: #fff;
}

.zx-hero-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.zx-hero-desc strong {
  color: #fff;
  font-weight: 700;
}

.zx-offline-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.zx-card {
  background: #fff;
  border: 1px solid var(--zx-line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.zx-tip-plugin {
  border-color: #059669;
  background: var(--zx-green-soft);
}

.zx-tip-plugin strong {
  display: block;
  color: var(--zx-green-dark);
  margin-bottom: 0.35rem;
}

.zx-tip-plugin p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #1f2937;
}

.zx-tip-plugin a {
  color: var(--zx-green-dark);
  font-weight: 600;
}

.zx-tip-plugin code {
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 4px;
  padding: 0 4px;
}

.zx-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--zx-ink);
}

.zx-drop {
  border: 2px dashed #a7f3d0;
  border-radius: 12px;
  background: var(--zx-green-soft);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.zx-drop:hover,
.zx-drop:focus,
.zx-drop.is-drag {
  border-color: var(--zx-green);
  background: #d1fae5;
  outline: none;
}

.zx-drop-title {
  font-weight: 700;
  color: var(--zx-green-dark);
  margin-bottom: 0.25rem;
}

.zx-drop-sub {
  font-size: 0.85rem;
  color: var(--zx-muted);
}

.zx-file-input {
  display: none;
}

.zx-file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--zx-line);
  border-radius: 10px;
  background: #fafafa;
}

.zx-file-meta {
  flex: 1;
  min-width: 0;
}

.zx-file-name {
  font-weight: 650;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zx-file-size {
  font-size: 0.8rem;
  color: var(--zx-muted);
}

.zx-file-clear {
  width: 32px;
  height: 32px;
  border: 1px solid var(--zx-line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.zx-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.zx-preview-head .zx-label {
  margin-bottom: 0;
}

.zx-preview-meta {
  font-size: 0.82rem;
  color: var(--zx-muted);
  white-space: nowrap;
}

.zx-tree {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--zx-line);
  border-radius: 10px;
}

.zx-tree li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.86rem;
}

.zx-tree li:last-child {
  border-bottom: none;
}

.zx-tree .zx-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.zx-tree .zx-size {
  color: var(--zx-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.zx-tree .zx-dl {
  border: none;
  background: transparent;
  color: var(--zx-green-dark);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.zx-tree .zx-dl:hover {
  text-decoration: underline;
}

.zx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.zx-btn {
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
}

.zx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zx-btn-primary {
  background: var(--zx-green);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.zx-btn-primary:hover:not(:disabled),
.zx-btn-primary:focus:not(:disabled) {
  background: var(--zx-green-dark);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.zx-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--zx-muted);
  line-height: 1.5;
}

.zx-progress {
  margin-top: 0.85rem;
}

.zx-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #d1fae5;
  overflow: hidden;
  position: relative;
}

.zx-progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--zx-pct, 0%);
  background: linear-gradient(90deg, #047857, #10b981);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.zx-progress-text {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--zx-muted);
}

.zx-story h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.zx-list {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.55;
}

.zx-story-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--zx-muted);
}

.zx-foot {
  text-align: center;
  font-size: 0.82rem;
  color: var(--zx-muted);
  margin: 0.5rem 0 0;
}

@media (max-width: 576px) {
  .zx-hero h1 {
    font-size: 1.3rem;
  }
  .zx-share-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}
