/* ==========================================================
   airport 体育资讯门户模板
   主色：米兰红 #d10f2f / 黑 #16181d，白底卡片
   ========================================================== */
:root {
    --ap-red: #d10f2f;
    --ap-red-dark: #a80c26;
    --ap-black: #16181d;
    --ap-nav: #1e2126;
    --ap-bg: #f5f6f7;
    --ap-card: #ffffff;
    --ap-border: #ececec;
    --ap-title: #222222;
    --ap-text: #555555;
    --ap-muted: #999999;
}

html, body {
    background: var(--ap-bg);
    color: var(--ap-text);
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--ap-title); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ap-red); text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; padding-left: 0; margin-bottom: 0; }

.ap-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- 顶部信息条 ---------- */
.ap-topbar {
    background: var(--ap-black);
    color: #8a8f98;
    font-size: 12px;
    line-height: 32px;
}
.ap-topbar .ap-container { display: flex; justify-content: space-between; }
.ap-topbar a { color: #8a8f98; }
.ap-topbar a:hover { color: #fff; }
.ap-topbar .ap-topbar-date i { color: var(--ap-red); margin-right: 5px; }

/* ---------- 头部 Logo 区 ---------- */
.ap-header {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid var(--ap-border);
}
.ap-header .ap-container { display: flex; align-items: center; justify-content: space-between; }
.ap-logo { display: flex; align-items: center; gap: 10px; }
.ap-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--ap-red) 0%, #7a0a1f 100%);
    border-radius: 6px;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: bold; font-style: normal;
}
.ap-logo-icon img { width: 30px; height: 30px; object-fit: contain; }
.ap-logo-text { font-size: 22px; font-weight: bold; color: var(--ap-title); }
.ap-logo-text strong { color: var(--ap-red); }
.ap-logo-slogan { font-size: 12px; color: var(--ap-muted); margin-top: 2px; }
.ap-header-search { display: flex; }
.ap-header-search input {
    width: 220px; height: 36px;
    border: 1px solid var(--ap-border); border-right: none;
    border-radius: 3px 0 0 3px;
    padding: 0 12px; font-size: 13px; outline: none;
}
.ap-header-search input:focus { border-color: var(--ap-red); }
.ap-header-search button {
    height: 36px; padding: 0 18px;
    background: var(--ap-red); color: #fff;
    border: none; border-radius: 0 3px 3px 0;
    cursor: pointer; font-size: 13px;
}
.ap-header-search button:hover { background: var(--ap-red-dark); }

/* ---------- 主导航 ---------- */
.ap-nav {
    background: var(--ap-nav);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.ap-nav .ap-container { display: flex; align-items: stretch; justify-content: space-between; }
.ap-nav ul { display: flex; flex-wrap: wrap; }
.ap-nav li { position: relative; }
.ap-nav li a {
    display: block; padding: 0 22px; line-height: 46px;
    color: #d5d8dc; font-size: 15px;
}
.ap-nav li a:hover { color: #fff; background: rgba(209,15,47,.85); }
.ap-nav li.active a { color: #fff; background: var(--ap-red); }
.ap-nav .ap-nav-tel { color: #8a8f98; font-size: 12px; line-height: 46px; }
.ap-nav .ap-nav-tel i { color: var(--ap-red); margin-right: 4px; }

/* ---------- 移动端菜单按钮 ---------- */
.ap-nav-toggle {
    display: none;
    background: none; border: none; color: #fff;
    font-size: 20px; padding: 12px 0; cursor: pointer;
}

/* ---------- 焦点头条区（首页） ---------- */
.ap-focus { padding: 20px 0 0; }
.ap-focus .ap-container { display: flex; gap: 15px; }
.ap-focus-main { flex: 2.2; position: relative; border-radius: 4px; overflow: hidden; background: #000; }
.ap-focus-main a { display: block; position: relative; }
.ap-focus-main img { width: 100%; height: 341px; object-fit: cover; display: block; opacity: .92; }
.ap-focus-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 20px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.82) 100%);
    color: #fff;
}
.ap-focus-cap h2 { font-size: 20px; margin-bottom: 6px; line-height: 1.4; }
.ap-focus-cap h2 a { color: #fff; }
.ap-focus-cap h2 a:hover { color: #ffd2da; }
.ap-focus-cap p { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ap-focus-cap .ap-focus-meta { font-size: 12px; color: rgba(255,255,255,.6); }
.ap-focus-cap .ap-focus-meta .ap-readmore {
    float: right; color: #fff; background: var(--ap-red);
    padding: 2px 12px; border-radius: 2px; font-size: 12px;
}
.ap-focus-cap .ap-focus-meta .ap-readmore:hover { background: var(--ap-red-dark); color: #fff; }
.ap-focus-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ap-focus-side-item {
    position: relative; flex: 1; border-radius: 4px; overflow: hidden; background: #000;
}
.ap-focus-side-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; min-height: 105px; }
.ap-focus-side-item .ap-focus-cap { padding: 20px 12px 8px; }
.ap-focus-side-item .ap-focus-cap h2 { font-size: 13px; margin-bottom: 0; }

/* ---------- 通用板块卡片 ---------- */
.ap-main { padding: 20px 0 30px; }
.ap-main .ap-container { display: flex; gap: 15px; align-items: flex-start; }
.ap-main-col { flex: 2.2; min-width: 0; }
.ap-main-side { flex: 1; min-width: 0; }
.ap-box { background: var(--ap-card); border-radius: 4px; margin-bottom: 15px; overflow: hidden; }
.ap-box-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; height: 42px;
    border-bottom: 1px solid var(--ap-border);
    background: #fbfbfb;
}
.ap-box-head h3, .ap-box-head h2 {
    font-size: 16px; font-weight: bold; color: var(--ap-title);
    margin: 0; padding-left: 10px; position: relative; line-height: 42px;
}
.ap-box-head h3::before, .ap-box-head h2::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 4px; height: 18px; background: var(--ap-red); border-radius: 2px;
}
.ap-box-head .ap-more { font-size: 12px; color: var(--ap-muted); }
.ap-box-head .ap-more:hover { color: var(--ap-red); }
.ap-box-body { padding: 15px; }

/* ---------- 图文列表（左图右文） ---------- */
.ap-news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--ap-border); }
.ap-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.ap-news-item:first-child { padding-top: 0; }
.ap-news-thumb { flex-shrink: 0; width: 168px; height: 108px; border-radius: 3px; overflow: hidden; }
.ap-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ap-news-item:hover .ap-news-thumb img { transform: scale(1.05); }
.ap-news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-news-body h4 { font-size: 16px; margin: 0 0 6px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-news-body h4 a { color: var(--ap-title); }
.ap-news-body h4 a:hover { color: var(--ap-red); }
.ap-news-desc { font-size: 13px; color: var(--ap-muted); line-height: 1.6; flex: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.ap-news-meta { font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 14px; }
.ap-news-meta i { color: var(--ap-red); margin-right: 3px; font-style: normal; }
.ap-news-meta .ap-cat { color: var(--ap-red); border: 1px solid rgba(209,15,47,.4); padding: 0 6px; border-radius: 2px; font-size: 12px; }
.ap-news-meta .ap-readmore { margin-left: auto; color: var(--ap-red); }

/* ---------- 纯文字列表 ---------- */
.ap-text-list li { line-height: 34px; border-bottom: 1px dashed var(--ap-border); display: flex; align-items: center; }
.ap-text-list li:last-child { border-bottom: none; }
.ap-text-list li::before { content: ""; width: 5px; height: 5px; background: var(--ap-red); border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.ap-text-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ap-text); }
.ap-text-list li a:hover { color: var(--ap-red); }
.ap-text-list li time { color: #bbb; font-size: 12px; margin-left: 10px; }

/* ---------- 分类双栏板块（首页） ---------- */
.ap-cat-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ap-cat-grid .ap-box { flex: 1 1 calc(50% - 8px); margin-bottom: 0; }

/* ---------- 侧栏排行 ---------- */
.ap-rank-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--ap-border); }
.ap-rank-list li:last-child { border-bottom: none; }
.ap-rank-num {
    flex-shrink: 0; width: 20px; height: 20px; line-height: 20px;
    text-align: center; font-size: 12px; border-radius: 3px;
    background: #c8ccd2; color: #fff; margin-top: 2px;
}
.ap-rank-list li:nth-child(1) .ap-rank-num { background: var(--ap-red); }
.ap-rank-list li:nth-child(2) .ap-rank-num { background: #f0554a; }
.ap-rank-list li:nth-child(3) .ap-rank-num { background: #f78e3d; }
.ap-rank-list li a { font-size: 13px; line-height: 1.5; color: var(--ap-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ap-rank-list li a:hover { color: var(--ap-red); }

/* ---------- 标签云 ---------- */
.ap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-tags a {
    display: inline-block; padding: 4px 12px;
    background: #f2f3f5; color: var(--ap-text);
    border-radius: 14px; font-size: 12px;
}
.ap-tags a:hover { background: var(--ap-red); color: #fff; }

/* ---------- 面包屑 ---------- */
.ap-crumb { font-size: 13px; color: var(--ap-muted); padding: 12px 0; }
.ap-crumb a { color: var(--ap-muted); }
.ap-crumb a:hover { color: var(--ap-red); }
.ap-crumb i { margin: 0 6px; font-style: normal; color: #ccc; }

/* ---------- 详情页 ---------- */
.ap-detail-title { font-size: 24px; color: var(--ap-title); text-align: center; line-height: 1.5; margin: 10px 0 15px; }
.ap-detail-info {
    text-align: center; font-size: 12px; color: var(--ap-muted);
    border-bottom: 1px solid var(--ap-border); padding-bottom: 14px; margin-bottom: 20px;
}
.ap-detail-info span { margin: 0 8px; }
.ap-detail-info i { font-style: normal; color: var(--ap-red); }
.ap-detail-content { font-size: 15px; line-height: 1.9; color: #444; word-break: break-all; }
.ap-detail-content p { margin-bottom: 16px; }
.ap-detail-content img { max-width: 100%; height: auto; display: block; margin: 10px auto; border-radius: 3px; }
.ap-detail-content h2, .ap-detail-content h3 { font-size: 18px; color: var(--ap-title); margin: 22px 0 12px; padding-left: 10px; border-left: 4px solid var(--ap-red); }
.ap-detail-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap-detail-tags .ap-label { color: var(--ap-muted); font-size: 13px; }
.ap-pn-page { display: flex; gap: 15px; margin-top: 20px; }
.ap-pn-page > div { flex: 1; background: #f7f8f9; border-radius: 3px; padding: 10px 14px; font-size: 13px; }
.ap-pn-page p { margin: 0 0 4px; color: var(--ap-muted); font-size: 12px; }
.ap-pn-page a { color: var(--ap-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ap-pn-page a:hover { color: var(--ap-red); }
.ap-widget-title { font-size: 15px; color: var(--ap-title); margin: 25px 0 10px; padding-left: 10px; border-left: 4px solid var(--ap-red); }

/* ---------- 分页 ---------- */
.ap-page { text-align: center; padding: 20px 0 5px; }
.ap-page a, .ap-page span, .ap-page li {
    display: inline-block; margin: 0 4px 8px; padding: 6px 13px;
    border: 1px solid var(--ap-border); border-radius: 3px;
    color: var(--ap-text); font-size: 13px; background: #fff;
}
.ap-page ul { display: inline-block; padding: 0; margin: 0; list-style: none; }
.ap-page ul li { float: left; }
.ap-page a:hover { border-color: var(--ap-red); color: var(--ap-red); }
.ap-page .active a, .ap-page span.active, .ap-page li.active a {
    background: var(--ap-red); border-color: var(--ap-red); color: #fff;
}

/* ---------- 页脚 ---------- */
.ap-footer { background: var(--ap-black); color: #7c828c; margin-top: 10px; }
.ap-footer .ap-friend { padding: 18px 0 8px; border-bottom: 1px solid #2a2e35; }
.ap-footer .ap-friend ul { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ap-footer .ap-friend li { font-size: 12px; }
.ap-footer .ap-friend a { color: #7c828c; }
.ap-footer .ap-friend a:hover { color: #fff; }
.ap-footer .ap-friend .ap-friend-label { color: #565b64; }
.ap-footer .ap-copyright { text-align: center; padding: 20px 15px; font-size: 12px; line-height: 2; }
.ap-footer .ap-copyright a { color: #9aa0aa; }
.ap-footer .ap-copyright a:hover { color: #fff; }
.ap-footer .ap-copyright .ap-foot-name { color: #c8ccd2; font-size: 13px; }

/* ---------- 快讯滚动条 ---------- */
.ap-ticker { background: #0d0f13; border-bottom: 1px solid #23262d; }
.ap-ticker .ap-container { display: flex; align-items: center; height: 40px; }
.ap-ticker-label { flex-shrink: 0; background: var(--ap-red); color: #fff; font-size: 13px; font-weight: bold; padding: 3px 12px; border-radius: 3px; margin-right: 14px; white-space: nowrap; }
.ap-ticker-label i { margin-right: 4px; }
.ap-ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ap-ticker-list { display: flex; margin: 0; padding: 0; list-style: none; width: max-content; animation: ap-ticker-scroll 40s linear infinite; }
.ap-ticker-list li { margin-right: 46px; white-space: nowrap; font-size: 13px; }
.ap-ticker-list li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ap-red); margin-right: 8px; vertical-align: 2px; }
.ap-ticker-list li a { color: #cfd3da; transition: color .2s; }
.ap-ticker-list li a:hover { color: #fff; }
.ap-ticker-wrap:hover .ap-ticker-list { animation-play-state: paused; }
@keyframes ap-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 404 ---------- */
.ap-404 { text-align: center; padding: 80px 15px; }
.ap-404 .ap-404-num { font-size: 90px; font-weight: bold; color: var(--ap-red); line-height: 1; }
.ap-404 p { color: var(--ap-muted); margin: 15px 0; }
.ap-404 a { color: var(--ap-red); }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .ap-topbar .ap-topbar-welcome { display: none; }
    .ap-header { padding: 12px 0; }
    .ap-header-search { display: none; }
    .ap-logo-text { font-size: 18px; }
    .ap-nav-toggle { display: block; }
    .ap-nav .ap-container { flex-wrap: wrap; }
    .ap-nav ul { display: none; width: 100%; flex-direction: column; }
    .ap-nav ul.show { display: flex; }
    .ap-nav li a { line-height: 42px; border-top: 1px solid #2a2e35; padding: 0 15px; }
    .ap-nav .ap-nav-tel { display: none; }
    .ap-focus .ap-container { flex-direction: column; }
    .ap-focus-main img { height: 220px; }
    .ap-focus-side { flex-direction: row; }
    .ap-focus-side-item img { height: 90px; min-height: 90px; }
    .ap-main .ap-container { flex-direction: column; }
    .ap-cat-grid .ap-box { flex-basis: 100%; }
    .ap-news-thumb { width: 110px; height: 78px; }
    .ap-news-body h4 { font-size: 14px; white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .ap-news-desc { display: none; }
    .ap-detail-title { font-size: 20px; }
    .ap-pn-page { flex-direction: column; }
}
