/* ===== 学习力全景测评样式 ===== */

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ===== 通用按钮 ===== */
.pa-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1B3A5C;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.pa-btn-primary:active { background: #16314C; }
.pa-btn-primary:disabled { background: #C8CBD1; cursor: not-allowed; }

.pa-btn-secondary {
  padding: 12px 24px;
  background: #fff;
  color: #1B3A5C;
  border: 1px solid #1B3A5C;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.pa-btn-secondary:active { background: #E8EAEE; }

.pa-btn-text {
  background: none;
  border: none;
  color: #9AA1AD;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

/* ===== 口令验证页 ===== */
.pa-key-verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1B3A5C 0%, #2E5680 50%, #1B3A5C 100%);
  padding: 32px 20px;
}
.pa-key-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 40px 28px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.pa-key-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1B3A5C;
}
.pa-subtitle {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 32px;
}
.pa-key-form {
  margin-bottom: 8px;
}
.pa-key-form label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #4A4A4A;
  margin-bottom: 8px;
}
.pa-key-form input {
  width: 100%;
  padding: 14px;
  border: 2px solid #E0E2E6;
  border-radius: 12px;
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.pa-key-form input:focus {
  border-color: #1B3A5C;
  outline: none;
}
.pa-key-error {
  color: #D23B3B;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}
.pa-key-card .pa-btn-primary {
  margin-top: 20px;
}

/* ===== 信息收集页 ===== */
.pa-info {
  padding-top: 0;
}
.pa-info-header {
  background: linear-gradient(135deg, #1B3A5C 0%, #2E5680 100%);
  border-radius: 0 0 20px 20px;
  padding: 40px 24px 32px;
  margin: -16px -16px 24px;
  text-align: center;
}
.pa-info-header h1 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.pa-info-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.pa-page-title {
  font-size: 22px;
  color: #2C2C2C;
  margin-bottom: 8px;
}
.pa-page-desc {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.pa-info-form {
  margin-bottom: 24px;
}
.pa-form-field {
  margin-bottom: 20px;
}
.pa-form-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 8px;
}
.pa-form-field select,
.pa-form-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E2E6;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}
.pa-field-note {
  font-size: 12px;
  color: #9AA1AD;
  margin-top: 6px;
}

/* 知情同意勾选 */
.pa-consent-field {
  margin-top: 28px;
  padding: 16px;
  background: #F4F1EC;
  border-radius: 8px;
}
.pa-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #5A5A5A;
  cursor: pointer;
}
.pa-consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #1B3A5C;
}
.pa-consent-label span {
  line-height: 1.6;
}

.pa-nav {
  margin-top: 24px;
}

/* ===== 问卷页 ===== */
.pa-question {
  padding-top: 20px;
}
.pa-progress-bar {
  width: 100%;
  height: 4px;
  background: #E8EAEE;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1B3A5C, #E8954C);
  transition: width 0.3s ease;
}
.pa-version-tag {
  font-size: 13px;
  color: #1B3A5C;
  font-weight: 600;
  margin-bottom: 20px;
}
.pa-q-text {
  font-size: 18px;
  line-height: 1.6;
  color: #2C2C2C;
  margin-bottom: 16px;
  min-height: 60px;
}
.pa-scale-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pa-scale-btn {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #F4F1EC;
  border: 2px solid #E8EAEE;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.pa-scale-btn:active { background: #EDEBE6; }
.pa-scale-selected {
  border-color: #1B3A5C;
  background: #E7EEF5;
}
.pa-scale-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #E0E2E6;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 12px;
}
.pa-scale-selected .pa-scale-num { background: #1B3A5C; }
.pa-scale-label {
  font-size: 16px;
  color: #2C2C2C;
}
.pa-q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* ===== 跳过按钮 ===== */
.pa-btn-skip {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px dashed #C8CBD1;
  border-radius: 8px;
  color: #9AA1AD;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
}
.pa-btn-skip:active { background: #F4F1EC; }

/* ===== 过渡页 ===== */
.pa-transition {
  padding-top: 40px;
}
.pa-trans-card {
  background: #F4F1EC;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.pa-trans-main {
  font-size: 18px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 12px;
}
.pa-trans-desc {
  font-size: 16px;
  color: #4A4A4A;
  margin-bottom: 16px;
}
.pa-trans-note {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.pa-trans-rule {
  font-size: 14px;
  color: #1B3A5C;
  line-height: 1.6;
  background: #E7EEF5;
  padding: 12px;
  border-radius: 8px;
}

/* ===== 报告页 ===== */
.pa-report {
  padding-top: 20px;
}
.pa-report-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #E8EAEE;
}
.pa-report-header h1 {
  font-size: 22px;
  color: #2C2C2C;
  margin-bottom: 8px;
}
.pa-report-header p {
  font-size: 14px;
  color: #6B7280;
}
.pa-report-section {
  margin-bottom: 28px;
}
.pa-report-section h2 {
  font-size: 18px;
  color: #2C2C2C;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
.pa-report-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4A4A;
  margin-bottom: 10px;
}

/* ===== 章节徽章 ===== */
.pa-chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1B3A5C;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
  line-height: 24px;
}

/* ===== 核心结论卡片 ===== */
.pa-core-conclusion {
  background: linear-gradient(135deg, #1B3A5C 0%, #2E5680 100%);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 24px;
  color: #fff;
}
.pa-cc-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.pa-cc-roots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.pa-cc-root-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
}
.pa-cc-zone-green { border-left-color: #2E9C5B; }
.pa-cc-zone-yellow { border-left-color: #C4841A; }
.pa-cc-zone-red { border-left-color: #D23B3B; }
.pa-cc-zone-gray { border-left-color: #9AA1AD; }
.pa-cc-root-name {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}
.pa-cc-root-score {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.pa-cc-root-zone {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
}
.pa-cc-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pa-cc-stat {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.pa-cc-stat-green { background: rgba(39,174,96,0.25); color: #5BB87E; }
.pa-cc-stat-yellow { background: rgba(245,127,23,0.25); color: #E0A93B; }
.pa-cc-stat-red { background: rgba(231,76,60,0.25); color: #E26A6A; }
.pa-cc-stat-gray { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.pa-cc-focus {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.5;
}
.pa-cc-attention {
  font-size: 13px;
  color: #E0A93B;
  font-weight: 600;
  line-height: 1.6;
}

/* ===== 图表容器 ===== */
.pa-chart-container {
  margin-bottom: 16px;
  text-align: center;
}
.pa-chart-container canvas {
  max-width: 100%;
}
.pa-radar-container {
  margin-bottom: 20px;
}

/* ===== 根基解读卡片 ===== */
.pa-root-card {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.pa-root-card-green {
  background: #E3F5EA;
  border-left: 3px solid #2E9C5B;
}
.pa-root-card-yellow {
  background: #FDF1DC;
  border-left: 3px solid #C4841A;
}
.pa-root-card-red {
  background: #FDE4E4;
  border-left: 3px solid #D23B3B;
}
.pa-root-card-gray {
  background: #F0EEE9;
  border-left: 3px solid #C8CBD1;
}
.pa-root-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}
.pa-root-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #2C2C2C;
}
.pa-root-card-score {
  font-size: 13px;
  color: #6B7280;
}
.pa-root-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #4A4A4A;
  margin: 0;
}

/* ===== 逐力解读（平铺卡片） ===== */
.pa-root-group {
  margin-bottom: 20px;
}
.pa-root-group-title {
  font-size: 16px;
  color: #2C2C2C;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E8EAEE;
}
.pa-root-score-badge {
  font-size: 13px;
  color: #6B7280;
  font-weight: 400;
  background: #EDEBE6;
  padding: 2px 8px;
  border-radius: 10px;
}
.pa-force-block {
  background: #F4F1EC;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.pa-zone-green { border-left: 3px solid #2E9C5B; }
.pa-zone-yellow { border-left: 3px solid #C4841A; }
.pa-zone-red { border-left: 3px solid #D23B3B; }
.pa-zone-gray { border-left: 3px solid #C8CBD1; }
.pa-force-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.pa-force-name {
  font-size: 15px;
  font-weight: 600;
  color: #2C2C2C;
}
.pa-zone-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.pa-badge-green  { background: #E3F5EA; color: #2E9C5B; }
.pa-badge-yellow { background: #FDF1DC; color: #C4841A; }
.pa-badge-red    { background: #FDE4E4; color: #D23B3B; }
.pa-badge-gray   { background: #EDEBE6; color: #9AA1AD; }
.pa-judgment-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #E7EEF5;
  color: #1B3A5C;
}
.pa-force-score {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 6px;
}
.pa-force-block p {
  font-size: 14px;
  line-height: 1.6;
  color: #4A4A4A;
}
.pa-remaining {
  color: #9AA1AD;
  font-size: 14px;
  font-style: italic;
}

/* ===== 行动指南（叙述性） ===== */
.pa-ag-intro {
  font-size: 15px;
  color: #4A4A4A;
  margin-bottom: 16px;
  line-height: 1.7;
}
.pa-ag-root-block {
  background: #E7EEF5;
  border: 1px solid #E7EEF5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.pa-ag-root-title {
  font-size: 16px;
  color: #1B3A5C;
  margin-bottom: 8px;
}
.pa-ag-root-copy {
  font-size: 14px;
  line-height: 1.7;
  color: #3D3D3D;
  margin-bottom: 12px;
}
.pa-ag-force-intro {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 8px;
}
.pa-ag-force-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pa-ag-force-list li {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 3px solid #1B3A5C;
}
.pa-ag-force-list li:last-child { margin-bottom: 0; }
.pa-ag-force-list strong {
  font-size: 15px;
  color: #2C2C2C;
}
.pa-ag-force-copy {
  font-size: 14px;
  line-height: 1.7;
  color: #4A4A4A;
  margin: 6px 0 0;
}
.pa-ag-force-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #4A4A4A;
  margin: 6px 0 0;
}
.pa-ag-force-suggest {
  font-size: 14px;
  line-height: 1.7;
  color: #3A3A3A;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #E0E2E6;
}
.pa-suggest-label {
  display: inline-block;
  background: #1B3A5C;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}
.pa-ag-no-force {
  font-size: 13px;
  color: #6B7280;
  font-style: italic;
}

/* ===== 对读提示 ===== */
.pa-reading-principle {
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.7;
  background: #E7EEF5;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.pa-reading-explanation {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
  background: #F4F1EC;
  padding: 14px;
  border-radius: 10px;
}
.pa-reading-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.pa-reading-table th {
  background: #F0EEE9;
  padding: 8px 6px;
  text-align: center;
  font-weight: 600;
  color: #4A4A4A;
  border-bottom: 2px solid #E0E2E6;
}
.pa-reading-table td {
  padding: 6px;
  text-align: center;
  color: #4A4A4A;
  border-bottom: 1px solid #E8EAEE;
}
.pa-reading-table td:first-child {
  text-align: left;
}
.pa-reading-row-diff td {
  color: #D23B3B;
  font-weight: 500;
}
.pa-item-table td:first-child {
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}
.pa-reading-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 12px;
}
.pa-reading-block {
  background: #FDF1DC;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.pa-reading-block h3 {
  font-size: 14px;
  color: #2C2C2C;
  margin-bottom: 8px;
}
.pa-reading-block p {
  font-size: 14px;
  line-height: 1.6;
  color: #4A4A4A;
}

/* ===== 通道警告 ===== */
.pa-channel-warning {
  background: #FFF3E0;
  border: 1px solid #E0A93B;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.pa-channel-warning p {
  font-size: 14px;
  color: #C4841A;
  line-height: 1.6;
}

/* ===== 下一步 ===== */
.pa-closing {
  font-size: 15px;
  line-height: 1.8;
  color: #2C2C2C;
  margin-bottom: 16px;
}
.pa-next-steps {
  background: #F4F1EC;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pa-next-steps-title {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 10px;
}
.pa-next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pa-next-steps li {
  font-size: 14px;
  line-height: 1.7;
  color: #4A4A4A;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}
.pa-next-steps li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #1B3A5C;
  font-weight: bold;
}
.pa-disclaimer {
  font-size: 12px;
  color: #9AA1AD;
  line-height: 1.5;
  margin-top: 12px;
}

/* ===== 报告底部 ===== */
.pa-report-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #E8EAEE;
  margin-top: 24px;
}
.pa-qr-section {
  margin-bottom: 20px;
}
.pa-qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E8EAEE;
}
.pa-qr-placeholder svg {
  width: 100%;
  height: 100%;
}
.pa-qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.pa-qr-text {
  font-size: 13px;
  color: #6B7280;
}
.pa-footer-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pa-footer-buttons .pa-btn-secondary {
  min-width: 140px;
}

/* ===== 打印按钮移动端隐藏 ===== */
@media screen and (max-width: 768px) {
  #paPrint { display: none; }
}

/* ===== 打印 ===== */
@media print {
  .pa-q-nav, .pa-report-footer button, .pa-btn-skip, .pa-footer-buttons { display: none; }
  .pa-qr-section { display: block; }
  .pa-report { padding: 0; }
  .pa-core-conclusion {
    background: #1B3A5C !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ===== 全站品牌 Hero 栏：POLO 头像 + 学霸树横版背景 + 主张 ===== */
.brand-header { position: relative; max-width: 480px; margin: 0 auto; height: 104px; overflow: hidden; }
.brand-tree { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.brand-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,58,92,.84) 0%, rgba(27,58,92,.48) 58%, rgba(232,149,76,.32) 100%); }
.brand-row { position: relative; height: 100%; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 11px; padding: 0 18px; }
.brand-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-slogan { color: #F8F6F2; font-size: 12px; margin-top: 2px; opacity: .92; }
