/* ============================================================
   apps/mbti.html 样式（P0-4-T17 <style> 块外联）
   - 页面 style="..." 与 on* 仍在本页（P0-4-T18 整改）
   ============================================================ */

  :root {
    --bg-page: #fafbfc;
    --bg-card: #ffffff;
    --bg-soft: #eff6ff;
    --bg-muted: #f3f4f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-hint: #94a3b8;
    --text-on-accent: #ffffff;
    --border: #dbeafe;
    --border-soft: #e5e7eb;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: #60a5fa;
    --success: #10b981;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    /* 浅色 radial-gradient：让顶部导航栏背后有色彩，凸显 Glassmorphism */
    background:
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 0% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 100% 60%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
      var(--bg-page);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a { color: inherit; text-decoration: none; }

  /* 介绍区 */
  .wrap { max-width: 880px; margin: 0 auto; padding: 80px 24px 60px; flex: 1; width: 100%; }
  .eyebrow {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--text-hint);
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  h1 {
    text-align: center;
    font-size: 52px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }
  .subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
  }

  /* 4 维度卡 */
  .dims {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
  }
  .dim {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.2s ease;
  }
  .dim:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(59,130,246,0.10); transform: translateY(-2px); }
  .dim-letters {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 4px;
  }
  .dim-letters .a { color: var(--accent); }
  .dim-letters .b { color: var(--accent-soft); }
  .dim-name {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-weight: 500;
  }
  .dim-count {
    font-size: 11px;
    color: var(--text-hint);
    margin-top: 4px;
  }

  /* 介绍 */
  .intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
  }
  .intro-card h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
  }
  .intro-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.85;
  }
  .intro-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
  }
  .intro-card li {
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
  }
  .intro-card li::before {
    content: '▸';
    color: var(--accent);
    position: absolute;
    left: 0;
  }

  /* CTA */
  .cta-row {
    text-align: center;
    margin-bottom: 40px;
  }
  .cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 44px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59,130,246,0.30);
    font-family: inherit;
  }
  .cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.40); }
  .cta[disabled] { opacity: 0.5; cursor: not-allowed; }
  .cta-sub {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-hint);
    letter-spacing: 0.1em;
  }

  .note {
    text-align: center;
    font-size: 12px;
    color: var(--text-hint);
  }

  @media (max-width: 720px) {
    .wrap { padding: 40px 20px; }
    h1 { font-size: 36px; }
    .subtitle { font-size: 15px; }
    .dims { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dim { padding: 18px 12px; }
    .dim-letters { font-size: 26px; }
    .intro-card { padding: 24px; }
    .cta { width: 100%; justify-content: center; padding: 16px 24px; }
  }
