init: sxbh.ltd 官网初始提交
- nginx 安全加固 (CSP, HSTS, 缓存策略) - 共享 style.css - 138个页面全部接入 Co-authored-by: Hermes AI <agent@hermes>
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>《了凡四训》:改变命运的4个方法 - 博海视角</title>
|
||||
<meta name="description" content="《了凡四训》:改变命运的4个方法">
|
||||
<style>
|
||||
*{margin:0;padding:0;box-sizing:border-box}
|
||||
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:#f8f9fa;color:#1a1a2e;line-height:1.8}
|
||||
.article-container{max-width:800px;margin:0 auto;padding:20px}
|
||||
.article-header{text-align:center;padding:60px 20px 40px;background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;border-radius:16px;margin-bottom:30px}
|
||||
.article-header h1{font-size:28px;font-weight:700;line-height:1.4}
|
||||
.article-header .meta{margin-top:12px;font-size:14px;color:rgba(255,255,255,.5)}
|
||||
.article-body{background:#fff;border-radius:16px;padding:40px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
|
||||
.article-body img{max-width:100%;height:auto;border-radius:8px;margin:20px 0}
|
||||
.article-body h2{font-size:22px;margin:30px 0 15px;color:#1a1a2e}
|
||||
.article-body h3{font-size:18px;margin:20px 0 10px;color:#2d3748}
|
||||
.article-body p{margin:12px 0;text-indent:2em}
|
||||
.article-body blockquote p{text-indent:0}
|
||||
.article-body hr + p{text-indent:0}
|
||||
.article-body blockquote{border-left:4px solid #06b6d4;padding:10px 20px;margin:15px 0;background:#f0fdfe;border-radius:0 8px 8px 0}
|
||||
.article-body code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-size:14px}
|
||||
.article-body pre{background:#1e293b;color:#e2e8f0;padding:16px;border-radius:8px;overflow-x:auto}
|
||||
.article-body table{width:100%;border-collapse:collapse;margin:15px 0}
|
||||
.article-body td,.article-body th{border:1px solid #e2e8f0;padding:8px 12px;text-align:left}
|
||||
.article-body th{background:#f8fafc;font-weight:600}
|
||||
.back-link{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;background:#06b6d4;color:#fff;text-decoration:none;border-radius:8px;font-weight:500;font-size:14px;transition:background .2s}
|
||||
.back-link:hover{background:#0891b2}
|
||||
.article-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:30px;padding:20px 0;border-top:1px solid #e2e8f0}
|
||||
.share-bar{display:flex;align-items:center;gap:8px}
|
||||
.share-bar .share-btn{display:inline-flex;align-items:center;gap:5px;padding:8px 16px;border:none;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;text-decoration:none}
|
||||
.share-btn.web-share{background:#06b6d4;color:#fff}
|
||||
.share-btn.web-share:hover{background:#0891b2}
|
||||
.share-btn.copy-link{background:#f1f5f9;color:#1a1a2e}
|
||||
.share-btn.copy-link:hover{background:#e2e8f0}
|
||||
.share-btn.qr-code{background:#f1f5f9;color:#1a1a2e}
|
||||
.share-btn.qr-code:hover{background:#e2e8f0}
|
||||
.share-toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#1a1a2e;color:#fff;padding:10px 24px;border-radius:8px;font-size:14px;opacity:0;transition:opacity .3s;pointer-events:none;z-index:999}
|
||||
.share-toast.show{opacity:1}
|
||||
.qr-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1000;align-items:center;justify-content:center}
|
||||
.qr-modal.show{display:flex}
|
||||
.qr-modal-content{background:#fff;border-radius:16px;padding:30px;text-align:center;max-width:320px}
|
||||
.qr-modal-content img{width:200px;height:200px;border-radius:8px}
|
||||
.qr-modal-content .qr-close{margin-top:16px;padding:8px 24px;border:none;border-radius:6px;background:#f1f5f9;cursor:pointer;font-size:14px}
|
||||
@media(max-width:640px){.article-container{padding:10px}.article-header{padding:30px 15px}.article-header h1{font-size:22px}.article-body{padding:20px}}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="article-container">
|
||||
<div class="article-header">
|
||||
<h1>《了凡四训》:改变命运的4个方法</h1>
|
||||
<div class="meta">2026-07-01</div>
|
||||
</div>
|
||||
<div class="article-body">
|
||||
<h1 class="toc-header" id="了凡四训改变命运的4个方法"><a href="#了凡四训改变命运的4个方法" class="toc-anchor">¶</a> 《了凡四训》:改变命运的4个方法</h1>
|
||||
<blockquote>
|
||||
<p>发布日期: 2026-06-26 08:10<br>
|
||||
来源: 品宣BOT · 一切皆如</p>
|
||||
</blockquote>
|
||||
<hr>
|
||||
<p>《了凡四训》:改变命运的4个方法</p>
|
||||
<p>你有没有发现,身边有些人总觉得自己命不好,天天抱怨,却从不改变?其实,明朝思想家袁了凡早就告诉我们:命运不是天定的,是靠自己修的。他的《了凡四训》流传四百年,核心就四个方法,今天咱们聊聊,怎么用老祖宗的智慧,把日子过顺。</p>
|
||||
<p>第一,立命:先认账,再改账。袁了凡年轻时遇到一位算命先生,说他科举能考第几、活到53岁、无子,后来全应验了。他一度认命,直到遇见云谷禅师,才明白“命由我作,福自己求”。什么意思?你得先承认现状,但别认输。比如你上班累,赚得少,别光叹气,先问问自己:我是不是没用心?是不是总摸鱼?认账是清醒,改账是行动。今早出门,你可以对自己说:我不信命,我只信今天比昨天多干一点。</p>
|
||||
<p>第二,改过:每天做一件“对得起良心”的事。袁了凡说,改过要发三心:耻心、畏心、勇心。简单讲,就是做错事觉得丢脸,怕遭报应,然后立刻改。现代人最难的是“勇心”——明明知道熬夜伤身,还刷手机到凌晨;明明知道拖延误事,还等最后一刻。改过不用惊天动地,今早你少发一次脾气,对家人多说一句“辛苦了”,这就是改。积少成多,气场就变了。</p>
|
||||
<p>第三,积善:小事做多了,好运自然来。书里讲了个故事:福建有位老太太,常把自己的饭分给乞丐,后来儿子考中状元。这不是迷信,是能量守恒。你帮同事整理文件、给邻居递个快递、在公交上让座,这些小事看着不起眼,但会让人记住你的好。30岁后,人脉就是命脉。你帮别人一次,别人记你三年。今天试试,主动帮他人解决一个小麻烦,你会有种奇妙的轻松感。</p>
|
||||
<p>第四,谦德:低头不是怂,是给自己留余地。袁了凡特别强调“谦”字。他见过很多才子,骄傲自满后都栽跟头。现代职场更明显:你能力强,但总抢话、爱怼人,同事就躲着你,升职也轮不到你。谦虚不是装孙子,是心里有底,嘴上留德。比如开会时,你说“我有个不成熟的想法”,比直接说“我觉得不对”更让人舒服。谦德能让你少树敌,多结缘。</p>
|
||||
<p>这四个方法,说白了就是:认命改命、小错即改、随手行善、放低姿态。很多人觉得命运是玄学,其实它是因果——你今天种什么,明天就收什么。30到50岁,正是人生爬坡期,上有老下有小,压力大是常态。但别忘了,袁了凡53岁本该去世,却因为改了性子,活到74岁,儿子也考中进士。你看,命运真能改。</p>
|
||||
<p>从今天开始,你可以试试:早起10分钟,规划一天;遇事先反思自己;随手帮个忙;说话软一点。一个月后,回头看看,是不是同事更愿意理你,家里氛围也好了?别总抱怨“命不好”,先问问自己“我改了吗”。记住,人生最大的风水,是你自己。</p>
|
||||
<p>你觉得呢?评论区聊聊。</p>
|
||||
<hr>
|
||||
<p><em>本文由博海品宣BOT自动生成,同步至博海视角</em></p>
|
||||
|
||||
</div>
|
||||
<div class="article-footer">
|
||||
<a href="/perspective/" class="back-link">← 返回博海视角</a>
|
||||
<div class="share-bar">
|
||||
<button class="share-btn web-share" onclick="shareWeb()">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>
|
||||
分享
|
||||
</button>
|
||||
<button class="share-btn copy-link" onclick="copyLink()">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
|
||||
复制链接
|
||||
</button>
|
||||
<button class="share-btn qr-code" onclick="showQR()">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><line x1="3" y1="14" x2="7" y2="14"/></svg>
|
||||
二维码
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="shareToast" class="share-toast"></div>
|
||||
<div id="qrModal" class="qr-modal" onclick="this.classList.remove('show')">
|
||||
<div class="qr-modal-content" onclick="event.stopPropagation()">
|
||||
<img id="qrImg" src="" alt="二维码">
|
||||
<p style="margin:12px 0 0;font-size:13px;color:#64748b">扫码分享到微信</p>
|
||||
<button class="qr-close" onclick="document.getElementById('qrModal').classList.remove('show')">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function shareWeb(){if(navigator.share){navigator.share({title:document.title,url:window.location.href}).catch(function(e){})}else{alert('请使用手机浏览器或复制链接分享')}}
|
||||
function copyLink(){var i=document.createElement('input');i.value=window.location.href;document.body.appendChild(i);i.select();document.execCommand('copy');document.body.removeChild(i);var t=document.getElementById('shareToast');t.textContent='✅ 链接已复制';t.classList.add('show');setTimeout(function(){t.classList.remove('show')},2000)}
|
||||
function showQR(){var m=document.getElementById('qrModal');var img=document.getElementById('qrImg');img.src='https://api.qrserver.com/v1/create-qr-code/?size=200x200&data='+encodeURIComponent(window.location.href);m.classList.add('show')}
|
||||
</script>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user