/* 基于原网站的完整CSS样式 - 精确复刻 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
}

/* 页面主体 */
.page-body {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  background-image: url("images/bg.png");
  background-position: 50% 0;
  background-size: 100% auto;
  background-repeat: no-repeat;
  user-select: none;
  font-size: 14px;
  line-height: 1.5;
}

.page-inner {
  width: 100%;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  min-width: 768px;
}

.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* 标题行 */
.title-row {
  padding-top: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-row-icon {
  width: 45px;
  height: 45px;
}

.title-row-h1 {
  margin-left: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-row-text {
  font-size: 38px;
  color: #744cc2;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.title-row-eng {
  font-size: 24px;
  color: #744cc2;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

/* 副标题 */
.subtitle-row {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 4px;
  color: #666;
}

/* 选择卡片行 */
.selection-row {
  margin-top: 60px;
  height: 296.25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22.5px;
  font-size: 14px;
  line-height: 1.4;
}

.selection {
  width: 180px;
  height: 296.25px;
  background-color: #ffffff;
  border-radius: 18.75px;
  box-shadow: 0 0 15px 0 rgb(230, 230, 230);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid transparent;
  font-size: 12px;
  line-height: 1.4;
}

.selection.wide {
  width: 258.75px;
  box-shadow: 0 0 15px 0 rgb(230, 230, 230);
}

.selection.active {
  border: 3px solid rgb(126, 92, 197);
  box-shadow: 0 0 15px 0 rgb(230, 230, 230);
}

.selection.wide.active {
  border: 3px solid rgb(126, 92, 197);
  box-shadow: 0 0 15px 0 rgb(230, 230, 230);
}

.selection:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px 0 rgba(134, 99, 201, 0.2);
}

/* 推荐标签 */
.recommend {
  position: absolute;
  top: -3px;
  width: 95%;
  height: 37.5px;
  background-image: url("images/text1.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: white;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: center;
  border-bottom-left-radius: 37.5px;
  border-bottom-right-radius: 37.5px;
  z-index: auto;
}

/* Start of Selection */
/* 卡片内容 */
.selection-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  margin-top: 37.5px;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease;
  /* object-fit: cover; */
}
/* End of Selection */

.selection.active .selection-icon {
  filter: none;
}

.count-row {
  display: flex;
  align-items: baseline;
  gap: 3.75px;
  margin-bottom: 7.5px;
}

.count {
  font-size: 40px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.1;
}

.count-row > div:last-child {
  font-size: 14px;
  color: #666;
}

.name-row {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.test-desc-row {
  font-size: 15px;
  color: #999;
  margin-bottom: 3.75px;
}

.test-row {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 500;
}

/* 开始按钮 */
.start-button-row {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.start-button {
  width: 225px;
  height: 63.75px;
  background: rgb(145, 102, 207);
  border-radius: 63.75px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1px;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  padding: 0;
}

.start-button:hover {
  background: rgb(134, 99, 201);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(134, 99, 201, 0.3);
}

.triangle-right {
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* 标签页 */
.tab-row {
  margin-top: 60px;
  width: 402px;
  height: 52.5px;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
}

.tab-item {
  width: 160px;
  height: 52.5px;
  padding: 0;
  background-color: transparent;
  color: #2c3e50;
  font-size: 12px;
  line-height: 33.75px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: normal;
  justify-content: normal;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.tab-item.active {
  background-color: transparent;
  color: #2c3e50;
  border-bottom: 3px solid #8663c9;
  position: relative;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: #8663c9;
  border-radius: 2px;
}

.tab-item:hover {
  background-color: transparent;
  color: #8663c9;
}

.tab-item.active:hover {
  background-color: transparent;
  color: #2c3e50;
}

.text-cell {
  font-size: 14px;
  color: #2c3e50;
  text-align: center;
  width: 100%;
  margin: 0;
  font-weight: normal;
}

.tab-item.active .text-cell {
  color: #703cd9;
  font-weight: 600;
}

.icon-cell {
  display: none;
}

/* 标签页内容 */
.tab-page {
  width: 960px;
  margin-top: 15px;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.6;
}

.tab-page.hide {
  display: none;
}

/* MBTI理论背景页面 */
.mbti-background {
  font-size: 15px;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 22.5px;
  text-align: left;
}

.block-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  width: 100%;
}

.block-row.horizontal {
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 15px;
  width: 100%;
  overflow-x: visible;
}

.block-row.horizontal::-webkit-scrollbar {
  display: none;
}

.block-body-a {
  flex: 1;
  padding: 22.5px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-container img {
  width: 45px;
  height: 45px;
}

.content-container {
  flex: 1;
}

.label-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7.5px;
  line-height: 1.4;
}

.text-line-1, .text-line-2 {
  font-size: 14px;
  line-height: 1.6;
  color: #2c3e50;
  margin: 22.5px 0;
  text-align: center;
}

.border-text {
  padding: 8px 15px;
  border: 1px solid #703cd9;
  border-radius: 30px;
  color: #703cd9;
  font-size: 13px;
  white-space: nowrap;
  min-width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.arrow-right {
  width: 20px;
  height: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-body-b {
  flex: 1;
  padding: 22.5px;
  background: linear-gradient(135deg, #f0ebfa 0%, #ffedf3 100%);
  border-radius: 15px;
  border: 1px solid rgba(134, 99, 201, 0.1);
}

.block-body-b .title {
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 22.5px;
}

.info-row {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.info-row .label {
  width: 120px;
  font-size: 14px;
  color: #666;
}

.info-row .content {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #2c3e50;
}

.text-block {
  flex: 1;
  padding: 22.5px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  background-color: #ffffff;
  border-radius: 15px;
}

/* 时间线 */
.time-line {
  position: relative;
  padding-left: 30px;
}

.time-line-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 45px;
}

.time-line-item .line {
  position: absolute;
  left: -15px;
  top: 0;
  bottom: -30px;
  width: 2px;
  background-color: #e9ecef;
}

.time-line-item:last-child .line {
  display: none;
}

.dot-container {
  position: absolute;
  left: -22.5px;
  top: 0;
}

.dot {
  border-radius: 50%;
  background-color: #8663c9;
}

.dot.small {
  width: 15px;
  height: 15px;
}

.dot.medium {
  width: 18px;
  height: 18px;
}

.dot.big {
  width: 22.5px;
  height: 22.5px;
}

.time-line-item .title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 7.5px;
}

.time-line-item .content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* 测试须知页面 */
.gray-text-container {
  padding: 30px 0;
}

.gray-text-line {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22.5px;
  gap: 15px;
}

.gray-text-line .number {
  font-size: 22px;
  font-weight: 700;
  color: #8663c9;
  min-width: 45px;
}

.gray-text-line .slash {
  font-size: 22px;
  color: #e9ecef;
  margin-right: 15px;
}

.gray-text-line .content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  flex: 1;
}

/* 找回报告按钮 */
.retrieve-button {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #8663c9, #6c5ce7);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(134, 99, 201, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.retrieve-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(134, 99, 201, 0.4);
}

.retrieve-button-inner {
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* 版权信息 */
.site-copyright {
  margin-top: 60px;
  text-align: center;
  font-size: 12px;
  color: #999;
  padding-bottom: 30px;
}

.site-copyright a {
  color: #999;
  text-decoration: none;
}

.site-copyright a:hover {
  color: #8663c9;
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
  .page-body {
    background-image: url("images/bg.png");
    background-position: 50% 0;
    background-size: 100% auto;
    background-attachment: scroll;
    font-size: 14px;
  }

  .page-inner {
    min-width: auto;
    padding: 0 20px;
  }

  .title-row {
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
  }

  .title-row-icon {
    width: 50px;
    height: 50px;
  }

  .title-row-h1 {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  .title-row-text {
    font-size: 32px;
  }

  .title-row-eng {
    font-size: 24px;
    font-weight: 400;
    color: #744cc2;
  }

  .desktop-hidden {
    display: block !important;
  }
  
  .subtitle-row {
    margin-top: 0;
    font-size: 13.5px;
    letter-spacing: 6px;
  }

  .selection-row {
    margin-top: 60px;
    height: 243px;
    gap: 22.5px;
    padding: 0;
    flex-direction: row;
  }

  .selection {
    width: 92px;
    height: 243px;
    border-radius: 10px;
    justify-content: center;
    font-size: 8px;
    box-shadow: 0 0 10px 0 rgb(230, 230, 230);
    border-width: 2px;
  }

  .selection.wide {
    width: 132.5px;
    box-shadow: 0 0 10px 0 rgb(230, 230, 230);
  }

  .selection.active {
    border-width: 2px;
    box-shadow: 0 0 10px 0 rgb(230, 230, 230);
  }

  .selection.wide.active {
    border-width: 2px;
    box-shadow: 0 0 10px 0 rgb(230, 230, 230);
  }
  
  .recommend {
    height: 20px;
    font-size: 9px;
    border-radius: 0 0 25px 25px;
    top: -2px;
    left: 4.53125px;
    right: 4.54688px;
    width: auto;
  }

  .selection-icon {
    width: 30px;
    height: 30px;
    margin-top: 0;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
  }
  
  .selection.active .selection-icon {
    filter: none;
  }

  .count {
    font-size: 24px;
    line-height: 1;
  }

  .count-row > div:last-child {
    font-size: 8px;
  }

  .name-row {
    font-size: 10px;
    margin-bottom: 7.5px;
  }

  .test-desc-row {
    font-size: 10px;
  }
  
  .test-row {
    font-size: 11px;
  }

  .start-button-row {
    margin-top: 30px;
  }

  .start-button {
    width: 348px;
    height: 50px;
    font-size: 18.75px;
    border-radius: 25px;
    letter-spacing: 0;
  }
  
  .tab-row {
    margin-top: 82.5px;
    width: 100%;
    height: 35px;
    gap: 0;
    justify-content: space-evenly;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
  }

  .tab-item {
    width: 121px;
    height: 35px;
    background-color: transparent;
    border-bottom: none;
    border-radius: 0;
    font-size: 13px;
    line-height: 35px;
    color: #2c3e50;
  }

  .tab-item.active {
    background-color: transparent;
    color: #2c3e50;
    border-bottom: 3px solid #8663c9;
  }

  .tab-item.active .text-cell {
    color: #703cd9;
    font-weight: 600;
  }

  .text-cell {
    font-size: 13px;
  }
  
  .tab-page {
    width: 100%;
    margin-top: 25px;
    padding: 0 5px;
  }
  
  .mbti-background {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 30px;
  }
  
  .block-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .block-row.horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: visible;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 5px;
  }

  .block-row.horizontal::-webkit-scrollbar {
    display: none;
  }

  .border-text {
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    min-width: 60px;
    height: 30px;
    flex-shrink: 0;
  }
  
  .arrow-right {
    width: 10px;
    height: 10px;
    margin: 0 2px;
    flex-shrink: 0;
  }
  
  .time-line {
    padding-left: 15px;
  }
  
  .time-line-item {
    padding-left: 30px;
    margin-bottom: 20px;
  }
  
  .gray-text-line .number {
    font-size: 18px;
    min-width: 30px;
  }
  
  .gray-text-line .content {
    font-size: 16px;
  }
  
  .retrieve-button {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 20px;
  }
  
  .retrieve-button-inner {
    font-size: 10px;
  }
}

/* 桌面版隐藏16Personalities */
.desktop-hidden {
  display: none;
}
