/* =========================================================
   Rainlet 应用中心样式
   设计: 清爽、留白、柔和渐变 + 玻璃拟态卡片
   ========================================================= */

:root {
  --bg: #f6f9ff;
  --ink: #1e2a4a;
  --muted: #6b7a9c;
  --brand: #4a6cff;
  --brand-2: #7c5cff;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 40px -18px rgba(52, 74, 150, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- 背景装饰 ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-1 {
  top: -140px;
  left: -100px;
  background: #c9d4ff;
}

.blob-2 {
  top: 20%;
  right: -160px;
  background: #e6d6ff;
}

.blob-3 {
  bottom: -180px;
  left: 30%;
  background: #cff0ff;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -6px rgba(74, 108, 255, 0.5);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-count {
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--brand);
}

/* ---------- 主内容 ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(74, 108, 255, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- 应用卡片网格 ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 60%,
    rgba(255, 255, 255, 0.55)
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -18px rgba(52, 74, 150, 0.5);
}

.app-card:hover::after {
  opacity: 1;
}

.app-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: block;
  object-fit: cover;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-desc {
  font-size: 14px;
  color: var(--muted);
}

.app-domain {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  word-break: break-all;
}

/* ---------- 预告卡片 ---------- */
.app-card.soon {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed rgba(138, 149, 181, 0.7);
  box-shadow: none;
  cursor: default;
}

.app-card.soon:hover {
  transform: none;
  box-shadow: none;
}

.app-card.soon:hover::after {
  opacity: 0;
}

.app-card.soon .app-name {
  color: var(--muted);
}

.app-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(138, 149, 181, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 13px;
}

.icp-link {
  color: var(--muted);
  text-decoration: none;
}

.icp-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- 加载态 ---------- */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}