/* ========================================
   开云体育 - 全站样式
   仿雷速体育配色方案
   ======================================== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-width: 1200px;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Container */
.container { width: 1200px; margin: 0 auto; }

/* ========== Header ========== */
.header {
    background: #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    flex-shrink: 0;
}
.logo img { height: 36px; width: 36px; margin-right: 8px; }
.logo-text {
    color: #e94560;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}
.logo-text span { color: #fff; font-size: 14px; margin-left: 5px; }

/* Navigation */
.main-nav { display: flex; align-items: center; flex: 1; }
.main-nav a {
    color: #ccc;
    padding: 0 16px;
    height: 60px;
    line-height: 60px;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: #fff;
    background: rgba(233,69,96,0.15);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #e94560;
    border-radius: 2px;
}

/* ========== Sub Header ========== */
.sub-header {
    background: #16213e;
    border-bottom: 1px solid #0f3460;
}
.sub-header-inner {
    display: flex;
    align-items: center;
    height: 40px;
}
.sub-nav a {
    color: #8899aa;
    padding: 0 14px;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    transition: color 0.3s;
}
.sub-nav a:hover { color: #e94560; }
.sub-nav a .icon { margin-right: 4px; }

/* ========== Sidebar ========== */
.page-layout {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ========== Match Cards ========== */
.section-title {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #e94560;
    margin-bottom: 12px;
}
.section-title h2 {
    font-size: 18px;
    color: #1a1a2e;
    position: relative;
    padding-left: 12px;
}
.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 20px;
    background: #e94560;
    border-radius: 2px;
}
.section-title .more {
    margin-left: auto;
    color: #999;
    font-size: 13px;
}
.section-title .more:hover { color: #e94560; }

/* League Tabs */
.league-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}
.league-tabs .tab {
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
    border: none;
}
.league-tabs .tab:hover, .league-tabs .tab.active {
    background: #e94560;
    color: #fff;
}

/* Sport Tabs */
.sport-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}
.sport-tabs .tab {
    padding: 8px 24px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border: none;
    background: #f0f2f5;
    transition: all 0.3s;
}
.sport-tabs .tab:first-child { border-radius: 4px 0 0 4px; }
.sport-tabs .tab:last-child { border-radius: 0 4px 4px 0; }
.sport-tabs .tab.active {
    background: #e94560;
    color: #fff;
}

/* Match List */
.match-list { background: #fff; border-radius: 8px; overflow: hidden; }
.match-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}
.match-item:hover { background: #f8f9fa; }
.match-item:last-child { border-bottom: none; }
.match-time {
    width: 60px;
    text-align: center;
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}
.match-league {
    width: 70px;
    text-align: center;
    font-size: 12px;
    color: #e94560;
    flex-shrink: 0;
    background: rgba(233,69,96,0.08);
    padding: 2px 6px;
    border-radius: 3px;
}
.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}
.team-name {
    width: 120px;
    font-size: 14px;
    color: #333;
}
.team-name.home { text-align: right; }
.team-name.away { text-align: left; }
.team-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f2f5;
    flex-shrink: 0;
}
.team-logo-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f2f5;
    vertical-align: middle;
    display: inline-block;
}
.match-score {
    font-size: 16px;
    font-weight: bold;
    color: #e94560;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}
.match-score.not-started { color: #999; font-size: 13px; font-weight: normal; }
.match-status {
    width: 60px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}
.match-status .live {
    color: #4CAF50;
    animation: blink 1.5s infinite;
}
.match-status .finished { color: #999; }
.match-status .upcoming { color: #ff9800; }
.match-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.match-links a {
    font-size: 12px;
    color: #0f3460;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}
.match-links a:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== Hot Matches Carousel ========== */
.hot-matches {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.hot-matches-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.hot-matches-title .dot {
    width: 8px;
    height: 8px;
    background: #e94560;
    border-radius: 50%;
    margin-right: 8px;
}
.hot-matches-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.hot-matches-scroll::-webkit-scrollbar { display: none; }
.hot-match-card {
    min-width: 220px;
    background: #16213e;
    border-radius: 8px;
    padding: 14px;
    flex-shrink: 0;
    transition: transform 0.3s;
    cursor: pointer;
}
.hot-match-card:hover { transform: translateY(-2px); }
.hot-match-league {
    color: #e94560;
    font-size: 12px;
    margin-bottom: 8px;
}
.hot-match-time {
    color: #8899aa;
    font-size: 12px;
    margin-bottom: 10px;
}
.hot-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hot-match-team {
    text-align: center;
    color: #fff;
    font-size: 13px;
}
.hot-match-team img {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    border-radius: 50%;
}
.hot-match-vs {
    color: #e94560;
    font-weight: bold;
    font-size: 16px;
}

/* ========== News Section ========== */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow 0.3s;
}
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.news-card a { display: flex; padding: 14px; }
.news-card .news-img {
    width: 180px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 14px;
}
.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card .news-info { flex: 1; }
.news-card .news-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #bbb;
}
.news-card .news-meta .views { color: #e94560; }

/* Hot News List */
.hot-news { background: #fff; border-radius: 8px; padding: 14px; }
.hot-news-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.hot-news-item:last-child { border-bottom: none; }
.hot-news-rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #ddd;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}
.hot-news-rank.top1 { background: #e94560; }
.hot-news-rank.top2 { background: #ff6b35; }
.hot-news-rank.top3 { background: #ff9800; }
.hot-news-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-news-title:hover { color: #e94560; }
.hot-news-count {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* ========== Standings Table ========== */
.standings-card { background: #fff; border-radius: 8px; overflow: hidden; }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
}
.standings-table td {
    padding: 8px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.standings-table tr:hover { background: #f8f9fa; }
.standings-table .rank { font-weight: bold; color: #1a1a2e; }
.standings-table .team-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.standings-table .team-cell img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.standings-table .zone-ucl { border-left: 3px solid #0f3460; }
.standings-table .zone-uel { border-left: 3px solid #ff9800; }
.standings-table .zone-rel { border-left: 3px solid #e94560; }

/* ========== Scorers Table ========== */
.scorers-table { width: 100%; border-collapse: collapse; }
.scorers-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: normal;
}
.scorers-table td {
    padding: 8px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.scorers-table tr:hover { background: #f8f9fa; }

/* ========== Article Page ========== */
.article-page {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}
.article-page h1 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
}
.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.article-content p { margin-bottom: 16px; }
.article-content img {
    border-radius: 8px;
    margin: 16px 0;
    width: 100%;
}
.article-content h2 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #e94560;
}
.article-content h3 {
    font-size: 17px;
    color: #333;
    margin: 20px 0 10px;
}
.article-tags {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.article-tags a {
    padding: 4px 12px;
    background: #f0f2f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}
.article-tags a:hover { background: #e94560; color: #fff; }

/* ========== APP Download Page ========== */
.app-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.app-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
}
.app-hero h1 span { color: #e94560; }
.app-hero p {
    font-size: 18px;
    color: #8899aa;
    margin-bottom: 40px;
}
.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}
.app-btn.ios {
    background: #fff;
    color: #1a1a2e;
}
.app-btn.android {
    background: #e94560;
    color: #fff;
}
.app-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.app-features {
    padding: 60px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s;
}
.feature-card:hover {
    background: #1a1a2e;
    color: #fff;
    transform: translateY(-5px);
}
.feature-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 13px;
    color: #999;
}
.feature-card:hover p { color: #8899aa; }

/* ========== Footer ========== */
.footer {
    background: #1a1a2e;
    color: #8899aa;
    padding: 40px 0 20px;
    margin-top: 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e94560;
    display: inline-block;
}
.footer p { font-size: 13px; line-height: 1.8; }
.footer-links a {
    display: inline-block;
    color: #8899aa;
    font-size: 13px;
    margin-right: 12px;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-links a:hover { color: #e94560; }
.footer-bottom {
    border-top: 1px solid #2a2a4e;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}
.footer-bottom a { color: #8899aa; margin: 0 8px; }
.footer-bottom a:hover { color: #e94560; }
.footer-bottom .copyright { margin-top: 10px; color: #555; }

/* ========== Customer Service Popup ========== */
.cs-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
}
.cs-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
    transition: all 0.3s;
    border: none;
    font-size: 24px;
}
.cs-btn:hover { transform: scale(1.1); }
.cs-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
}
.cs-popup.show { display: block; animation: slideUp 0.3s ease; }
.cs-popup-header {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cs-popup-header h3 { font-size: 15px; }
.cs-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.cs-popup-body { padding: 20px; }
.cs-popup-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}
.cs-popup-body .cs-contact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
.cs-popup-body .cs-contact strong { color: #1a1a2e; }
.cs-popup-body .cs-input-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.cs-popup-body input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.cs-popup-body input:focus { border-color: #e94560; }
.cs-popup-body button.cs-send {
    padding: 10px 20px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e94560; }
.breadcrumb span { margin: 0 6px; }

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}
.pagination a, .pagination span {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}
.pagination a:hover, .pagination .active {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

/* ========== Data Service / Database Page ========== */
.data-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.data-card h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.data-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.data-item:hover {
    background: #1a1a2e;
    color: #fff;
}
.data-item .number {
    font-size: 28px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 6px;
}
.data-item .label { font-size: 13px; color: #999; }
.data-item:hover .label { color: #8899aa; }

/* ========== Live Page ========== */
.live-banner {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 8px;
    padding: 30px;
    color: #fff;
    margin-bottom: 16px;
}
.live-banner h2 { font-size: 22px; margin-bottom: 8px; }
.live-banner p { color: #8899aa; font-size: 14px; }

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Media Page ========== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.media-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.media-card .thumb {
    height: 180px;
    overflow: hidden;
}
.media-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.media-card:hover .thumb img { transform: scale(1.05); }
.media-card .info { padding: 14px; }
.media-card .info h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}
.media-card .info p {
    font-size: 12px;
    color: #999;
}

/* ========== Recommend Page ========== */
.recommend-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}
.recommend-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.recommend-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}
.recommend-badge.hot { background: #e94560; }
.recommend-badge.expert { background: #0f3460; }
.recommend-badge.ai { background: #533483; }

/* ========== Back to Top ========== */
.back-top {
    position: fixed;
    right: 20px;
    bottom: 40px;
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    border: none;
    font-size: 18px;
    z-index: 999;
}
.back-top.show { opacity: 1; }
.back-top:hover { background: #e94560; }

/* ========== Responsive Helpers ========== */
.text-center { text-align: center; }
.text-red { color: #e94560; }
.text-green { color: #4CAF50; }
.bg-white { background: #fff; border-radius: 8px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ========== SEO Hidden Text ========== */
.seo-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========== Article Cover ========== */
.article-cover {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.article-tags span {
    padding: 4px 12px;
    background: #f0f2f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}
.article-tags span:hover { background: #e94560; color: #fff; }

/* ========== Zone Colors for Standings ========== */
tr.zone-ucl { border-left: 3px solid #0f3460; }
tr.zone-uel { border-left: 3px solid #ff9800; }
tr.zone-rel { border-left: 3px solid #e94560; }
