:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #687585;
  --line: #dde5ec;
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #176b73;
  --accent-dark: #0d4f56;
  --accent-soft: #e5f3f2;
  --shadow: 0 18px 48px rgba(34, 58, 76, 0.11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 235, 235, 0.8), transparent 32rem),
    linear-gradient(145deg, #f7fafb 0%, #eef4f6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(23, 107, 115, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 107, 115, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 108px) 0 36px;
}

.hero { display: flex; align-items: center; gap: 22px; margin-bottom: 72px; }
.brand-mark { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: white; background: var(--accent); box-shadow: 0 10px 24px rgba(23, 107, 115, 0.25); }
.brand-mark svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 0.69rem; font-weight: 750; letter-spacing: 0.18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.045em; line-height: 1; }
.intro { margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
h2 { margin-bottom: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.app-count { color: var(--muted); font-size: 0.82rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.app-card { position: relative; display: flex; flex-direction: column; min-height: 202px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.app-card::after { content: ""; position: absolute; right: -46px; bottom: -66px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent-soft); opacity: 0.75; }
.app-card:hover, .app-card:focus-within { border-color: rgba(23, 107, 115, 0.45); box-shadow: 0 22px 54px rgba(34, 58, 76, 0.15); transform: translateY(-2px); }
.app-icon { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.app-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.app-name { position: relative; z-index: 1; margin-bottom: 7px; font-size: 1.13rem; font-weight: 700; letter-spacing: -0.02em; }
.app-description { position: relative; z-index: 1; margin-bottom: 22px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.app-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: auto; padding: 9px 13px; border-radius: 10px; color: var(--accent-dark); font-size: 0.87rem; font-weight: 700; text-decoration: none; background: #fff; outline-offset: 3px; }
.app-link:hover { color: #073b41; background: #f5ffff; }
.app-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.page-footer { display: flex; align-items: center; gap: 13px; margin-top: 72px; color: var(--muted); font-size: 0.78rem; }
.page-footer p { margin: 0; }
.footer-line { width: 28px; height: 1px; background: #aebdc5; }

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 880px); padding-top: 42px; }
  .hero { align-items: flex-start; gap: 16px; margin-bottom: 52px; }
  .brand-mark { width: 52px; height: 52px; border-radius: 16px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .app-card { min-height: 188px; padding: 21px; }
  .page-footer { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
}
