/* Portal 引导页：与 MindSight SPA 同一字阶、行高、无衬线栈（Inter + 思源黑 Noto Sans SC 体系） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-sans: Inter, "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* XS 12/18 | S 14/22 | M 16/24 | L 18/26 | XL 22/30；最小字号 12px */
  --text-xs-size: 12px;
  --text-xs-lh: 18px;
  --text-s-size: 14px;
  --text-s-lh: 22px;
  --text-m-size: 16px;
  --text-m-lh: 24px;
  --text-l-size: 18px;
  --text-l-lh: 26px;
  --text-xl-size: 22px;
  --text-xl-lh: 30px;
  --text: #17343D;
  --text-secondary: #4F6670;
  --text-muted: #7A9099;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--text-s-size);
  line-height: var(--text-s-lh);
  font-weight: var(--font-weight-regular);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 品牌区 ── */
.brand {
  text-align: center;
  margin-bottom: 48px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #E7F3F7;
  font-size: var(--text-l-size);
  line-height: var(--text-l-lh);
  font-weight: 600;
  color: #1A5568;
  margin-bottom: 20px;
}

.brand-title {
  font-size: var(--text-xl-size);
  line-height: var(--text-xl-lh);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #1A5568 0%, #1E9E86 60%, #1EB8A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: var(--text-s-size);
  line-height: var(--text-s-lh);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── 卡片组 ── */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 240px;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(28,43,58,0.06);
  animation: cardIn 0.45s ease both;
}

.card:nth-child(1) { animation-delay: 0.08s; }
.card:nth-child(2) { animation-delay: 0.16s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  border-color: #1A5568;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,85,104,0.10);
}

.card:active { transform: translateY(0); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E7F3F7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #1A5568;
}
/* 与站内 Lucide 一致：2px 线宽、无填充 */
.pl-ic {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.pl-ic--arrow {
  display: inline-block;
  vertical-align: -0.2em;
}

.card-title {
  font-size: var(--text-l-size);
  line-height: var(--text-l-lh);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.card-desc {
  font-size: var(--text-s-size);
  line-height: var(--text-s-lh);
  font-weight: 400;
  color: var(--text-muted);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  font-weight: 500;
  color: #DDE3EC;
  transition: color 0.2s, transform 0.2s;
  align-self: flex-end;
}

.card:hover .card-arrow {
  color: #1A5568;
  transform: translate(2px, 0);
}

/* 自助端：与全站茶青主色 + 薄荷辅助色一致 */
.card--user:hover {
  border-color: #4A9E8F;
  box-shadow: 0 8px 24px rgba(74, 158, 143, 0.14);
}
.card--user:hover .card-arrow {
  color: #4A9E8F;
}
.card-icon--user {
  background: #E4F4F1;
  color: #1A5568;
}

/* ── 底部 ── */
.footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  font-weight: 400;
  color: #C0C8D2;
  letter-spacing: 0.04em;
}
