* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #352a3f;
  background: #f7efe5;
  overflow-x: hidden;
}

button,
input,
textarea {
  font-family: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    radial-gradient(circle at 15% 10%, rgba(169, 127, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(212, 166, 84, 0.22), transparent 26%),
    linear-gradient(135deg, #f7efe5 0%, #efe4d8 48%, #f7efe5 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 42px 42px;
}

.soft-light {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
}

.light-one {
  left: -160px;
  top: 80px;
  background: #8d6adf;
}

.light-two {
  right: -180px;
  bottom: 100px;
  background: #d7a04f;
}

/* 顶部导航 */

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #4d2f70, #a47c43);
  box-shadow: 0 12px 35px rgba(77, 47, 112, 0.22);
}

.brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(53, 42, 63, 0.56);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: rgba(53, 42, 63, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: #4d2f70;
}

/* 首页首屏 */

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: 36px 0 90px;
}

.hero-left {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #8d6adf;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 620px;
  color: #2f2339;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin-bottom: 26px;
}

.hero h1 .title-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .title-accent {
  display: block;
  color: #8a5f25;
  white-space: nowrap;
}

.hero-desc {
  max-width: 560px;
  color: rgba(53, 42, 63, 0.72);
  font-size: 18px;
  line-height: 2;
  margin-bottom: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
}

.hero-proof span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4d2f70;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(77,47,112,0.10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.letter-btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  padding: 16px 30px;
  color: #fff;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
  box-shadow: 0 18px 42px rgba(77, 47, 112, 0.22);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(77, 47, 112, 0.28);
}

.ghost-btn {
  padding: 15px 28px;
  color: #4d2f70;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(77, 47, 112, 0.16);
  backdrop-filter: blur(14px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-3px);
}

.full-btn {
  width: 100%;
}

.hero-trust-note {
  max-width: 560px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(53,42,63,0.64);
  font-size: 14px;
  line-height: 1.8;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(77,47,112,0.08);
}

.micro-copy {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(53, 42, 63, 0.54);
  font-size: 14px;
  line-height: 1.8;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.palm-card {
  position: relative;
  width: min(430px, 100%);
  min-height: 580px;
  padding: 28px;
  border: 1px solid rgba(77, 47, 112, 0.13);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28)),
    rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 90px rgba(77, 47, 112, 0.17);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.palm-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(159, 119, 64, 0.18);
  border-radius: 26px;
  pointer-events: none;
}

.card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(53, 42, 63, 0.55);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.palm-visual {
  position: relative;
  height: 300px;
  margin: 38px 0 20px;
}

.palm-line {
  position: absolute;
  left: 50%;
  border: 2px solid rgba(77, 47, 112, 0.36);
  border-color: rgba(77, 47, 112, 0.36) transparent transparent transparent;
  border-radius: 50%;
  transform: translateX(-50%) rotate(var(--rotate));
}

.line-a {
  --rotate: -12deg;
  top: 30px;
  width: 260px;
  height: 120px;
}

.line-b {
  --rotate: 18deg;
  top: 90px;
  width: 300px;
  height: 150px;
}

.line-c {
  --rotate: -35deg;
  top: 145px;
  width: 210px;
  height: 110px;
}

.line-d {
  --rotate: 5deg;
  top: 200px;
  width: 250px;
  height: 90px;
}

.palm-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(159, 119, 64, 0.72);
  box-shadow: 0 0 26px rgba(159, 119, 64, 0.45);
}

.dot-a {
  width: 10px;
  height: 10px;
  left: 110px;
  top: 115px;
}

.dot-b {
  width: 7px;
  height: 7px;
  right: 86px;
  top: 205px;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.card-label {
  color: #8d6adf;
  font-size: 13px;
  font-weight: 800;
}

.card-content h2 {
  margin: 10px 0 12px;
  color: #2f2339;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.card-content p:last-child {
  color: rgba(53, 42, 63, 0.67);
  line-height: 1.9;
  font-size: 15px;
}

/* 通用区块 */

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  color: #2f2339;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin-top: 18px;
  color: rgba(53, 42, 63, 0.68);
  font-size: 17px;
  line-height: 1.9;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card,
.science-card,
.trust-card,
.faq-item {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(77, 47, 112, 0.1);
  box-shadow: 0 20px 60px rgba(77, 47, 112, 0.08);
}

.value-card span,
.science-card span,
.trust-card span {
  color: rgba(159, 119, 64, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.value-card h3,
.science-card h3,
.trust-card h3,
.faq-item h3 {
  margin: 16px 0 12px;
  color: #2f2339;
  font-size: 22px;
}

.value-card p,
.science-card p,
.trust-card p,
.faq-item p {
  color: rgba(53, 42, 63, 0.68);
  line-height: 1.85;
}

/* 测评依据 */

.science-section,
.trust-section,
.faq-section {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 90px;
  padding: 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(141,106,223,0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(159,119,64,0.13), transparent 36%),
    rgba(255,255,255,0.50);
  border: 1px solid rgba(77,47,112,0.10);
  box-shadow: 0 26px 80px rgba(77,47,112,0.08);
}

.science-section h2,
.trust-section h2,
.faq-section h2 {
  max-width: 860px;
  color: #2f2339;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.science-section > p:not(.eyebrow),
.trust-lead {
  max-width: 900px;
  color: rgba(53,42,63,0.72);
  line-height: 2;
  font-size: 16.5px;
  margin-bottom: 28px;
}

.science-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.science-note,
.trust-mini-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  color: rgba(53,42,63,0.62);
  font-size: 14px;
  line-height: 1.85;
  background: rgba(255,255,255,0.42);
  border: 1px dashed rgba(159,119,64,0.22);
}

.section-mini {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #8a5f25;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(159,119,64,0.10);
  border: 1px solid rgba(159,119,64,0.16);
}

.method-box {
  margin-top: 26px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(77,47,112,0.08);
}

.method-box h3 {
  color: #2f2339;
  font-size: 24px;
  margin-bottom: 16px;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(77,47,112,0.07);
}

.method-step-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
}

.method-step h4 {
  color: #2f2339;
  font-size: 17px;
  margin-bottom: 6px;
}

.method-step p {
  color: rgba(53,42,63,0.68);
  line-height: 1.85;
  font-size: 15px;
}

/* 流程 */

.process-section {
  padding-top: 64px;
}

.process-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(77, 47, 112, 0.1);
}

.process-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
}

.process-item h3 {
  margin-bottom: 8px;
  color: #2f2339;
  font-size: 21px;
}

.process-item p {
  color: rgba(53, 42, 63, 0.67);
  line-height: 1.75;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  box-shadow: none;
}

.privacy-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(141,106,223,0.08), rgba(159,119,64,0.10));
  border: 1px dashed rgba(159,119,64,0.24);
}

.privacy-box h3 {
  color: #2f2339;
  font-size: 20px;
  margin-bottom: 10px;
}

.privacy-box p {
  color: rgba(53,42,63,0.68);
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 8px;
}

/* 一封信 */

.letter-section {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.letter-paper {
  position: relative;
  padding: 50px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46));
  border: 1px solid rgba(159, 119, 64, 0.18);
  box-shadow: 0 30px 80px rgba(77, 47, 112, 0.12);
}

.letter-paper::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(159, 119, 64, 0.24);
  border-radius: 22px;
  pointer-events: none;
}

.letter-paper h2 {
  position: relative;
  z-index: 1;
  color: #2f2339;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.letter-paper p {
  position: relative;
  z-index: 1;
  color: rgba(53, 42, 63, 0.72);
  line-height: 2;
  font-size: 17px;
  margin-bottom: 18px;
}

.letter-btn {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 15px 28px;
  color: #fff;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
}

.letter-btn:hover {
  transform: translateY(-3px);
}

.disclaimer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
  text-align: center;
}

.disclaimer p {
  color: rgba(53, 42, 63, 0.52);
  font-size: 13px;
  line-height: 1.9;
}

/* 应用页：兑换码、上传、分析、题目、结果 */

.app-screen {
  display: none;
  min-height: calc(100vh - 96px);
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 50px 0 90px;
  align-items: center;
  justify-content: center;
}

.app-screen.active {
  display: flex;
}

body.app-mode main > section:not(.app-screen),
body.app-mode .nav {
  display: none;
}

.screen-card,
.quiz-card,
.result-card {
  width: min(820px, 100%);
  padding: 42px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.48));
  border: 1px solid rgba(77, 47, 112, 0.12);
  box-shadow: 0 30px 90px rgba(77, 47, 112, 0.14);
  backdrop-filter: blur(22px);
}

.screen-card h2,
.quiz-top h2,
.result-card h2 {
  color: #2f2339;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.screen-desc {
  color: rgba(53,42,63,0.68);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 24px;
}

.code-box {
  display: grid;
  gap: 14px;
}

.code-box input {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(77,47,112,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  color: #352a3f;
  outline: none;
  font-size: 16px;
}

.form-message {
  min-height: 24px;
  color: #8a5f25;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 14px;
}

.text-btn {
  margin-top: 18px;
  border: none;
  cursor: pointer;
  color: rgba(77,47,112,0.72);
  background: transparent;
  font-weight: 800;
}

.upload-box {
  display: block;
  cursor: pointer;
  width: 100%;
  min-height: 300px;
  border-radius: 28px;
  border: 1px dashed rgba(159,119,64,0.32);
  background: rgba(255,255,255,0.42);
  overflow: hidden;
}

.upload-box input {
  display: none;
}

#uploadPlaceholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: rgba(53,42,63,0.62);
}

#uploadPlaceholder strong {
  display: block;
  margin-top: 10px;
  color: #2f2339;
  font-size: 18px;
}

#uploadPlaceholder p {
  margin-top: 8px;
  line-height: 1.7;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
}

#palmPreview {
  display: none;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: rgba(255,255,255,0.38);
}

.analysis-card {
  text-align: center;
}

.loading-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid rgba(77,47,112,0.12);
  border-top-color: #4d2f70;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analysis-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.analysis-item {
  padding: 14px;
  border-radius: 18px;
  color: rgba(53,42,63,0.55);
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(77,47,112,0.08);
}

.analysis-item.active {
  color: #4d2f70;
  font-weight: 900;
  background: rgba(255,255,255,0.66);
}

/* 题目页 */

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.quiz-count {
  min-width: 92px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #4d2f70;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(77, 47, 112, 0.12);
  text-align: center;
}

.quiz-progress {
  width: 100%;
  height: 10px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(77, 47, 112, 0.11);
  overflow: hidden;
}

#quizProgressFill {
  width: 2%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d2f70, #9f7740);
  transition: 0.3s ease;
}

.quiz-guide {
  margin-bottom: 28px;
  color: rgba(53, 42, 63, 0.58);
  line-height: 1.8;
  font-size: 15px;
}

.question-box {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(77, 47, 112, 0.08);
}

.question-box h3 {
  margin-bottom: 26px;
  color: #2f2339;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.55;
  font-weight: 800;
}

.scale-box {
  display: grid;
  gap: 12px;
}

.scale-option {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(77, 47, 112, 0.12);
  color: rgba(53, 42, 63, 0.76);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

.scale-option:hover {
  border-color: rgba(159, 119, 64, 0.45);
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(4px);
}

.scale-option.selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
  box-shadow: 0 12px 28px rgba(77, 47, 112, 0.18);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.quiz-actions .ghost-btn,
.quiz-actions .primary-btn {
  min-width: 140px;
}

.quiz-actions .ghost-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 结果页 */

.result-card {
  width: min(920px, 100%);
}

.result-card h2 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 16px;
}

.result-palm-tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #8a5f25;
  font-size: 14px;
  font-weight: 800;
  background: rgba(159, 119, 64, 0.1);
  border: 1px solid rgba(159, 119, 64, 0.18);
}

.result-section-box,
.talent-card-section,
.share-copy-section,
.deep-report,
.copy-report-box,
.palm-map-section,
.result-letter-box {
  margin-top: 22px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(77, 47, 112, 0.08);
}

.result-section-box h3,
.talent-card-section h3,
.share-copy-section h3,
.deep-report h3,
.copy-report-box h3,
.palm-map-section h3,
.result-letter-box h3 {
  margin-bottom: 16px;
  color: #2f2339;
  font-size: 22px;
}

.result-section-box p,
.share-copy-section p,
.deep-report p,
.copy-report-box p,
.palm-map-section p,
.result-letter-box p {
  color: rgba(53, 42, 63, 0.72);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 12px;
}

.talent-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.52);
  margin-bottom: 14px;
}

.talent-item strong {
  display: block;
  color: #4d2f70;
  font-size: 18px;
  margin-bottom: 8px;
}

.score-row {
  margin-bottom: 14px;
}

.score-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: rgba(53, 42, 63, 0.76);
  margin-bottom: 8px;
}

.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(77, 47, 112, 0.1);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #4d2f70, #9f7740);
  border-radius: 999px;
}

.warm-result {
  background:
    linear-gradient(135deg, rgba(141, 106, 223, 0.1), rgba(159, 119, 64, 0.12)),
    rgba(255, 255, 255, 0.42);
}

.mobile-save-panel {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(141,106,223,0.10), rgba(159,119,64,0.12));
  border: 1px solid rgba(159,119,64,0.18);
}

.mobile-save-panel h3 {
  margin-bottom: 10px;
  color: #2f2339;
  font-size: 18px;
}

.mobile-save-panel p {
  color: rgba(53,42,63,0.72);
  line-height: 1.85;
  font-size: 15px;
  margin-bottom: 8px;
}

/* 掌纹扫描入口图 */

.palm-scan-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 18px auto;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(141,106,223,0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(159,119,64,0.20), transparent 36%),
    rgba(255,255,255,0.5);
  border: 1px solid rgba(159,119,64,0.22);
  box-shadow: 0 24px 70px rgba(77,47,112,0.13);
}

.palm-scan-frame img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  opacity: 0.88;
  filter: saturate(0.92) contrast(1.03);
  background: rgba(255,255,255,0.36);
}

.scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.scan-light {
  position: absolute;
  left: -20%;
  top: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.24),
    rgba(141,106,223,0.18),
    transparent
  );
  transform: skewX(-14deg);
  animation: scanMove 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanMove {
  0% { left: -40%; }
  55% { left: 110%; }
  100% { left: 110%; }
}

.scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(255,255,255,0.74);
  pointer-events: none;
}

.corner-tl {
  top: 18px;
  left: 18px;
  border-left: 3px solid;
  border-top: 3px solid;
  border-radius: 12px 0 0 0;
}

.corner-tr {
  top: 18px;
  right: 18px;
  border-right: 3px solid;
  border-top: 3px solid;
  border-radius: 0 12px 0 0;
}

.corner-bl {
  bottom: 18px;
  left: 18px;
  border-left: 3px solid;
  border-bottom: 3px solid;
  border-radius: 0 0 0 12px;
}

.corner-br {
  bottom: 18px;
  right: 18px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-radius: 0 0 12px 0;
}

.scan-badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.scan-badge {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(77,47,112,0.10);
}

.scan-badge span {
  display: block;
  margin-bottom: 5px;
  color: rgba(53,42,63,0.52);
  font-size: 12px;
  font-weight: 700;
}

.scan-badge strong {
  color: #4d2f70;
  font-size: 14px;
}

.palm-map-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(53,42,63,0.66);
  font-size: 14px;
  line-height: 1.85;
  background: rgba(255,255,255,0.42);
  border: 1px dashed rgba(159,119,64,0.22);
}

/* 卡片和保存图片 */

.talent-share-card,
.report-summary-image-card {
  max-width: 460px;
  margin: 12px auto 14px;
  padding: 30px;
  border-radius: 30px;
  color: #2f2339;
  background:
    radial-gradient(circle at top left, rgba(141, 106, 223, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(159, 119, 64, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
  border: 1px solid rgba(159, 119, 64, 0.2);
  box-shadow: 0 22px 62px rgba(77, 47, 112, 0.13);
}

.talent-share-card {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-small-title,
.summary-brand {
  color: #8a5f25;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.talent-share-card h4,
.report-summary-image-card h4 {
  margin: 18px 0 10px;
  color: #2f2339;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.card-keywords,
.summary-keywords {
  color: #4d2f70;
  font-weight: 800;
  line-height: 1.7;
}

.card-divider {
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg, transparent, rgba(159,119,64,0.4), transparent);
}

.card-direction,
.report-summary-image-card p {
  color: rgba(53, 42, 63, 0.74);
  line-height: 1.8;
  margin-bottom: 16px;
}

.card-sentence {
  color: #4d2f70;
  line-height: 1.85;
  font-weight: 800;
}

.card-tip {
  text-align: center;
  color: rgba(53,42,63,0.55);
  font-size: 14px;
  line-height: 1.8;
}

.image-save-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-save-btn {
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #4d2f70, #9f7740);
  box-shadow: 0 14px 34px rgba(77,47,112,0.16);
}

.image-save-btn.secondary {
  color: #4d2f70;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(77,47,112,0.14);
  box-shadow: none;
}

.save-image-preview {
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(77,47,112,0.10);
  display: none;
}

.save-image-preview p {
  font-size: 14px;
  color: rgba(53,42,63,0.62);
  margin-bottom: 10px;
  line-height: 1.8;
}

.save-image-preview img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(77,47,112,0.12);
}

.share-copy-section textarea {
  width: 100%;
  min-height: 230px;
  padding: 18px;
  margin: 12px 0 16px;
  resize: vertical;
  border-radius: 20px;
  border: 1px solid rgba(77, 47, 112, 0.12);
  background: rgba(255,255,255,0.55);
  color: rgba(53,42,63,0.78);
  line-height: 1.8;
  font-size: 15px;
  outline: none;
}

.seven-day-plan {
  display: grid;
  gap: 12px;
}

.day-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(77, 47, 112, 0.08);
  color: rgba(53, 42, 63, 0.74);
  line-height: 1.8;
}

.day-item strong {
  color: #4d2f70;
}

.pdf-actions,
.copy-report-box {
  margin-top: 28px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(77, 47, 112, 0.08), rgba(159, 119, 64, 0.1));
  border: 1px solid rgba(159, 119, 64, 0.18);
  text-align: center;
}

.pdf-tip,
.copy-report-tip {
  margin-top: 12px;
  color: rgba(53, 42, 63, 0.58);
  font-size: 14px;
  line-height: 1.8;
}

/* 回信弹窗 */

.letter-soft-box {
  margin-top: 28px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(141,106,223,0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(159,119,64,0.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.46));
  border: 1px solid rgba(159,119,64,0.18);
  box-shadow: 0 24px 70px rgba(77,47,112,0.10);
}

.letter-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #8a5f25;
  font-size: 13px;
  font-weight: 900;
  background: rgba(159,119,64,0.10);
  border: 1px solid rgba(159,119,64,0.16);
}

.letter-soft-highlight {
  margin: 20px 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(77,47,112,0.08);
  color: rgba(53,42,63,0.76);
  line-height: 1.9;
}

.letter-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(39, 29, 50, 0.42);
  backdrop-filter: blur(12px);
}

.letter-modal-mask.active {
  display: flex;
}

.letter-modal {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(141,106,223,0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(159,119,64,0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76));
  border: 1px solid rgba(159,119,64,0.22);
  box-shadow: 0 30px 90px rgba(39,29,50,0.24);
}

.modal-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #8a5f25;
  font-size: 13px;
  font-weight: 900;
  background: rgba(159,119,64,0.10);
  border: 1px solid rgba(159,119,64,0.16);
}

.letter-modal h3 {
  color: #2f2339;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.letter-modal p {
  color: rgba(53,42,63,0.74);
  line-height: 1.95;
  font-size: 16px;
  margin-bottom: 14px;
}

.letter-modal ul {
  margin: 16px 0 18px;
  padding-left: 20px;
  color: rgba(53,42,63,0.74);
  line-height: 1.9;
}

.letter-modal li {
  margin-bottom: 8px;
}

.letter-modal-note {
  margin: 18px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.56);
  border: 1px dashed rgba(159,119,64,0.24);
  color: rgba(53,42,63,0.68);
  line-height: 1.85;
  font-size: 14px;
}

.letter-modal-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.modal-close-btn {
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 999px;
  color: #4d2f70;
  font-weight: 800;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(77,47,112,0.14);
}

/* 打印 / PDF */

@media print {
  body {
    background: #ffffff !important;
  }

  .page-bg,
  .nav,
  .hero,
  #basis,
  #about,
  #trustBasisSection,
  #process,
  #faqPrivacySection,
  #letter,
  .disclaimer,
  .result-letter-box,
  .share-copy-section,
  .pdf-actions,
  .copy-report-box,
  .image-save-actions,
  .save-image-preview,
  .text-btn,
  .letter-modal-mask {
    display: none !important;
  }

  .app-screen {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .app-screen:not(#resultScreen) {
    display: none !important;
  }

  #resultScreen {
    display: block !important;
  }

  .result-card {
    width: 100% !important;
    padding: 24px !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  .result-section-box,
  .talent-card-section,
  .deep-report,
  .palm-map-section {
    break-inside: avoid;
    page-break-inside: avoid;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
  }

  .score-fill {
    background: #4d2f70 !important;
  }
}

/* 响应式 */

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 34px;
  }

  .value-grid,
  .science-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .palm-card {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .hero {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .hero h1 .title-line,
  .hero h1 .title-accent {
    white-space: normal;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    font-size: 12px;
    padding: 7px 10px;
  }

  .science-section,
  .trust-section,
  .faq-section {
    width: min(100% - 28px, 1120px);
    padding: 24px;
    border-radius: 28px;
  }

  .method-box {
    padding: 22px;
  }

  .method-step {
    grid-template-columns: 36px 1fr;
  }

  .method-step-num {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 28px, 1180px);
    padding: 20px 0;
  }

  .hero,
  .section,
  .letter-section,
  .disclaimer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 26px 0 60px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions,
  .quiz-actions,
  .image-save-actions {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn,
  .letter-btn {
    width: 100%;
  }

  .palm-card {
    padding: 22px;
    border-radius: 28px;
  }

  .palm-visual {
    height: 240px;
  }

  .line-a {
    width: 210px;
  }

  .line-b {
    width: 230px;
  }

  .letter-paper {
    padding: 34px 24px;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
    padding: 20px;
  }

  .app-screen {
    width: min(100% - 28px, 1180px);
    padding: 30px 0 60px;
  }

  .screen-card,
  .quiz-card,
  .result-card {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .quiz-top {
    flex-direction: column;
  }

  .question-box {
    padding: 22px;
  }

  .quiz-actions {
    display: grid;
  }

  .quiz-actions .ghost-btn,
  .quiz-actions .primary-btn {
    width: 100%;
  }

  .result-section-box,
  .result-letter-box,
  .talent-card-section,
  .share-copy-section,
  .deep-report,
  .copy-report-box,
  .palm-map-section {
    padding: 22px;
  }

  .mobile-save-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .mobile-save-panel h3 {
    font-size: 17px;
  }

  .mobile-save-panel p {
    font-size: 14px;
  }

  .palm-scan-frame {
    border-radius: 22px;
  }

  .scan-badge-row {
    grid-template-columns: 1fr;
  }

  .talent-share-card {
    width: 100%;
    max-width: 360px;
    min-height: 450px;
    padding: 24px;
  }

  .talent-share-card h4 {
    font-size: 28px;
  }

  .report-summary-image-card {
    padding: 24px;
  }

  .report-summary-image-card h4 {
    font-size: 26px;
  }

  .letter-modal {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .letter-modal p,
  .letter-soft-box p {
    font-size: 15px;
  }
}