/*
Theme Name: Football
Theme URI: http://example.com/football
Author: Your Name
Author URI: http://example.com
Description: A custom theme for football website
Version: 1.0
*/

/* ================== 基础样式 ================== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

h1,
h2,
h3 {
    margin: 20px 0;
    font-weight: bold;
}

a {
    color: #0066cc;
    text-decoration: none;
    /* 去掉所有链接的下划线 */
}

a:hover {
    color: #ffcc00;
    /* 鼠标悬停时的颜色变化 */
}

/* ================== 顶部导航 ================== */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    background: #333;
    text-align: center;
}

.main-menu li {
    display: inline-block;
    margin: 0 20px;
}

.main-menu a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    /* 去掉所有链接的下划线 */
}

/* ================== 页面宽度容器 ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================== 卡片网格 ================== */
.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ================== 比赛卡片 ================== */
.match-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    position: relative;
}

/* 联赛名 */
.match-league {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

/* 主队 vs 客队 */
.match-teams {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* 比分 */
.match-teams .score {
    color: #ffb300;
    font-weight: 700;
}

/* 时间 */
.match-meta {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

/* 球队链接 */
.team-link {
    color: #0066cc;
    font-weight: bold;
    position: relative;
    z-index: 5;
    /* 确保在卡片内容最上层 */
}

.team-link:hover {
    color: #ffcc00;
}

/* ================== 卡片内部布局 ================== */
.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-details {
    font-size: 14px;
    text-align: right;
}

.match-details .score {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* ================== LIVE ================== */
.is-live {
    border-left: 4px solid red;
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ================== 页脚 ================== */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #ffcc00;
}

footer ul {
    list-style: none;
    /* 禁用列表标记 */
    padding-left: 0;
    /* 去除默认的内边距 */
}

footer li {
    margin-bottom: 10px;
    /* 给列表项添加底部间距，避免显得拥挤 */
}

/* ================== 手机端 ================== */
@media (max-width: 768px) {
    .match-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }
}

/* ===== Team with Logo ===== */
.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================== 更新部分：球队名字与队徽居中显示，队徽增大 ================== */
.team-header {
    text-align: center;
    padding: 40px 0;
}

.team-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.team-logo {
    width: 120px;
    /* 增大队徽图标 */
    height: 120px;
    /* 增大队徽图标 */
    object-fit: contain;
    /* 保证图标不会变形 */
    border-radius: 50%;
    /* 可选，圆形展示队徽 */
}

h1 {
    font-size: 36px;
    /* 更大字体 */
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* ================== Top Banner（新增，不影响原样式） ================== */
.top-banner {
    height: 250px;
    background-size: cover;
    /* 不平铺，充满 */
    background-position: center;
    /* 中心裁切 */
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* 轻遮罩，保证文字可读 */
}

.top-banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 20px;
}

.top-banner-inner .site-title {
    margin: 0;
    font-size: 50px;
    font-weight: 800;
    color: #ffffff;
}

.top-banner-inner .site-tagline {
    margin-top: 6px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

/* ================== 卡片网格 ================== */
.league-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ================== 联赛卡片样式（和比赛卡片一致） ================== */
.league-card,
.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    position: relative;
}

.league-card a,
.team-card a {
    color: inherit;
    text-decoration: none;
}

/* 联赛名称 */
.league-card h2,
.team-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-top: 10px;
}

/* 联赛 / 球队 Logo */
.league-card img,
.team-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 50%;
}

/* 球队卡片：队名 */
.team-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-top: 10px;
}

/* ================== 卡片内部布局 ================== */
.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-details {
    font-size: 14px;
    text-align: right;
}

.match-details .score {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* ================== Standings ================== */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.standings-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.standings-header {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.standings-row {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.standings-row:nth-child(even) {
    background: #f7f7f7;
}

.standings-head {
    font-weight: 700;
    background: #f0f0f0;
    font-size: 15px;
    padding: 8px 15px;
}

.standings-row .pts {
    font-weight: 700;
    color: #ffb300;
    text-align: right;
}

/* Highlight the top 3 */
.standings-row:nth-child(2) .rank {
    color: gold;
    font-weight: 700;
}

.standings-row:nth-child(3) .rank {
    color: silver;
}

.standings-row:nth-child(4) .rank {
    color: #cd7f32;
}

.standings-row .rank {
    font-weight: 600;
}

/* ================== Mobile ================== */
@media (max-width: 768px) {
    .standings-grid {
        grid-template-columns: 1fr;
    }

    .standings-header {
        font-size: 18px;
    }

    .standings-row {
        grid-template-columns: 40px 1fr 50px;
    }

    .standings-row .pts {
        font-size: 16px;
    }
}

/* ================== 栏目标题和栏目描述 ================== */
.section-header {
    background-size: cover;
    /* 背景图覆盖整个区域 */
    background-position: center;
    /* 背景图居中显示 */
    background-repeat: no-repeat;
    /* 避免背景图重复 */
    padding: 32px 36px;
    border-radius: 14px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    height: 300px;
    /* 固定高度 */
}

/* 背景图片上的文字部分 */
.section-header h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    z-index: 2;
    /* 确保标题在背景图之上 */
    position: relative;
}

.section-header p {
    margin: 0;
    max-width: 920px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    /* 确保描述在背景图之上 */
    position: relative;
}

/* ================== Mobile ================== */
@media (max-width: 768px) {
    .section-header {
        padding: 22px 20px;
        height: 200px;
        /* 移动端高度略小 */
    }

    .section-header h1 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 14px;
    }
}



/* ================== 手机端导航栏菜单 ================== */

.site-nav {
    position: relative;
}

/* 优化汉堡按钮样式 */
.menu-toggle {
    display: none;
    background: none;
    color: #fff;
    font-size: 20px;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    /* 确保按钮宽度为100% */
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: block;
        background: #333;
        /* 深色背景 */
        color: #fff;
        /* 文字为白色 */
        font-size: 20px;
        /* 字体大小 */
        padding: 12px 20px;
        /* 按钮内边距 */
        text-align: center;
    }

    /* 主菜单默认隐藏 */
    .main-menu {
        display: none;
        flex-direction: column;
        background: #333;
        padding: 10px 0;
        margin-top: 20px;
    }

    /* 展开状态 */
    .main-menu.is-open {
        display: flex;
    }

    .main-menu li {
        display: block;
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-menu a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .main-menu a:hover {
        color: #ffcc00;
    }
}

/* ================== 单篇文章页（Single Post） ================== */

.single-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post-header .post-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.single-post-header .post-meta {
    font-size: 14px;
    color: #777;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .single-post-header .post-title {
        font-size: 26px;
    }
}

/* ================== 单篇文章布局 ================== */

.post-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 主内容区 */
.post-main {
    flex: 3;
}

/* 右侧栏 */
.post-sidebar {
    flex: 1;
}

/* 文章头部 */
.single-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post-header .post-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.single-post-header .post-meta {
    font-size: 14px;
    color: #777;
}

/* 侧栏卡片 */
.sidebar-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    font-size: 14px;
    color: #0066cc;
}

/* ================== 手机端适配 ================== */

@media (max-width: 768px) {

    .post-layout {
        flex-direction: column;
    }

    .post-main,
    .post-sidebar {
        width: 100%;
    }

    .post-sidebar {
        margin-top: 30px;
    }

    .single-post-header .post-title {
        font-size: 26px;
    }
}

/* ================== 分页（Pagination） ================== */

.pagination {
    margin: 48px 0 20px;
    text-align: center;
}

/* 所有分页项 */
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    margin: 0 4px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #333;
    background: #ffffff;

    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

    text-decoration: none;
}

/* 当前页 */
.pagination .current {
    background: #ffb300;
    color: #111;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* 上一页 / 下一页 */
.pagination .prev,
.pagination .next {
    font-weight: 700;
    padding: 8px 16px;
}

/* 禁用状态（比如第一页没有 prev） */
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ================== 分页（Pagination）Mobile ================== */
@media (max-width: 768px) {
    .pagination {
        margin: 32px 0 10px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        padding: 6px 10px;
        margin: 0 3px;
        font-size: 13px;
    }
}

/* =====================================================
   Home Page "More" Buttons
   Same visual style as pagination
===================================================== */

.more-link {
    margin: 32px 0 25px;
    /* 与上下内容拉开距离 */
    text-align: right;
}

.more-link a {
    display: inline-block;
    padding: 10px 18px;
    min-width: 180px;
    text-align: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: #333;
    background-color: #ffffff;

    border: 1px solid #ddd;
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

/* Hover 状态（与分页按钮一致） */
.more-link a:hover {
    background-color: #ffb300;
    color: #111;
    border-color: #ffb300;
    transform: translateY(-1px);
}

/* Active 点击态 */
.more-link a:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .more-link a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* =====================================================
   Tactical / Stats Article Cards
   Match-card Style (No Hover, Full Width, Read Button)
===================================================== */

/* 卡片基础 */
.match-card.post-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 20px 18px 56px;
    /* 给右下角按钮留空间 */

    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* 日期 */
.match-card.post-card .post-meta {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

/* 标题 */
.match-card.post-card .post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin-bottom: 10px;
}

/* 摘要 —— 占满宽度 */
.match-card.post-card .post-excerpt {
    width: 100%;

    font-size: 14px;
    line-height: 1.65;
    color: #444;

    margin: 0;
}

/* Read 按钮 —— 固定右下角 */
.match-card.post-card .team-link {
    position: absolute;
    right: 16px;
    bottom: 16px;

    display: inline-block;
    padding: 7px 14px;

    font-size: 13px;
    font-weight: 600;

    color: #333;
    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.match-card.post-card .team-link:hover {
    background-color: #ffb300;
    color: #111;
    border-color: #ffb300;
}

/* =====================================================
   Mobile Adaptation
===================================================== */
@media (max-width: 768px) {

    /* 单列 */
    .match-grid {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .match-card.post-card {
        padding: 16px 14px 52px;
    }

    .match-card.post-card .post-meta {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .match-card.post-card .post-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .match-card.post-card .post-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .match-card.post-card .team-link {
        right: 14px;
        bottom: 14px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ================== Back To Top Button ================== */

#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 999;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Mobile */
@media (max-width: 768px) {
    #back-to-top {
        right: 14px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ================== Breadcrumb ================== */

.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 12px auto 20px;
    padding: 0 16px;

    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.breadcrumb-wrapper a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-wrapper a:hover {
    text-decoration: underline;
}

.breadcrumb-wrapper .separator {
    margin: 0 6px;
    color: #aaa;
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        font-size: 12px;
        margin: 8px auto 16px;
    }
}