/* ============================================
   CareWei Star Sports Theme - CSS
   星空体育风格高端赛事资讯模板
   ============================================ */

/* === Base Reset & Typography === */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #333; line-height: 1.7; }
a { color: #1a1a2e; text-decoration: none; transition: all .3s ease; }
a:hover { color: #e94560; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
img { max-width: 100%; }

/* === Header === */
.cw-header { background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%); border-bottom: 3px solid #e94560; }
.cw-header .navbar { padding: .6rem 0; }
.cw-header .navbar-brand img { max-height: 55px; border-radius: 8px; }
.cw-header .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; font-size: .95rem; padding: .5rem .9rem !important; border-radius: 6px; transition: all .3s; }
.cw-header .nav-link:hover, .cw-header .nav-link.active { color: #fff !important; background: rgba(233,69,96,.25); }
.cw-header .nav-link i { margin-right: 4px; }
.cw-btn-register { background: linear-gradient(135deg, #e94560, #c23152); color: #fff !important; border: none; border-radius: 20px; font-weight: 600; font-size: .85rem; padding: 6px 20px; transition: all .3s; }
.cw-btn-register:hover { background: linear-gradient(135deg, #c23152, #a11d3a); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(233,69,96,.4); }

/* === Hero Section === */
.cw-hero { position: relative; overflow: hidden; background: #0f0c29; min-height: 480px; }
.cw-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.cw-hero-bg mip-img { width: 100%; height: 100%; }
.cw-hero-bg mip-img img { object-fit: cover; width: 100%; height: 100%; }
.cw-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(15,12,41,.92) 0%, rgba(15,12,41,.65) 50%, rgba(15,12,41,.3) 100%); z-index: 1; }
.cw-hero-content { position: relative; z-index: 2; padding: 80px 0 60px; color: #fff; }
.cw-hero-tag { display: inline-block; background: #e94560; color: #fff; padding: 4px 16px; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 1px; }
.cw-hero-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.5); line-height: 1.25; }
.cw-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 24px; line-height: 1.8; }
.cw-hero-meta { font-size: .85rem; color: rgba(255,255,255,.6); }
.cw-hero-meta a { color: #e94560; font-weight: 600; }
.cw-hero-meta a:hover { color: #ff6b81; }

/* === Featured Cards Row === */
.cw-featured { background: #fff; padding: 50px 0 30px; margin-top: -30px; position: relative; z-index: 3; border-radius: 16px 16px 0 0; }
.cw-featured-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .35s ease; border: 1px solid #eee; height: 100%; }
.cw-featured-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,.12); }
.cw-featured-card .cw-card-img { position: relative; height: 180px; overflow: hidden; }
.cw-featured-card .cw-card-img mip-img { width: 100%; height: 100%; }
.cw-featured-card .cw-card-img mip-img img { object-fit: cover; width: 100%; height: 100%; transition: transform .4s; }
.cw-featured-card:hover .cw-card-img mip-img img { transform: scale(1.08); }
.cw-featured-card .cw-card-cat { position: absolute; top: 12px; left: 12px; background: #e94560; color: #fff; padding: 3px 12px; border-radius: 15px; font-size: .75rem; font-weight: 600; z-index: 2; }
.cw-featured-card .cw-card-body { padding: 16px; }
.cw-featured-card .cw-card-body h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.cw-featured-card .cw-card-body h4 a { color: #1a1a2e; }
.cw-featured-card .cw-card-body h4 a:hover { color: #e94560; }
.cw-featured-card .cw-card-body p { font-size: .83rem; color: #666; margin-bottom: 10px; line-height: 1.6; }
.cw-featured-card .cw-card-meta { font-size: .78rem; color: #999; display: flex; justify-content: space-between; align-items: center; }

/* === Section Titles === */
.cw-section-title { position: relative; margin-bottom: 35px; padding-bottom: 12px; border-bottom: 2px solid #eee; }
.cw-section-title h2 { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; display: inline-flex; align-items: center; }
.cw-section-title h2 i { color: #e94560; margin-right: 10px; }
.cw-section-title h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 3px; background: #e94560; border-radius: 2px; }
.cw-section-title .cw-title-more { float: right; font-size: .85rem; color: #999; padding-top: 6px; }
.cw-section-title .cw-title-more:hover { color: #e94560; }

/* === Article List === */
.cw-article-list { padding: 40px 0; }
.cw-article-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; transition: all .3s; }
.cw-article-item:hover { background: rgba(233,69,96,.02); }
.cw-article-item:last-child { border-bottom: none; }
.cw-article-img { flex-shrink: 0; width: 220px; height: 150px; border-radius: 10px; overflow: hidden; position: relative; }
.cw-article-img mip-img { width: 100%; height: 100%; }
.cw-article-img mip-img img { object-fit: cover; width: 100%; height: 100%; transition: transform .4s; }
.cw-article-item:hover .cw-article-img mip-img img { transform: scale(1.06); }
.cw-article-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cw-article-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.cw-article-body h3 a { color: #1a1a2e; }
.cw-article-body h3 a:hover { color: #e94560; }
.cw-article-body p { font-size: .88rem; color: #666; line-height: 1.7; margin-bottom: 10px; }
.cw-article-meta { display: flex; align-items: center; gap: 16px; font-size: .8rem; color: #999; }
.cw-article-meta i { margin-right: 4px; color: #ccc; }
.cw-read-more { color: #e94560; font-weight: 600; font-size: .85rem; }
.cw-read-more:hover { color: #c23152; }

/* === Sidebar === */
.cw-sidebar { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 15px rgba(0,0,0,.05); }
.cw-sidebar-title { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #f0f0f0; position: relative; }
.cw-sidebar-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #e94560; }
.cw-sidebar-title i { color: #e94560; margin-right: 8px; }
.cw-sidebar-list { list-style: none; padding: 0; margin: 0; }
.cw-sidebar-list li { padding: 10px 0; border-bottom: 1px dashed #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.cw-sidebar-list li:last-child { border-bottom: none; }
.cw-sidebar-list li a { color: #333; font-size: .88rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.cw-sidebar-list li a:hover { color: #e94560; }
.cw-sidebar-list li time { font-size: .75rem; color: #bbb; flex-shrink: 0; }
.cw-sidebar-list .cw-rank-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: .75rem; font-weight: 700; color: #fff; margin-right: 10px; flex-shrink: 0; background: #ccc; }
.cw-sidebar-list li:nth-child(1) .cw-rank-num { background: #e94560; }
.cw-sidebar-list li:nth-child(2) .cw-rank-num { background: #f06292; }
.cw-sidebar-list li:nth-child(3) .cw-rank-num { background: #f48fb1; }

/* === Tag Cloud === */
.cw-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-tag-item { display: inline-block; padding: 5px 14px; background: #f5f6fa; color: #555; border-radius: 20px; font-size: .8rem; transition: all .3s; border: 1px solid #eee; }
.cw-tag-item:hover { background: #e94560; color: #fff; border-color: #e94560; }

/* === Category Section === */
.cw-category-section { background: #fff; padding: 40px 0; }
.cw-category-block { background: #fafbfc; border-radius: 12px; padding: 20px; border: 1px solid #eee; margin-bottom: 24px; }
.cw-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e94560; }
.cw-category-header h3 { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin: 0; }
.cw-category-header h3 i { color: #e94560; margin-right: 8px; }
.cw-category-header .cw-more-link { font-size: .82rem; color: #999; }
.cw-category-header .cw-more-link:hover { color: #e94560; }
.cw-category-list { list-style: none; padding: 0; margin: 0; }
.cw-category-list li { padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.cw-category-list li:last-child { border-bottom: none; }
.cw-category-list li a { color: #444; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; padding-right: 12px; }
.cw-category-list li a:hover { color: #e94560; }
.cw-category-list li a::before { content: '·'; color: #e94560; font-weight: 700; margin-right: 8px; }
.cw-category-list li time { font-size: .75rem; color: #bbb; flex-shrink: 0; }

/* === Content Box (Article Detail / Category Page) === */
.cw-content-box { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 24px; box-shadow: 0 2px 15px rgba(0,0,0,.05); }
.cw-box-header { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; }
.cw-box-header h3 { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }

/* === Breadcrumb === */
.cw-breadcrumb { list-style: none; padding: 16px 0; margin: 0; display: flex; flex-wrap: wrap; font-size: .85rem; }
.cw-breadcrumb li { color: #999; }
.cw-breadcrumb li a { color: #666; }
.cw-breadcrumb li a:hover { color: #e94560; }
.cw-breadcrumb li + li::before { content: '/'; margin: 0 8px; color: #ccc; }

/* === Article Detail === */
.cw-detail { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 15px rgba(0,0,0,.05); }
.cw-detail-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.cw-detail-title { font-size: 1.6rem; font-weight: 800; color: #1a1a2e; line-height: 1.4; margin-bottom: 14px; }
.cw-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: #999; margin-bottom: 12px; }
.cw-detail-meta i { color: #e94560; margin-right: 5px; }
.cw-detail-body { font-size: 1rem; line-height: 1.9; color: #444; }
.cw-detail-body p { margin-bottom: 18px; }
.cw-detail-body mip-img { margin: 16px 0; border-radius: 8px; overflow: hidden; }
.cw-detail-body h2, .cw-detail-body h3, .cw-detail-body h4 { margin: 24px 0 12px; color: #1a1a2e; }

/* === Detail Navigation === */
.cw-detail-nav { margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.cw-detail-nav ul { list-style: none; padding: 0; margin: 0; }
.cw-detail-nav li { padding: 10px 0; display: flex; align-items: center; }
.cw-detail-nav li span { display: inline-block; background: #e94560; color: #fff; padding: 3px 12px; border-radius: 4px; font-size: .8rem; margin-right: 12px; flex-shrink: 0; }
.cw-detail-nav li a { color: #333; font-size: .9rem; }
.cw-detail-nav li a:hover { color: #e94560; }

/* === Related Articles === */
.cw-related { margin-top: 30px; padding-top: 20px; border-top: 2px solid #f0f0f0; }
.cw-related h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: #1a1a2e; }
.cw-related h3 i { color: #e94560; margin-right: 8px; }
.cw-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cw-related-card { background: #fafbfc; border-radius: 10px; overflow: hidden; border: 1px solid #eee; transition: all .3s; }
.cw-related-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-3px); }
.cw-related-img-wrap { position: relative; height: 140px; overflow: hidden; }
.cw-related-img-wrap mip-img { width: 100%; height: 100%; }
.cw-related-img-wrap mip-img img { object-fit: cover; width: 100%; height: 100%; }
.cw-related-info { padding: 12px; }
.cw-related-info h4 { font-size: .88rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.cw-related-info h4 a { color: #333; }
.cw-related-info h4 a:hover { color: #e94560; }
.cw-related-info time { font-size: .75rem; color: #bbb; }

/* === Tag Page === */
.cw-tag-page { padding: 30px 0; }
.cw-tag-cloud-lg { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-tag-cloud-lg .cw-tag-item { padding: 8px 20px; font-size: .9rem; }
.cw-tag-header-info { margin-bottom: 20px; }
.cw-tag-header-info h2 { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; }
.cw-tag-header-info h2 i { color: #e94560; margin-right: 10px; }
.cw-tag-header-info p { color: #666; margin-top: 8px; }

/* === Search === */
.cw-no-result { text-align: center; padding: 60px 20px; color: #999; }
.cw-no-result i { font-size: 3rem; color: #ddd; margin-bottom: 16px; display: block; }
.cw-no-result p { font-size: 1rem; }

/* === 404 Page === */
.cw-404 { text-align: center; padding: 80px 20px; }
.cw-404-icon { font-size: 4rem; color: #e94560; margin-bottom: 20px; }
.cw-404 h2 { font-size: 3rem; font-weight: 800; color: #1a1a2e; }
.cw-404 p { color: #666; margin: 16px 0 30px; font-size: 1.05rem; }
.cw-btn-primary { display: inline-block; background: linear-gradient(135deg, #e94560, #c23152); color: #fff; padding: 10px 30px; border-radius: 25px; font-weight: 600; transition: all .3s; }
.cw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,.35); color: #fff; }

/* === Footer === */
.cw-footer { background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 60%, #16213e 100%); color: rgba(255,255,255,.7); padding: 50px 0 0; position: relative; }
.cw-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(to right, #e94560, #f06292, #e94560); }
.cw-footer-card { background: rgba(255,255,255,.04); border-radius: 10px; padding: 20px; border: 1px solid rgba(255,255,255,.06); height: 100%; }
.cw-footer h6 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.cw-footer ul { list-style: none; padding: 0; margin: 0; }
.cw-footer ul li { margin-bottom: 8px; }
.cw-footer ul li a { color: rgba(255,255,255,.55); font-size: .85rem; transition: all .3s; }
.cw-footer ul li a:hover { color: #e94560; padding-left: 4px; }
.cw-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; margin-top: 30px; }
.cw-footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.4); }
.cw-footer-bottom a { color: rgba(255,255,255,.5); }
.cw-footer-bottom a:hover { color: #e94560; }

/* === Go Top Button === */
.cw-gotop { background: linear-gradient(135deg, #e94560, #c23152); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(233,69,96,.4); cursor: pointer; }

/* === Pagination === */
.pagination { margin: 30px 0; justify-content: center; }
.pagination .page-item .page-link { color: #333; border: 1px solid #eee; padding: 8px 16px; margin: 0 3px; border-radius: 6px; font-size: .88rem; transition: all .3s; }
.pagination .page-item .page-link:hover { background: #e94560; color: #fff; border-color: #e94560; }
.pagination .page-item.active .page-link { background: #e94560; color: #fff; border-color: #e94560; }

/* === Scrolling News Ticker === */
.cw-ticker { background: #fff; border-bottom: 1px solid #eee; padding: 10px 0; overflow: hidden; }
.cw-ticker-label { display: inline-flex; align-items: center; background: #e94560; color: #fff; padding: 4px 14px; border-radius: 4px; font-size: .8rem; font-weight: 600; margin-right: 16px; flex-shrink: 0; }
.cw-ticker-label i { margin-right: 5px; animation: cw-pulse 1.5s infinite; }
@keyframes cw-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* === Stats Banner === */
.cw-stats-banner { background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 40px 0; color: #fff; }
.cw-stat-item { text-align: center; padding: 20px; }
.cw-stat-num { font-size: 2.2rem; font-weight: 800; color: #e94560; display: block; }
.cw-stat-label { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* === Responsive === */
@media (max-width: 991px) {
    .cw-hero-title { font-size: 1.8rem; }
    .cw-hero-content { padding: 50px 0 40px; }
    .cw-article-item { flex-direction: column; }
    .cw-article-img { width: 100%; height: 200px; }
    .cw-related-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .cw-hero-title { font-size: 1.4rem; }
    .cw-hero-desc { font-size: .9rem; }
    .cw-featured { padding: 30px 0 15px; }
    .cw-content-box, .cw-detail { padding: 18px; }
    .cw-detail-title { font-size: 1.2rem; }
    .cw-footer-card { margin-bottom: 16px; }
}
