/* ========== 小程序端专用样式 ========== */

.miniapp-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.miniapp-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 100;
}

.miniapp-content {
  padding: 16px;
  padding-bottom: 72px;
}

.miniapp-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.miniapp-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.miniapp-tab.active {
  color: var(--accent);
}

.miniapp-tab .tab-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

/* 小程序卡片 */
.ma-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.ma-card-header {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.ma-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ma-stat {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.ma-stat .ma-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.ma-stat .ma-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ma-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.ma-list-item:last-child {
  border-bottom: none;
}

.ma-list-item .ma-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ma-list-item .ma-item-title {
  font-weight: 500;
  color: var(--text);
}

.ma-list-item .ma-item-sub {
  font-size: 11px;
  color: var(--text-light);
}

.ma-search {
  margin-bottom: 16px;
}

.ma-search input {
  border-radius: 24px;
  background: var(--bg-white);
  padding: 10px 16px;
  font-size: 13px;
}

.ma-chart {
  height: 180px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 16px;
  border: 1px dashed var(--border);
}

.ma-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 4px;
}

.ma-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 13px;
}
