:root {
  --bg: #f3f7ff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --line: rgba(148, 163, 184, 0.18);
  --text: #0f172a;
  --text-soft: #475569;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --success: #10b981;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(168, 85, 247, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #eff6ff 0%, #f8fbff 38%, #eef2ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

a {
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(37, 99, 235, 0.25);
}

.brand-mark img {
  width: 22px;
  height: 22px;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.08);
  transition: 0.2s ease;
}

.topbar-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  margin-top: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 28px 28px 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-title strong {
  color: var(--primary-strong);
}

.hero-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 58ch;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.info-panel {
  padding: 20px 18px;
}

.info-panel h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

#about {
  margin: 0;
  line-height: 1.8;
  color: var(--text-soft);
}

.main-panel {
  margin-top: 26px;
  padding: 28px;
}

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

.section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.helper-list {
  margin: 0 0 22px;
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.helper-list li + li {
  margin-top: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.input,
.select {
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.96rem;
}

.textarea {
  min-height: 220px;
  resize: vertical;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input[type="file"] {
  padding: 10px 12px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #4f8ef7);
  color: white;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.check-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.check-wrap input {
  accent-color: var(--primary);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #4f8ef7);
  color: white;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.button-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

#status {
  margin-top: 18px;
  min-height: 26px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

#downloadLink {
  display: none;
  margin-top: 16px;
}

.download-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.log-title {
  display: block;
  margin: 18px 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 18px 20px 32px;
  text-align: center;
  color: var(--text-soft);
}

.version-box {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.version-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.version-box ul li + li {
  margin-top: 4px;
}

.version-more {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: min(88vw, 360px);
  margin-bottom: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  text-align: left;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.version-box:hover .version-more,
.version-box:focus-within .version-more {
  opacity: 1;
  transform: translateY(0);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

@media (max-width: 860px) {
  .hero-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 14px 44px;
  }

  .topbar,
  .main-panel,
  .hero-panel {
    border-radius: 20px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .hero-panel,
  .main-panel {
    padding: 18px 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
