/* 应用中心 — 域名根目录的入口页。
 *
 * 约束与移动端前端一致：服务器上没有 CDN，也没有 Node 构建链，所有资源
 * 必须是这两个静态文件。因此只用系统字体和 CSS 变量，不引入任何第三方库。
 *
 * 配色沿用血压前端的品牌色，让同一域名下的两个页面看起来是一家人。
 */

:root {
  --bg: #eef2f8;
  --card: #ffffff;
  --ink: #0e1b2e;
  --ink-2: #3e5170;
  --muted: #8494ab;
  --line: #e4eaf3;

  --brand-900: #0a2647;
  --brand-700: #14467f;
  --brand-500: #1f6feb;
  --brand-300: #5fa8ff;
  --teal: #0fa3a3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 42, 80, .04), 0 8px 24px rgba(16, 42, 80, .07);
  --shadow-lift: 0 2px 6px rgba(16, 42, 80, .06), 0 16px 40px rgba(16, 42, 80, .12);

  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

/* ---------------------------------- 顶部 --------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 48%, #0e8fa6 100%);
  color: #fff;
  padding: calc(var(--safe-top) + 44px) 24px 56px;
}

.hero__inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero__mark {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.hero__title {
  margin: 14px 0 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .5px;
}

.hero__sub {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

/* --------------------------------- 内容区 -------------------------------- */

.wrap {
  max-width: 960px;
  margin: -32px auto 0;
  padding: 0 24px 48px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: #d5e2f5;
}

.card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--teal));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.card__name {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.card__desc {
  display: block;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13px;
  /* 描述是后台自由填写的，长度不可控，截断比换行更整齐。 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__go {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-500);
  font-size: 13px;
  font-weight: 600;
}

.hint {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.hint[hidden] { display: none; }

.foot {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  .hero { padding-bottom: 48px; }
  .hero__title { font-size: 25px; }
  .wrap { padding: 0 16px 40px; }
  .grid { grid-template-columns: 1fr; }
}
