feat: 梅花易数 + 梅花心易 算法层 v1.0
- 八卦基础数据(先天数/五行/方位/生克关系) - 六十四卦完整数据(卦名/卦辞/象辞/吉凶/关键词) - 体用分析引擎(动爻→体用→五行生克→旺衰判定) - 变卦/互卦计算 - 三种起卦方式:数字法、时间法、外应法(梅花心易) - CLI入口:JSON/文本双格式输出 - 断卦分析 prompt + 梅花心易 prompt + 海报版 prompt - HTML海报模板(古风暗色系)
This commit is contained in:
commit
4ff76822ad
294 files changed
+501964
No files matched your search
@@ -0,0 +1,126 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>梅花易数 · {{name}}</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: 'Noto Serif SC', 'Songti SC', serif; background: #0a0a1a; color: #e8e0d0; min-height: 100vh; display: flex; justify-content: center; padding: 20px; }
|
||||
.container { max-width: 800px; width: 100%; }
|
||||
|
||||
/* 标题区 */
|
||||
.header { text-align: center; padding: 40px 0 20px; border-bottom: 2px solid #8b6914; margin-bottom: 30px; }
|
||||
.header h1 { font-size: 28px; color: #d4a843; letter-spacing: 8px; margin-bottom: 8px; }
|
||||
.header .subtitle { font-size: 14px; color: #8a7a5a; letter-spacing: 4px; }
|
||||
.header .name-line { font-size: 18px; color: #c8b070; margin-top: 12px; }
|
||||
|
||||
/* 主卦区 */
|
||||
.main-gua { display: flex; justify-content: center; align-items: center; gap: 40px; padding: 30px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); border-radius: 12px; border: 1px solid #3a3a5a; margin-bottom: 24px; }
|
||||
.gua-symbol { font-size: 64px; line-height: 1; color: #d4a843; text-shadow: 0 0 20px rgba(212,168,67,0.3); }
|
||||
.gua-info { text-align: left; }
|
||||
.gua-info .gua-name { font-size: 24px; color: #d4a843; font-weight: bold; }
|
||||
.gua-info .gua-fullname { font-size: 14px; color: #8a7a5a; margin-top: 4px; }
|
||||
.gua-info .gua-judgment { font-size: 15px; color: #c8b070; margin-top: 12px; line-height: 1.8; font-style: italic; }
|
||||
.gua-info .gua-image { font-size: 13px; color: #7a6a4a; margin-top: 8px; line-height: 1.6; }
|
||||
|
||||
/* 体用分析区 */
|
||||
.tiyong-section { background: linear-gradient(135deg, #1e1e30 0%, #1a2040 100%); border-radius: 12px; border: 1px solid #3a3a5a; padding: 24px; margin-bottom: 24px; }
|
||||
.tiyong-section h2 { font-size: 18px; color: #d4a843; letter-spacing: 4px; margin-bottom: 16px; text-align: center; border-bottom: 1px solid #3a3a5a; padding-bottom: 12px; }
|
||||
.tiyong-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.tiyong-card { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 16px; border: 1px solid #2a2a4a; }
|
||||
.tiyong-card .label { font-size: 12px; color: #8a7a5a; letter-spacing: 2px; }
|
||||
.tiyong-card .value { font-size: 20px; color: #d4a843; margin-top: 8px; }
|
||||
.tiyong-card .detail { font-size: 13px; color: #9a8a6a; margin-top: 6px; line-height: 1.6; }
|
||||
.relation-box { text-align: center; margin-top: 16px; padding: 12px; background: rgba(212,168,67,0.08); border-radius: 8px; border: 1px solid #4a3a1a; }
|
||||
.relation-box .relation { font-size: 18px; color: #d4a843; }
|
||||
.relation-box .verdict { font-size: 14px; color: #c8b070; margin-top: 8px; line-height: 1.6; }
|
||||
|
||||
/* 变卦互卦区 */
|
||||
.derived-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
|
||||
.derived-card { background: linear-gradient(135deg, #1e1e30 0%, #1a2040 100%); border-radius: 12px; border: 1px solid #3a3a5a; padding: 20px; text-align: center; }
|
||||
.derived-card h3 { font-size: 16px; color: #d4a843; letter-spacing: 2px; margin-bottom: 12px; }
|
||||
.derived-card .symbol { font-size: 40px; color: #d4a843; }
|
||||
.derived-card .name { font-size: 16px; color: #c8b070; margin-top: 8px; }
|
||||
.derived-card .judgment { font-size: 13px; color: #8a7a5a; margin-top: 8px; line-height: 1.6; }
|
||||
|
||||
/* 分析区 */
|
||||
.analysis-section { background: linear-gradient(135deg, #1e1e30 0%, #1a2040 100%); border-radius: 12px; border: 1px solid #3a3a5a; padding: 24px; margin-bottom: 24px; }
|
||||
.analysis-section h2 { font-size: 18px; color: #d4a843; letter-spacing: 4px; margin-bottom: 16px; text-align: center; border-bottom: 1px solid #3a3a5a; padding-bottom: 12px; }
|
||||
.analysis-content { font-size: 15px; color: #c8b070; line-height: 2; }
|
||||
|
||||
/* 免责 */
|
||||
.disclaimer { text-align: center; padding: 20px; font-size: 12px; color: #5a5a6a; border-top: 1px solid #2a2a3a; margin-top: 20px; line-height: 1.6; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- 标题 -->
|
||||
<div class="header">
|
||||
<h1>梅 花 易 数</h1>
|
||||
<div class="subtitle">PLUM BLOSSOM NUMEROLOGY</div>
|
||||
<div class="name-line">{{name}} · {{question}}</div>
|
||||
</div>
|
||||
|
||||
<!-- 主卦 -->
|
||||
<div class="main-gua">
|
||||
<div class="gua-symbol">{{main_symbol}}</div>
|
||||
<div class="gua-info">
|
||||
<div class="gua-name">{{main_name}}</div>
|
||||
<div class="gua-fullname">{{main_fullname}} · {{main_nature}}</div>
|
||||
<div class="gua-judgment">{{main_judgment}}</div>
|
||||
<div class="gua-image">{{main_image}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 体用分析 -->
|
||||
<div class="tiyong-section">
|
||||
<h2>体 用 分 析</h2>
|
||||
<div class="tiyong-grid">
|
||||
<div class="tiyong-card">
|
||||
<div class="label">体 卦(主体)</div>
|
||||
<div class="value">{{ti_name}} · {{ti_element}}</div>
|
||||
<div class="detail">位于{{ti_position}},代表求测者自身</div>
|
||||
</div>
|
||||
<div class="tiyong-card">
|
||||
<div class="label">用 卦(客体)</div>
|
||||
<div class="value">{{yong_name}} · {{yong_element}}</div>
|
||||
<div class="detail">位于{{yong_position}},动爻第{{dong_yao}}爻</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relation-box">
|
||||
<div class="relation">{{relation}}</div>
|
||||
<div class="verdict">{{verdict}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 变卦 互卦 -->
|
||||
<div class="derived-section">
|
||||
<div class="derived-card">
|
||||
<h3>变 卦</h3>
|
||||
<div class="symbol">{{changed_symbol}}</div>
|
||||
<div class="name">{{changed_name}}</div>
|
||||
<div class="judgment">{{changed_judgment}}</div>
|
||||
</div>
|
||||
<div class="derived-card">
|
||||
<h3>互 卦</h3>
|
||||
<div class="symbol">{{mutual_symbol}}</div>
|
||||
<div class="name">{{mutual_name}}</div>
|
||||
<div class="judgment">{{mutual_judgment}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 综合分析 -->
|
||||
<div class="analysis-section">
|
||||
<h2>综 合 断 语</h2>
|
||||
<div class="analysis-content">{{analysis}}</div>
|
||||
</div>
|
||||
|
||||
<!-- 免责 -->
|
||||
<div class="disclaimer">
|
||||
本分析基于传统梅花易数理论框架,仅供文化研究与娱乐参考<br>
|
||||
不构成医疗、投资、婚姻、法律等任何决策依据
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user