/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    overflow-x: hidden;
}

.contents {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* 响应式容器 */
.note {
    width: 800px;
    margin: 20px 0px;
    padding: 20px ;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 内容样式 */
.post-content {
    margin-bottom: 20px;
}

/* 图片样式 */
.note img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.note video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* 时间和ID样式 */
.time {
    color: #666;
    margin-top: 10px;
}

.footnote {
    font-size: 0.9em;
    line-height: 1.2rem;
    color: #666;
    border-top: 1px solid #bfbfbf;
    padding-top: 10px;
    margin-top: 20px;
}

.footnote p {
    margin: 5px 0px;
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .note {
        background-color: #1e1e1e;
        border: 1px solid #333;
    }

    .time, .footnote {
        color: #bbb;
    }

    .post-content {
        color: #e0e0e0;
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .note {
        padding: 15px;
        max-width: calc(100% - 30px);
    }

    .time, .footnote {
        font-size: 0.8em;
    }
}

/* 默认链接样式 */
a {
    color: #99c3ff; /* Google蓝色 */
    text-decoration: none; /* 去掉下划线 */
}

/* 悬停时的链接样式 */
a:hover {
    text-decoration: underline; /* 悬停时添加下划线 */
    color: #99c3ff; /* 保持蓝色 */
}

/* 已访问链接样式 */
a:visited {
    color: rgb(197,138,249); /* 已访问链接的颜色 */
}

code {
    /* line breaking */
    white-space: pre-wrap;
}