/* ============================================================
   动态落地页统一样式（tagall / match / find）
   各组通用，随当前模板组 CSS 之后加载，保证落地页正文与各模板组兼容。
   ============================================================ */

/* ---------- 通用布局 ---------- */
.page-tagall, .match-detail-page, .find-page { background:#f0f2f5; }
.maindiv { max-width:1200px; margin:0 auto; width:100%; box-sizing:border-box; padding:0 15px; }
.breadcrumbs.local_box {
  background:#fff; border-radius:8px; padding:11px 16px; margin:14px 0 6px;
  font-size:13px; color:#888; box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.breadcrumbs a { color:#555; text-decoration:none; }
.breadcrumbs a:hover { color:#FF914E; }

/* ---------- 比赛行（lm-box / lm-row，各组通用） ---------- */
.lm-box { background:#fff; border-radius:8px; overflow:hidden; box-sizing:border-box; }
.lm-loading, .lm-empty, .lm-tab-empty { text-align:center; color:#999; padding:36px 0; font-size:14px; }
.lm-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:12px 16px 0; border-bottom:1px solid #f0f0f0; }
.lm-tab { padding:7px 16px; font-size:14px; color:#666; cursor:pointer; border-radius:6px 6px 0 0; position:relative; bottom:-1px; user-select:none; transition:all .15s; }
.lm-tab:hover { color:#FF914E; }
.lm-tab.active { color:#FF914E; font-weight:bold; }
.lm-tab.active::after { content:""; position:absolute; left:14px; right:14px; bottom:0; height:2px; background:#FF914E; border-radius:2px; }
.lm-tab-cnt { font-style:normal; font-size:12px; color:#bbb; margin-left:3px; font-weight:normal; }
.lm-tab.active .lm-tab-cnt { color:#FF914E; font-weight:bold; }
.lm-tab.is-empty { color:#c9c9c9; cursor:not-allowed; }
.lm-tab.is-empty:hover { color:#c9c9c9; }
.lm-tab.is-empty .lm-tab-cnt { color:#ddd; }
.lm-tab.is-empty.active::after { display:none; }
.lm-row { display:flex; align-items:center; padding:13px 16px; border-bottom:1px solid #f6f6f6; transition:background .15s; }
.lm-row:hover { background:#fffaf5; }
.lm-row:last-child { border-bottom:none; }
a.lm-row-link { color:inherit; text-decoration:none; width:100%; box-sizing:border-box; cursor:pointer; }
.lm-time-col { width:126px; flex-shrink:0; padding-right:10px; box-sizing:border-box; }
.lm-time { font-size:15px; font-weight:bold; color:#333; line-height:1.2; }
.lm-status { display:inline-block; margin-top:5px; font-size:11px; line-height:1; padding:2px 6px; border-radius:3px; }
.lm-status.live { color:#fff; background:#ff4d4f; }
.lm-status.finished { color:#999; background:#f0f0f0; }
.lm-status.scheduled { color:#FF914E; background:#fff3ea; }
.lm-league { margin-top:5px; font-size:12px; color:#999; line-height:1.35; max-width:118px;
             display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lm-versus { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; gap:10px; }
.lm-team { display:flex; align-items:center; gap:7px; font-size:14px; color:#333; font-weight:500;
           flex:1 1 0; min-width:0; }
.lm-team.home { justify-content:flex-end; text-align:right; }
.lm-team.away { justify-content:flex-start; text-align:left; }
.lm-team-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.lm-logo { width:26px; height:26px; object-fit:contain; flex-shrink:0; }
.homeTimg, .awayTimg { width:28px; height:28px; max-width:100%; object-fit:contain; flex-shrink:0; margin-right:8px; }
.lm-center { flex-shrink:0; width:76px; display:flex; align-items:center; justify-content:center; text-align:center; }
.lm-vs { display:inline-block; font-size:12px; color:#fff; background:#FF914E; border-radius:10px; padding:2px 9px; font-weight:bold; }
.lm-score { font-size:17px; font-weight:bold; color:#ff4d4f; font-family:Arial,sans-serif; letter-spacing:1px; }
.lm-score.finished { color:#999; }
.lm-state-stack { display:flex; flex-direction:column; align-items:center; justify-content:center; }
.lm-period { display:inline-block; font-size:11px; line-height:1; color:#fff; background:#ff4d4f; border-radius:3px; padding:2px 6px; margin-top:4px; white-space:nowrap; }
.lm-live-dot { width:6px; height:6px; border-radius:50%; background:#fff; display:inline-block; margin-right:4px; -webkit-animation:lmpulse 1.2s infinite; animation:lmpulse 1.2s infinite; }
.lm-row .lm-status.live.lm-st-hide { display:none; }
.lm-row.is-hidden { display:none !important; }
@-webkit-keyframes lmpulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
@keyframes lmpulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.lm-action { width:96px; flex-shrink:0; text-align:right; }
.lm-btn { display:inline-block; padding:7px 18px; color:#fff; font-size:13px; border-radius:20px; text-decoration:none;
          background:linear-gradient(135deg,#FF914E,#ff7a2e); box-shadow:0 3px 8px rgba(255,122,46,.28); transition:all .15s; }
.lm-btn:hover { color:#fff; filter:brightness(1.05); box-shadow:0 4px 12px rgba(255,122,46,.4); transform:translateY(-1px); }
.lm-btn.btn-soon { color:#FF914E; background:#fff; border:1px solid #FF914E; box-shadow:none; font-weight:600; }
.lm-btn.btn-soon:hover { color:#fff; background:linear-gradient(135deg,#FF914E,#ff7a2e); box-shadow:0 4px 12px rgba(255,122,46,.35); }
.lm-btn.btn-predict { color:#7a8290; background:#f5f6f8; border:1px solid #e3e6ea; box-shadow:none; }
.lm-btn.btn-predict:hover { color:#FF914E; border-color:#FF914E; background:#fff5eb; }
.lm-btn.btn-finished { color:#5b8def; background:#f2f6ff; border:1px solid #d6e4ff; box-shadow:none; }
.lm-btn.btn-finished:hover { color:#fff; background:#5b8def; border-color:#5b8def; }
/* rel-matches 包装（热门赛程块） */
.rel-matches { background:#fff; border:1px solid #f0e4d8; border-radius:10px; padding:16px 18px; margin:16px 0 20px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.rel-matches-title { font-size:16px; font-weight:700; color:#333; margin:0 0 12px; padding-left:10px; border-left:3px solid #FF914E; line-height:1.2; }
.rel-matches .lm-box { border:1px solid #f4f4f4; border-radius:8px; }
.rel-matches .lm-row { padding:11px 14px; }

/* ---------- 全部标签聚合页 ---------- */
.tagall-box, .find-box {
  background:#fff; border-radius:10px; padding:24px 26px 30px;
  margin-bottom:30px; box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.tagall-h1, .find-h1 { font-size:24px; font-weight:700; color:#222; margin:0 0 12px; }
.tagall-intro, .find-intro { color:#666; font-size:14px; line-height:1.8; margin:0 0 22px; }
.tagall-intro b, .find-intro b { color:#FF914E; }
.tagall-sub, .find-sub {
  font-size:17px; font-weight:700; color:#222; margin:26px 0 16px;
  padding-left:12px; position:relative;
}
.tagall-sub::before, .find-sub::before {
  content:""; position:absolute; left:0; top:2px; bottom:2px;
  width:4px; border-radius:2px; background:#FF914E;
}
.tagall-cloud { display:flex; flex-wrap:wrap; gap:10px 12px; }
.tag-empty { color:#999; font-size:14px; padding:18px 0; }

/* ---------- 标签云（tag-cld） ---------- */
.tag-cld {
  display:inline-flex; align-items:center; gap:6px; padding:6px 14px;
  border-radius:18px; background:#f7f7f7; border:1px solid #ececec;
  color:#555; font-size:14px; text-decoration:none; transition:all .18s; line-height:1.4;
}
.tag-cld:hover { color:#fff; background:#FF914E; border-color:#FF914E; transform:translateY(-1px); }
.tag-cld-mid { background:#fff3ea; border-color:#ffd9bf; color:#e07a36; }
.tag-cld-hot { background:#FF914E; border-color:#FF914E; color:#fff; font-weight:600; }
.tag-cld-hot:hover { background:#f57c2e; }
.tag-cld-num { font-size:12px; opacity:.7; }

/* ---------- 热门网格（赛事/球队/球员） ---------- */
.hot-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin:6px 0 24px; }
.hot-grid-item {
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 8px;
  background:#fff; border:1px solid #f0f0f0; border-radius:10px;
  text-decoration:none; transition:transform .15s,box-shadow .15s,border-color .15s;
}
.hot-grid-item:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(255,145,77,.15); border-color:#ffd9bf; }
.hot-grid-logo { width:46px; height:46px; object-fit:contain; }
.hot-grid-logo.is-round { border-radius:50%; object-fit:cover; background:#fafafa; }
.hot-grid-name {
  font-size:12.5px; color:#333; text-align:center; line-height:1.3; max-width:100%;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ---------- 比赛详情页 ---------- */
.match-detail-card {
  background:#fff; border-radius:10px; padding:26px 30px;
  margin-top:14px; box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.md-h1 { text-align:center; font-size:24px; font-weight:800; color:#222; margin:0 0 8px; }
.md-league { text-align:center; color:#FF914E; font-size:14px; font-weight:600; margin-bottom:18px; }
.md-teams { display:flex; align-items:center; justify-content:center; gap:30px; }
.md-team { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.md-team.md-home { justify-content:flex-end; text-align:right; }
.md-team.md-away { justify-content:flex-start; text-align:left; }
.md-team-name { font-size:22px; font-weight:700; color:#222; }
.md-logo { width:56px; height:56px; object-fit:contain; flex-shrink:0; }
.md-center { width:120px; flex-shrink:0; text-align:center; }
.md-score { display:block; font-size:30px; font-weight:800; color:#ff4d4f; font-family:Arial,sans-serif; letter-spacing:2px; }
.md-score.finished { color:#999; }
.md-vs { display:inline-block; font-size:16px; font-weight:700; color:#fff; background:#FF914E; border-radius:8px; padding:4px 16px; }
.md-period { display:block; font-size:13px; color:#888; margin-top:6px; }
.md-cta { text-align:center; margin-top:24px; }
.md-watch-btn {
  display:inline-block; padding:13px 46px; font-size:17px; font-weight:600;
  color:#fff; text-decoration:none; border-radius:26px;
  background:linear-gradient(135deg,#FF914E,#ff7a2e);
  box-shadow:0 6px 16px rgba(255,122,46,.35); transition:all .15s;
}
.md-watch-btn:hover { color:#fff; transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 8px 20px rgba(255,122,46,.45); }
.md-cta-tip { margin:10px 0 0; font-size:12px; color:#aaa; }
.match-detail-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:20px; margin-top:20px; }
.md-col-main, .md-col-side {
  background:#fff; border-radius:10px; padding:18px 22px;
  box-shadow:0 2px 10px rgba(0,0,0,.05); min-width:0;
}
.md-block-title {
  font-size:16px; font-weight:700; color:#333; border-left:3px solid #FF914E;
  padding-left:10px; margin:0 0 12px;
}
.md-rel-list { list-style:none; margin:0; padding:0; }
.md-rel-list li { border-bottom:1px solid #f5f5f5; }
.md-rel-list li:last-child { border-bottom:none; }
.md-rel-list a { display:flex; align-items:center; gap:12px; padding:10px 2px; text-decoration:none; }
.md-rel-title {
  flex:1; min-width:0; color:#333; font-size:14px; line-height:1.5;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.md-rel-list a:hover .md-rel-title { color:#FF914E; }
.md-rel-date { flex-shrink:0; color:#bbb; font-size:12px; }
.md-rel-empty { color:#999; font-size:13px; padding:14px 0; }
.match-seo-text {
  background:#fff; border-radius:10px; padding:20px 26px;
  margin-top:20px; box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.match-seo-text h2 { font-size:16px; font-weight:700; color:#333; margin:0 0 10px; }
.match-seo-text p { margin:0; color:#666; font-size:14px; line-height:1.9; }
.match-prenext {
  display:flex; flex-direction:column; gap:10px; margin:18px 0 8px;
  padding:14px 18px; background:#fff; border:1px solid #f0e4d8; border-radius:10px;
}
.match-prenext .mpn-item { display:flex; align-items:center; gap:10px; font-size:14px; min-width:0; }
.match-prenext .mpn-item em {
  flex-shrink:0; font-style:normal; font-weight:600; color:#fff;
  background:#FF914E; border-radius:4px; padding:2px 8px; font-size:13px;
}
.match-prenext .mpn-item a { color:#444; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.match-prenext .mpn-item a:hover { color:#FF914E; }

/* ---------- 品牌词页（find） ---------- */
.find-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.find-grid-item {
  display:block; padding:12px 14px; background:#fafafa; border:1px solid #f0f0f0;
  border-radius:8px; text-decoration:none; transition:all .15s;
}
.find-grid-item:hover { background:#fff3ea; border-color:#ffd9bf; transform:translateY(-1px); }
.find-grid-word { font-size:14px; color:#444; line-height:1.5; }
.find-grid-item:hover .find-grid-word { color:#e07a36; }
.find-home-link { margin:18px 0 6px; font-size:14px; color:#666; }
.find-home-btn { color:#FF914E; font-weight:600; text-decoration:none; }
.gyl-tagbox { display:flex; flex-wrap:wrap; gap:10px; }
.gyl-tag {
  display:inline-block; padding:6px 14px; border-radius:18px; background:#f7f7f7;
  border:1px solid #ececec; color:#555; font-size:13px; text-decoration:none; transition:all .15s;
}
.gyl-tag:hover { background:#fff3ea; border-color:#ffd9bf; color:#e07a36; }

/* ---------- 响应式 ---------- */
@media (min-width:769px){
  .match-prenext { flex-direction:row; justify-content:space-between; gap:24px; }
  .match-prenext .mpn-item { flex:1; }
  .match-prenext .mpn-item.mpn-next { justify-content:flex-end; text-align:right; }
}
@media (max-width:1024px){
  .hot-grid { grid-template-columns:repeat(4,1fr); }
}
@media (max-width:768px){
  .match-detail-card { padding:20px 16px; }
  .md-teams { gap:10px; }
  .md-team-name { font-size:16px; }
  .md-logo { width:40px; height:40px; }
  .md-center { width:84px; }
  .md-score { font-size:22px; }
  .match-detail-grid { grid-template-columns:1fr; }
  .tagall-box, .find-box { padding:18px 14px 22px; }
  .tagall-h1, .find-h1 { font-size:20px; }
  .tag-cld { padding:5px 12px; font-size:13px; }
  .hot-grid { grid-template-columns:repeat(3,1fr); gap:10px; }
  .find-grid { grid-template-columns:repeat(2,1fr); }
  /* 对阵卡片：上下三段 */
  .lm-row { flex-wrap:wrap; row-gap:9px; padding:12px 14px; }
  .lm-row .lm-time-col { flex:0 0 100%; width:100%; order:1; padding-right:0; display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; }
  .lm-row .lm-time { font-size:14px; }
  .lm-row .lm-status { margin-top:0; }
  .lm-row .lm-league { margin-top:0; max-width:none; flex:1 1 110px; font-size:12px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:unset; -webkit-box-orient:initial; }
  .lm-row .lm-versus { flex:1 1 100%; order:2; gap:8px; justify-content:space-between; }
  .lm-row .lm-team { gap:6px; font-size:13.5px; line-height:1.3; }
  .lm-row .lm-team-name { white-space:normal; word-break:keep-all; overflow-wrap:break-word; text-overflow:clip; line-height:1.3; font-size:13.5px; }
  .lm-row .lm-center { width:52px; }
  .lm-row .lm-logo { width:24px; height:24px; }
  .lm-row .lm-score { font-size:16px; letter-spacing:0; }
  .lm-row .lm-period { font-size:10px; }
  .lm-row .lm-vs { font-size:11px; padding:2px 8px; }
  .lm-row .lm-action { flex:1 1 100%; width:auto; order:3; text-align:center; }
  .lm-row .lm-action .lm-btn { display:block; width:100%; box-sizing:border-box; padding:10px 0; font-size:14px; border-radius:20px; }
  .rel-matches { padding:12px; margin:12px 0 16px; }
  .rel-matches-title { font-size:15px; }
}
