/* ===== LGSports Chat HTML Cards ===== */
/* 比赛卡片、情报卡片、下单结果卡片 */
/* 来源：原 chat.css 的 HTML 卡片样式部分 */

/* ===== 卡片容器 ===== */
.match-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
}

.match-card-header {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-count {
  color: #667eea;
  font-weight: 700;
}

/* ===== 单场比赛卡片 ===== */
.match-card {
  background: #f7f9ff;
  border: 1px solid #e2e6f5;
  border-radius: 10px;
  padding: 12px 14px;
  transition: box-shadow 0.2s;
}

.match-card:hover {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.12);
}

/* 卡片顶栏：编号 + 联赛 + 时间 */
.match-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}

.match-num {
  background: #667eea;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.match-league {
  color: #555;
  font-weight: 500;
}

.match-time {
  margin-left: auto;
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

/* 对阵双方 */
.match-card-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.team {
  color: #222;
  flex: 1;
}

.team.home {
  text-align: right;
}

.team.away {
  text-align: left;
}

.team small {
  color: #999;
  font-weight: 400;
  font-size: 11px;
}

.vs {
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 赔率区域 */
.odds-section {
  margin-top: 8px;
  border-top: 1px solid #e4e8f5;
  padding-top: 8px;
}

.odds-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.odds-label {
  color: #666;
  min-width: 72px;
  font-size: 12px;
  flex-shrink: 0;
}

.odds-values {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}

.odds-value {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 48px;
  background: #eef1ff;
  color: #444;
}

.odds-value.win  { background: #e8f5e9; color: #2e7d32; }
.odds-value.draw { background: #fff3e0; color: #e65100; }
.odds-value.lose { background: #fce4ec; color: #c62828; }

/* 折叠更多赔率 */
.odds-more {
  margin-top: 6px;
}

.odds-more summary {
  font-size: 12px;
  color: #667eea;
  cursor: pointer;
  padding: 3px 0;
  user-select: none;
}

.odds-more summary:hover {
  text-decoration: underline;
}

.odds-detail {
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== 情报卡片 ===== */
.inform-card {
  background: #f7f9ff;
  border: 1px solid #e2e6f5;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0;
}

.inform-card-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4e8f5;
}

.inform-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 6px 0;
}

.inform-card th {
  background: #eef1ff;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #e2e6f5;
}

.inform-card td {
  padding: 5px 8px;
  border: 1px solid #e8ecf5;
  color: #444;
}

.inform-card tr:nth-child(even) td {
  background: #fafbff;
}

/* ===== 下单结果卡片 ===== */
.order-card {
  background: #f7fff9;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 6px 0;
}

.order-card-header {
  font-weight: 600;
  font-size: 15px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.order-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.order-card-label {
  color: #666;
  min-width: 80px;
}

.order-card-value {
  color: #222;
  font-weight: 600;
}

.order-card-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #667eea;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.order-card-link:hover {
  background: #5568d3;
}

/* ===== Dark Mode Overrides ===== */

body.dark-mode .match-card {
  background: #1e2235;
  border-color: #333;
}

body.dark-mode .match-card:hover {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

body.dark-mode .match-card-header {
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .match-card-top { color: #aaa; }
body.dark-mode .match-time { color: #888; }
body.dark-mode .match-league { color: #aaa; }
body.dark-mode .team { color: #e0e0e0; }
body.dark-mode .team small { color: #888; }

body.dark-mode .odds-section { border-color: #333; }
body.dark-mode .odds-label { color: #aaa; }
body.dark-mode .odds-value { background: #2a2d3e; color: #ddd; }
body.dark-mode .odds-value.win  { background: #1b3a2a; color: #66bb6a; }
body.dark-mode .odds-value.draw { background: #3a2e1b; color: #ffb74d; }
body.dark-mode .odds-value.lose { background: #3a1b1b; color: #ef5350; }

body.dark-mode .inform-card {
  background: #1e2235;
  border-color: #333;
}

body.dark-mode .inform-card-title {
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .inform-card th {
  background: #2a2d3e;
  color: #ddd;
  border-color: #444;
}

body.dark-mode .inform-card td {
  color: #ccc;
  border-color: #444;
}

body.dark-mode .inform-card tr:nth-child(even) td {
  background: #22263a;
}

body.dark-mode .order-card {
  background: #1b2e1b;
  border-color: #2e5a2e;
}

body.dark-mode .order-card-header { color: #66bb6a; }
body.dark-mode .order-card-label { color: #aaa; }
body.dark-mode .order-card-value { color: #ddd; }

/* ===== Responsive: 小屏幕赔率紧凑 ===== */
@media (max-width: 480px) {
  .odds-value {
    min-width: 40px;
    padding: 2px 5px;
    font-size: 11px;
  }
  .odds-label {
    min-width: 56px;
    font-size: 11px;
  }
  .match-card-teams {
    font-size: 14px;
    gap: 6px;
  }
  .match-card {
    padding: 10px 12px;
  }
}
