/* =============================================
   猎鹰管理系统 - 浅色沙特风格主题
   Light Saudi Style - Black · Green · Gold
   ============================================= */

:root {
  /* 主色调 */
  --gold:         #C9920A;
  --gold-light:   #E8B931;
  --gold-dark:    #A07208;
  --gold-bg:      #FDF6E3;

  --green:        #1A6B3A;
  --green-mid:    #228B4E;
  --green-light:  #2EAD65;
  --green-bg:     #EBF7F0;

  --black:        #1A1A1A;
  --black-mid:    #2C2C2C;

  /* 背景层 */
  --bg-page:      #F5F0E8;   /* 沙漠米色主背景 */
  --bg-card:      #FFFFFF;
  --bg-section:   #FAF7F2;
  --bg-input:     #F7F4EE;

  /* 边框 */
  --border:       #E8DFC8;
  --border-mid:   #D4C89A;

  /* 文字 */
  --text-primary: #1A1A1A;
  --text-second:  #4A4A4A;
  --text-muted:   #8A8A8A;
  --text-hint:    #B0A890;
  --text-white:   #FFFFFF;

  /* 渐变 */
  --gold-gradient:  linear-gradient(135deg, #E8B931 0%, #C9920A 60%, #A07208 100%);
  --green-gradient: linear-gradient(135deg, #2EAD65 0%, #1A6B3A 100%);
  --hero-gradient:  linear-gradient(160deg, #1A6B3A 0%, #0F4225 60%, #1A1A1A 100%);

  /* 阴影 */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-gold:  0 4px 20px rgba(201,146,10,0.20);
  --shadow-green: 0 4px 20px rgba(26,107,58,0.18);

  /* 尺寸 */
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    26px;
  --nav-height:   68px;
  --header-height:56px;
}

/* ========== Reset ========== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html,body {
  height:100%; width:100%; overflow:hidden;
  font-family:-apple-system,"PingFang SC","SF Pro Display","Helvetica Neue","Microsoft YaHei",sans-serif;
  background:#E8E0D0;
  color:var(--text-primary);
}

/* ========== App Shell ========== */
#app {
  width:100%; height:100%;
  display:flex; flex-direction:column;
  max-width:430px; margin:0 auto;
  background:var(--bg-page);
  box-shadow:0 0 60px rgba(0,0,0,0.25);
  position:relative; overflow:hidden;
}

/* ========== 页面层 ========== */
.page {
  position:absolute;
  top:0; left:0; right:0;
  bottom:var(--nav-height);
  overflow-y:auto; overflow-x:hidden;
  display:none; flex-direction:column;
  -webkit-overflow-scrolling:touch;
  background:var(--bg-page);
  max-width: 420px;
  margin: 0 auto;
}
#app {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.page.active { display:flex; }
.page-content { flex:1; padding-bottom:calc(var(--nav-height) + 16px); }

/* ========== 状态栏 ========== */
.status-bar {
  height:22px; min-height:22px; flex-shrink:0;
  background:var(--green);
  display:flex; align-items:center; justify-content:center;
  gap:6px; font-size:10px; color:rgba(255,255,255,.7);
}
.status-bar .dot {
  width:6px; height:6px; background:#7FE0A0;
  border-radius:50%; animation:blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ========== 底部导航 ========== */
#nav-bar {
  position:fixed;
  bottom:0; left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:420px;
  height:var(--nav-height);
  background:var(--bg-card);
  display:flex; align-items:center;
  border-top:1.5px solid var(--border);
  z-index:200;
  box-shadow:0 -4px 20px rgba(0,0,0,0.08);
}
.nav-item {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:4px; cursor:pointer; padding:6px 0;
  transition:all .2s;
}
.nav-icon { font-size:22px; color:var(--text-muted); transition:all .2s; }
.nav-label { font-size:10px; color:var(--text-muted); font-weight:500; }
.nav-item.active .nav-icon { color:var(--green); }
.nav-item.active .nav-label { color:var(--green); font-weight:700; }

.nav-center {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; cursor:pointer;
}
.nav-center-btn {
  width:52px; height:52px;
  background:var(--green-gradient);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-green);
  margin-top:-18px; transition:all .2s;
  border:3px solid var(--bg-page);
}
.nav-center-btn i { font-size:22px; color:#fff; }
.nav-center-btn:active { transform:scale(.92); }
.nav-center .nav-label { font-size:10px; color:var(--text-muted); margin-top:3px; }
.nav-center.active .nav-label { color:var(--green); font-weight:700; }

/* ========== Hero区域（首页顶部） ========== */
.hero {
  background:var(--hero-gradient);
  padding:20px 20px 28px;
  position:relative; overflow:hidden; flex-shrink:0;
}
.lang-switch-btn {
  position: absolute;
  top: 58px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all .3s ease;
}
.lang-switch-btn:hover {
  background: rgba(255,255,255,.25);
}
.lang-switch-btn i {
  font-size: 14px;
}
.notif-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s ease;
}
.notif-btn:hover {
  background: rgba(255,255,255,.25);
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #e74c3c;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.lang-menu {
  position: fixed;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 6px;
  z-index: 9999;
  min-width: 140px;
}
.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease;
  font-size: 13px;
  color: var(--text-primary);
}
.lang-menu-item:hover {
  background: var(--bg-page);
}
.lang-flag {
  width: 24px;
  height: 24px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.hero::before {
  content:'';
  position:absolute; top:-60px; right:-40px;
  width:240px; height:240px;
  background:radial-gradient(circle,rgba(201,146,10,.18) 0%,transparent 65%);
  border-radius:50%;
}
.hero::after {
  content:'FALCON';
  position:absolute; right:16px; bottom:-14px;
  font-size:76px; font-weight:900; letter-spacing:6px;
  color:rgba(255,255,255,.04); pointer-events:none;
}
.hero-greeting { color:rgba(255,255,255,.6); font-size:13px; margin-bottom:4px; }
.hero-name {
  color:#fff; font-size:26px; font-weight:700;
  margin-bottom:18px; text-shadow:0 2px 8px rgba(0,0,0,.3);
}
.hero-stats { display:flex; gap:28px; }
.hero-stat .num { color:var(--gold-light); font-size:26px; font-weight:800; line-height:1; }
.hero-stat .lbl { color:rgba(255,255,255,.5); font-size:11px; margin-top:4px; }

/* ========== 子页面 Header ========== */
.sub-header {
  height:var(--header-height); min-height:var(--header-height);
  flex-shrink:0;
  background:var(--bg-card);
  display:flex; align-items:center;
  padding:0 16px; gap:12px;
  border-bottom:1.5px solid var(--border);
  position:sticky; top:0; z-index:50;
  box-shadow:var(--shadow-sm);
}
.back-btn { color:var(--green); font-size:18px; cursor:pointer; }
.sub-title { color:var(--text-primary); font-size:17px; font-weight:700; flex:1; }
.sub-action { color:var(--green); font-size:14px; cursor:pointer; }

/* ========== 卡片 ========== */
.card {
  background:var(--bg-card);
  border-radius:var(--radius-lg);
  margin:10px 16px 0;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  overflow:hidden;
}

/* ========== 公告条 ========== */
.notice-bar {
  display:flex; align-items:center; gap:8px;
  background:#FFFBF0;
  border:1px solid #EDD97A;
  border-radius:10px;
  padding:10px 14px; margin:12px 16px 0;
}
.notice-bar i { color:var(--gold); font-size:14px; flex-shrink:0; }
.notice-bar span { font-size:12px; color:var(--text-second); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ========== 快捷功能网格 ========== */
.quick-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:12px; padding:14px 16px;
}
.quick-item {
  display:flex; flex-direction:column;
  align-items:center; gap:7px; cursor:pointer;
}
.quick-icon {
  width:56px; height:56px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; transition:all .25s;
  position:relative; overflow:hidden;
}
.quick-icon::before {
  content:''; position:absolute; inset:0;
  border-radius:18px; padding:1.5px;
  background:linear-gradient(135deg, rgba(255,255,255,.4) 0%, transparent 50%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:destination-out; mask-composite:exclude;
  pointer-events:none;
}
.quick-icon:active { transform:scale(.9); }
.qi-gold   { background:var(--gold-gradient);  box-shadow:0 4px 16px rgba(201,146,10,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.qi-green  { background:var(--green-gradient); box-shadow:0 4px 16px rgba(26,107,58,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.qi-light  {
  background:var(--bg-card);
  border:1.5px solid var(--border-mid);
  box-shadow:var(--shadow-sm);
}
.qi-light i { color:var(--green); }
/* 统一白色图标在渐变背景上 */
.qi-gold i, .qi-green i { color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.15); }
.qi-dark { background:linear-gradient(145deg, #2a2a2a, #1a1a1a); box-shadow:0 4px 12px rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.1); }
.qi-dark i { color:#fff; }
.qi-dark i { color:var(--green); }

.quick-label { font-size:11px; color:var(--text-second); font-weight:500; }

/* ========== section标题 ========== */
.section-title {
  font-size:15px; font-weight:700;
  color:var(--text-primary);
  padding:14px 16px 8px;
  display:flex; align-items:center; gap:8px;
}
.section-title i { color:var(--green); }
.section-title::after {
  content:''; flex:1; height:1.5px;
  background:linear-gradient(90deg,var(--border),transparent);
  margin-left:6px;
}

/* ========== 猎鹰卡片 ========== */
.eagle-card {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px;
  background:var(--bg-card);
  border-radius:var(--radius);
  margin:6px 16px;
  cursor:pointer;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  transition:all .25s;
}
.eagle-card:active { transform:translateX(3px); box-shadow:var(--shadow-md); }
.eagle-avatar {
  width:50px; height:50px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0;
  box-shadow:var(--shadow-gold);
}
.eagle-info { flex:1; }
.eagle-name { font-size:15px; font-weight:600; color:var(--text-primary); margin-bottom:3px; }
.eagle-ring { font-size:12px; color:var(--text-muted); }

/* ========== 数据卡片 ========== */
.data-card {
  background:var(--bg-card);
  border-radius:var(--radius);
  padding:14px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  position:relative; overflow:hidden;
}
.data-card::before {
  content:''; position:absolute;
  top:0; left:0; right:0; height:3px;
  background:var(--gold-gradient);
}
.data-card-value {
  font-size:28px; font-weight:800;
  color:var(--gold);
}
.data-card-label { font-size:12px; color:var(--text-muted); margin-top:4px; }

/* ========== 标签 ========== */
.tag {
  display:inline-flex; align-items:center;
  padding:3px 10px; border-radius:20px;
  font-size:11px; font-weight:600;
}
.tag-gold   { background:#FDF0D0; color:var(--gold-dark);  border:1px solid #EDD97A; }
.tag-green  { background:#E5F5EC; color:var(--green);      border:1px solid #A8D8B9; }
.tag-black  { background:#F2F0EC; color:var(--text-second);border:1px solid var(--border); }
.tag-red    { background:#FEE8E8; color:#C0392B;           border:1px solid #F5AEAD; }
.tag-orange { background:#FFF5E6; color:#E67E22;           border:1px solid #F5B078; }

/* 健康状态选项 */
.status-option {
  cursor: pointer;
}
.status-option input[type="radio"] {
  display: none;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.status-option input[type="radio"]:checked + .status-badge {
  border-width: 2px;
  transform: scale(1.05);
}
.status-badge.healthy {
  background: linear-gradient(135deg, #E5F5EC, #D1EDC4);
  color: var(--green);
}
.status-option input[type="radio"]:checked + .status-badge.healthy {
  border-color: var(--green);
}
.status-badge.warning {
  background: linear-gradient(135deg, #FFF5E6, #FFE4C4);
  color: #E67E22;
}
.status-option input[type="radio"]:checked + .status-badge.warning {
  border-color: #E67E22;
}
.status-badge.danger {
  background: linear-gradient(135deg, #FEE8E8, #FCD5CE);
  color: #C0392B;
}
.status-option input[type="radio"]:checked + .status-badge.danger {
  border-color: #C0392B;
}

/* 拍照上传区域 */
#health-photo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-upload-box {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-section);
}
.photo-upload-box:hover {
  border-color: var(--gold);
  background: #FFF9E6;
}
.upload-icon {
  font-size: 24px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.upload-text {
  font-size: 11px;
  color: var(--text-muted);
}
.photo-preview-box {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-remove {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #C0392B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.photo-remove:hover {
  opacity: 1;
}

/* 历届冠军列表项 */
.champion-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.champion-item:hover {
  background-color: rgba(201, 146, 10, 0.05);
  transform: translateX(4px);
}

.champion-item:active {
  transform: scale(0.99);
}

/* 报名参赛猎鹰选择项 */
.join-falcon-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--bg-section);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
}

.join-falcon-item:hover:not(.disabled) {
  background: rgba(201, 146, 10, 0.05);
  border-color: rgba(201, 146, 10, 0.2);
}

.join-falcon-item.selected {
  background: rgba(201, 146, 10, 0.1);
  border-color: var(--gold);
}

.join-falcon-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.join-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.join-checkbox.checked {
  background: var(--gold-gradient);
  border-color: var(--gold);
}

.join-checkbox.checked i {
  color: #fff;
  font-size: 12px;
}

.join-disabled-hint {
  position: absolute;
  right: 40px;
  font-size: 10px;
  color: #E67E22;
  background: rgba(230, 126, 34, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========== 按钮 ========== */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:6px; padding:10px 20px; border-radius:var(--radius);
  font-size:14px; font-weight:600; cursor:pointer;
  border:none; transition:all .2s;
}
.btn-gold   { background:var(--gold-gradient); color:#fff; box-shadow:var(--shadow-gold); }
.btn-gold:active { transform:scale(.97); }
.btn-green  { background:var(--green-gradient); color:#fff; box-shadow:var(--shadow-green); }
.btn-outline { background:transparent; border:1.5px solid var(--green); color:var(--green); }
.btn-full   { width:100%; }
.btn-sm     { padding:7px 14px; font-size:12px; border-radius:9px; }

/* ========== 列表项 ========== */
.list-item {
  display:flex; align-items:center; padding:13px 16px;
  gap:12px; border-bottom:1px solid var(--border);
  cursor:pointer; transition:background .15s;
}
.list-item:hover { background:#FAFAF7; }
.list-item:last-child { border-bottom:none; }
.list-icon {
  width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.list-content { flex:1; }
.list-title { font-size:14px; font-weight:500; color:var(--text-primary); }
.list-desc  { font-size:12px; color:var(--text-muted); margin-top:2px; }
.list-arrow { color:var(--text-hint); font-size:12px; }

/* ========== 地图容器 ========== */
.map-container { flex:1; position:relative; background:#E8E4DC; }
#map { width:100%; height:100%; }
.map-overlay {
  position:absolute; bottom:16px; left:14px; right:14px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-radius:var(--radius-lg);
  padding:14px; border:1px solid var(--border);
  z-index:1000; box-shadow:var(--shadow-md);
}
.map-info { display:flex; justify-content:space-between; align-items:center; }
.map-stat { text-align:center; }
.map-stat-value { font-size:20px; font-weight:700; color:var(--green); }
.map-stat-label { font-size:10px; color:var(--text-muted); margin-top:2px; }

/* ========== 弹窗 ========== */
.modal {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.5);
  display:none; align-items:flex-end; justify-content:center; z-index:1000;
}
.modal.show { display:flex; }
.modal-content {
  width:100%; max-width:430px; max-height:85vh;
  background:var(--bg-card);
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  overflow:hidden;
  border-top:3px solid var(--gold);
  box-shadow:0 -8px 40px rgba(0,0,0,.15);
}
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--border);
  background:var(--bg-section);
}
.modal-title { font-size:16px; font-weight:700; color:var(--text-primary); }
.modal-close { color:var(--text-muted); font-size:20px; cursor:pointer; }
.modal-body { padding:20px; max-height:70vh; overflow-y:auto; }

/* ========== 表单 ========== */
.form-group { margin-bottom:14px; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text-second); margin-bottom:7px; }
.form-input {
  width:100%; padding:12px 14px;
  background:var(--bg-input);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  color:var(--text-primary); font-size:14px; transition:all .2s;
}
.form-input:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(26,107,58,.1); }
.form-input::placeholder { color:var(--text-hint); }

/* ========== Toast ========== */
#toast {
  position:fixed; top:80px; left:50%;
  transform:translateX(-50%) translateY(-16px);
  background:var(--black-mid); color:#fff;
  padding:11px 22px; border-radius:22px;
  font-size:13px; opacity:0; pointer-events:none;
  transition:all .25s; z-index:3000;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}
#toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ========== 玻璃卡片 ========== */
.glass-card {
  background:var(--bg-card);
  border-radius:var(--radius-lg);
  padding:16px; margin:12px 16px 0;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-mid); border-radius:2px; }

/* ========== 空状态 ========== */
.empty-state { text-align:center; padding:50px 20px; }
.empty-state i { font-size:44px; color:var(--text-hint); margin-bottom:14px; display:block; }
.empty-state p { font-size:14px; color:var(--text-muted); }

/* ========== 分速计算器 ========== */
.calc-card {
  background:var(--bg-card); border-radius:var(--radius-lg);
  padding:18px 16px; margin:10px 16px;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.calc-result {
  text-align:center; padding:18px;
  background:var(--green-bg);
  border-radius:var(--radius); margin-top:12px;
  border:1px solid #A8D8B9;
}
.calc-val { font-size:48px; font-weight:800; color:var(--green); font-family:monospace; }
.calc-unit { font-size:13px; color:var(--text-muted); margin-top:4px; }

/* ========== 训练记录 ========== */
.train-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:12px 16px; }
.train-stat {
  background:var(--bg-card); border-radius:var(--radius);
  padding:13px; text-align:center;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.train-stat-val { font-size:22px; font-weight:700; color:var(--green); }
.train-stat-lbl { font-size:10px; color:var(--text-muted); margin-top:4px; }

.train-item {
  margin:0 16px 10px; background:var(--bg-card);
  border-radius:var(--radius); padding:13px;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.train-item-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.train-item-date { font-size:13px; font-weight:600; color:var(--text-primary); }
.train-item-meta { display:flex; gap:14px; flex-wrap:wrap; }
.train-meta-item { font-size:12px; color:var(--text-muted); }
.train-meta-item span { color:var(--green); font-weight:600; }

/* ========== 排行榜 ========== */
.rank-card {
  background:var(--bg-card); border-radius:var(--radius-lg);
  margin:0 16px 12px; border:1px solid var(--border);
  overflow:hidden; box-shadow:var(--shadow-sm);
}
.rank-header {
  background:var(--gold-gradient); padding:12px 16px;
  display:flex; justify-content:space-between; align-items:center;
}
.rank-header-title { font-size:14px; font-weight:700; color:#fff; }
.rank-row {
  display:flex; align-items:center;
  padding:11px 16px; border-bottom:1px solid var(--border); gap:12px;
}
.rank-row:last-child { border-bottom:none; }
.rank-pos {
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0;
}
.rank-1 { background:var(--gold-gradient); color:#fff; }
.rank-2 { background:linear-gradient(135deg,#C0C0C0,#909090); color:#fff; }
.rank-3 { background:linear-gradient(135deg,#CD7F32,#A0522D); color:#fff; }
.rank-n { background:var(--bg-section); border:1px solid var(--border); color:var(--text-muted); }
.rank-info { flex:1; }
.rank-name { font-size:13px; font-weight:600; color:var(--text-primary); }
.rank-detail { font-size:11px; color:var(--text-muted); margin-top:2px; }
.rank-score { font-size:16px; font-weight:700; color:var(--gold); }

/* ========== 证书 ========== */
.cert-card {
  margin:0 16px 12px; background:var(--bg-card);
  border-radius:var(--radius-lg); overflow:hidden;
  border:1.5px solid #EDD97A; box-shadow:var(--shadow-gold);
}
.cert-banner {
  background:var(--gold-gradient); padding:18px 16px;
  text-align:center;
}
.cert-title { font-size:16px; font-weight:700; color:#fff; }
.cert-sub   { font-size:12px; color:rgba(255,255,255,.75); margin-top:4px; }
.cert-body  { padding:14px 16px; }

/* ========== 天气 ========== */
.weather-bar {
  display:flex; align-items:center; gap:10px;
  background:var(--green-bg); border:1.5px solid #A8D8B9;
  border-radius:12px; padding:10px 14px;
  margin:10px 16px 0; cursor:pointer;
}
.weather-icon { font-size:24px; }
.weather-info { flex:1; }
.weather-temp { font-size:20px; font-weight:700; color:var(--green); }
.weather-detail { font-size:11px; color:var(--text-muted); margin-top:2px; }
.weather-badge {
  font-size:11px; background:var(--gold-bg);
  color:var(--gold-dark); padding:4px 9px;
  border-radius:7px; border:1px solid var(--border-mid);
  font-weight:600;
}

.weather-hero {
  background:linear-gradient(160deg,var(--green) 0%,#0F4225 100%);
  margin:12px 16px; border-radius:var(--radius-lg);
  padding:22px; text-align:center;
}
.weather-big-temp { font-size:64px; font-weight:800; color:var(--gold-light); line-height:1; }
.weather-extra { display:flex; justify-content:center; gap:22px; margin-top:16px; }
.weather-extra-item { text-align:center; }
.weather-extra-val { font-size:16px; font-weight:600; color:#fff; }
.weather-extra-lbl { font-size:10px; color:rgba(255,255,255,.55); margin-top:2px; }

.fly-advice {
  margin:0 16px 10px; border-radius:12px;
  padding:13px 14px; display:flex; gap:12px; align-items:center;
}
.fly-advice.good   { background:var(--green-bg); border:1.5px solid #A8D8B9; }
.fly-advice.medium { background:var(--gold-bg);  border:1.5px solid var(--border-mid); }
.fly-advice.bad    { background:#FEE8E8;          border:1.5px solid #F5AEAD; }
.fly-advice-icon { font-size:28px; }
.fly-advice-title { font-size:14px; font-weight:600; color:var(--text-primary); }
.fly-advice-desc  { font-size:12px; color:var(--text-muted); margin-top:4px; }

.forecast-item {
  display:flex; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--border);
}
.forecast-item:last-child { border-bottom:none; }
.forecast-day  { width:50px; font-size:13px; color:var(--text-primary); font-weight:500; }
.forecast-icon { width:30px; text-align:center; font-size:18px; }
.forecast-desc { flex:1; font-size:12px; color:var(--text-muted); }
.forecast-temp { font-size:13px; color:var(--green); font-weight:600; }

/* ========== 个人中心 ========== */
.profile-hero {
  background:var(--hero-gradient);
  padding:28px 20px 20px; text-align:center;
  border-bottom:1px solid var(--border);
}
.profile-avatar {
  width:80px; height:80px; border-radius:50%;
  background:var(--gold-gradient);
  margin:0 auto 12px;
  display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:700; color:#fff;
  border:3px solid rgba(255,255,255,.3);
  box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.profile-name { font-size:20px; font-weight:700; color:#fff; }
.profile-id   { font-size:12px; color:rgba(255,255,255,.5); margin-top:4px; }
.profile-badges { display:flex; justify-content:center; gap:8px; margin-top:12px; }
.profile-stats {
  display:grid; grid-template-columns:repeat(3,1fr);
  text-align:center; padding:14px 0;
  border-bottom:1px solid var(--border);
  background:var(--bg-card);
}
.profile-stat-val { font-size:22px; font-weight:700; color:var(--green); }
.profile-stat-lbl { font-size:11px; color:var(--text-muted); margin-top:3px; }

.menu-group {
  background:var(--bg-card); border-radius:var(--radius-lg);
  margin:10px 16px; overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.menu-group-title {
  font-size:11px; color:var(--text-muted);
  padding:10px 16px 4px;
  text-transform:uppercase; letter-spacing:.5px;
  background:var(--bg-section);
  border-bottom:1px solid var(--border);
}
.menu-item {
  display:flex; align-items:center;
  padding:13px 16px; border-bottom:1px solid var(--border);
  cursor:pointer; gap:12px; transition:background .15s;
}
.menu-item:hover { background:var(--bg-section); }
.menu-item:last-child { border-bottom:none; }
.menu-icon {
  width:36px; height:36px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.menu-icon-gold  { background:var(--gold-bg); }
.menu-icon-gold  i { color:var(--gold); }
.menu-icon-green { background:var(--green-bg); }
.menu-icon-green i { color:var(--green); }
.menu-icon-red   { background:#FEE8E8; }
.menu-icon-red   i { color:#C0392B; }
.menu-text { flex:1; }
.menu-title { font-size:14px; color:var(--text-primary); font-weight:500; }
.menu-sub   { font-size:11px; color:var(--text-muted); margin-top:2px; }
.menu-arrow { color:var(--text-hint); font-size:12px; }
.menu-badge {
  background:var(--gold); color:#fff;
  font-size:10px; font-weight:700;
  padding:2px 7px; border-radius:10px;
}

/* ========== 开关 ========== */
.toggle-switch {
  width:44px; height:24px; background:var(--border-mid);
  border-radius:12px; position:relative; cursor:pointer; transition:.3s;
}
.toggle-switch.on { background:var(--green); }
.toggle-switch::after {
  content:''; position:absolute;
  top:3px; left:3px;
  width:18px; height:18px; background:#fff;
  border-radius:50%; transition:.3s;
  box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch.on::after { left:23px; }

/* ========== 健康待办 ========== */
.health-todo {
  background:var(--bg-card);
  border:1.5px solid var(--border-mid);
  border-radius:var(--radius);
  margin:0 16px 12px; overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.health-todo-hd {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-bottom:1px solid var(--border);
  background:var(--bg-section);
}
.health-todo-title { font-size:13px; font-weight:600; color:var(--text-primary); }
.health-todo-item {
  display:flex; align-items:center; gap:10px;
  padding:11px 14px; border-bottom:1px solid var(--border); cursor:pointer;
}
.health-todo-item:last-child { border-bottom:none; }
.health-todo-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.dot-urgent { background:#E74C3C; }
.dot-normal { background:var(--gold); }
.health-todo-text { flex:1; font-size:13px; color:var(--text-primary); }
.health-todo-date { font-size:11px; color:var(--text-muted); }

/* ========== 月度概览小格子 ========== */
.monthly-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:0 16px; margin-bottom:12px; }
.monthly-item {
  background:var(--bg-card); border-radius:10px;
  padding:10px 6px; text-align:center;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.monthly-num { font-size:17px; font-weight:700; color:var(--green); }
.monthly-lbl { font-size:10px; color:var(--text-muted); margin-top:3px; }

/* ========== 猎友动态预览 ========== */
.friend-preview-item {
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 16px; border-bottom:1px solid var(--border);
}
.friend-preview-item:last-child { border-bottom:none; }
.friend-avatar {
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:700; flex-shrink:0;
}
.friend-preview-name { font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:3px; }
.friend-preview-text { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.friend-preview-meta { font-size:11px; color:var(--text-hint); margin-top:4px; }

/* ========== 赛场扫描 ========== */
.scan-mode-switch { display:flex; gap:8px; padding:12px 16px; }
.scan-mode-btn {
  flex:1; padding:10px; border-radius:10px;
  text-align:center; font-size:13px; cursor:pointer;
  border:1.5px solid var(--border);
  color:var(--text-muted); background:var(--bg-card);
}
.scan-mode-btn.active {
  border-color:var(--green); color:var(--green);
  background:var(--green-bg); font-weight:600;
}

/* ========== 定时器 ========== */
.timer-card {
  margin:10px 16px; background:var(--bg-card);
  border-radius:var(--radius-lg); padding:18px;
  text-align:center; border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.timer-display {
  font-size:44px; font-weight:700; color:var(--green);
  font-family:monospace; letter-spacing:3px; margin:10px 0;
}
.timer-btns { display:flex; gap:10px; justify-content:center; }

/* ========== 详情Tabs ========== */
.detail-tabs { display:flex; border-bottom:1.5px solid var(--border); background:var(--bg-card); }
.detail-tab {
  flex:1; text-align:center; padding:11px 4px;
  font-size:12px; color:var(--text-muted); cursor:pointer;
  border-bottom:2px solid transparent; transition:all .2s;
}
.detail-tab.active { color:var(--green); border-bottom-color:var(--green); font-weight:700; }
.detail-pane { display:none; padding:14px 16px; }
.detail-pane.active { display:block; }

/* ========== 族谱 ========== */
.pedigree-tree { text-align:center; padding:10px 0; }
.pedigree-node {
  display:inline-block; background:var(--bg-card);
  border:1px solid var(--border); border-radius:8px;
  padding:6px 14px; font-size:12px; color:var(--text-primary); margin:4px;
}
.pedigree-self { background:var(--green-bg); border-color:var(--green); color:var(--green); font-weight:700; }

/* ========== 赛事 Tab ========== */
.race-tabs { display:flex; overflow-x:auto; background:var(--bg-card); border-bottom:1.5px solid var(--border); }
.race-tab {
  padding:12px 14px; font-size:13px; color:var(--text-muted);
  cursor:pointer; border-bottom:2px solid transparent;
  white-space:nowrap; transition:all .2s;
}
.race-tab.active { color:var(--green); border-bottom-color:var(--green); font-weight:700; }

/* ========== section-header ========== */
.section-header { display:flex; align-items:center; justify-content:space-between; padding:12px 16px 6px; }
.section-header-title { font-size:14px; font-weight:600; color:var(--text-primary); display:flex; align-items:center; gap:6px; }
.section-header-more { font-size:12px; color:var(--green); cursor:pointer; font-weight:600; }

/* ========== 语言切换 ========== */
.lang-bar { display:flex; gap:6px; padding:4px 0 0; }
.lang-btn {
  padding:4px 12px; border-radius:16px;
  font-size:11px; cursor:pointer;
  border:1px solid rgba(255,255,255,.25);
  color:rgba(255,255,255,.5); background:transparent;
}
.lang-btn.active { border-color:var(--gold-light); color:var(--gold-light); }

/* ========== 状态栏语言切换 ========== */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}
.lang-switcher .lang-btn {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.6);
  background: transparent;
  transition: all .2s;
}
.lang-switcher .lang-btn:hover {
  background: rgba(255,255,255,.1);
}
.lang-switcher .lang-btn.active {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  font-weight: 600;
}

/* ========== RTL 支持 ========== */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] .status-bar .lang-switcher {
  margin-left: 8px;
  margin-right: auto;
}
html[dir="rtl"] .sub-header {
  flex-direction: row-reverse;
}
html[dir="rtl"] .back-btn {
  transform: rotate(180deg);
}
html[dir="rtl"] .nav-item,
html[dir="rtl"] .nav-center {
  flex-direction: column-reverse;
}
html[dir="rtl"] .pigeon-close {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .pigeon-rank {
  left: auto;
  right: 16px;
}
html[dir="rtl"] .hero::after {
  right: auto;
  left: 16px;
  transform: rotateY(180deg);
}
html[dir="rtl"] .section-title::after {
  margin-left: 0;
  margin-right: 6px;
}
html[dir="rtl"] .section-title i {
  transform: rotateY(180deg);
}
html[dir="rtl"] .eagle-card {
  flex-direction: row-reverse;
}
html[dir="rtl"] .list-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .pigeon-race-card {
  flex-direction: row-reverse;
}
html[dir="rtl"] .pigeon-health-card {
  flex-direction: row-reverse;
}
html[dir="rtl"] .pigeon-progress-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .pigeon-info-grid {
  direction: rtl;
}
html[dir="rtl"] .pigeon-tags {
  flex-direction: row;
}
html[dir="rtl"] .quick-grid {
  direction: rtl;
}
html[dir="rtl"] .nav-center-btn {
  transform: rotateY(180deg);
}

/* ========== 优化：公共间距类 ========== */
.p-12 { padding: 12px; }
.p-14 { padding: 14px; }
.p-16 { padding: 14px 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-14 { padding-top: 14px; padding-bottom: 14px; }
.m-0 { margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ========== 优化：Flex布局类 ========== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }

/* ========== 优化：Grid布局类 ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

/* ========== 优化：文字样式类 ========== */
.text-white { color: #fff; }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-hint { color: var(--text-hint); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ========== 优化：背景样式类 ========== */
.bg-card { background: var(--bg-card); }
.bg-page { background: var(--bg-page); }
.bg-section { background: var(--bg-section); }
.bg-gold { background: var(--gold-gradient); }
.bg-green { background: var(--green-gradient); }

/* ========== 优化：圆角和边框 ========== */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 50%; }
.border-light { border: 1px solid var(--border-light); }
.border-mid { border: 1px solid var(--border-mid); }

/* ========== 优化：阴影 ========== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* ========== 优化：图标容器 ========== */
.icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
}
.icon-box-gold { background: rgba(201,146,10,.15); }
.icon-box-gold i { color: var(--gold); }
.icon-box-green { background: rgba(26,107,58,.15); }
.icon-box-green i { color: var(--green); }

/* ========== 优化：状态标签 ========== */
.status-badge {
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
}
.status-badge-green { background: var(--green); color: #fff; }
.status-badge-gold { background: rgba(201,146,10,.15); color: var(--gold); border: 1px solid var(--gold); }

/* ========== 优化：进度条 ========== */
.progress-bar {
  height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden;
}
.progress-bar-fill { height: 100%; border-radius: 2px; }
.progress-bar-fill-gold { background: var(--gold-gradient); }
.progress-bar-fill-green { background: var(--green-gradient); }

/* ========== 优化：信息项 ========== */
.info-item { padding: 12px 0; border-bottom: 1px dashed var(--border-light); }
.info-item:last-child { border-bottom: none; }
.info-item-label { font-size: 11px; color: var(--text-hint); margin-bottom: 4px; }
.info-item-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ========== 优化：头像容器 ========== */
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.avatar-sm {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}

/* ========== 优化：数字统计 ========== */
.stat-num {
  font-size: 18px; font-weight: 700;
}
.stat-num-gold { color: var(--gold); }
.stat-num-green { color: var(--green); }
.stat-num-primary { color: var(--text-primary); }
.stat-label { font-size: 10px; color: var(--text-hint); margin-top: 2px; }

/* ========== 优化：时间线项 ========== */
.timeline-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border-light);
}
.timeline-item:last-child { border-bottom: none; }

/* ========== 优化：空div分隔 ========== */
.divider { height: 20px; }
.divider-sm { height: 12px; }

/* ========== 猎鹰详情弹窗专用样式 ========== */
.pigeon-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.pigeon-modal.show { display: flex; }
.pigeon-modal-content {
  width: calc(100% - 24px) !important;
  max-width: 380px !important;
  max-height: 88vh !important;
  background: var(--bg-card) !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -12px 48px rgba(0,0,0,.25);
  -webkit-overflow-scrolling: touch;
  margin: 0 12px !important;
  position: relative !important;
}

.pigeon-header {
  background: linear-gradient(160deg, #1A6B3A 0%, #0F4225 50%, #1A1A1A 100%);
  padding: 24px 20px 32px;
  position: relative;
  overflow: hidden;
}
.pigeon-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,107,58,.9) 0%, rgba(15,66,37,.9) 50%, rgba(26,26,26,.95) 100%);
}

.pigeon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.pigeon-close:hover { background: rgba(255,255,255,.25); }
.pigeon-close i { color: #fff; font-size: 14px; }

.pigeon-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #E8B931, #C9920A);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pigeon-photo-wrap {
  text-align: center;
  position: relative;
  z-index: 10;
}
.pigeon-photo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #E8B931, #C9920A);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pigeon-photo i { color: #fff; font-size: 32px; }
.pigeon-photo-edit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.5);
  padding: 4px 0;
  text-align: center;
}
.pigeon-photo-edit i { color: #fff; font-size: 12px; }

.pigeon-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.pigeon-ring {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}

.pigeon-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pigeon-tag {
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.2);
}

.pigeon-body {
  background: var(--bg-page);
  padding: 0 16px;
  padding-bottom: 32px;
}

.pigeon-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: -20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 20;
}
.pigeon-stat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.pigeon-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.pigeon-stat-label {
  font-size: 10px;
  color: var(--text-hint);
  margin-top: 3px;
}

.pigeon-abilities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
}
.pigeon-ability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pigeon-ability-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pigeon-ability-icon.gold { background: rgba(201,146,10,.15); color: var(--gold); }
.pigeon-ability-icon.green { background: rgba(26,107,58,.15); color: var(--green); }
.pigeon-ability-name { font-size: 10px; color: var(--text-hint); }
.pigeon-ability-value { font-size: 15px; font-weight: 700; color: var(--green); }
.pigeon-ability-value.gold { color: var(--gold); }

.pigeon-progress-list { margin-top: 16px; }
.pigeon-progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pigeon-progress-label { font-size: 11px; color: var(--text-hint); width: 36px; }
.pigeon-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.pigeon-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}
.pigeon-progress-fill.gold { background: var(--gold-gradient); }
.pigeon-progress-fill.green { background: var(--green-gradient); }
.pigeon-progress-value {
  font-size: 11px;
  font-weight: 600;
  width: 28px;
  text-align: right;
}
.pigeon-progress-value.green { color: var(--green); }
.pigeon-progress-value.gold { color: var(--gold); }

.pigeon-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pigeon-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pigeon-info-label { font-size: 11px; color: var(--text-hint); }
.pigeon-info-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.pigeon-race-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.pigeon-race-card:last-child { border-bottom: none; }
.pigeon-race-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pigeon-race-icon i {
  font-size: 16px;
}
.pigeon-race-info { 
  flex: 1; 
  min-width: 0;
}
.pigeon-race-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pigeon-race-desc { font-size: 12px; color: var(--text-muted); }
.pigeon-race-result { text-align: right; }
.pigeon-race-rank { font-size: 16px; font-weight: 700; color: var(--gold); }
.pigeon-race-date { font-size: 11px; color: var(--text-muted); }

.pigeon-health-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.pigeon-health-card:last-child { border-bottom: none; }
.pigeon-health-card:hover { background: var(--bg-section); cursor: pointer; }
.pigeon-health-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pigeon-health-info { flex: 1; }
.pigeon-health-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.pigeon-health-desc { font-size: 12px; color: var(--text-muted); }
.pigeon-health-status { font-size: 11px; font-weight: 600; }

.pigeon-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px 16px;
  margin-top: 8px;
}

@media (max-width: 320px) {
  .pigeon-abilities { gap: 2px; }
  .pigeon-ability-icon { width: 36px; height: 36px; font-size: 14px; }
  .pigeon-ability-value { font-size: 13px; }
}

/* ========== 比赛详情弹窗样式 ========== */
.comp-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0,0,0,.6) !important;
  display: none !important;
  align-items: flex-end !important;
  justify-content: center !important;
  z-index: 9999 !important;
}
.comp-modal.show { display: flex; }
.comp-modal-content {
  width: calc(100% - 32px) !important;
  max-width: 400px !important;
  max-height: 85vh !important;
  height: auto !important;
  min-height: auto !important;
  background: var(--bg-card) !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-top: 3px solid var(--green) !important;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2) !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
  margin: 0 16px !important;
  position: relative !important;
  display: block !important;
}

.comp-header {
  background: linear-gradient(135deg, var(--green) 0%, #0F4225 100%);
  padding: 24px 20px;
  position: relative;
  text-align: center;
}

.comp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.comp-close:hover { background: rgba(255,255,255,.25); }
.comp-close i { color: #fff; font-size: 14px; }

.comp-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.comp-sub {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.comp-rank-badge {
  display: inline-block;
  background: linear-gradient(135deg, #E8B931, #C9920A);
  color: #fff;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 700;
}

.comp-body {
  padding: 20px;
}

.comp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.comp-stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.comp-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.comp-stat-value.green { color: var(--green); }
.comp-stat-value.primary { color: var(--text-primary); }
.comp-stat-label {
  font-size: 10px;
  color: var(--text-hint);
  margin-top: 3px;
}

.comp-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.comp-info-item:last-child { border-bottom: none; }
.comp-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-info-content { flex: 1; }
.comp-info-label { font-size: 11px; color: var(--text-hint); }
.comp-info-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* ========== 赛事Tab样式 ========== */
.race-tab-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
.race-tab-item {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}
.race-tab-item.active {
  background: var(--green-gradient);
  color: #fff;
  border-color: var(--green);
}
.race-tab-item:hover:not(.active) {
  border-color: var(--green);
  color: var(--green);
}

/* ========== 比赛卡片样式 ========== */
.race-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: 10px 16px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.race-card:active {
  transform: scale(.98);
}
.race-card-header {
  padding: 16px;
  position: relative;
}
.race-card-header.gold-gradient {
  background: var(--gold-gradient);
}
.race-card-header.green-gradient {
  background: linear-gradient(135deg, var(--green) 0%, #0F4225 100%);
}
.race-card-header.expired {
  background: linear-gradient(135deg, #888 0%, #666 100%);
}
.race-card-badge {
  display: inline-block;
  background: rgba(0,0,0,.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  margin-bottom: 8px;
}
.race-card-badge.expired {
  background: rgba(0,0,0,.4);
}
.race-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.race-card-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.race-card-body {
  padding: 14px 16px;
}
.race-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.race-card-stat {
  flex: 1;
  text-align: center;
}
.race-card-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.race-card-stat-value.green { color: var(--green); }
.race-card-stat-value.primary { color: var(--text-primary); }
.race-card-stat-label {
  font-size: 11px;
  color: var(--text-hint);
  margin-top: 2px;
}

/* ========== 健康详情弹窗 ========== */
.health-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.health-detail-modal.show { display: flex; }
.health-detail-content {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
  -webkit-overflow-scrolling: touch;
}
.health-detail-header {
  background: var(--gold-gradient);
  padding: 20px;
  text-align: center;
  position: relative;
}
.health-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.health-detail-body { padding: 20px; }
.health-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.health-detail-item:last-child { border-bottom: none; }
.health-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.health-detail-info { flex: 1; }
.health-detail-label { font-size: 11px; color: var(--text-hint); margin-bottom: 4px; }
.health-detail-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* ========== 扫描输入框 ========== */
.ring-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ring-input-group .form-input {
  flex: 1;
}
.scan-input-btn {
  width: 48px;
  height: 48px;
  background: var(--green-gradient);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}
.scan-input-btn i { color: #fff; font-size: 18px; }
.scan-input-btn:active { transform: scale(.95); }

/* ========== 追踪页猎鹰选择器 ========== */
.tracking-falcon-selector {
  background: var(--bg-card);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tracking-falcon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.tracking-falcon-item.active {
  background: var(--green-bg);
  border-color: var(--green);
}
.tracking-falcon-item:hover:not(.active) {
  border-color: var(--green);
}
.tracking-falcon-avatar {
  width: 28px;
  height: 28px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.tracking-falcon-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.tracking-falcon-status {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.2); }
}
.tracking-falcon-status.idle { background: var(--gold); animation: none; }

/* ========== 猎鹰档案页首健康概览 ========== */
.pigeon-health-header {
  background: linear-gradient(135deg, #1A6B3A 0%, #0F4225 100%);
  padding: 16px;
  margin: 0 16px 12px;
  border-radius: var(--radius-lg);
}
.pigeon-health-header .pigeon-health-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pigeon-health-header .pigeon-health-title i { color: var(--gold); }
.pigeon-health-stats {
  display: flex;
  gap: 16px;
}
.pigeon-health-stat {
  flex: 1;
  text-align: center;
}
.pigeon-health-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.pigeon-health-num.green { color: #4ADE80; }
.pigeon-health-num.gold { color: var(--gold-light); }
.pigeon-health-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* ========== 响应式调整 ========== */
@media (max-width: 360px) {
  .comp-stats { gap: 6px; }
  .comp-stat-card { padding: 10px 4px; }
  .comp-stat-value { font-size: 16px; }
  .race-card-stats { gap: 8px; }
  .race-card-stat-value { font-size: 16px; }
  .pigeon-stats { gap: 6px; }
  .pigeon-stat-card { padding: 10px 4px; }
  .pigeon-stat-value { font-size: 18px; }
}

/* ========== 导航选择弹窗 ========== */
.nav-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.nav-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.nav-modal {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  z-index: 1001;
  transition: all .3s ease;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
}
.nav-modal.active {
  bottom: 16px;
}
.nav-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.nav-modal-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.nav-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-modal-content {
  padding: 8px;
  max-height: 45vh;
  overflow-y: auto;
}
.nav-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.nav-app-item:active {
  background: var(--bg-card);
  transform: scale(0.98);
}
.nav-app-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}
.nav-app-icon.google {
  background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
}
.nav-app-icon.waze {
  background: linear-gradient(135deg, #25D366, #128C7E);
}
.nav-app-icon.apple {
  background: linear-gradient(135deg, #555555, #333333);
}
.nav-app-icon.here {
  background: linear-gradient(135deg, #00A1E4, #007DC5);
}
.nav-app-info {
  flex: 1;
  min-width: 0;
}
.nav-app-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.nav-app-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-modal-footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
}

/* ========== 赛事规程样式 ========== */
.rule-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.rule-section:last-child {
  border-bottom: none;
}
.rule-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rule-num {
  width: 24px;
  height: 24px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.rule-title span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.rule-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.rule-content ul {
  margin: 0;
  padding-left: 20px;
}
.rule-content ul li {
  margin-bottom: 8px;
}
.rule-content ul li:last-child {
  margin-bottom: 0;
}
.rule-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.rule-content p {
  margin: 0 0 12px 0;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.rule-content p:last-child {
  margin-bottom: 0;
}
.prize-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.prize-item {
  flex: 1;
  background: linear-gradient(135deg, rgba(26,107,58,.08), rgba(26,107,58,.04));
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.prize-rank {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.prize-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.prize-list {
  padding-left: 12px;
}
.prize-list p {
  margin: 6px 0;
  border: none;
  padding: 0;
}
.prize-value {
  color: var(--green);
  font-weight: 600;
}

/* ========== 资质照片样式 ========== */
.cert-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cert-photo-item {
  cursor: pointer;
}
.cert-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.cert-photo-item:active .cert-photo-placeholder {
  transform: scale(.95);
}
.cert-photo-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}
