/* 分类页样式 - H5版本 */
/* 设计系统：皮肤 Token 化（默认经典深色，值 = 原硬编码；浅色见 skins.css） */
/* rpx转px: 1rpx = 0.5px */

.container {
  min-height: 100vh;
  background: var(--bg-page, #0a0a0f);
  padding-bottom: 70px;
}

/* 页头 */
.page-header {
  padding: 60px 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1, #fff);
}

/* 类型介绍 */
.category-intro {
  padding: 0 16px 16px;
  color: var(--text-mute, #888);
  font-size: 14px;
  font-style: italic;
}

/* 类型 Tab */
.type-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.type-tabs::-webkit-scrollbar {
  display: none;
}

.type-tab {
  padding: 8px 16px;
  background: var(--chip-bg, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-mute, #888);
  flex-shrink: 0;
}

.type-tab.active {
  background: var(--accent-grad, linear-gradient(135deg, #ff6b6b, #ff8e53));
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow, rgba(255, 107, 107, 0.3));
}

/* 测试列表 */
.test-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-card {
  background: var(--bg-card, #1a1a2e);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft, none);
}

.test-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.test-card-content {
  flex: 1;
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.test-tag {
  padding: 4px 10px;
  background: var(--wash-accent, rgba(255, 107, 107, 0.2));
  border-radius: 8px;
  font-size: 11px;
  color: var(--accent, #ff6b6b);
  font-weight: 500;
}

.test-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.test-tag-sub {
  padding: 2px 8px;
  background: var(--chip-bg, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-modal, #aaa);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.test-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1, #ffffff);
  margin-bottom: 6px;
}

.test-card-desc {
  color: var(--text-mute, #888);
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.test-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3, #666);
}

.test-card-btn {
  padding: 8px 16px;
  background: var(--brand-grad, linear-gradient(135deg, #667eea, #764ba2));
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  align-self: center;
}

.test-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
}

.test-card-btn-invite {
  padding: 8px 16px;
  background: var(--wash-success, rgba(16, 185, 129, 0.2));
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success, #10b981);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

/* 邀请好友弹窗 */
.invite-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.invite-modal-mask {
  position: absolute;
  inset: 0;
  background: var(--overlay-mask, rgba(0, 0, 0, 0.6));
}
.invite-modal-box {
  position: relative;
  z-index: 1;
  width: 84%;
  max-width: 340px;
  background: var(--modal-bg-2, #1a1a24);
  border: 1px solid var(--hairline-2, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  color: var(--modal-fg, #eee);
}
.invite-modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.invite-modal-tip {
  font-size: 13px;
  color: var(--text-modal, #aaa);
  margin-bottom: 14px;
  line-height: 1.5;
}
.invite-modal-link {
  font-size: 12px;
  color: var(--link-info, #7fd1ff);
  word-break: break-all;
  background: var(--bg-soft, rgba(255, 255, 255, 0.05));
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
  text-align: left;
}
.invite-modal-copy {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 24px;
  background: var(--grad-invite, linear-gradient(135deg, #ff8a3d, #ff6a3d));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.invite-modal-close {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mute, #888);
  cursor: pointer;
}

/* 底部导航栏 */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-card, #1a1a2e);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-top, 0 -2px 12px rgba(0, 0, 0, 0.3));
  border-top: 1px solid var(--border-2, rgba(255, 255, 255, 0.05));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 200;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
  color: var(--tab-inactive, #666);
  font-size: 11px;
}

.tab-item.active {
  color: var(--accent, #ff6b6b);
}

.tab-item.active .tab-icon {
  opacity: 1;
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
  opacity: 0.6;
}

.tab-label {
  font-size: 11px;
}

/* 16 型人格速查（静态内链区块） */
.type-index {
  margin: 20px 16px 90px;
  padding: 18px 16px;
  background: var(--card-bg, rgba(255, 255, 255, 0.04));
  border-radius: 16px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.type-index-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 6px;
}

.type-index-desc {
  font-size: 12px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  margin-bottom: 14px;
}

.type-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.type-index-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
}

.type-index-item:active {
  background: rgba(255, 255, 255, 0.12);
}

.ti-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #ff6b6b);
  letter-spacing: 0.5px;
}

.ti-name {
  font-size: 12px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}
