/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img{
    max-width: 100%;
    height: auto;
}


/* Header */

.header{
    display: flex;
    border: 1px solid lightgray;
    background-color: #81b6ea;
}

.header-container{
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    width: 100%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 15px;
}

.header-navigation{
    display: flex;
    align-items: center;
}

.header-logo{
    color: #f8b62d;
    text-decoration: none;
    font-size: 30px;
    font-family: ABC Oracle Unlicensed Trial;
    text-align: center;
}

.main-navigation{
    list-style: none;
    text-decoration: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-navigation__item {
    display: flex;
}

.main-navigation__link{
    text-decoration: none;
    color: white;
}

.header-action{
    display: flex;
    color: black;
    list-style: none;
    gap: px;
    align-items: center;
}

.header-controls{
    list-style: none;
    padding:0;
    margin:0;
    display:flex;
    gap: 35px;
    align-items:center;
}

.header-controls__button{
background-color: transparent;
border: none;
color: rgb(238, 218, 36);
font-weight: 500;
}

.header-controls__button--main{
    border: none;
    padding: 10px 16px;
    background-color: lightskyblue;
    color: white;
    font-weight: 400;
    border-radius: 8px;
}

@media (max-width:768px) {
    .header-container {
    flex-direction: column;
    gap:15px;
    padding:0 10px;}
    
    .main-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap:18px;}
    
    .header-controls {
    justify-content: center;
    gap:18px;}
}



/* Main Content */

.container{
    position: relative;
}

.banner-pic{
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
    display: block;
}

h1{
    margin: 0;
    padding: 0;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #F8B62D;
    font-size: 54px;
    font-weight: bold;
    text-align: center;
    line-height: 1.15;
    font-family: ABC Repro Unlicensed Trial;
    white-space: nowrap
}

h2{
    margin: 0;
    padding: 0;

    color: black;
    font-weight: bold;
    text-align: center;
    font-family: ABC Repro Unlicensed Trial;
    margin-top: 60px;
    margin-bottom: 60px;
    font-size: 30px;

}

.line-container{
    display: flex;  
    justify-content: space-around;
    padding: 60px 40px;
    text-align: center;
}

.line-item a{
    text-decoration: none;
}

.line-item{
    flex: 1;
}

.num {
    font-size: 48px;
    font-weight: bold;
    margin-bottom:12px;
}

.num-1 {
    color: #f7b529;
}
.num-2 {
    color: #0078e8;
}
.num-3 {
    color: #e6212a;
}
.num-4 {
    color: #00a833;
}

.line-item h3 {
    font-size:18px;
    margin:0 0 16px;
}

.line-item p {
    font-size:15px;
    color:#333;
    line-height:1.5;
    margin:0;
}

.line-section{
text-align: center;
margin: 50px auto;
}

.metro-img{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    width: 65%;
}

.articles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-left: 20px;
    margin-right: 20px;
}

.article {
    flex: 1 1 240px;
    min-width: 240px;
    max-width: 320px;
}

.article article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom:16px;
}

.article h3 {
    margin:0 0 12px;
    font-size:1.4rem;
    color: black;
    font-family:Roboto;
}

.article p {
    flex-grow: 1;
    margin:0 0 14px;
    line-height:1.5;
    font-size: 12px;
    font-family: Roboto;
}

.more-link:visited {
    color:#f7b529;
    text-decoration: none;
    font-size:1.1rem;
    font-weight:bold;
    margin-top:auto;
}

.more-link::after{
    content:" →";
    text-decoration: none;
}
.more-link:hover {
    color:#d89c18;
}

.more-link:active {
    color:#f7b529;
    text-decoration: none;
    font-size:1.1rem;
    font-weight:bold;
    margin-top:auto;
}


.more-link:hover::after{
    display: inline-block;
    transform: translateX(3px);
    transition:0.2s ease;
}

.more-link:focus {
    text-decoration: none;
    outline: none;
}

@media (max-width:992px){
    .articles{
        gap:20px;
    }
}

/* 手机适配，左右留边 */
@media (max-width:576px){
    div{
        padding:0 16px;
    }
    h2{
        font-size:1.6rem;
        margin:30px 0 24px;
    }
}


/*Parks List*/

.parks-module {
    margin: 60px 0;
}

.park-main{

}


.parks-wrap {
    display: flex;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 左侧侧边栏 */
.sidebar {
    width: 240px;
    max-height: 650px;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    background-color: #00a833;
}
.sidebar li {
    padding: 12px 8px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar li.active {
    color:#e6b038;
    font-weight: bold;
}
.sidebar li:hover {
    background-color: #e9e5da;
}

/* card*/
.card-area {
    position: relative;
    width: 620px;
}

.park-card {
    background-color: #d9c89c;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}
.park-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.park-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.card-text {
    padding:24px;
    color:#ffffff;
}
.card-text h4 {
    margin-bottom:14px;
    font-size:1.8rem;
}
.card-text p {
    font-size:1.05rem;
    line-height:1.6;
}

/* 上下箭头按钮 */
.arrow-btn {
    position:absolute;
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:#fff;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,0.18);
    z-index: 10;
}

.btn-up {
    top:-22px;
    left:50%;
    transform: translateX(-50%);
}
.btn-down {
    bottom:-22px;
    left:50%;
    transform: translateX(-50%);
}

/* 移动端适配 */
@media (max-width: 900px) {
    .parks-wrap {
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
    
.sidebar {
    width: 100%;
    max-height: 300px;
}
.card-area {
    width: 100%;
}
}