/* --- 全局与基础设置 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5; /* 使用柔和的背景色突出纸张感 */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- 纸张容器 --- */
.paper-container {
    background-color: #fff;
    width: 100%;
    max-width: 800px; /* 在大屏幕上限制最大宽度，保证阅读舒适性 */
    padding: 60px 70px; /* 内边距，留出呼吸空间 */
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative; /* 为伪元素定位提供基准 */
    overflow: hidden; /* 防止伪元素溢出 */
}

/* --- 对角边框装饰 --- */
.paper-container::before,
.paper-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #ccc; /* 边框颜色，比文字浅，不突兀 */
    border-style: solid;
}

/* 左上角边框 */
.paper-container::before {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

/* 右下角边框 */
.paper-container::after {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}


/* --- 内容排版 --- */
.content {
    text-align: justify; /* 文本两端对齐，更像印刷品 */
    line-height: 1.8;   /* 增加行高，提升中文阅读体验 */
    font-size: 17px;
}

.content h1 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 1.5em;
    font-weight: 500;
    color: #000;
}

.content p {
    margin-bottom: 1.2em;
}

/* 引用经文样式 */
.content .scripture {
    font-style: italic;
    color: #666;
    margin-left: 1em; /* 稍微缩进 */
    padding-left: 1em;
    border-left: 2px solid #eee; /* 左侧加一条淡色竖线，以作区分 */
}

/* 结尾的阿门 */
.content .amen {
    text-align: right;
    font-weight: bold;
    margin-top: 2em;
}


/* --- 移动设备适配 --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .paper-container {
        padding: 40px 30px; /* 在手机上减小内边距 */
    }

    .paper-container::before,
    .paper-container::after {
        width: 20px;
        height: 20px;
    }

    .paper-container::before {
        top: 15px;
        left: 15px;
    }
    
    .paper-container::after {
        bottom: 15px;
        right: 15px;
    }

    .content {
        font-size: 16px; /* 移动端字体稍小一点 */
        line-height: 1.7;
    }

    .content h1 {
        font-size: 1.6em;
    }
}
