/* ===================== Hub 专属样式（基于平台令牌） =====================
   风格：Bento Box Grid（不对称网格 2×2/2×1/1×1）
         + Aurora UI 渐变 hero（蓝→紫→粉→金，10s 流动）
   ===================================================== */
#app { max-width: 960px; margin: 0 auto; padding: 28px 18px 40px; }

/* ---------- Aurora hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(110% 130% at 88% 8%, rgba(233, 196, 106, 0.5), transparent 52%),
    radial-gradient(120% 140% at 8% 92%, rgba(56, 189, 248, 0.55), transparent 55%),
    linear-gradient(135deg, #3730A3 0%, #7C3AED 48%, #C026D3 100%);
  background-size: 180% 180%;
  animation: aurora 10s ease-in-out infinite;
  border: none;
}
@keyframes aurora {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.hero-logo { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 14px rgba(0,0,0,.25)); }
.hero h1 {
  font-size: 40px;
  letter-spacing: 3px;
  margin: 12px 0 8px;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(30, 10, 80, 0.35);
}
.hero .sub { color: rgba(255, 255, 255, 0.88); font-size: 15.5px; line-height: 1.7; }

.hero-stats { display: flex; justify-content: center; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats .stat { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.hero-stats .stat b { display: block; font-size: 21px; color: #fff; margin-bottom: 2px; }

/* ---------- 测评卡（JS 渲染进 #app-grid） ---------- */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  animation: screenIn var(--dur-slow) var(--ease) both;
}
.app-card:hover { transform: scale(var(--hover-scale)); box-shadow: var(--shadow-lift); }

.app-mark {
  position: absolute;
  right: -14px;
  bottom: -22px;
  font-size: 110px;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(-8deg);
}
.app-card:hover .app-mark { opacity: 0.16; transform: rotate(-4deg) scale(1.04); transition: opacity var(--dur), transform var(--dur) var(--ease); }

.app-emoji { font-size: 42px; line-height: 1.2; }
.app-name { font-size: 21px; font-weight: 700; white-space: nowrap; }
.app-name.accent-name {
  background: linear-gradient(100deg, var(--app-accent), var(--app-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.app-tagline { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }

.app-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--app-accent, var(--accent));
  background: color-mix(in srgb, var(--app-accent, var(--accent)) 9%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
}
.app-cta {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-accent, var(--accent));
}

/* 1×1 紧凑卡 */
.app-card--compact .app-emoji { font-size: 32px; }
.app-card--compact .app-name { font-size: 17px; white-space: normal; }
.app-card--compact .app-tagline {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.app-card--compact .app-badges { flex-shrink: 0; flex-wrap: nowrap; }
.app-card--compact .badge { padding: 4px 10px; font-size: 11px; white-space: nowrap; }
.app-card--compact .badge:nth-child(n+3) { display: none; }
.app-card--compact .app-mark { font-size: 84px; }
.app-card--compact .app-cta { top: 18px; right: 18px; font-size: 13px; }

/* ---------- 敬请期待占位卡 ---------- */
.coming-soon {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--line, #D2D2D7);
  box-shadow: none;
  color: var(--ink-dim);
}
.coming-soon .cs-emoji { font-size: 36px; filter: grayscale(0.4); }
.coming-soon h3 { font-size: 16px; color: var(--ink); margin: 0; }
.coming-soon p { font-size: 12.5px; line-height: 1.7; }

/* ---------- 进度中心 ---------- */
.progress-box { margin-bottom: 18px; }
.progress-box h3 { font-size: 15px; color: var(--ink-dim); font-weight: 600; margin-bottom: 12px; }
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.progress-row:first-of-type { border-top: none; }
.progress-emoji { font-size: 20px; }
.progress-name { font-weight: 600; white-space: nowrap; }
.progress-text { color: var(--ink-dim); flex: 1; }
.progress-resume { padding: 8px 16px; font-size: 13.5px; text-decoration: none; white-space: nowrap; }

/* ---------- 链接入口 ---------- */
.link-box { display: flex; flex-direction: column; justify-content: center; }
.link-box h3 { font-size: 16px; margin-bottom: 6px; }
.link-box p { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 14px; }
.link-row { display: flex; gap: 10px; }
#link-input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--page-bg);
  color: var(--ink);
  min-width: 0;
}
#link-input:focus { outline: none; border-color: var(--accent); }
.link-row .btn-ghost { white-space: nowrap; }
#link-msg { color: #C2410C; font-size: 13px; margin-top: 10px; }

/* ---------- 隐私说明 ---------- */
.plat-note {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(120deg, rgba(0, 113, 227, 0.06), rgba(66, 161, 255, 0.08));
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* ===================== 响应式 ===================== */
/* 移动端：单列流式，hero 保留 Aurora 渐变 */
@media (max-width: 559px) {
  .bento { grid-template-columns: 1fr; }
  .hero, .app-grid, .coming-soon, .link-box, .plat-note { grid-column: 1 / -1; }
  .app-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .app-name { white-space: normal; }
  .app-mark { font-size: 88px; }
}

/* 桌面 4 列 Bento：行高 200px，尺寸混排（2×2 / 2×1 / 1×1） */
@media (min-width: 560px) {
  #app .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .hero { grid-column: span 2; grid-row: span 2; }
  .app-grid { display: contents; }
  .app-card { grid-column: span 1; }
  .app-card[data-app="fortune"] { grid-column: span 2; }
  .link-box { grid-column: span 2; }
  .plat-note { grid-column: span 1; }
  .coming-soon { grid-column: span 1; }
}
