* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 1rem;
    font-size: 15px;
    overflow: auto;
    line-height: 1.6;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    background-image: linear-gradient(rgba(200, 200, 200, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    /* 确保背景在内容之下 */
}

.main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    grid-auto-rows: minmax(50px, auto);
    align-items: start;
    grid-auto-flow: dense;
    overflow: auto;
    /* 使内容可以滚动 */
    min-height: 100vh;
    /* 使内容容器占据整个视口高度 */
    padding: 1rem 0;
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    color: #676767;
    margin: 0;
    padding: 1rem;
}

h2 {
    font-size: 1.25rem;
    text-align: center;
    color: #676767;
    margin: 0;
    padding: 1rem;
}

.event-title {
    color: #f7f7f7;
}

a {
    color: rgb(62, 149, 255);
    text-decoration: none;
    cursor: pointer;
}

a:active,
a:focus {
    outline: none;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
}

img {
    width: 100%;
    height: auto;
}



.notice {
    font-size: 0.9rem;
    text-align: center;
    color: #676767;
    padding: 0.5rem;
}

p {
    margin: 0;
    padding: 0;
}

.flexc {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quick-links {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.quick-links .links {
    display: flex;
    justify-content: right;
    width: 80%;
}

.quick-links .links .link {
    padding: 0.25rem 0.5rem;
    border: 2px solid #ffafbe;
    border-radius: 8px;
    font-size: 0.8rem;
    margin: 0 0.25rem;
    color: #ffafbe;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;

}

.quick-links .links .link:hover {
    color: #ff385c;
}

.quick-links img {
    width: 2rem;
    height: 2rem;
}

article {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border: 2px solid #ffafbe;
}

article>header {
    color: #ffffff;
    background-color: #ff385c;
}


.feed-tags {
    padding: 0.5rem 1rem;
    border-bottom: 1px dashed #ff385c;
}

.feed-tag {
    text-align: justify;
    font-size: 0.85rem;
    color: #313131;
    display: block;
}

.feed-image {
    width: 100%;
    height: 0;
    /* 初始高度为 0 */
    display: block;
    visibility: hidden;
    /* 隐藏图片 */
    opacity: 0;
    /* 隐藏图片 */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, height 0.5s ease-in-out;
    /* 添加过渡效果 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.feed-image.loaded {
    visibility: visible;
    /* 显示图片 */
    opacity: 1;
    /* 显示图片 */
    animation: slide-in 0.5s ease-in-out;
    /* 添加动画效果 */
    height: auto;
}

@keyframes slide-in {
    0% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
    }
}

.feed-title {
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #f7f7f7;
    text-decoration: none;
}

.feed-content {
    padding: 0.5rem 1rem;
    text-align: justify;
    font-size: 0.85rem;
    color: #313131;
}

article>footer {
    color: #313131;
    padding: 0.5rem;
}

.feed-footer-item {
    display: block;
    font-size: 0.85rem;
}


footer {
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #958f8f;
    font-size: 0.9rem;

}


footer article p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

footer .links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer .links a {
    text-decoration: none;
    color: rgb(171, 203, 241);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

footer .links a:hover {
    color: #ff385c;
}



@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .main {
        grid-template-columns: 1fr;
    }
}