/* 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;
}

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*/

.park-card{
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    margin-bottom: 12px;
}

.park-img{
    width: 360px;
    height: 240px;
    object-fit: cover;
    flex-shrink: 0;
}

h4{
    font-size: 20px;
    font-family: Roboto;
    margin-bottom: 5px;
    margin-top: 5px;
}

.park-card p {
    margin: 4px 0;
    font-size: 12px;
    font-family: Roboto;
    max-width: 1000px;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .parks-wrap {
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
    
.sidebar {
    width: 100%;
    max-height: 300px;
}
.card-area {
    width: 100%;
}
}

/* Footer样式 */
.footer {
    margin-top: 60px;
    padding: 0 16px;
}
.footer-banner {
    background-color: #8AB7E4;
    color: white;
    text-align: center;
    padding: 48px 20px;
    border-radius: 16px;
}
.footer-banner h5 {
    font-size: 35px;
    margin:0 0 24px;
    font-weight:bold;
    font-family: ABC Repro Unlicensed Trial;
}
.footer-btn {
    background-color: #f8b62d;
    color: #ffffff;
    border:none;
    padding: 6px 16px;
    border-radius:4px;
    font-weight:bold;
    cursor:pointer;
}
.footer-nav {
    display:flex;
    justify-content: space-between;
    align-items:center;
    margin-top:30px;
    padding-bottom:30px;
}
.footer-logo {
    font-size:32px;
    color:#f8b62d;
    font-weight:bold;
    text-decoration:none;
}
.footer-menu {
    display:flex;
    gap:20px;
    list-style:none;
    padding:0;
    margin:0;
}
.footer-menu__item a {
    text-decoration:none;
    color:#333;
    font-size:14px;
}

/* 移动端适配，小屏幕自动调整 */
@media screen and (max-width:768px) {
    .footer-banner h5 {
    font-size: 35px;}
    
    .footer-nav {
    flex-direction:column;
    gap:16px;
    align-items:flex-start;}


    .footer-menu {
    flex-wrap:wrap;
    gap:10px;}
}

.footer-logo{
    color: #f8b62d;
    text-decoration: none;
    font-size: 30px;
    font-family: ABC Oracle Unlicensed Trial;
    text-align: center;
}




@media (max-width:768px) {
    /* 1. 头部标题缩小 */
    h1 {
        font-size: 32px;
    }
    .banner-pic {
        height: 320px;
    }

    /* 2. 地铁线路line-container：横向变纵向堆叠 */
    .line-container {
        flex-direction: column;
        gap: 32px;
        padding:30px 20px;
    }
    .line-item {
        flex:none;
    }

    /* 3. Park List卡片：图片从上到下竖排！！ */
    .park-card {
        flex-direction: column;
    }
    .park-img {
        width:100%;
        height:200px;
    }

    /* 4. 地铁图片缩小 */
    .metro-img {
        width:90%;
    }

    /* 5. 推荐文章articles 全屏单列 */
    .articles{
        flex-direction: column;
        align-items: center;
    }
    .article{
        max-width:100%;
        width:100%;
    }
}

.header {
    padding: 8px 0;
    border-bottom: 1px solid lightgray;
}

.header-container {
    margin-top: 0;
    margin-bottom: 0;
    padding: 6px 12px;
    gap: 12px;
}

/* Logo 缩小 */
.header-logo {
    font-size: 22px;
}

/* 导航链接缩小并收紧间距 */
.main-navigation {
    gap: 16px;
}

.main-navigation__link {
    font-size: 14px;
}

/* 右侧登录按钮区域收紧 */
.header-controls {
    gap: 12px;
}

.header-controls__button {
    font-size: 14px;
}

.header-controls__button--main {
    padding: 8px 14px;
    font-size: 14px;
}

/* ========== 首页整体留白减少，让页面更紧凑 ========== */

.container {
    margin-bottom: 20px;
}

/* Banner 图片高度降低一点 */
.banner-pic {
    height: 420px;
}

/* 主标题缩小 */
h1 {
    font-size: 42px;
    line-height: 1.2;
}

/* 地铁线路模块留白减少 */
.line-container {
    padding: 30px 20px;
    gap: 20px;
}

.num {
    font-size: 36px;
}

.line-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.line-item p {
    font-size: 14px;
}

/* 标题上下间距收紧 */
h2 {
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 26px;
}