/* ==========================================================
   rossoneri 米兰体育资讯门户模板
   风格：深色导航 + 米兰红 #c8102e + 金色点缀 #d4af37，白底卡片
   布局区别于 itineraire：头条 hero(1大4小) + 球星图廊 + 资讯横卡 + 分类宫格
   class 前缀 rs-
   ========================================================== */
:root {
    --rs-red: #c8102e;
    --rs-red-dk: #9b0c23;
    --rs-dark: #14171c;
    --rs-dark2: #1e232b;
    --rs-gold: #d4af37;
    --rs-bg: #f4f5f7;
    --rs-card: #ffffff;
    --rs-border: #e9eaec;
    --rs-title: #1a1a1a;
    --rs-text: #555555;
    --rs-muted: #999999;
}

* { box-sizing: border-box; }
html, body {
    background: var(--rs-bg);
    color: var(--rs-text);
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}
a { color: var(--rs-title); text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: var(--rs-red); text-decoration: none; }
img { max-width: 100%; border: 0; }
ul { list-style: none; padding-left: 0; margin-bottom: 0; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 700; color: var(--rs-title); }

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

/* ---------- 顶部信息条 ---------- */
.rs-topbar { background: var(--rs-dark); color: #8b9099; font-size: 12px; line-height: 34px; }
.rs-topbar .rs-container { display: flex; justify-content: space-between; align-items: center; }
.rs-topbar i { color: var(--rs-gold); margin-right: 5px; }
.rs-topbar .rs-top-links a { color: #8b9099; margin-left: 14px; }
.rs-topbar .rs-top-links a:hover { color: #fff; }

/* ---------- 主头部（深色：logo + 导航 + 搜索）---------- */
.rs-header { background: linear-gradient(100deg, var(--rs-dark) 0%, var(--rs-dark2) 60%, #2a1216 100%); border-bottom: 2px solid var(--rs-red); }
.rs-header .rs-container { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 18px; }
.rs-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rs-logo-icon { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.rs-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.rs-logo-text { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; }
.rs-logo-slogan { color: var(--rs-gold); font-size: 12px; font-weight: 400; margin-top: 2px; letter-spacing: 1px; }

.rs-nav { display: flex; align-items: center; }
.rs-nav-menu { display: flex; align-items: center; margin: 0; }
.rs-nav-menu li a { display: block; color: #d7dade; padding: 8px 15px; font-size: 15px; border-radius: 4px; position: relative; }
.rs-nav-menu li a:hover { color: #fff; background: rgba(200,16,46,.25); }
.rs-nav-menu li.active a { color: #fff; background: var(--rs-red); }
.rs-nav-menu li a i { margin-right: 5px; }
.rs-nav-toggle { display: none; background: var(--rs-red); color: #fff; border: 0; padding: 8px 12px; border-radius: 4px; font-size: 18px; cursor: pointer; }

.rs-header-search { display: flex; flex-shrink: 0; }
.rs-header-search input { border: 0; background: rgba(255,255,255,.12); color: #fff; padding: 8px 12px; border-radius: 4px 0 0 4px; width: 150px; font-size: 13px; outline: none; }
.rs-header-search input::placeholder { color: #9aa0a8; }
.rs-header-search button { border: 0; background: var(--rs-gold); color: #1a1a1a; padding: 8px 14px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px; font-weight: 700; }
.rs-header-search button:hover { background: #e6c158; }

/* ---------- 头条 hero 区（1 大 + 4 小）---------- */
.rs-hero { padding: 22px 0 6px; }
.rs-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.rs-hero-main { position: relative; border-radius: 8px; overflow: hidden; background: #000; min-height: 360px; display: block; }
.rs-hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s; }
.rs-hero-main:hover img { transform: scale(1.05); }
.rs-hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.88)); color: #fff; }
.rs-hero-cap .rs-badge { display: inline-block; background: var(--rs-red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; margin-bottom: 8px; }
.rs-hero-cap h2 { color: #fff; font-size: 23px; line-height: 1.35; margin-bottom: 8px; }
.rs-hero-cap p { color: #d0d0d0; font-size: 13px; margin: 0 0 8px; }
.rs-hero-meta { color: #b5b5b5; font-size: 12px; }
.rs-hero-meta i { color: var(--rs-gold); margin-right: 4px; }
.rs-hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.rs-hero-side-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rs-hero-card { position: relative; border-radius: 8px; overflow: hidden; background: #111; display: block; min-height: 108px; }
.rs-hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s; }
.rs-hero-card:hover img { transform: scale(1.06); }
.rs-hero-card .rs-hero-cap { padding: 26px 12px 10px; }
.rs-hero-card .rs-hero-cap h2 { font-size: 14px; line-height: 1.4; margin: 0; }

/* ---------- 区块通用 ---------- */
.rs-main { padding: 18px 0 30px; }
.rs-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.rs-box { background: var(--rs-card); border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 20px; overflow: hidden; }
.rs-box-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--rs-border); }
.rs-box-head h2, .rs-box-head h3 { font-size: 18px; position: relative; padding-left: 13px; }
.rs-box-head h2:before, .rs-box-head h3:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: linear-gradient(var(--rs-red), var(--rs-gold)); border-radius: 2px; }
.rs-more { font-size: 13px; color: var(--rs-muted); }
.rs-more:hover { color: var(--rs-red); }
.rs-box-body { padding: 16px 18px; }

/* ---------- 球星图廊 ---------- */
.rs-stars { padding: 4px 0 10px; }
.rs-stars-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rs-stars-head h2 { font-size: 19px; padding-left: 13px; position: relative; }
.rs-stars-head h2:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: linear-gradient(var(--rs-red), var(--rs-gold)); border-radius: 2px; }
.rs-stars-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rs-star-card { background: var(--rs-card); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; display: block; }
.rs-star-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(200,16,46,.18); }
.rs-star-thumb { position: relative; padding-top: 100%; overflow: hidden; background: #111; }
.rs-star-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-star-name { padding: 8px 6px; font-size: 12.5px; text-align: center; color: var(--rs-title); line-height: 1.35; height: 46px; overflow: hidden; }

/* ---------- 资讯横向卡片列表 ---------- */
.rs-news-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px dashed var(--rs-border); }
.rs-news-item:first-child { padding-top: 0; }
.rs-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-news-thumb { flex: 0 0 200px; width: 200px; height: 126px; border-radius: 6px; overflow: hidden; background: #eee; }
.rs-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rs-news-item:hover .rs-news-thumb img { transform: scale(1.06); }
.rs-news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-news-body h4 { font-size: 17px; line-height: 1.45; margin-bottom: 7px; }
.rs-news-body h4 a { color: var(--rs-title); }
.rs-news-body h4 a:hover { color: var(--rs-red); }
.rs-news-desc { color: var(--rs-muted); font-size: 13px; line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-news-meta { margin-top: auto; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--rs-muted); }
.rs-news-meta i { margin-right: 4px; color: var(--rs-red); }
.rs-readmore { margin-left: auto; color: var(--rs-red); font-size: 12.5px; }
.rs-readmore:hover { color: var(--rs-red-dk); }

/* ---------- 纯文字列表 ---------- */
.rs-text-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--rs-border); }
.rs-text-list li:last-child { border-bottom: 0; }
.rs-text-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #333; }
.rs-text-list li a:before { content: "\2022"; color: var(--rs-gold); margin-right: 7px; }
.rs-text-list li a:hover { color: var(--rs-red); }
.rs-text-list li time { color: var(--rs-muted); font-size: 12px; flex-shrink: 0; }

/* ---------- 排行榜 ---------- */
.rs-rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--rs-border); }
.rs-rank-list li:last-child { border-bottom: 0; }
.rs-rank-num { flex: 0 0 22px; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #e6e8eb; color: #666; border-radius: 4px; font-size: 12px; font-weight: 700; font-style: normal; }
.rs-rank-list li:nth-child(1) .rs-rank-num { background: var(--rs-red); color: #fff; }
.rs-rank-list li:nth-child(2) .rs-rank-num { background: #e0512f; color: #fff; }
.rs-rank-list li:nth-child(3) .rs-rank-num { background: var(--rs-gold); color: #1a1a1a; }
.rs-rank-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

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

/* ---------- 分类宫格 ---------- */
.rs-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rs-cat-grid .rs-box { margin-bottom: 0; }

/* ---------- 文章详情 ---------- */
.breadcrumb { font-size: 13px; margin: 0; padding: 12px 0; }
.breadcrumb-item a { color: var(--rs-muted); }
.breadcrumb-item a:hover, .breadcrumb-item.active { color: var(--rs-red); }
.rs-detail-title { font-size: 25px; line-height: 1.4; margin-bottom: 14px; }
.rs-detail-info { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--rs-border); border-bottom: 1px solid var(--rs-border); font-size: 12.5px; color: var(--rs-muted); }
.rs-detail-info i { color: var(--rs-red); margin-right: 5px; }
.rs-detail-content { font-size: 15.5px; line-height: 1.95; color: #333; }
.rs-detail-content p { margin: 0 0 16px; }
.rs-detail-content h3 { font-size: 18px; margin: 22px 0 12px; padding-left: 12px; border-left: 4px solid var(--rs-red); }
.rs-detail-content img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 6px; }
.rs-detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding-top: 16px; border-top: 1px dashed var(--rs-border); }
.rs-detail-tags .rs-label { color: var(--rs-muted); font-size: 13px; }
.rs-widget-title { font-size: 18px; margin: 24px 0 10px; padding-left: 12px; border-left: 4px solid var(--rs-gold); }
.rs-pn-page { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rs-border); }
.rs-pn-page > div p { color: var(--rs-muted); font-size: 12.5px; margin: 0 0 5px; }
.rs-pn-page > div:last-child { text-align: right; }
.rs-pn-page a { font-size: 14px; }

/* ---------- 分页 ---------- */
.rs-page { text-align: center; padding: 18px 0 4px; }
.rs-page a, .rs-page span { display: inline-block; min-width: 34px; padding: 6px 11px; margin: 0 3px; border: 1px solid var(--rs-border); border-radius: 4px; color: #555; font-size: 13px; background: #fff; }
.rs-page a:hover { border-color: var(--rs-red); color: var(--rs-red); }
.rs-page .current, .rs-page span.disabled { background: var(--rs-red); border-color: var(--rs-red); color: #fff; }

/* ---------- 标签页头 ---------- */
.rs-tag-header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rs-border); }
.rs-tag-header .rs-tag-icon { width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--rs-red), var(--rs-red-dk)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rs-tag-header h2 { font-size: 20px; }
.rs-tag-header p { font-size: 12px; color: var(--rs-muted); margin: 2px 0 0; }

/* ---------- 搜索空态 / 404 ---------- */
.rs-empty { padding: 46px 15px; text-align: center; color: var(--rs-muted); }
.rs-empty i { font-size: 40px; color: var(--rs-red); margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.rs-footer { background: var(--rs-dark); color: #9aa0a8; margin-top: 10px; border-top: 3px solid var(--rs-red); }
.rs-footer .rs-container { padding-top: 24px; padding-bottom: 24px; }
.rs-friend { padding: 8px 0; font-size: 13px; line-height: 2; }
.rs-friend ul { display: flex; flex-wrap: wrap; align-items: center; }
.rs-friend-label { color: var(--rs-gold); margin-right: 6px; font-weight: 700; }
.rs-friend a { color: #9aa0a8; margin-right: 16px; }
.rs-friend a:hover { color: #fff; }
.rs-copyright { border-top: 1px solid #2a2f37; margin-top: 12px; padding-top: 16px; text-align: center; font-size: 12.5px; }
.rs-copyright .rs-foot-name { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.rs-copyright a { color: #9aa0a8; }
.rs-copyright a:hover { color: var(--rs-gold); }

/* ---------- 回到顶部 ---------- */
.rs-gototop { position: fixed; right: 18px; bottom: 40px; width: 42px; height: 42px; background: var(--rs-red); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.25); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.rs-gototop.show { opacity: 1; pointer-events: auto; }
.rs-gototop:hover { background: var(--rs-red-dk); }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .rs-layout { grid-template-columns: 1fr; }
    .rs-main-side { display: none; }
    .rs-hero-grid { grid-template-columns: 1fr; }
    .rs-hero-main { min-height: 240px; }
    .rs-stars-grid { grid-template-columns: repeat(3, 1fr); }
    .rs-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .rs-header .rs-container { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
    .rs-logo { order: 1; }
    .rs-nav-toggle { order: 2; display: block; margin-left: auto; }
    .rs-header-search { order: 3; width: 100%; margin-top: 10px; }
    .rs-header-search input { width: 100%; flex: 1; }
    .rs-nav { order: 4; width: 100%; margin-top: 10px; display: none; }
    .rs-nav.show { display: block; }
    .rs-nav-menu { flex-direction: column; align-items: stretch; width: 100%; }
    .rs-nav-menu li a { padding: 10px 12px; border-radius: 4px; }
    .rs-logo-text { font-size: 18px; }
    .rs-logo-icon { width: 42px; height: 42px; }
    .rs-hero-cap h2 { font-size: 18px; }
    .rs-news-item { flex-direction: column; gap: 10px; }
    .rs-news-thumb { flex: 0 0 auto; width: 100%; height: 180px; }
    .rs-stars-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .rs-cat-grid { grid-template-columns: 1fr; }
    .rs-detail-title { font-size: 20px; }
    .rs-pn-page { grid-template-columns: 1fr; }
    .rs-pn-page > div:last-child { text-align: left; }
    .rs-topbar .rs-top-links { display: none; }
}
