:root {
  --brand-primary: #0b6b4d;
  --brand-primary-strong: #07553d;
  --brand-primary-soft: #e8f5ef;
  --brand-accent: #1995ff;
  --bg-page: #f2f7f4;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --text-primary: #153326;
  --text-secondary: #4c6359;
  --line-soft: #d9e6df;
  --shadow-soft: 0 10px 30px rgba(11, 107, 77, 0.08);
  --shadow-strong: 0 16px 40px rgba(11, 107, 77, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 8% 8%, #e0f2ea 0, transparent 46%),
              radial-gradient(circle at 92% 12%, #dff1ff 0, transparent 42%),
              linear-gradient(180deg, #f8fcfa 0%, var(--bg-page) 48%, #edf4f1 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 20px auto 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--brand-primary);
  background: rgba(11, 107, 77, 0.08);
  border: 1px solid rgba(11, 107, 77, 0.16);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-link:hover {
  transform: translateY(-1px);
  background: rgba(11, 107, 77, 0.14);
}

.top-link svg {
  width: 16px;
  height: 16px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 20px;
}

.card {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}

.hero-card {
  padding: 30px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-wrap {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #e7f3ed);
  border: 1px solid #d9e8e0;
  box-shadow: 0 10px 24px rgba(11, 107, 77, 0.12);
  display: grid;
  place-items: center;
}

.logo-wrap img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand-meta {
  display: grid;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--brand-primary-strong);
  background: var(--brand-primary-soft);
  border: 1px solid #c9e2d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-name {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.app-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(14px, 2.4vw, 18px);
}

.meta-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f8fcfa;
  border: 1px solid #deebe4;
}

.meta-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.meta-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary-strong);
}

.release-summary {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.download-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.download-action {
  min-height: 78px;
  border-radius: var(--radius-lg);
  border: 1px solid #cee2d8;
  background: linear-gradient(135deg, #f8fcfa 0%, #edf6f2 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.download-action:hover {
  transform: translateY(-1px);
  border-color: #9bc9b6;
  box-shadow: var(--shadow-strong);
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  color: #ffffff;
  flex-shrink: 0;
}

.action-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.action-content {
  display: grid;
  gap: 3px;
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.action-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.panel-card {
  padding: 26px 28px;
}

.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.log-list-wrap {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.log-card {
  border-radius: var(--radius-lg);
  border: 1px solid #dce8e2;
  background: #fcfefd;
  padding: 16px;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.log-version {
  margin: 0;
  font-size: 17px;
  color: var(--brand-primary-strong);
}

.log-date {
  font-size: 13px;
  color: #6a8378;
}

.log-group {
  margin-top: 10px;
}

.log-group-title {
  margin: 0;
  font-size: 14px;
  color: #3b594d;
}

.log-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.empty-state {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer {
  width: min(1160px, calc(100vw - 32px));
  margin: 6px auto 26px;
  padding: 18px 12px;
  border-top: 1px solid #dce8e2;
  color: #4e6258;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.footer-row {
  margin: 0;
  text-align: center;
}

.footer-link {
  color: var(--brand-primary-strong);
  font-weight: 600;
}

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

@media (max-width: 900px) {
  .hero-card,
  .panel-card {
    padding: 22px;
    border-radius: 22px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100vw - 24px);
    margin-top: 14px;
  }

  .topbar {
    padding: 6px 0;
    gap: 8px;
  }

  .top-link {
    padding: 9px 12px;
    font-size: 13px;
  }

  .brand-row {
    gap: 14px;
  }

  .logo-wrap {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .action-title {
    font-size: 15px;
  }

  .footer {
    width: calc(100vw - 24px);
    margin-bottom: 22px;
    padding: 14px 6px;
    font-size: 12px;
  }
}
