/* ===== 全局 ===== */
:root {
  --purple: #6c5ce7;
  --purple-dark: #4b3f9e;
  --purple-deep: #322a6e;
  --purple-light: #f4f2ff;
  --ink: #2d2a3d;
  --gray: #6b6880;
  --gray-light: #9a97ad;
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --line: #e8e6f2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(76, 63, 158, 0.08);
  --shadow-lg: 0 16px 48px rgba(76, 63, 158, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--purple-deep); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), #a29bfe);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--gray); }
.nav-links a:hover { color: var(--purple); }
.nav-links .active { color: var(--purple-dark); font-weight: 600; }
.nav-cta {
  background: var(--purple); color: #fff; padding: 9px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.nav-cta:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 14px 40px; border-radius: 999px;
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 24px rgba(108,92,231,.35); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--purple-dark); border: 2px solid var(--purple); }
.btn-ghost:hover { background: var(--purple-light); }
.btn-white { background: #fff; color: var(--purple-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-lg { padding: 17px 52px; font-size: 17px; }

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 90px 24px 70px;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(108,92,231,.14), transparent 60%),
    radial-gradient(700px 380px at 10% 10%, rgba(162,155,254,.12), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #fff 100%);
}
.hero .kicker {
  display: inline-block; background: var(--purple-light); color: var(--purple-dark);
  font-size: 13px; font-weight: 600; padding: 6px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: 46px; line-height: 1.35; font-weight: 800; color: var(--purple-deep); max-width: 820px; margin: 0 auto 22px; }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero .sub { font-size: 18px; color: var(--gray); max-width: 640px; margin: 0 auto 38px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--purple-dark); }
.stat .label { font-size: 13px; color: var(--gray-light); margin-top: 2px; }

/* ===== 通用区块 ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--purple-deep); margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--gray); }

/* ===== 16类型矩阵 ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: all .25s; display: block;
}
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.type-card .bar { width: 46px; height: 5px; border-radius: 3px; margin-bottom: 16px; }
.type-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.type-card .code { font-size: 12px; letter-spacing: 2px; color: var(--gray-light); font-weight: 600; }
.type-card p { font-size: 13.5px; color: var(--gray); margin-top: 10px; line-height: 1.65; }
.type-card .link-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--purple); }

/* ===== 三步流程 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 38px 30px;
  box-shadow: var(--shadow); text-align: left; position: relative;
}
.step .icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.step .tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--purple); }
.step h3 { font-size: 20px; margin: 6px 0 10px; color: var(--purple-deep); }
.step p { font-size: 14.5px; color: var(--gray); }

/* ===== 双栏特性 ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { font-size: 30px; font-weight: 800; color: var(--purple-deep); margin-bottom: 18px; }
.split p { color: var(--gray); margin-bottom: 16px; font-size: 15.5px; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15.5px; color: var(--ink); }
.check-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-light); color: var(--purple);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; margin-top: 3px;
}
.illus {
  background: linear-gradient(135deg, var(--purple) 0%, #a29bfe 100%);
  border-radius: 24px; color: #fff; padding: 40px 34px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.illus h3 { font-size: 24px; }
.illus p { font-size: 14.5px; color: rgba(255,255,255,.85); margin: 0; }
.illus .q-mark { font-size: 60px; font-weight: 900; opacity: .9; line-height: 1; }

/* ===== CTA 横幅 ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--purple-deep), var(--purple));
  border-radius: 24px; padding: 60px 48px; text-align: center; color: #fff;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 30px; font-size: 16px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--purple-deep); color: rgba(255,255,255,.7); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 13px; text-align: center; }

/* ===== 测试页 ===== */
.test-shell { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.test-intro { text-align: center; margin-bottom: 48px; }
.test-intro h1 { font-size: 34px; color: var(--purple-deep); margin-bottom: 12px; }
.test-intro p { color: var(--gray); max-width: 560px; margin: 0 auto; }
.flow-steps { display: flex; justify-content: center; gap: 0; margin: 30px 0 10px; }
.flow-step { display: flex; align-items: center; gap: 8px; color: var(--gray-light); font-size: 14px; font-weight: 600; }
.flow-step .dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.flow-step.active { color: var(--purple); }
.flow-step.active .dot { border-color: var(--purple); background: var(--purple); color: #fff; }
.flow-step.done { color: var(--purple); }
.flow-step.done .dot { border-color: var(--purple); color: var(--purple); }
.flow-line { width: 44px; height: 2px; background: var(--line); margin: 0 12px; }
.flow-line.done { background: var(--purple); }

/* 进度条 */
.progress-wrap { background: var(--bg-soft); border-radius: 999px; height: 10px; margin: 26px 0 40px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--purple), #a29bfe); border-radius: 999px; transition: width .35s ease; width: 0; }
.progress-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-light); margin-top: 8px; }

/* 题目卡 */
.question-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 44px; box-shadow: var(--shadow); animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-count { font-size: 13px; font-weight: 700; color: var(--purple); letter-spacing: 1px; }
.question-card h2 { font-size: 23px; color: var(--purple-deep); margin: 10px 0 32px; line-height: 1.6; }
.answers { display: grid; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; border: 2px solid var(--line);
  border-radius: 12px; padding: 15px 20px; cursor: pointer; transition: all .18s; background: #fff;
  font-size: 15.5px; color: var(--ink);
}
.answer:hover { border-color: var(--purple); background: var(--purple-light); }
.answer .abbr {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--gray-light); border: 2px solid var(--line);
}
.answer.selected { border-color: var(--purple); background: var(--purple-light); }
.answer.selected .abbr { background: var(--purple); border-color: var(--purple); color: #fff; }
.scale-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gray-light); margin-bottom: 10px; }

/* 测试页 CTA 卡 */
.intro-card {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  border-radius: 20px; color: #fff; padding: 46px 40px; text-align: center; margin-bottom: 40px;
}
.intro-card h2 { font-size: 26px; margin-bottom: 10px; }
.intro-card p { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 24px; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.tip { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 20px; text-align: center; }
.tip .t-emoji { font-size: 26px; }
.tip h4 { font-size: 15px; margin: 8px 0 6px; color: var(--purple-deep); }
.tip p { font-size: 13px; color: var(--gray); }

/* ===== 结果页 ===== */
.result-hero { text-align: center; padding: 70px 24px 30px; }
.result-hero .badge {
  display: inline-block; font-size: 14px; font-weight: 700; padding: 7px 22px;
  border-radius: 999px; margin-bottom: 22px; color: #fff;
}
.result-hero h1 { font-size: 42px; color: var(--purple-deep); margin-bottom: 6px; }
.result-hero .code-big { font-size: 18px; letter-spacing: 8px; color: var(--gray); font-weight: 800; margin-bottom: 18px; }
.result-hero .desc { max-width: 620px; margin: 0 auto; color: var(--gray); font-size: 16px; }

/* 四维度图 */
.dim-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px; box-shadow: var(--shadow); margin: 40px auto; max-width: 780px;
}
.dim-card h3 { font-size: 18px; color: var(--purple-deep); margin-bottom: 24px; }
.dim { margin-bottom: 22px; }
.dim:last-child { margin-bottom: 0; }
.dim .dim-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.dim .dim-head .strong { font-weight: 800; color: var(--ink); }
.dim .dim-head .weak { color: var(--gray-light); }
.dim .track { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.dim .fill { height: 100%; border-radius: 999px; transition: width 1s ease; }

/* 结果内容 */
.result-body { max-width: 780px; margin: 0 auto; padding: 10px 24px 90px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 42px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.article-card h2 { font-size: 22px; color: var(--purple-deep); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.article-card h2 .ic { font-size: 24px; }
.article-card p { color: var(--ink); font-size: 15.5px; margin-bottom: 12px; }
.article-card blockquote {
  border-left: 4px solid var(--purple); background: var(--purple-light);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 18px 0; font-size: 15px; color: var(--purple-dark);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .col { background: var(--bg-soft); border-radius: 12px; padding: 22px 24px; }
.two-col h4 { font-size: 15px; margin-bottom: 12px; }
.two-col .pos { color: #0e9f6e; }
.two-col .neg { color: #e02424; }
.two-col li { font-size: 14px; margin-bottom: 8px; padding-left: 20px; position: relative; color: var(--ink); }
.two-col .pos li::before { content: "✓"; position: absolute; left: 0; color: #0e9f6e; font-weight: 800; }
.two-col .neg li::before { content: "×"; position: absolute; left: 0; color: #e02424; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--purple-light); color: var(--purple-dark); font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }
.type-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.type-nav .btn { flex: 1; text-align: center; }

/* ===== 类型详情页 ===== */
.type-hero { text-align: center; padding: 76px 24px 56px; background: var(--bg-soft); }
.type-hero .badge { display: inline-block; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 20px; border-radius: 999px; margin-bottom: 20px; }
.type-hero h1 { font-size: 44px; color: var(--purple-deep); }
.type-hero .code-big { font-size: 17px; letter-spacing: 8px; color: var(--gray); font-weight: 800; margin-top: 6px; }
.type-hero .slogan { max-width: 640px; margin: 22px auto 0; font-size: 17px; color: var(--gray); }
.type-body { max-width: 780px; margin: -30px auto 80px; }
.type-body .article-card { background: #fff; }
.dim-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.dim-mini .dim { margin: 0; }
.type-meta { display: flex; justify-content: center; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.type-meta .m-item { text-align: center; }
.type-meta .m-item .v { font-size: 18px; font-weight: 800; color: var(--purple-dark); }
.type-meta .m-item .k { font-size: 12px; color: var(--gray-light); }

/* ===== 关于页 ===== */
.about-hero { text-align: center; padding: 80px 24px 60px; }
.about-hero h1 { font-size: 38px; color: var(--purple-deep); margin-bottom: 16px; }
.about-hero p { max-width: 640px; margin: 0 auto; color: var(--gray); font-size: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 70px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.about-card .a-emoji { font-size: 30px; }
.about-card h3 { font-size: 18px; color: var(--purple-deep); margin: 14px 0 10px; }
.about-card p { font-size: 14px; color: var(--gray); }
.dim-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dim-table th, .dim-table td { padding: 14px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.dim-table th { background: var(--purple-light); color: var(--purple-dark); font-weight: 700; }
.dim-table tr:last-child td { border-bottom: none; }
.dim-table .dim-code { font-weight: 800; color: var(--purple-dark); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .about-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 30px; }
  .nav-links { display: none; }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .question-card { padding: 30px 22px; }
  .article-card { padding: 28px 22px; }
  .hero { padding: 60px 18px 50px; }
  .section { padding: 56px 0; }
}
