* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #f5f5f5;
  color: #333;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
}

/* 导航栏 */
.nav-bar {
  background: #1890ff;
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-bar .back {
  cursor: pointer;
  font-size: 20px;
}

/* 页面容器 */
.page {
  padding: 15px;
  display: none;
}

.page.active {
  display: block;
}

/* 卡片 */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1890ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 评分展示 */
.score-display {
  text-align: center;
  padding: 20px 0;
}

.score-number {
  font-size: 64px;
  font-weight: 700;
  color: #1890ff;
  line-height: 1;
}

.score-label {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
}

.score-info {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.score-info-item {
  text-align: center;
}

.score-info-item .num {
  font-size: 24px;
  font-weight: 600;
}

.score-info-item .label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 账单列表 */
.bill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.bill-item:last-child {
  border-bottom: none;
}

.bill-month {
  font-size: 16px;
  font-weight: 500;
}

.bill-amount {
  font-size: 18px;
  font-weight: 600;
}

.bill-amount.paid {
  color: #52c41a;
}

.bill-amount.pending {
  color: #faad14;
}

.bill-amount.overdue {
  color: #ff4d4f;
}

.bill-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  display: inline-block;
}

.bill-status.paid {
  background: #f6ffed;
  color: #52c41a;
}

.bill-status.pending {
  background: #fffbe6;
  color: #faad14;
}

.bill-status.overdue {
  background: #fff2f0;
  color: #ff4d4f;
}

/* 费率表 */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rate-table th {
  background: #fafafa;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

.rate-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background: #1890ff;
  color: white;
}

.btn-primary:active {
  background: #096dd9;
}

.btn-success {
  background: #52c41a;
  color: white;
}

.btn-danger {
  background: #ff4d4f;
  color: white;
}

.btn-outline {
  background: white;
  color: #1890ff;
  border: 1px solid #1890ff;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 14px;
  width: auto;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1890ff;
}

.user-detail h3 {
  font-size: 18px;
  font-weight: 600;
}

.user-detail p {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

/* 绑定页面 */
.bind-page {
  text-align: center;
  padding: 60px 20px;
}

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

.bind-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bind-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

/* 底部导航 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background: white;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 100;
}

.tab-item {
  flex: 1;
  padding: 10px 0 6px;
  text-align: center;
  cursor: pointer;
  color: #999;
  font-size: 11px;
  transition: color 0.2s;
}

.tab-item.active {
  color: #1890ff;
}

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

/* 空状态 */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty .icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* 加载 */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* 留白 */
.bottom-spacer {
  height: 60px;
}

/* 消息列表 */
.msg-item {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.msg-item:last-child {
  border-bottom: none;
}

.msg-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.msg-time {
  font-size: 12px;
  color: #bbb;
}

.msg-content {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}
