/* ===== 历史计划数据页样式 ===== */

/* 顶部导航 */
.ph-topnav { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.ph-topnav.pl5 { background: linear-gradient(135deg, #e65100, #f4511e); }
.ph-topnav.fc3dpl3 { background: linear-gradient(135deg, #f57f17, #ffa000); }
.ph-topnav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.ph-nav-link { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: bold; transition: color 0.2s; }
.ph-nav-link:hover { color: #fff; }
.ph-nav-title { color: #fff; font-size: 18px; font-weight: bold; letter-spacing: 2px; }

/* 统计概览 */
.ph-stats { max-width: 1200px; margin: 16px auto; display: flex; gap: 12px; padding: 0 20px; }
.ph-stat-card { flex: 1; background: #fff; border-radius: 10px; padding: 18px 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; }
.ph-stat-card:hover { transform: translateY(-2px); }
.ph-stat-num { font-size: 30px; font-weight: 900; margin-bottom: 2px; }
.ph-stat-label { font-size: 12px; color: #888; }
.ph-stat-card.total .ph-stat-num { color: #333; }
.ph-stat-card.fushi .ph-stat-num { color: #e53935; }
.ph-stat-card.danma .ph-stat-num { color: #ff9800; }
.ph-stat-card.select .ph-stat-num { color: #4caf50; }

/* 期数筛选 */
.ph-filter { max-width: 1200px; margin: 0 auto; padding: 0 20px 16px; display: flex; gap: 8px; }

/* 列表容器 */
.ph-list { max-width: 1200px; margin: 0 auto 20px; padding: 0 20px; }

/* 期号卡片 */
.ph-card { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; transition: box-shadow 0.2s; }
.ph-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ph-card.pending { border: 2px dashed #ff9800; background: #fffdf5; }

/* 卡片头部 */
.ph-card-header { display: flex; align-items: center; padding: 14px 20px; cursor: pointer; transition: background 0.2s; gap: 12px; }
.ph-card-header:hover { background: #fafafa; }
.ph-card.pending .ph-card-header { background: transparent; }
.ph-card.pending .ph-card-header:hover { background: #fff8e1; }
.ph-issue { font-weight: bold; color: #333; font-size: 14px; min-width: 110px; white-space: nowrap; }
.ph-time { font-size: 12px; color: #aaa; min-width: 90px; }
.ph-balls { display: flex; gap: 5px; align-items: center; }
.ph-ball-sm { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: bold; color: #fff; background: #e53935; }
.ph-ball-sm.pl5 { background: #ff5722; }
.ph-ball-sm.fc3dpl3 { background: #ffa000; color: #7c5200; }
.ph-form { font-size: 12px; min-width: 40px; }
.ph-form .z6 { color: #4caf50; font-weight: bold; }
.ph-form .z3 { color: #e53935; font-weight: bold; }
.ph-form .bz { color: #9c27b0; font-weight: bold; }
.ph-score { margin-left: auto; font-size: 13px; font-weight: bold; white-space: nowrap; }
.ph-score .win { color: #4caf50; }
.ph-score .low { color: #ff9800; }
.ph-score .lose { color: #e53935; }
.ph-score .pending-tag { color: #ff9800; font-size: 14px; }
.ph-toggle { font-size: 11px; color: #ccc; transition: transform 0.3s; margin-left: 4px; }
.ph-toggle.open { transform: rotate(180deg); }

/* 卡片展开内容 */
.ph-card-body { display: none; border-top: 1px solid #f0f0f0; padding: 12px 20px; }
.ph-card-body.show { display: block; }
.ph-sec-title { font-size: 13px; font-weight: bold; color: #555; padding: 8px 0 6px; border-bottom: 1px dashed #eee; margin-bottom: 6px; }
.ph-sec-title .badge { display: inline-block; background: #e53935; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; margin-right: 6px; }
.ph-sec-title .badge.pl5 { background: #ff5722; }
.ph-sec-title .badge.fc3dpl3 { background: #ffa000; color: #7c5200; }

/* 计划行 */
.ph-plan-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8f8f8; gap: 10px; }
.ph-plan-row:last-child { border-bottom: none; }
.ph-plan-icon { font-size: 15px; flex-shrink: 0; }
.ph-plan-label { font-size: 13px; font-weight: bold; color: #555; min-width: 90px; flex-shrink: 0; }
.ph-plan-code { flex: 1; font-family: 'Courier New', Consolas, monospace; font-size: 12px; color: #444; word-break: break-all; line-height: 1.6; }
.ph-plan-status { font-size: 12px; font-weight: bold; white-space: nowrap; padding: 2px 10px; border-radius: 12px; flex-shrink: 0; }
.ph-plan-status.win { color: #4caf50; background: #e8f5e9; }
.ph-plan-status.lose { color: #e53935; background: #ffebee; }
.ph-plan-status.pend { color: #ff9800; background: #fff3e0; }
.ph-plan-status.hit { color: #2196f3; background: #e3f2fd; }

/* 响应式 */
@media (max-width: 768px) {
  .ph-stats { flex-wrap: wrap; gap: 8px; }
  .ph-stat-card { min-width: calc(50% - 8px); padding: 14px 8px; }
  .ph-stat-num { font-size: 24px; }
  .ph-card-header { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .ph-issue { min-width: auto; font-size: 13px; }
  .ph-time { display: none; }
  .ph-balls { min-width: auto; }
  .ph-plan-row { flex-wrap: wrap; }
  .ph-plan-code { width: 100%; margin-top: 2px; }
  .ph-topnav-inner { padding: 12px 14px; }
  .ph-nav-title { font-size: 15px; }
  .ph-filter { flex-wrap: wrap; }
}
