:root {
  --green: #16b66a;
  --green-dark: #079152;
  --blue: #2f6eea;
  --yellow: #fff7df;
  --text: #18212f;
  --muted: #6f7b8b;
  --line: #e7edf3;
  --bg: #f6f8fb;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(22, 182, 106, 0.12), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 42%, #eef4fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.safe-badge {
  padding: 7px 10px;
  border: 1px solid rgba(22, 182, 106, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  background: #eefaf4;
  font-size: 12px;
  font-weight: 800;
}

.update-card,
.author-card,
.apps-section,
.bottom-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(26, 52, 74, 0.08);
}

.update-card {
  padding: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #edfff5 100%);
  border-color: #ccefdc;
}

.app-head {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #5dd37b, #12a767);
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 20px rgba(7, 145, 82, 0.18);
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-head h2 {
  margin-bottom: 7px;
  font-size: 25px;
}

.version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #dff7e9;
  font-size: 14px;
  font-weight: 900;
}

.notice {
  margin: 16px 0 10px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.changelog {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #243142;
  line-height: 1.75;
  font-size: 15px;
}

.primary-btn,
.blue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #19c878, #079152);
  box-shadow: 0 14px 24px rgba(7, 145, 82, 0.22);
}

.old-link {
  display: block;
  margin-top: 14px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 800;
  text-decoration: none;
}

.author-card {
  position: relative;
  margin-top: 14px;
  padding: 16px 14px 13px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffef9 0%, #fffdf6 62%, #fff8e5 100%);
  border: 1px solid #f2dda0;
  box-shadow: 0 5px 16px rgba(112, 87, 26, 0.07);
}

.author-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 11px;
  align-items: center;
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff0bd;
  font-size: 26px;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card h2 {
  padding-right: 12px;
  color: #24272d;
  font-size: 16px;
  line-height: 1.35;
}

.author-card p {
  margin-top: 4px;
  color: #363b43;
  line-height: 1.55;
  font-size: 13px;
}

.author-sparkle {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: #fff9e7;
  stroke: #f2ca66;
  stroke-width: 1.35;
  opacity: 0.9;
}

.author-sparkle::after {
  content: none;
}

.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 59px;
  padding: 3px 1px 0;
  color: #30353c;
  background: transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.chip-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: #17a866;
  background: #e7f8ec;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip:nth-child(2) .chip-icon {
  color: #2d75df;
  background: #e8f1ff;
}

.chip:nth-child(3) .chip-icon {
  color: #f18b1b;
  background: #fff1dc;
}

.chip:nth-child(4) .chip-icon {
  color: #916de0;
  background: #f1ebff;
}

.apps-section {
  margin-top: 14px;
  padding: 16px 12px 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title h2 {
  font-size: 20px;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.app-list {
  display: grid;
  gap: 9px;
}

.app-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-row .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 20px;
}

.app-info h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.app-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tag {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #1d8f55;
  background: #edf9f2;
  font-size: 11px;
  font-weight: 800;
}

.mini-btn {
  min-width: 58px;
  padding: 8px 10px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.bottom-cta {
  margin-top: 14px;
  padding: 24px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff, #eaf3ff);
}

.heart {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: -8px auto 10px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
}

.bottom-cta h2 {
  font-size: 20px;
}

.bottom-cta p {
  margin: 8px 0 14px;
  color: #536073;
  line-height: 1.55;
}

.blue-btn {
  color: #fff;
  background: linear-gradient(135deg, #4387ff, #1f64dd);
}

footer {
  padding: 18px 0 4px;
  color: #7c8999;
  text-align: center;
  font-size: 12px;
}

.loading,
.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}
