/**
 * 小店客系统 - 主样式文件
 * 参考 dazi001.com 风格
 */

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

body { 
  background-color: #f7f7f7; 
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
  color: #333;
  padding-bottom: 60px; /* 为底部导航留出空间 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header { 
  background: linear-gradient(135deg, #ff6700 0%, #ff9900 100%); 
  color: #fff; 
  padding: 20px 15px; 
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-grid { 
  padding: 15px; 
  background: #fff; 
  margin-top: 10px;
  border-radius: 0;
}

.profit-card { 
  background: #fff; 
  margin: 10px; 
  padding: 20px 15px; 
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.profit-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.goods-list { 
  padding: 0 10px; 
  margin-bottom: 20px; 
}

.goods-item { 
  background: #fff; 
  margin-bottom: 12px; 
  padding: 12px; 
  border-radius: 12px; 
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.goods-item:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.goods-item img { 
  width: 80px; 
  height: 80px; 
  border-radius: 8px; 
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.goods-info { 
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.goods-title { 
  font-weight: 500; 
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.goods-price {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.goods-commission { 
  color: #ff6700; 
  font-size: 15px;
  font-weight: 500;
}

.section-title {
  padding: 10px;
  font-weight: 500;
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

/* 底部导航样式 - 优化版 */
.van-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(to top, #ffffff 0%, #fafafa 100%);
  border-top: 1px solid #e8e8e8;
  z-index: 100;
  display: flex;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.van-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 0;
  text-align: center;
}

.van-tabbar-item:active {
  background-color: rgba(255, 103, 0, 0.05);
  transform: scale(0.96);
}

.van-tabbar-item--active {
  color: #ff6700;
}

.van-tabbar-item--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, #ff6700 0%, #ff9900 100%);
  border-radius: 0 0 3px 3px;
}

.van-tabbar-item__icon {
  font-size: 20px;
  margin-bottom: 3px;
  display: inline-block;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  text-align: center;
  vertical-align: middle;
  width: auto;
}

.van-tabbar-item__icon.fa {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  line-height: 1;
  width: auto;
  height: auto;
}

.van-tabbar-item--active .van-tabbar-item__icon {
  transform: scale(1.15);
  color: #ff6700;
  filter: drop-shadow(0 2px 4px rgba(255, 103, 0, 0.2));
}

.van-tabbar-item__text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  color: inherit;
}

.van-tabbar-item--active .van-tabbar-item__text {
  font-weight: 600;
  color: #ff6700;
  transform: scale(1.05);
}

/* 收益数字样式 */
.profit-amount {
  font-size: 20px;
  color: #ff6700;
  font-weight: 600;
}

/* Bootstrap行和列样式补充 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 10px;
  padding-right: 10px;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 10px;
  padding-right: 10px;
}

.g-2 {
  gap: 0.5rem;
}

.text-center {
  text-align: center;
}

/* 导航项样式 */
.nav-item {
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-item:hover {
  background-color: #f8f8f8;
}

.nav-item:active {
  background-color: #f0f0f0;
  transform: scale(0.95);
}

.nav-item i {
  color: #ff6700;
  margin-bottom: 5px;
}

.nav-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

