/* 通用样式 - 所有页面共用 */
* { -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f5f7;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
}

/* iOS 状态栏 */
.ios-status-bar {
  height: 54px;
  padding: 18px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
  position: relative;
  z-index: 50;
}
.ios-status-bar .time { letter-spacing: -0.2px; }
.ios-status-bar .right { display: flex; gap: 6px; align-items: center; }

/* 灵动岛 */
.dynamic-island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 60;
}

/* iOS 底部 Home Indicator */
.home-indicator {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  background: #1c1c1e;
  border-radius: 3px;
  z-index: 60;
}

/* 底部 Tab Bar */
.tab-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 0 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  z-index: 40;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px 0;
}
.tab-item i { font-size: 22px; }
.tab-item.active { color: #7C3AED; }

/* 页面主容器（中间可滚动区域） */
.page-scroll {
  position: absolute;
  top: 54px; bottom: 0;
  left: 0; right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page-scroll.with-tab { bottom: 83px; }
.page-scroll::-webkit-scrollbar { display: none; }

/* 通用按钮 */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  color: #fff;
  border-radius: 14px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,0.5);
  border: none;
}
.btn-secondary {
  background: #fff;
  color: #7C3AED;
  border: 1px solid #E9D5FF;
  border-radius: 14px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* 顶部导航栏（非首页用） */
.nav-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.nav-bar .title { font-size: 17px; font-weight: 600; }
.nav-bar .back {
  position: absolute; left: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #1c1c1e; font-size: 20px;
}
.nav-bar .action {
  position: absolute; right: 16px;
  font-size: 15px; color: #7C3AED;
}

/* 徽章 */
.badge-group {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-primary { background: #F3E8FF; color: #7C3AED; }
.badge-gold { background: #FEF3C7; color: #B45309; }
.badge-green { background: #D1FAE5; color: #059669; }
.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-blue { background: #DBEAFE; color: #2563EB; }

/* 输入 */
.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}
.form-input:focus { border-color: #7C3AED; }
.form-label {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 6px;
  font-weight: 500;
}

/* 分隔符 */
.hr { height: 0.5px; background: #E5E7EB; }
