
/* --------------------- 基础样式 --------------------- */
* {
    margin: 0;

    padding: 0;
}

a {
    text-decoration: none !important;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

body {
    overflow-x: hidden;
}

/* --------------------- 元素通用样式 --------------------- */
img {
    border-radius: 0.25rem;
    /* width: auto;
    height: 6vh; */
    vertical-align: middle;
    transition: all 0.3s;
}

img:hover {
    transform: scale(1.01);
    transition: all 0.3s;
}


p {
    border-radius: 0.25rem;
    padding: 0.25rem;
}

/* --------------------- 表格样式 --------------------- */
table {
    border: 1px solid silver;
    border-radius: 0.25rem;
    background-color: rgb(253, 239, 218);
    padding: 0.5rem;
    text-align: center;
    width: 100%;
}

caption {
    border: 1px solid silver;
    border-radius: 0.25rem;
    background-color: deeppink;
    color: white;
    padding: 0.5rem;
    text-align: center;
}

thead {
    background-color: #fefdd4;
}

tbody {
    background-color: #fffce9;
}

th {
    border: 1px solid silver;
    border-radius: 0.25rem;
    background-color: rgb(254, 255, 204);
    padding: 0.5rem;
}

td {
    border: 1px solid silver;
    border-radius: 0.25rem;
    background-color: rgb(255, 252, 223);
    padding: 0.5rem;
    text-align: left;
}



/* --------------------- 文本样式 --------------------- */
pre {
    white-space: pre-wrap;
    /* margin:0.0rem;  */
    width: 100%;
    border-radius:0.25rem;     
    /* background-color: rgb(230, 235, 240, 0.89);   */
    padding:0.5rem; 
    font-size:1.1rem; 
}



.partTitle{
 border-radius:0.25rem 0.25rem 0 0; background-color:purple; color:white; padding:0.25rem;
}

.div{
    border: 0px solid silver; border-radius:0 0 0.25rem 0.25rem; background-color: rgb(230,240,250,0.69) ; padding:0.0rem; opacity:0.99; 
}

.code {
    margin: 0.25rem;
    border: 0px solid white;
    border-radius: 0.25rem;
    background-color:black; 
    color:white;
    padding: 1rem;
}

.span-style {
    border-radius: 0.25rem;
    background-color: transparent;
    color: purple;
    padding: 0.25rem;
}
.span-border-bottom {
    border-bottom: 1px solid black;
    border-radius: 0.25rem;
    background-color: transparent;
    color: purple;
    padding: 0.25rem;
}

.bg-purple {
    margin-bottom: 0rem;
    border: 0px solid white;
    border-radius: 0.25rem;
    background-color: purple;
    color: white;
    padding: 0.25rem;
}

/* --------------------- 标题样式 --------------------- */
.card-title {
    border-radius: 0.25rem 0.25rem 0 0;
    background-color: rgb(100, 110, 50);
    color: white;
    padding: 0.5rem;
    font-size: 1.25rem;
}

/* 不同层级标题 */
.unit-title {
    margin: 0.95rem;
    border: 0px solid white;
    border-radius: 0.25rem;
    background-color: transparent;
    color: purple;
    padding: 1.50rem 0.25rem;
    font-size: 2rem;
    font-style: italic;
}
.part-title {
    margin: 0.95rem;
    border: 0px solid white;
    border-radius: 0.25rem;
    background-color: transparent;
    color: purple;
    padding: 1.25rem 0.25rem;
    font-size: 1.5rem;
    font-style: italic;
}
.small-title {
    margin: 0.95rem 0.5rem 0.35rem 0;
    border: 0px solid white;
    border-radius: 0.25rem;
    background-color: yellowgreen;
    color: purple;
    padding: 0.5rem 0.35rem;
    font-size: 1.25rem;
    font-style: italic;
}
.article-name {
    margin: 0.95rem 0.5rem 0.35rem -0.35rem;
    font-size: 1.5rem;
    color: blue;
    font-style: italic;
}
.article-title {
    margin: 0.95rem;
    font-size: 1.5rem;
    color: purple;
    font-style: italic;
}

/* --------------------- 区块样式 --------------------- */
.part-base {
    border-radius: 0.25rem;
    width: 100%;
    background-color: transparent;
    padding: 1rem;
}
.part-zero {
    @extend .part-base;
}
.part-one {
    @extend .part-base;
    background-color: rgb(245, 237, 237);
}
.part-two {
    @extend .part-base;
    background-color: rgb(245, 227, 227);
}
.part-three {
    @extend .part-base;
    background-color: rgb(245, 217, 217);
}
/* 更多区块样式... */
.p-base {
    border-radius: 0.25rem;
    padding: 1rem;
}
.p0 {
    @extend .p-base;
    background-color: rgb(255, 208, 208);
}
.p1 {
    @extend .p-base;
    background-color: rgb(255, 234, 206);
}
/* 更多p样式... */

/* --------------------- 辅助类 --------------------- */
.hr-style {
    border-color: rgb(228, 224, 224);
}
.yinbiao {
    color: rgb(165, 165, 165);
}
.zhushi {
    color: rgb(165, 165, 165);
}
.yingchang {
    visibility: hidden;
}
.kuozhan {
    display: inline-block;
    width: fit-content;
    border: 1px dashed white;
    border-radius: 0.25rem;
    background-color: antiquewhite;
    color: black;
    padding: 0.5rem;
}
.song {
    border-radius: 0.25rem;
    background-color: rgb(255, 210, 193);
    padding: 0.25rem;
}

/* 缩进类 */
.suojin, .sj {
    margin-left: 2rem;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

/* 浮动元素 */
.float-base {
    border: 1px solid rgb(175, 175, 175);
    margin: 0.25rem;
    border-radius: 0.25rem;
    padding: 0.5rem;
}
.float-left, .fd, .fudong {
    @extend .float-base;
    float: left;
}
.tangta {
    clear: both; /* 坍塌 */
}

.module-title {
    background-color: rgb(119, 52, 88);
    color: white;
    padding: 5rem 2.5vw;
}

/* --------------------- 标题标签样式 --------------------- */
h1 {
    background-color: transparent;
    font-size: 1.6rem;
    padding: 0.5rem;
}
h2 {
    background-color: transparent;
    font-size: 1.5rem;
    padding: 0.5rem;
}
h3 {
    background-color: transparent;
    font-size: 1.4rem;
    padding: 0.5rem;
}
h4 {
    background-color: transparent;
    font-size: 1.3rem;
    padding: 0.5rem;
}
h5 {
    background-color: transparent;
    font-size: 1.2rem;
    padding: 0.5rem;
}
h6 {
    background-color: transparent;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.border-purple {
    border: 1px solid purple;
    border-radius: 0.25rem;
}

/* --------------------- 媒体查询 --------------------- */
/* 顶屏 - 4K 分辨率 */
@media screen and (min-width: 3840px) {
    body {
        font-size: 1.6rem;
    }
    #ph {
        display: none;
    }
    img {
        width: calc(13rem*5/6);
        height: 12rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.75rem;
    }
    video {
        width: 30%;
        height: auto;
    }
}

/* 2K 分辨率 */
@media screen and (min-width: 2560px) and (max-width: 3839px) {
    #ph {
        display: none;
    }
    img {
        width: calc(13rem*5/6);
        height: 12rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.75rem;
    }
    video {
        width: 30%;
        height: auto;
    }
}

/* 1080P 分辨率 */
@media screen and (min-width: 1901px) and (max-width: 2559px) {
    #ph {
        display: none;
    }
    img {
        width: calc(9rem*5/6);
        height: 9rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.75rem;
    }
    video {
        width: 30%;
        height: auto;
    }
}

/* 次屏 - iPad Pro 等 */
@media screen and (min-width: 992px) and (max-width: 1900px) {
    #ph {
        display: none;
    }
    img {
        width: calc(5rem*5/6); /* 5remd 宽度荣4个字 | 6rem的 约容5个字 | 7rem的 宽度荣6个字 */
        height: 4rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.35rem;
    }
    video {
        width: 48%;
        height: auto;
    }
}

/* 中屏 - iPad 等 */
@media screen and (min-width: 768px) and (max-width: 991px) {
    #pc {
        display: none;
    }
    img {
        width: calc(5rem*5/6);
        height: 4rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.35rem;
    }
    video {
        width: 48%;
        height: auto;
    }
}

/* 小屏 - 平板 （ 小米平板7寸 */
@media screen and (min-width: 576px) and (max-width: 767px) {
    #pc {
        display: none;
    }
    img {
        width: calc(5rem*5/6);  /* 5rem的 宽度刚好容下4个字 一行7个图标 */
        height: 4rem;
    }
    #canvas {
        display: none;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.35rem;
    }
    video {
        width: 48%;
        height: auto;
    }
}

/* 底屏 - 手机（ 小米 oppo 手机 */
@media screen and (max-width: 575px) {
    body {
        font-size: 0.8rem;
    }
    #pc {
        display: none;
    }
    #canvas {
        display: none;
    }
    img {
        width: calc(4rem*5/6); /* 4rem的 刚好匹配4个字宽度 一行5个 | 5rem的 一行4个 预估能匹配6个字的宽度 */
        height: 3rem;
    }
    .ssk {
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }
    .zuiwaiceng {
        float: left;
        border-radius: 0 0.25rem 0.25rem 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.69);
        padding: 0.35rem;
    }
    video {
        width: 99%;
        height: auto;
    }
}




/* --------------------- 链接样式 --------------------- */




a {
    text-decoration: none !important;
    display: inline-block;
    margin: 0.15rem 0.15rem 0.25rem;
    color: rgba(0, 0, 0, 0.9);
    background: rgba(230, 230, 230, 0.99);
    border: 0px solid rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    padding: 1px;
    text-align: center;
    transition: all 0.3s;
}

a:visited {
    color: rgba(0, 0, 0, 0.9);
}

a:focus {
    color: greenyellow;
    background: pink;
    box-shadow: 0 0 6px 7px rgba(100, 155, 155, 0.67);
}

a:hover {
    color: blue;
    background: rgb(182, 255, 255);
    box-shadow: 0 0 6px 7px rgb(255, 160, 0);
    transform: scale(1.01);
}

a:active {
    color: greenyellow;
    background: rgb(170, 170, 170);
    border: 0px solid rgba(0, 0, 0, 0.67);
    box-shadow: 0 0 0px 0px yellowgreen;
}

/* --------------------- 输入框样式 --------------------- */
input, button {
    background-color: rgb(230, 230, 230);
    margin: 0.25rem;
    padding: 0.25rem;
    border: none;
    border-radius: 0.25rem;
    display: inline-block;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
}

input:hover, button:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 6px 6px rgb(170, 170, 170);
}

input:active, button:active {
    background-color: rgba(245, 250, 255, 0.99);
    box-shadow: 0 0 3px 4px yellowgreen;
}

input:focus, button:focus {
    background-color: rgba(245, 250, 255, 0.99);
    box-shadow: 0 0 1px 2px yellowgreen;
}

/* --------------------- 列表样式 --------------------- */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

li {
    margin-right: 10px;
    border: 1px solid white;
    border-radius: 0.25rem;
    background-color: silver;
    padding: 0.25rem;
    text-align: center;
    transition: 0.25s;
    cursor: pointer;
}

li:link {
    text-decoration: none;
    margin-top: 0.25rem;
    display: inline-block;
    border-radius: 0.25rem;
    color: rgba(0, 0, 0, 0.9);
    background: rgb(221, 230, 229);
    padding: 0.25rem;
    text-align: center;
    transition: 0.25s;
}

li:visited {
    color: rgba(0, 0, 0, 0.9);
}

li:focus {
    color: deeppink;
    background: rgb(170, 170, 170);
    box-shadow: 0 0 2px 3px silver;
}

li:hover {
    color: blue;
    background-image: linear-gradient(bisque, pink, bisque);
    box-shadow: 0 0 6px 8px silver;
    transition: 0.25s;
}

li:active {
    color: greenyellow;
    background: rgb(170, 170, 170);
    box-shadow: 0 0 0px 0px rgb(170, 170, 170);
}

/* --------------------- 动画样式 --------------------- */
#bear {
    position: absolute;
    bottom: 60px;
    width: 200px;
    height: 100px;
    background: url(z/p/yet/bear.png) no-repeat;
    animation: bear-run 1.25s steps(8) infinite, move-left 3s forwards;
}

@keyframes bear-run {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -1600px 0;
    }
}

@keyframes move-left {
    0% {
        left: 0;
    }
    100% {
        left: 3%;
        transform: translateX(-10%);
    }
}