:root {
    --primary: #127129; /* Standard Beijing Gov Green */
    --primary-dark: #063914; 
    --bg-light: #EAF5E5; 
    --text-dark: #333333;
    --text-grey: #666666;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
.newsTopNav {
  position: absolute;
  top: 0;
  left: calc(50% - 600px);
  height: 150px;
  z-index: 10000;
  background: none;
}

/* ----- Base Containers ----- */
.ondejogarfutebol {
    max-width: 1920px;
    min-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Banner */
.top-banner {
    width: 100%;
    height: 468px;
    background: url('ondejogarfutebol_banner.jpg') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.top-banner h1 {
    display: none;
    position: relative;
    z-index: 2;
    font-size: 66px;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
    margin: 0;
    font-weight: bold;
}

/* Introduction Block */
.intro-block {
    background-color: var(--bg-light);
    padding: 40px 0;
    width: 100%;
}
.intro-block p {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.8;
    margin: 0 auto;
    max-width: 1200px;
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 80px auto 40px;
    width: 1200px;
}
.hd-section .section-title {
    margin-top: 0;
    padding-bottom: 40px;
}
.section-title h2 {
    font-size: 34px;
    color: var(--primary);
    margin: 0;
    font-weight: bold;
}
.section-title .more-link {
    position: absolute;
    right: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.section-title .more-link:hover {
    color: var(--primary);
}


/* ----- 1. Chaoyang (Grid layout, hover scale) ----- */
.cy-wrap {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: 0 auto;
}
.cy-card {
    width: 330px;
    height: 370px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    display: block;
}
.cy-card:hover {
    /* 鼠标经过区域放大 */
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.cy-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cy-card .text-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    box-sizing: border-box;
}
.cy-card h3 {
    font-size: 16px;
    color: var(--white);
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
}


/* ----- 2. Dongcheng (Staggered Overlapping layout) ----- */
.dc-wrap {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 70px;
}
.dc-row {
    display: flex;
    align-items: flex-start;
    position: relative;
    height: 460px;
    text-decoration: none;
    color: inherit;
}
.dc-row:nth-child(2n) {
    flex-direction: row-reverse;
}
.dc-img-box {
    width: 785px;
    height: 418px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.dc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dc-txt-box {
    width: 478px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-top: 20px;
    padding: 45px;
    position: relative;
    z-index: 5;
}
.dc-row .dc-txt-box {
    margin-left: -80px;
}
.dc-row:nth-child(2n) .dc-txt-box {
    margin-right: -80px;
}
.dc-txt-box h3 {
    font-size: 24px;
    color: var(--primary);
    margin: 0 0 20px 0;
    font-weight: bold;
    line-height: 1.4;
    transition: color 0.3s;
}
.dc-row:hover h3 {
    color: var(--primary-dark);
}
.dc-txt-box p {
    font-size: 16px;
    color: var(--text-grey);
    line-height: 1.8;
    margin: 0;
}
.dc-row:hover p {
    color: var(--primary);
}


/* ----- 3. Haidian (Flush Grid) ----- */
.hd-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    margin-top: 100px;
}
.hd-grid {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hd-col {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.hd-col:nth-child(2n){
    flex-direction: column-reverse;
}
.hd-col:hover h3 {
    color: var(--primary-dark);
}
.hd-col:hover .hd-btn {
    background: var(--primary-dark);
}
.hd-cell-img {
    aspect-ratio: 1/1;
}
.hd-cell-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hd-cell-txt {
    aspect-ratio: 1/1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    text-decoration: none;
}
.hd-cell-txt h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 30px 0;
    font-weight: bold;
    line-height: 1.4;
    transition: color 0.3s;
}
.hd-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    transition: background 0.3s;
}


/* ----- 4. Shunyi (Tabs/Hover switch matching 'Latest News' style) ----- */
.sy-wrap {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 480px;
}
.sy-left {
    width: 650px;
    height: 433px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.sy-left .sy-section-header {
    display: none;
}
.sy-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}
.sy-left img.fade-out {
    opacity: 0;
}
.sy-right {
    width: 570px;
    margin-left: 630px;
    position: relative;
    z-index: 10;
    height: 420px;
    display: flex;
    flex-direction: column;
}
.sy-section-header {
    text-align: right;
    margin-bottom: 25px;
}
.sy-section-header h2 {
    font-size: 34px;
    color: var(--primary);
    margin: 0;
    font-weight: bold;
}
.sy-more-wrap {
    text-align: right;
    margin-top: 25px;
}
.sy-more-wrap a {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.sy-more-wrap a:hover {
    color: var(--primary-dark);
}
.sy-right ul {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sy-right li.sy-item {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.5s;
    cursor: pointer;
}
.sy-right li.sy-item a {
    display: block;
    width: 100%;
    padding: 0 40px 0 50px;
    position: relative;
    z-index: 20;
    text-decoration: none;
}
.sy-right li.sy-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 530px;
    height: 100%;
    border-bottom: 1px solid #ccc;
    z-index: 15;
}
.sy-right li.sy-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-bottom: none;
    z-index: 15;
}
.sy-item .sy-title {
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    transition: color 0.3s;
}
.sy-item:hover:not(.active) .sy-title {
    color: var(--primary-dark);
}
.sy-item .sy-desc {
    font-size: 14px;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
/* Active state colors */
.sy-right li.sy-item.active .sy-title,
.sy-right li.sy-item.active .sy-desc {
    color: var(--white);
}


/* ----- Footer Introduction Block ----- */
.footer-info {
    background-color: var(--bg-light);
    padding: 50px 0;
    text-align: center;
    margin-top: 100px;
}
.footer-info p {
    font-size: 18px;
    color: var(--primary);
    margin: 0 auto;
    max-width: 1100px;
    line-height: 1.8;
}
.footer-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin: 20px 0 0 0;
    font-weight: bold;
}


@media (max-width: 1024px) {
    .ondejogarfutebol { min-width: 100%; } /* allow shrinking on smaller devices */
    .container, .cy-wrap, .dc-wrap, .sy-wrap, .section-title, .hd-grid {
        width: 100%;
        padding: 0 20px;
    }
    /* Dongcheng */
    .dc-row, .dc-row:nth-child(2n) { flex-direction: column; height: auto; gap: 20px; }
    .dc-img-box { width: 100%; height: auto; aspect-ratio: 16/9; }
    .dc-txt-box { width: 90%; margin: -40px auto 0 !important; }
    
    /* Haidian */
    .hd-grid { display: flex; flex-direction: column; gap: 30px; }
    .hd-col { flex-direction: row; }
    .hd-col:nth-child(2n) { flex-direction: row-reverse; }
    .hd-cell-img, .hd-cell-txt { width: 50%; height: auto; aspect-ratio: 5/4; }
    
    /* Shunyi */
    .sy-wrap { display: flex; flex-direction: column; height: auto; }
    .sy-left { width: 100%; height: auto; aspect-ratio: 16/9; position: relative; box-shadow:none; border-radius: 0; }
    .sy-left .sy-section-header {
        display: block;
    }
    .sy-right .sy-section-header {
        display: none;
    }

.sy-section-header {
    text-align: center;
    margin-bottom: 65px;
}
.sy-section-header h2 {
    font-size: 34px;
    color: var(--primary);
    margin: 0;
    font-weight: bold;
}
    .sy-right { width: 100%; margin-left: 0; height: auto; }
    .sy-right ul { border-radius: 0 0 8px 8px; }
    .sy-right li.sy-item { height: auto; padding: 20px 0; }
    .sy-right li.sy-item a { padding: 0 30px; }

.sy-right li.sy-item::after {
    width: 100%;
}
}
