/* =========================================================
   绿茵场 · 足球资讯 MIP 模板样式
   全新设计：深绿球场风 + 琥珀高亮，区别于示例站蓝白风格
   命名前缀 lp- (Live Pitch)，避免与系统默认 mip-/mipmb- 冲突
   ========================================================= */
:root {
    --lp-dark: #0a2e1f;
    --lp-dark-2: #12452e;
    --lp-accent: #22c55e;
    --lp-accent-soft: #86efac;
    --lp-amber: #f59e0b;
    --lp-bg: #f2f5f3;
    --lp-card: #ffffff;
    --lp-text: #16211b;
    --lp-muted: #6b7c73;
    --lp-line: #e3e9e5;
    --lp-radius: 12px;
    --lp-shadow: 0 6px 22px rgba(10, 46, 31, .08);
}

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lp-accent); }
img { max-width: 100%; }
.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.lp-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.lp-col-main { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
.lp-col-side { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
.lp-clearfix::after { content: ""; display: table; clear: both; }
.lp-list-none { list-style: none; margin: 0; padding: 0; }
.lp-muted { color: var(--lp-muted); }

/* ---------- 顶部导航 ---------- */
/* 固定头部层级: 提升 z-index, 确保固定头部始终压在正文 positioned 元素之上 (mip.css 未给 mip-fixed 设 z-index)。 */
mip-fixed[type="top"] { z-index: 999 !important; }
.lp-header {
    background: linear-gradient(100deg, var(--lp-dark) 0%, var(--lp-dark-2) 100%);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
    position: relative;
    z-index: 20;
}
.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 62px;
}
.lp-logo { display: flex; align-items: center; }
.lp-logo a {
    display: flex; align-items: center;
    font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #fff;
}
.lp-logo .lp-ball {
    width: 26px; height: 26px; border-radius: 50%;
    margin-right: 9px;
    background:
        radial-gradient(circle at 50% 40%, #fff 0 5px, transparent 6px),
        conic-gradient(#0f0f0f 0 25%, #fff 0 50%, #0f0f0f 0 75%, #fff 0);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
}
.lp-logo a:hover { color: var(--lp-accent-soft); }

.lp-nav { display: flex; align-items: center; flex-wrap: wrap; }
.lp-nav > li { position: relative; }
.lp-nav > li > a {
    display: block; padding: 20px 15px; color: #e8f3ec;
    font-size: 15px; font-weight: 600; position: relative;
}
.lp-nav > li > a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 14px;
    height: 2px; background: var(--lp-accent); transform: scaleX(0);
    transition: transform .25s ease;
}
.lp-nav > li:hover > a::after, .lp-nav > li.active > a::after { transform: scaleX(1); }
.lp-nav > li.active > a, .lp-nav > li:hover > a { color: #fff; }

.lp-header-side { display: flex; align-items: center; }
.lp-header-side a {
    color: #dff3e6; font-size: 14px; padding: 7px 15px; margin-left: 8px;
    border: 1px solid rgba(255,255,255,.35); border-radius: 20px;
}
.lp-header-side a:hover { background: var(--lp-accent); border-color: var(--lp-accent); color: #062015; }

/* ---------- 头部搜索框(替换原右上角登录入口) ---------- */
.lp-search { display: flex; align-items: center; margin-left: 8px; }
.lp-search-input {
    box-sizing: border-box; width: 138px; height: 34px; padding: 0 14px;
    font-size: 13px; color: #eafff4; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.35); border-right: none;
    border-radius: 20px 0 0 20px; outline: none;
    transition: width .28s ease, background .28s ease;
}
.lp-search-input::placeholder { color: rgba(223,243,230,.6); }
.lp-search-input:focus { width: 200px; background: rgba(255,255,255,.22); }
.lp-search-btn {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 42px; height: 34px; padding: 0; cursor: pointer;
    color: #062015; background: var(--lp-accent); border: 1px solid var(--lp-accent);
    border-radius: 0 20px 20px 0; transition: filter .2s ease;
}
.lp-search-btn:hover { filter: brightness(1.12); }
.lp-search-btn svg { display: block; }
@media (max-width: 991px) {
    .lp-search-input { width: 84px; padding: 0 11px; }
    .lp-search-input:focus { width: 132px; }
    .lp-search-btn { width: 40px; }
}

/* ---------- 比分滚动条 ---------- */
.lp-ticker { background: var(--lp-dark); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.lp-ticker-inner { display: flex; align-items: center; }
.lp-ticker-tag {
    flex: 0 0 auto; background: var(--lp-amber); color: #3a2600;
    font-weight: 800; font-size: 13px; padding: 8px 14px; letter-spacing: .5px;
}
.lp-ticker-list { flex: 1 1 auto; overflow: hidden; }
.lp-ticker-track { display: flex; width: max-content; animation: lp-ticker-scroll 40s linear infinite; }
.lp-ticker-group { display: flex; align-items: center; padding: 8px 0; }
.lp-ticker-list:hover .lp-ticker-track { animation-play-state: paused; }
@keyframes lp-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-ticker-track { animation: none; } }
.lp-ticker-list::-webkit-scrollbar { height: 0; }
.lp-ticker-item { display: flex; align-items: center; white-space: nowrap; font-size: 13px; color: #cfe6d8; margin-right: 26px; }
.lp-ticker-item b { color: #fff; font-weight: 700; margin: 0 6px; }
.lp-ticker-item .lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); margin-right: 8px; }

/* ---------- 主体间距 ---------- */
/* margin-top 避让 <mip-fixed type="top"> 固定头部(导航≈65px + 比分条≈38px ≈103px),
   mip-fixed 不自动占位, 必须手动留白, 否则正文顶部被头部遮挡 */
.lp-main { padding: 22px 0 40px; margin-top: 104px; }

/* ---------- 通用卡片/区块 ---------- */
.lp-card { background: var(--lp-card); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); margin-bottom: 22px; overflow: hidden; }
.lp-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--lp-line);
    background: linear-gradient(90deg, #fff, #f7fbf8);
}
.lp-card-head h3 {
    margin: 0; font-size: 18px; font-weight: 800; position: relative; padding-left: 14px; color: var(--lp-dark);
}
.lp-card-head h3::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
    border-radius: 3px; background: linear-gradient(var(--lp-accent), var(--lp-dark-2));
}
.lp-card-head .lp-more { font-size: 13px; color: var(--lp-muted); }
.lp-card-head .lp-more:hover { color: var(--lp-accent); }
.lp-card-body { padding: 16px 18px; }

/* ---------- 首页头条 Hero ---------- */
.lp-hero { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.lp-hero-main {
    position: relative; border-radius: var(--lp-radius); overflow: hidden;
    min-height: 220px; background: var(--lp-dark); box-shadow: var(--lp-shadow);
}
.lp-hero-main mip-img, .lp-hero-main .mip-img { position: absolute; inset: 0; }
.lp-hero-main mip-img img, .lp-hero-main .mip-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-main .lp-hero-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
    background: linear-gradient(transparent, rgba(4, 20, 13, .92)); color: #fff;
}
.lp-hero-main .lp-hero-cap h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; line-height: 1.4; }
.lp-hero-main .lp-hero-cap .lp-hero-time { font-size: 12px; color: var(--lp-accent-soft); letter-spacing: .5px; }
.lp-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-hero-cell {
    position: relative; border-radius: var(--lp-radius); overflow: hidden; min-height: 120px;
    background: var(--lp-dark-2); box-shadow: var(--lp-shadow);
}
.lp-hero-cell mip-img, .lp-hero-cell .mip-img { position: absolute; inset: 0; }
.lp-hero-cell mip-img img, .lp-hero-cell .mip-img img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-cell mip-img img[src*="ucl_mancity_porto"] { object-position: 50% 25%; }
.lp-hero-cell mip-img img[src*="epl_arsenal_sunderland"] { object-position: 50% 30%; }
.lp-hero-cell mip-img img[src*="epl_chelsea_liverpool"] { object-position: 50% 40%; }
.lp-hero-cell .lp-hero-cap {
    position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
    background: linear-gradient(transparent, rgba(4, 20, 13, .9)); color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- 分类栏目网格 ---------- */
.lp-cat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lp-cat-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 11px 0; border-bottom: 1px dashed var(--lp-line);
}
.lp-cat-list li:last-child { border-bottom: 0; }
.lp-cat-list li a {
    flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px;
}
.lp-cat-list li a::before { content: "▸"; color: var(--lp-accent); margin-right: 7px; font-size: 12px; }
.lp-cat-list li time { flex: 0 0 auto; font-size: 12px; color: var(--lp-muted); }
.lp-cid-1 .lp-cat-list li { padding: 16px 0; }
.lp-cid-2 .lp-fx-row { padding: 15px 2px; }
.lp-cid-3 .lp-st-row { padding: 11px 2px; }
.lp-cid-4 .lp-cat-list li { padding: 16px 0; }

/* ---------- 侧栏排行/热门 ---------- */
.lp-rank li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--lp-line); }
.lp-rank li:last-child { border-bottom: 0; }
.lp-rank .lp-no {
    flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 7px;
    background: var(--lp-bg); color: var(--lp-muted); font-weight: 800; font-size: 13px;
}
.lp-rank li:nth-child(1) .lp-no { background: var(--lp-amber); color: #3a2600; }
.lp-rank li:nth-child(2) .lp-no { background: #d1d5db; color: #374151; }
.lp-rank li:nth-child(3) .lp-no { background: #f0a868; color: #4a2c00; }
.lp-rank .lp-rank-txt { flex: 1 1 auto; }
.lp-rank .lp-rank-txt a { display: block; font-size: 14px; line-height: 1.5; }
.lp-rank .lp-rank-txt p { margin: 3px 0 0; font-size: 12px; color: var(--lp-muted); }

.lp-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.lp-tags li a, .lp-tags a {
    display: inline-block; padding: 6px 14px; border-radius: 18px; font-size: 13px;
    background: var(--lp-bg); color: var(--lp-dark-2); border: 1px solid var(--lp-line); transition: .2s;
}
.lp-tags li a:hover, .lp-tags a:hover { background: var(--lp-accent); border-color: var(--lp-accent); color: #062015; }

/* ---------- 文章列表块 ---------- */
.lp-post {
    display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--lp-line);
}
.lp-post:last-child { border-bottom: 0; }
.lp-post .lp-post-thumb { flex: 0 0 148px; border-radius: 10px; overflow: hidden; background: var(--lp-bg); }
.lp-post .lp-post-thumb mip-img, .lp-post .lp-post-thumb .mip-img { display: block; }
.lp-post .lp-post-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lp-post .lp-post-main h4 { margin: 0 0 7px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.lp-post .lp-post-main h4 a:hover { color: var(--lp-accent); }
.lp-post .lp-post-desc {
    margin: 0 0 10px; font-size: 13px; color: var(--lp-muted); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-post .lp-post-meta { margin-top: auto; font-size: 12px; color: var(--lp-muted); display: flex; gap: 14px; }
.lp-post .lp-post-meta span::before { margin-right: 5px; }

/* ---------- 面包屑 ---------- */
.lp-crumb { padding: 4px 0 16px; font-size: 13px; }
.lp-crumb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-crumb li { color: var(--lp-muted); }
.lp-crumb li + li::before { content: "/"; margin-right: 6px; color: var(--lp-line); }
.lp-crumb a:hover { color: var(--lp-accent); }

/* ---------- 详情页 ---------- */
.lp-detail-title { margin: 4px 0 12px; font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--lp-dark); }
.lp-detail-info { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--lp-line); font-size: 13px; color: var(--lp-muted); }
.lp-detail-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.lp-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.lp-detail-tags a { padding: 3px 11px; border-radius: 14px; background: var(--lp-bg); font-size: 12px; color: var(--lp-dark-2); }
.lp-detail-tags a:hover { background: var(--lp-accent); color: #062015; }
.lp-detail-body { padding: 20px 0; font-size: 16px; line-height: 1.9; }
.lp-detail-body p { margin: 0 0 15px; }
.lp-detail-body img, .lp-detail-body mip-img { border-radius: 8px; margin: 8px 0; }
.lp-subhead { font-size: 16px; font-weight: 800; color: var(--lp-dark); margin: 22px 0 6px; padding-left: 12px; border-left: 4px solid var(--lp-accent); }

.lp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.lp-pager .lp-pager-item { background: var(--lp-bg); border-radius: 10px; padding: 13px 15px; }
.lp-pager .lp-pager-item p { margin: 0 0 5px; font-size: 12px; color: var(--lp-muted); }
.lp-pager .lp-pager-item a { font-size: 14px; line-height: 1.5; }

/* ---------- 分页 ---------- */
.lp-pagination { text-align: center; padding: 18px 0 4px; }
.lp-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lp-pagination ul li a, .lp-pagination ul li span {
    display: inline-block; min-width: 34px; padding: 6px 11px; border-radius: 8px;
    border: 1px solid var(--lp-line); font-size: 13px; color: var(--lp-text); background: #fff;
}
.lp-pagination ul li.active a, .lp-pagination ul li.active span { background: var(--lp-accent); border-color: var(--lp-accent); color: #062015; font-weight: 700; }
.lp-pagination ul li a:hover { border-color: var(--lp-accent); color: var(--lp-accent); }
.lp-pagination ul li.disabled span { color: #c2ccc6; }

/* ---------- 标签聚合页 ---------- */
.lp-tagwall { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-tagwall a { padding: 8px 18px; border-radius: 22px; background: var(--lp-bg); border: 1px solid var(--lp-line); font-size: 14px; }
.lp-tagwall a:hover { background: var(--lp-accent); border-color: var(--lp-accent); color: #062015; }
.lp-tag-head { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--lp-line); }
.lp-tag-head .lp-tag-ico {
    flex: 0 0 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--lp-dark), var(--lp-accent)); color: #fff; font-size: 24px; font-weight: 800;
}
.lp-tag-head h2 { margin: 0 0 4px; font-size: 21px; color: var(--lp-dark); }
.lp-tag-head p { margin: 0; color: var(--lp-muted); font-size: 13px; }

/* ---------- 空数据 ---------- */
.lp-empty { text-align: center; padding: 60px 0; color: var(--lp-muted); }
.lp-empty .lp-empty-ico { font-size: 46px; opacity: .5; }

/* ---------- 页脚 ---------- */
.lp-footer { background: var(--lp-dark); color: #b9d6c5; margin-top: 10px; }
.lp-footer-inner { padding: 26px 0; }
.lp-footer .lp-flink { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.lp-footer .lp-flink span.lp-flink-t { color: #fff; font-weight: 700; }
.lp-footer .lp-flink a { color: #b9d6c5; }
.lp-footer .lp-flink a:hover { color: var(--lp-accent-soft); }
.lp-footer .lp-copy { text-align: center; font-size: 13px; color: #9fbfae; }
.lp-footer .lp-copy a { color: #dff3e6; }
.lp-footer .lp-copy a:hover { color: var(--lp-accent-soft); }

/* ---------- 响应式 (>=992px 桌面双栏) ---------- */
@media (min-width: 992px) {
    .lp-col-main { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .lp-col-side { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .lp-hero { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
    .lp-hero-main { min-height: 330px; }
    .lp-hero-cell { min-height: 150px; }
    .lp-hero-side { grid-template-columns: 1fr; }
    .lp-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
    /* 移动端: 导航单行横向滚动, 头部高度确定 (62px + 比分条 38px ≈ 100px) */
    .lp-header-inner { flex-wrap: nowrap; }
    .lp-logo, .lp-header-side { flex: 0 0 auto; }
    .lp-nav { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lp-nav::-webkit-scrollbar { height: 0; }
    .lp-nav > li > a { padding: 12px 12px; }
    .lp-main { margin-top: 101px; }
    .lp-hero-main .lp-hero-cap h2 { font-size: 18px; }
    .lp-post .lp-post-thumb { flex-basis: 112px; }
    .lp-detail-title { font-size: 21px; }
    .lp-pager { grid-template-columns: 1fr; }
}
