* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-deep: #16a085;
  --red: #e74c3c;
  --text: #2c3e50;
  --text-soft: #34495e;
  --text-muted: #7f8c8d;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- 顶部导航 ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.brand-icon::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green-deep);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: #eef2f4;
  border-radius: 8px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-switch button.active {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---- Hero 区域 ---- */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -4px 6px rgba(0, 0, 0, 0.15),
    inset 0 4px 6px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(46, 204, 113, 0.3);
}

.hero-icon::after {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.version-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---- 下载按钮区 ---- */
.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-decoration: none;
  padding: 16px 48px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    filter 0.15s ease;
  animation: glow 3s ease-in-out infinite;
}

.btn-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(46, 204, 113, 0.5);
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-download svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
  }
  50% {
    box-shadow: 0 6px 28px rgba(46, 204, 113, 0.55);
  }
}

.download-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-meta .sep {
  color: #d5dbdf;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef2f4;
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}


/* ---- 功能与下载 ---- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--green);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-soft, #e4f3ea);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download-app {
  font-size: 20px;
  font-weight: 700;
}

.download-version {
  color: var(--green-deep);
  font-weight: 600;
  margin-top: 2px;
}

.download-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-download-small {
  padding: 12px 30px;
  font-size: 16px;
  animation: none;
}

.download-sha {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.download-sha:hover {
  color: var(--green-deep);
}

.download-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 14px;
}

/* ---- 更新日志区域 ---- */
.changelog {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 64px;
}

.changelog-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--green);
  border-radius: 3px;
}

.version-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.version-card:hover {
  box-shadow: var(--shadow-lg);
}

.version-card.latest {
  border: 2px solid rgba(46, 204, 113, 0.25);
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #eef2f4;
  flex-wrap: wrap;
  gap: 8px;
}

.version-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.latest-tag {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.version-date {
  font-size: 13px;
  color: var(--text-muted);
}

.version-body {
  padding: 18px 22px 20px;
}

.version-body h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.version-body h3:first-child {
  margin-top: 0;
}

.version-body h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 13px;
  background: var(--green);
  border-radius: 2px;
}

.version-body ul {
  list-style: none;
  padding-left: 2px;
}

.version-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text-soft);
}

.version-body li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--green);
  font-weight: bold;
}

.lang-en {
  display: none;
}

/* ---- 底部 ---- */
.footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---- 响应式 ---- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 20px 16px 40px;
  }
  .download-card {
    padding: 20px;
  }
  .download-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero {
    padding: 40px 16px 32px;
  }
  .btn-download {
    padding: 14px 36px;
    font-size: 16px;
  }
  .changelog {
    padding: 12px 14px 48px;
  }
  .version-header {
    padding: 14px 16px;
  }
  .version-body {
    padding: 14px 16px 16px;
  }
}

.contact-email {
  margin-top: 4px;
}

.is-hidden {
  display: none !important;
}
