/* 小程序全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 50px;
}

/* 顶部导航 - 小程序风格 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid #eee;
  z-index: 100;
  max-width: 750px;
  margin: 0 auto;
}

.top-nav .title {
  font-size: 17px;
  font-weight: 500;
  color: #000;
}

.top-nav .back {
  position: absolute;
  left: 10px;
  display: flex;
  align-items: center;
}

.top-nav .icon {
  width: 24px;
  height: 24px;
  color: #576b95;
}

/* 主内容区 */
.main-content {
  margin-top: 44px;
  padding: 10px 15px;
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 栅格布局 */
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.grid-item {
  width: 25%;
  padding: 5px;
}

.grid-item-inner {
  background: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 10px 0;
}

.grid-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f2f2f2;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-icon .icon {
  font-size: 24px;
  color: #576b95;
}

.grid-name {
  font-size: 12px;
  color: #333;
}

/* 列表样式 */
.list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .left {
  display: flex;
  align-items: center;
}

.list-item .icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #576b95;
}

.list-item .arrow {
  color: #c8c8cd;
  font-size: 14px;
}

/* 按钮样式 */
.btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #576b95;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #07c160;
}

.btn-default {
  background: #f2f2f2;
  color: #333;
}

/* 底部导航 - 小程序风格 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  height: 50px;
  border-top: 1px solid #f2f2f2;
  z-index: 100;
  max-width: 750px;
  margin: 0 auto;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 10px;
  text-decoration: none;
}

.tab-item.active {
  color: #576b95;
}

.tab-item .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

.form-control {
  width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 14px;
}

/* 轮播图样式 */
.swiper {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 分段控制器 */
.segmented-control {
  display: flex;
  background: #f7f7f7;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}

.segment {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.segment.active {
  background: #576b95;
  color: #fff;
}

/* 订单卡片 */
.order-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.order-number {
  color: #999;
  font-size: 12px;
}

.order-status {
  color: #576b95;
  font-size: 12px;
}

.order-content {
  margin-bottom: 10px;
}

.order-title {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 500;
}

.order-desc {
  color: #999;
  font-size: 12px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-price {
  color: #ff4d4f;
  font-size: 16px;
  font-weight: 500;
}

/* 步骤条 */
.steps {
  display: flex;
  margin: 15px 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 1;
}

.step:first-child::before {
  left: 50%;
}

.step:last-child::before {
  right: 50%;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  position: relative;
  z-index: 2;
}

.step.active .step-icon {
  background: #576b95;
  color: #fff;
}

.step-text {
  font-size: 12px;
  color: #999;
}

.step.active .step-text {
  color: #576b95;
}

/* 结果页 */
.result {
  text-align: center;
  padding: 30px 15px;
}

.result-icon {
  font-size: 60px;
  color: #07c160;
  margin-bottom: 15px;
}

.result-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.result-desc {
  color: #999;
  margin-bottom: 20px;
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  padding: 15px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f2f2f2;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.user-phone {
  color: #999;
  font-size: 12px;
} 