/* 大框架 */

body {
    background-color: #fef7da;
    font-family: "Songti SC", STSong, "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, Georgia, "Nimbus Roman No9 L", serif;
    /* 大框架的字体设置 宋体优先,避免标点符号应用为英文格式 */
    width: 80%;
    margin: 10px auto;
}

header {
    display: flex;
    background-color: #ffe89c;
    padding-top: 10px;
    align-items: center;
}

main {
    background: #ffe89c url(../images/logo.png) center no-repeat;
    padding: 10px;
}

aside {
    display: column;
    flex-flow: row nowrap;
    background-color: #ffe89c;
    padding: 10px;
}

footer {
    background-color: #ffe89c;
    color: #fc8200;
    text-align: center;
    margin: 10px 0 10px 0;
    padding: 15px;
    font-size: 95%;
    gap: 15px;
    line-height: 1.3;
    /* 行高 */
}

/* 小部分 */

img {
    max-width: 100%;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    /* 行高 */
}

p a {
    font-weight: bold;
    color: #ff7e00;
    /* p里的a链接格式 */
}

/* header细节部分 */

header h1 {
    color: #ff7e00;
    font-size: 290%;
    flex-wrap: nowrap;
}

header p {
    color: #ff7e00;
    font-size: 110%;
    padding-left: 5px;
    opacity: .6;
    flex-wrap: nowrap;
}

header figcaption {
    display: column;
}

header img {
    display: block;
    width: 100px;
    height: 100px;
}


/* main细节部分 */

main p {
    text-indent: 2em;
    /* 首行缩进2字符 */
}

/* lede部分 */

.lede {
    text-align: center;
}

.lede h2 {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 5px 0 5px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff7e00;
    background-color: #fef7da;
    border-left: 3px solid #ff7e00;
    /* 左侧边框线 */
    border-right: 3px solid #ff7e00;
    /* 右侧边框线 */
}



/* aside细节部分 */

aside div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ff7e00;
}

aside div img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

aside div section {
    align-items: center;
}

aside div section h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: bold;
    text-indent: 1.5em;
    /* 由于字体大小不同，所以设置1.5字符缩进，保证标题与段落平齐 */
}

aside div section p {
    text-indent: 2em;
    /* 首行缩进2字符 */
}

aside section {
    background: url(../images/logo.png) center no-repeat;
}

/* ###############
06.自适应样式 
##################*/

/* 炒鸡小屏手机 (phones, 600px and down) */

@media only screen and (max-width: 600px) {

    aside div {
        flex-flow: column;
    }

    aside div img {
        height: 150px;
        width: 150px;
    }

/* 小于600px时，字体大小适应屏幕 */

    .lede h2 {
        font-size: 7vw;
    }

    aside div section h2 {
        font-size: 6vw;
        text-align: center; 
        text-indent: 0; /* 根据字体大小调整缩进值，保证上下平齐 */
    }

    ul#album li figcaption h2{
        font-size: 5vw;
    }

    p,footer,nav ul li,ul#album li figcaption p,ul.cards li p,main div section li{
        font-size: 4vw; 
    }

    /* 小于600px时，header部分的自适应 */

    header h1,
    header p {
        flex-wrap: nowrap;
    }

    header h1 {
        font-size: 8vw;
    }

    header p {
        font-size: 2.5vw;
    }

    header img {
        height: 20vw;
        width: 20vw;
    }

}

/* 横屏平板 (landscape tablets, 768px and down) */

@media only screen and (max-width: 768px) {
    aside div {
        flex-flow: column;
    }

     aside div section h2 {
        text-align: center;
        text-indent: 0; /* 根据字体大小调整缩进值，保证上下平齐 */
     }

    header h1,
    header p {
        flex-wrap: nowrap;
    }
}

/* 中小型笔记本电脑及台式机 (laptops/desktops, 992px and down) */

@media only screen and (max-width: 992px) {
    aside div {
        flex-flow: column;
    }

    aside div section h2 {
        text-align: center;
        text-indent: 0; /* 根据字体大小调整缩进值，保证上下平齐 */
     }

    header h1,
    header p {
        flex-wrap: nowrap;
    }
}