/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 通用body样式 */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

body.package-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 容器 */
.container {
  max-width: 480px;
  margin: auto;
  padding: 10px 20px 90px;
}

/* 通用卡片样式 */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  color: #333;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card p {
  font-size: 13px;
  line-height: 1.5;
  text-indent: 2em;
}

/* Markdown样式 */
.card h1, .card h2, .card h3 {
  margin: 20px 0 15px 0;
  color: #333;
  font-weight: bold;
  line-height: 1.3;
}

.card h1 {
  font-size: 22px;
  border-bottom: 3px solid #8B5CF6;
  padding-bottom: 8px;
  margin-top: 25px;
}

.card h2 {
  font-size: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-top: 20px;
}

.card h3 {
  font-size: 18px;
  color: #555;
  margin-top: 18px;
}

.card p {
  margin: 12px 0;
  line-height: 1.7;
  text-indent: 2em;
  color: #333;
}

.card strong {
  color: #8B5CF6;
  font-weight: 700;
}

.card em {
  color: #666;
  font-style: italic;
}

.card code {
  background: #f1f3f4;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
  color: #d73a49;
  font-size: 0.9em;
  border: 1px solid #e1e4e8;
}

.card pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid #e1e4e8;
  border-left: 4px solid #8B5CF6;
}

.card pre code {
  background: none;
  padding: 0;
  color: #24292e;
  border: none;
  font-size: 0.9em;
}

.card a {
  color: #8B5CF6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.card a:hover {
  border-bottom-color: #8B5CF6;
}

.card li {
  margin: 3px 0;
  line-height: 1.5;
  color: #333;
}

.card ul, .card ol {
  margin: 10px 0;
  padding-left: 25px;
}

.card ul {
  list-style-type: disc;
}

.card ol {
  list-style-type: decimal;
}

.card ul ul, .card ol ol, .card ul ol, .card ol ul {
  margin: 3px 0;
}

.card blockquote {
  border-left: 4px solid #8B5CF6;
  margin: 15px 0;
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 0 4px 4px 0;
}

.card blockquote p {
  margin: 0;
  text-indent: 0;
  color: #666;
}

.card hr {
  border: none;
  border-top: 2px solid #e1e4e8;
  margin: 20px 0;
}

.card table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

.card th, .card td {
  border: 1px solid #e1e4e8;
  padding: 8px 12px;
  text-align: left;
}

.card th {
  background: #f6f8fa;
  font-weight: 600;
}

/* 底部导航栏 */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  justify-content: space-around;
  z-index: 999;
}

.nav-item {
  flex: 1;
  text-align: center;
  color: #666;
  text-decoration: none;
  padding: 10px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-item.active {
  color: #8B5CF6;
  font-weight: bold;
}

body.package-bg .nav-item.active {
  color: #667eea;
}

.nav-item:hover {
  color: #8B5CF6;
}

/* 加载状态 */
.loading {
  text-align: center;
  color: white;
  padding: 40px;
  font-size: 16px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.empty-state-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.empty-state-btn {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #8B5CF6;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

body.package-bg .empty-state-btn {
  color: #667eea;
}

.empty-state-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 页面头部 */
.header {
  text-align: center;
  padding: 20px 0;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

/* 返回按钮 */
.back-btn {
  display: inline-block;
  margin: 20px 0 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 信息卡片 */
.info-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.2;
  padding: 2px 0;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #666;
}

.info-value {
  color: #333;
  font-weight: bold;
}

/* 图片展示 */
.image-wrapper {
  text-align: center;
  margin-bottom: 15px;
}

.detail-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   页面特定样式 - assessment_htp/index (首页)
   ============================================ */
.page-assessment-htp-index .logo {
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

.page-assessment-htp-index .logo img {
  width: 120px;
  height: auto;
  border-radius: 20px;
}

.page-assessment-htp-index .banner {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.page-assessment-htp-index .banner img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 12px;
}

.page-assessment-htp-index h1 {
  font-size: 22px;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-assessment-htp-index .intro {
  margin-top: 17px;
  font-size: 14px;
  text-align: justify;
  line-height: 1.4;
  text-indent: 2em;
}

.page-assessment-htp-index .btn {
  display: block;
  width: 60%;
  margin: 30px auto 0;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  text-align: center;
  font-size: 16px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-assessment-htp-index .btn:hover {
  background: #f0f0f0;
}

.page-assessment-htp-index .note {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  line-height: 1.5;
  text-align: justify;
  text-indent: 2em;
}

.page-assessment-htp-index .point-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-assessment-htp-index .point-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-assessment-htp-index .point-label {
  font-size: 14px;
  color: #666;
}

.page-assessment-htp-index .point-value {
  font-size: 24px;
  font-weight: bold;
  color: #8B5CF6;
}

.page-assessment-htp-index .recharge-link {
  padding: 8px 20px;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-assessment-htp-index .recharge-link:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.page-assessment-htp-index .form-group {
  margin: 20px 0;
}

.page-assessment-htp-index .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.page-assessment-htp-index .form-item {
  flex: 1;
}

.page-assessment-htp-index .form-label {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
}

.page-assessment-htp-index .form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
}

.page-assessment-htp-index .form-input:focus {
  outline: none;
  border-color: #8B5CF6;
}

/* ============================================
   页面特定样式 - assessment_htp/list (记录列表)
   ============================================ */
.page-assessment-htp-list .record-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-assessment-htp-list .record-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  text-decoration: none;
  color: #333;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-assessment-htp-list .record-item:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.page-assessment-htp-list .record-header {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.page-assessment-htp-list .record-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
}

.page-assessment-htp-list .record-info {
  flex: 1;
}

.page-assessment-htp-list .record-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.page-assessment-htp-list .record-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-assessment-htp-list .record-time {
  font-size: 12px;
  color: #999;
}

.page-assessment-htp-list .record-preview {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 5px;
}

.page-assessment-htp-list .record-point {
  font-size: 12px;
  color: #8B5CF6;
  margin-top: 3px;
}

.page-assessment-htp-list .point-badge {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* ============================================
   页面特定样式 - package/index (充值套餐)
   ============================================ */
.page-package-index .point-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-package-index .point-info {
  text-align: center;
}

.page-package-index .point-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.page-package-index .point-value {
  font-size: 36px;
  font-weight: bold;
  color: #667eea;
}

.page-package-index .point-value span {
  font-size: 20px;
  margin-left: 5px;
}

.page-package-index .package-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.page-package-index .package-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-package-index .package-item:active {
  transform: scale(0.98);
}

.page-package-index .package-item.recommended {
  border: 2px solid #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-package-index .recommended-badge {
  position: absolute;
  top: -8px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.page-package-index .package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.page-package-index .package-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.page-package-index .package-price {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}

.page-package-index .package-price span {
  font-size: 14px;
}

.page-package-index .package-point {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.page-package-index .package-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
}

.page-package-index .buy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-package-index .buy-btn:active {
  transform: scale(0.98);
}

/* ============================================
   页面特定样式 - order/index (订单列表)
   ============================================ */
.page-order-index .order-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-order-index .order-item {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-order-index .order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-order-index .order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f8f9fa;
}

.page-order-index .order-no {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.page-order-index .order-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-order-index .order-status.pending {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffd32a;
}

.page-order-index .order-status.paid {
  background: linear-gradient(135deg, #d4edda 0%, #a8e6cf 100%);
  color: #155724;
  border: 1px solid #00b894;
}

.page-order-index .order-status.cancelled {
  background: linear-gradient(135deg, #f8d7da 0%, #fab1a0 100%);
  color: #721c24;
  border: 1px solid #e17055;
}

.page-order-index .order-content {
  margin-bottom: 12px;
}

.page-order-index .order-body {
  margin-bottom: 15px;
}

.page-order-index .order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
}

.page-order-index .order-info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-order-index .order-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  min-width: 80px;
}

.page-order-index .order-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.page-order-index .order-package-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.page-order-index .order-point {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 3px;
}

.page-order-index .order-pay-time-row {
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  padding: 6px 0;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}

.page-order-index .order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.page-order-index .order-price {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.page-order-index .order-time {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f8f9fa;
  text-align: right;
  font-style: italic;
}

.page-order-index .order-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.page-order-index .order-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-order-index .order-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.page-order-index .order-btn.secondary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.page-order-index .order-btn.secondary:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
}

.page-order-index .order-btn:active {
  transform: scale(0.96);
}

/* ============================================
   页面特定样式 - user/index (我的账户)
   ============================================ */
.page-user-index .point-main-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-user-index .point-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.page-user-index .point-value {
  font-size: 48px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 20px;
}

.page-user-index .point-value span {
  font-size: 24px;
  margin-left: 5px;
}

.page-user-index .recharge-btn {
  display: inline-block;
  padding: 12px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-user-index .recharge-btn:active {
  transform: scale(0.95);
}

.page-user-index .point-detail-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px 20px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-user-index .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.page-user-index .detail-row:last-child {
  border-bottom: none;
}

.page-user-index .detail-label {
  font-size: 14px;
  color: #666;
}

.page-user-index .detail-value {
  font-size: 15px;
  color: #333;
  font-weight: bold;
}

.page-user-index .menu-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  margin: 15px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-user-index .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.page-user-index .menu-item:last-child {
  border-bottom: none;
}

.page-user-index .menu-item:active {
  background: #f8f8f8;
}

.page-user-index .menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-user-index .menu-icon {
  font-size: 20px;
}

.page-user-index .menu-text {
  font-size: 15px;
}

.page-user-index .menu-arrow {
  font-size: 20px;
  color: #999;
}

/* 统计网格样式 */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

/* 菜单列表样式 */
.menu-list {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  margin: 15px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}