/* @font-face {
    font-family: 'IPix';
    src: url("../fonts/IPix.woff") format('woff'),
         url("../fonts/IPix.woff2") format('woff2'),
         url("../fonts/IPix.ttf") format('truetype');
    font-display: swap;
  } */

body {
    --highlight-color: #89da54;
    --hover-color: #71e3ce;
    font-size: 16px;
    line-height: 1.62;
    font-family: 'IPix';
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    max-width: 600px;
    font-size: 18px;
    flex: 1;
    margin: 3rem auto;
    padding: 0 1rem;
    /* 合并flex属性 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main a::before {
    /* 合并transition声明 */
    transition: opacity 0.2s ease, background-color 0.1s ease;
    background-color: var(--highlight-color);
}

main a:hover::before {
    background: var(--hover-color);
}

/* 添加媒体查询注释 */
/* 移动端适配 - 屏幕宽度小于375px */
@media screen and (max-width: 374.5px) {
    footer {
        justify-content: flex-end;
    }
}
main h1 {
    margin-top: 0;
}

main p:first-of-type {
    margin-top: 0;
}

main p:last-of-type {
    margin-bottom: 0;
}
.link-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
    display: flex;
    gap: 0.75em;
}

.link-list li:not(:last-child)::after {
    content: "|";
    margin-left: 0.75em;
    opacity: 0.4;
}
main a {
    color: inherit;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

main a::before {
    content: "";
    position: absolute;
    height: 14px;
    bottom: 2px;
    left: -2px;
    width: 105%;
    z-index: -1;
    background-color: #89da54;
    opacity: .3;
    /* transform: skew(-35deg); */
    transition: opacity .2s ease;
    /* border-radius: 3px 8px 10px 6px; */
    border-radius: 0px;
    transition: 0.1s ease background-color;
}

main a:hover::before {
    background: #71e3ce;
}

footer {
    margin: 0.5rem 0;
    padding: 0 1rem;
    opacity: 0.35;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 374.5px) {
    footer {
        justify-content: flex-end;
    }
    footer div:first-of-type {
        display: none;
    }
}

footer a {
    color: inherit;
    text-decoration: none;
}