TriangleChart.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <template>
  2. <view class="container">
  3. <view class="chart-inner">
  4. <view class="triangle-glow"></view>
  5. <view class="triangle-bg"></view>
  6. <view class="inner-matrix">
  7. <!-- Zone background overlays -->
  8. <view class="zone-left-bg"></view>
  9. <view class="zone-right-bg"></view>
  10. <view class="row row-top" @click="showCellDetail('O', chartNum('innerTop'))">
  11. <view class="cell cell-main" :class="numColorCls(chartNum('innerTop'))">
  12. {{ matrix.innerTop }}
  13. <text v-if="isMasterNum(chartNum('innerTop'))" class="master-star">★</text>
  14. </view>
  15. </view>
  16. <view class="row row-mid">
  17. <view class="cell cell-mid border-right zone-father" @click="showCellDetail('M', chartNum('innerMid', 0))">
  18. <text :class="numColorCls(chartNum('innerMid', 0))">
  19. {{ matrix.innerMid[0] }}
  20. <text v-if="isMasterNum(chartNum('innerMid', 0))" class="master-star-sm">★</text>
  21. </text>
  22. </view>
  23. <view class="cell cell-mid zone-mother" @click="showCellDetail('N', chartNum('innerMid', 1))">
  24. <text :class="numColorCls(chartNum('innerMid', 1))">
  25. {{ matrix.innerMid[1] }}
  26. <text v-if="isMasterNum(chartNum('innerMid', 1))" class="master-star-sm">★</text>
  27. </text>
  28. </view>
  29. </view>
  30. <!-- 行间横向分割线(区分上三区与下两区) -->
  31. <view class="row-sep"></view>
  32. <!-- 底部4数左→右:I(日) J(月) K(年前半) L(年后半) -->
  33. <view class="row row-bot4">
  34. <view class="cell-bot4" @click="showCellDetail('I', chartNum('innerBottom', 0))">
  35. <text :class="numColorCls(chartNum('innerBottom', 0))">
  36. {{ matrix.innerBottom[0] }}
  37. <text v-if="isMasterNum(chartNum('innerBottom', 0))" class="master-star-sm">★</text>
  38. </text>
  39. </view>
  40. <view class="cell-bot4 zone-father" @click="showCellDetail('J', chartNum('innerBottom', 1))">
  41. <text :class="numColorCls(chartNum('innerBottom', 1))">
  42. {{ matrix.innerBottom[1] }}
  43. <text v-if="isMasterNum(chartNum('innerBottom', 1))" class="master-star-sm">★</text>
  44. </text>
  45. </view>
  46. <view class="cell-bot4" @click="showCellDetail('K', chartNum('innerBottom', 2))">
  47. <text :class="numColorCls(chartNum('innerBottom', 2))">
  48. {{ matrix.innerBottom[2] }}
  49. <text v-if="isMasterNum(chartNum('innerBottom', 2))" class="master-star-sm">★</text>
  50. </text>
  51. </view>
  52. <view class="cell-bot4 zone-mother" @click="showCellDetail('L', chartNum('innerBottom', 3))">
  53. <text :class="numColorCls(chartNum('innerBottom', 3))">
  54. {{ matrix.innerBottom[3] }}
  55. <text v-if="isMasterNum(chartNum('innerBottom', 3))" class="master-star-sm">★</text>
  56. </text>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 顶部外侧:三角排列 X / V W (41-60岁) -->
  61. <view class="outer-tri top-tri">
  62. <view class="tri-main" :class="numColorCls(matrix.outerTop.main)" @click="showCellDetail('X', chartNum('innerTop'))">
  63. {{ matrix.outerTop.main }}
  64. <text v-if="isMasterNum(matrix.outerTop.main)" class="master-star">★</text>
  65. </view>
  66. <view class="tri-subs">
  67. <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[0])" @click.stop="showCellDetail('V', chartNum('innerTop'))">
  68. {{ matrix.outerTop.sub[0] }}
  69. <text v-if="isMasterNum(matrix.outerTop.sub[0])" class="master-star-sm">★</text>
  70. </text>
  71. <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[1])" @click.stop="showCellDetail('W', chartNum('innerTop'))">
  72. {{ matrix.outerTop.sub[1] }}
  73. <text v-if="isMasterNum(matrix.outerTop.sub[1])" class="master-star-sm">★</text>
  74. </text>
  75. </view>
  76. </view>
  77. <!-- 左侧外侧:三角排列 R / P Q (21-40岁) -->
  78. <view class="outer-tri left-tri">
  79. <view class="tri-main" :class="numColorCls(matrix.outerLeft.main)" @click="showCellDetail('R', chartNum('innerMid', 0))">
  80. {{ matrix.outerLeft.main }}
  81. <text v-if="isMasterNum(matrix.outerLeft.main)" class="master-star-sm">★</text>
  82. </view>
  83. <view class="tri-subs">
  84. <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[0])" @click.stop="showCellDetail('P', chartNum('innerBottom', 0))">
  85. {{ matrix.outerLeft.sub[0] }}
  86. <text v-if="isMasterNum(matrix.outerLeft.sub[0])" class="master-star-sm">★</text>
  87. </text>
  88. <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[1])" @click.stop="showCellDetail('Q', chartNum('innerBottom', 1))">
  89. {{ matrix.outerLeft.sub[1] }}
  90. <text v-if="isMasterNum(matrix.outerLeft.sub[1])" class="master-star-sm">★</text>
  91. </text>
  92. </view>
  93. </view>
  94. <!-- 右侧外侧:三角排列 U / S T (61+岁) -->
  95. <view class="outer-tri right-tri">
  96. <view class="tri-main" :class="numColorCls(matrix.outerRight.main)" @click="showCellDetail('U', chartNum('innerMid', 1))">
  97. {{ matrix.outerRight.main }}
  98. <text v-if="isMasterNum(matrix.outerRight.main)" class="master-star-sm">★</text>
  99. </view>
  100. <view class="tri-subs">
  101. <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[0])" @click.stop="showCellDetail('S', chartNum('innerBottom', 2))">
  102. {{ matrix.outerRight.sub[0] }}
  103. <text v-if="isMasterNum(matrix.outerRight.sub[0])" class="master-star-sm">★</text>
  104. </text>
  105. <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[1])" @click.stop="showCellDetail('T', chartNum('innerBottom', 3))">
  106. {{ matrix.outerRight.sub[1] }}
  107. <text v-if="isMasterNum(matrix.outerRight.sub[1])" class="master-star-sm">★</text>
  108. </text>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 底部 日(2) 月(2) 年(4) -->
  113. <view class="date-footer">
  114. <view class="date-group">
  115. <view class="input-boxes">
  116. <view class="box" v-for="(num, index) in birthday.day" :key="'d-'+index">{{ num }}</view>
  117. </view>
  118. <text class="label">日</text>
  119. </view>
  120. <view class="date-divider"></view>
  121. <view class="date-group">
  122. <view class="input-boxes">
  123. <view class="box" v-for="(num, index) in birthday.month" :key="'m-'+index">{{ num }}</view>
  124. </view>
  125. <text class="label">月</text>
  126. </view>
  127. <view class="date-divider"></view>
  128. <view class="date-group">
  129. <view class="input-boxes">
  130. <view class="box" v-for="(num, index) in birthday.year" :key="'y-'+index">{{ num }}</view>
  131. </view>
  132. <text class="label">年</text>
  133. </view>
  134. </view>
  135. <!-- 数字点击详情弹窗 -->
  136. <view v-if="selectedCell" class="detail-overlay" @click="hideDetail">
  137. <view class="detail-panel" @click.stop>
  138. <view class="detail-close" @click="hideDetail">✕</view>
  139. <view class="detail-num" :class="numColorCls(selectedCell.value)">{{ selectedCell.value }}</view>
  140. <view class="detail-name">{{ selectedCell.label }}</view>
  141. <view class="detail-zone-tag" :class="'tag-' + selectedCell.zone">{{ zoneName(selectedCell.zone) }}</view>
  142. <view class="detail-trait">{{ selectedCell.trait }}</view>
  143. <view class="detail-desc">{{ selectedCell.desc }}</view>
  144. <view v-if="selectedCell.isMaster" class="detail-master">✦ 卓越数 — 能量倍增,非同凡响 ✦</view>
  145. </view>
  146. </view>
  147. </view>
  148. </template>
  149. <script>
  150. // style-guide §2.4: 命盘数字色
  151. const NUM_COLORS = {
  152. 1: '#D94A4A', 2: '#4A90D9', 3: '#E8A238',
  153. 4: '#2D8B67', 5: '#D4A017', 6: '#7B6FA0',
  154. 7: '#4A6FA5', 8: '#C9A84C', 9: '#B85C3A'
  155. }
  156. // 30位完整命盘:US-1.3 位置命名对照表
  157. const POSITION_INFO = {
  158. // 内部层(7位)
  159. O: { label: '主性格', zone: 'main', trait: '核心人格特质', desc: '代表你的核心性格、人生方向和主要能量特征,是整个命盘的中心。' },
  160. M: { label: '青年综合数', zone: 'left', trait: '青年期自身力量的呈现', desc: '由月能量与日能量结合而成,代表青年期的内在动力与外在表现。' },
  161. N: { label: '晚年综合数', zone: 'right', trait: '晚年期自身力量的呈现', desc: '由年前位与年后位结合而成,代表晚年的人生经验积累与智慧沉淀。' },
  162. I: { label: '日能量', zone: 'left', trait: '出生日能量', desc: '代表你出生当天的能量特质,影响你的日常行为和表达方式。(原位置 G → I)' },
  163. J: { label: '月能量', zone: 'father', trait: '父亲遗传与先天能量', desc: '代表来自父亲/父系的先天遗传能量,影响你的内在根基。(原位置 F → J)' },
  164. K: { label: '年前位', zone: 'right', trait: '前半生积累', desc: '代表早年环境与成长经历,影响人生前期的运势走向。(原位置 H)' },
  165. L: { label: '年后位', zone: 'mother', trait: '母亲遗传与后天能量', desc: '代表来自母亲/母系的遗传能量以及后天环境的影响。(原位置 I)' },
  166. // 外部层(9位)
  167. P: { label: '左侧左子', zone: 'left', trait: '外部左翼基础', desc: '由日能量(I)与青年综合数(M)结合,代表左翼外部能量的基础层面。' },
  168. Q: { label: '左侧右子', zone: 'left', trait: '外部左翼辅助', desc: '由月能量(J)与青年综合数(M)结合,代表左翼外部能量的辅助层面。' },
  169. R: { label: '左侧主数', zone: 'left', trait: '左翼外部能量总和(21-40岁)', desc: '左侧子数之和,代表21-40岁年龄段的综合外部能量。' },
  170. S: { label: '右侧左子', zone: 'right', trait: '外部右翼基础', desc: '由年前位与晚年综合数结合,代表右翼外部能量的基础层面。' },
  171. T: { label: '右侧右子', zone: 'right', trait: '外部右翼辅助', desc: '由年后位与晚年综合数结合,代表右翼外部能量的辅助层面。' },
  172. U: { label: '右侧主数', zone: 'right', trait: '右翼外部能量总和(61+岁)', desc: '右侧子数之和,代表61岁以后年龄段的综合外部能量。' },
  173. V: { label: '顶部左子', zone: 'main', trait: '顶部外部基础', desc: '由青年综合数与主性格结合,代表顶部外部能量的基础层面。' },
  174. W: { label: '顶部右子', zone: 'main', trait: '顶部外部辅助', desc: '由晚年综合数与主性格结合,代表顶部外部能量的辅助层面。' },
  175. X: { label: '顶部主数', zone: 'main', trait: '顶部外部能量总和(41-60岁)', desc: '顶部子数之和,代表41-60岁年龄段的综合外部能量。' }
  176. }
  177. export default {
  178. props: {
  179. chartData: { type: Object, default: null },
  180. birthYear: { type: Number, default: 0 },
  181. birthMonth: { type: Number, default: 0 },
  182. birthDay: { type: Number, default: 0 }
  183. },
  184. data() {
  185. return {
  186. selectedCell: null
  187. }
  188. },
  189. computed: {
  190. matrix() {
  191. if (!this.chartData) {
  192. return {
  193. innerTop: 3,
  194. innerMid: [2, 1],
  195. innerBottom: [1, 2, 3, 4],
  196. outerTop: { main: 7, sub: [5, 6] },
  197. outerLeft: { main: 1, sub: [8, 9] },
  198. outerRight: { main: 4, sub: [2, 3] }
  199. }
  200. }
  201. const d = this.chartData
  202. return {
  203. innerTop: d.O,
  204. innerMid: [d.M, d.N],
  205. innerBottom: [d.I, d.J, d.K, d.L],
  206. outerTop: { main: d.X, sub: [d.V, d.W] },
  207. outerLeft: { main: d.R, sub: [d.P, d.Q] },
  208. outerRight: { main: d.U, sub: [d.S, d.T] }
  209. }
  210. },
  211. birthday() {
  212. if (this.birthYear > 0) {
  213. return {
  214. year: String(this.birthYear).padStart(4, '0').split(''),
  215. month: String(this.birthMonth).padStart(2, '0').split(''),
  216. day: String(this.birthDay).padStart(2, '0').split('')
  217. }
  218. }
  219. return {
  220. month: ['0', '1'],
  221. day: ['0', '1'],
  222. year: ['1', '9', '9', '0']
  223. }
  224. }
  225. },
  226. methods: {
  227. chartNum(row, index) {
  228. if (row === 'innerTop') return this.matrix.innerTop
  229. if (row === 'innerMid') return this.matrix.innerMid[index]
  230. if (row === 'innerBottom') return this.matrix.innerBottom[index]
  231. return 0
  232. },
  233. numColorCls(num) {
  234. return 'num-color-' + num
  235. },
  236. isMasterNum(num) {
  237. return num === 11 || num === 22 || num === 33
  238. },
  239. showCellDetail(pos, value) {
  240. const info = POSITION_INFO[pos]
  241. if (!info) return
  242. this.selectedCell = {
  243. position: pos,
  244. value: value,
  245. label: info.label,
  246. zone: info.zone,
  247. trait: info.trait,
  248. desc: info.desc,
  249. isMaster: this.isMasterNum(value)
  250. }
  251. },
  252. hideDetail() {
  253. this.selectedCell = null
  254. },
  255. zoneName(zone) {
  256. const names = {
  257. main: '主性格区',
  258. left: '左区(月日能量)',
  259. right: '右区(年份能量)',
  260. father: '父源区',
  261. mother: '母源区'
  262. }
  263. return names[zone] || ''
  264. }
  265. }
  266. }
  267. </script>
  268. <style scoped>
  269. /* ================================================
  270. 数字能量三角图 - 深邃星空 · 黄金三角
  271. ================================================ */
  272. .container {
  273. width: 100%;
  274. background: linear-gradient(160deg, #0c0a1a 0%, #1a1040 40%, #0f0c2e 100%);
  275. display: flex;
  276. flex-direction: column;
  277. align-items: center;
  278. padding: 85rpx 0 14rpx;
  279. border-radius: 20rpx;
  280. position: relative;
  281. overflow: hidden;
  282. }
  283. /* 星空粒子 */
  284. .container::before {
  285. content: '';
  286. position: absolute;
  287. inset: 0;
  288. background-image:
  289. radial-gradient(1rpx 1rpx at 10% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
  290. radial-gradient(1.5rpx 1.5rpx at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
  291. radial-gradient(1rpx 1rpx at 50% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
  292. radial-gradient(1rpx 1rpx at 70% 80%, rgba(255,255,255,0.35) 0%, transparent 100%),
  293. radial-gradient(1.5rpx 1.5rpx at 85% 30%, rgba(255,255,255,0.45) 0%, transparent 100%),
  294. radial-gradient(1rpx 1rpx at 20% 90%, rgba(255,255,255,0.3) 0%, transparent 100%);
  295. pointer-events: none;
  296. z-index: 0;
  297. }
  298. .chart-inner {
  299. position: relative;
  300. width: 100%;
  301. height: 520rpx;
  302. padding: 120rpx 60rpx 0 60rpx;
  303. box-sizing: border-box;
  304. z-index: 1;
  305. }
  306. /* 三角形光晕 */
  307. /* ---- 五区色块叠加 ---- */
  308. .zone-left-bg,
  309. .zone-right-bg {
  310. position: absolute;
  311. pointer-events: none;
  312. z-index: 0;
  313. opacity: 0.12;
  314. }
  315. .zone-left-bg {
  316. left: 0;
  317. bottom: 0;
  318. width: 55%;
  319. height: 85%;
  320. clip-path: polygon(0% 100%, 15% 0%, 100% 100%);
  321. background: linear-gradient(135deg, #f59e0b, #fbbf24);
  322. }
  323. .zone-right-bg {
  324. right: 0;
  325. bottom: 0;
  326. width: 55%;
  327. height: 85%;
  328. clip-path: polygon(100% 100%, 85% 0%, 0% 100%);
  329. background: linear-gradient(135deg, #4A90D9, #4A6FA5);
  330. }
  331. /* 父源/母源指示标记 */
  332. .zone-father {
  333. position: relative;
  334. }
  335. .zone-father::after {
  336. content: '';
  337. position: absolute;
  338. bottom: -2rpx;
  339. left: 50%;
  340. transform: translateX(-50%);
  341. width: 20rpx;
  342. height: 3rpx;
  343. border-radius: 2rpx;
  344. background: #4A90D9;
  345. opacity: 0.5;
  346. }
  347. .zone-mother {
  348. position: relative;
  349. }
  350. .zone-mother::after {
  351. content: '';
  352. position: absolute;
  353. bottom: -2rpx;
  354. left: 50%;
  355. transform: translateX(-50%);
  356. width: 20rpx;
  357. height: 3rpx;
  358. border-radius: 2rpx;
  359. background: #7B6FA0;
  360. opacity: 0.5;
  361. }
  362. /* 垂直中分割线(从 O/M-N 交汇处向下贯穿至底部,分隔左右半区) */
  363. .inner-matrix::after {
  364. content: '';
  365. position: absolute;
  366. top: 28%;
  367. bottom: 0;
  368. left: 50%;
  369. transform: translateX(-50%);
  370. width: 1rpx;
  371. background: linear-gradient(180deg,
  372. rgba(255, 255, 255, 0.06) 0%,
  373. rgba(255, 255, 255, 0.10) 15%,
  374. rgba(255, 255, 255, 0.10) 85%,
  375. rgba(255, 255, 255, 0.04) 100%
  376. );
  377. pointer-events: none;
  378. z-index: 1;
  379. }
  380. /* ---- 数字 1-9 独立配色 ---- */
  381. .num-color-1 { color: #D94A4A !important; }
  382. .num-color-2 { color: #4A90D9 !important; }
  383. .num-color-3 { color: #E8A238 !important; }
  384. .num-color-4 { color: #2D8B67 !important; }
  385. .num-color-5 { color: #D4A017 !important; }
  386. .num-color-6 { color: #7B6FA0 !important; }
  387. .num-color-7 { color: #4A6FA5 !important; }
  388. .num-color-8 { color: #C9A84C !important; }
  389. .num-color-9 { color: #B85C3A !important; }
  390. /* 卓越数 ★ 标记 */
  391. .master-star {
  392. font-size: 28rpx;
  393. color: #fbbf24;
  394. text-shadow: 0 0 16rpx rgba(251, 191, 36, 0.8);
  395. display: inline-block;
  396. margin-left: 4rpx;
  397. animation: pulse-star 1.5s ease-in-out infinite;
  398. }
  399. .master-star-sm {
  400. font-size: 20rpx;
  401. color: #fbbf24;
  402. text-shadow: 0 0 12rpx rgba(251, 191, 36, 0.6);
  403. display: inline-block;
  404. margin-left: 2rpx;
  405. animation: pulse-star 1.5s ease-in-out infinite;
  406. }
  407. @keyframes pulse-star {
  408. 0%, 100% { opacity: 1; transform: scale(1); }
  409. 50% { opacity: 0.6; transform: scale(1.2); }
  410. }
  411. .triangle-glow {
  412. position: absolute;
  413. top: 100rpx;
  414. left: 44rpx;
  415. right: 44rpx;
  416. bottom: 10rpx;
  417. clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  418. background: linear-gradient(135deg, rgba(255, 200, 50, 0.2), rgba(255, 100, 200, 0.15));
  419. filter: blur(20rpx);
  420. }
  421. /* 三角形主体 */
  422. .triangle-bg {
  423. position: absolute;
  424. top: 104rpx;
  425. left: 48rpx;
  426. right: 48rpx;
  427. bottom: 14rpx;
  428. clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  429. background: linear-gradient(165deg, #fbbf24 0%, #f59e0b 30%, #d97706 60%, #b45309 100%);
  430. padding: 3rpx;
  431. box-sizing: border-box;
  432. }
  433. .triangle-bg::after {
  434. content: '';
  435. display: block;
  436. width: 100%;
  437. height: 100%;
  438. background: linear-gradient(180deg, #0f0a1e 0%, #1a1035 50%, #0f0a20 100%);
  439. clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  440. }
  441. /* ---- 内部数字矩阵 ---- */
  442. .inner-matrix {
  443. position: absolute;
  444. bottom: 14rpx;
  445. left: 48rpx;
  446. right: 48rpx;
  447. height: 74%;
  448. display: flex;
  449. flex-direction: column;
  450. z-index: 2;
  451. }
  452. .row { display: flex; }
  453. .row-top {
  454. height: 36%;
  455. justify-content: center;
  456. align-items: flex-end;
  457. padding-bottom: 4rpx;
  458. }
  459. .row-mid {
  460. height: 28%;
  461. justify-content: center;
  462. align-items: center;
  463. gap: 56rpx;
  464. position: relative;
  465. }
  466. /* 顶部 O 区与中间 M/N 区之间的横向分割线 */
  467. .row-mid::before {
  468. content: '';
  469. position: absolute;
  470. top: -4rpx;
  471. left: 50%;
  472. transform: translateX(-50%);
  473. width: 32%;
  474. height: 1rpx;
  475. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
  476. pointer-events: none;
  477. }
  478. /* 底部4数紧凑排列 */
  479. .row-bot4 {
  480. height: 36%;
  481. display: flex;
  482. justify-content: center;
  483. align-items: center;
  484. gap: 16rpx;
  485. padding: 0 20rpx;
  486. position: relative;
  487. }
  488. /* 行间横向分割线(位于 row-mid 与 row-bot4 之间,区分上三区与下两区) */
  489. .row-sep {
  490. height: 2rpx;
  491. width: 62%;
  492. margin: 0 auto;
  493. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
  494. flex-shrink: 0;
  495. }
  496. /* 底部四数 J 与 K 之间的垂直分割线(左右两区边界) */
  497. .row-bot4::before {
  498. content: '';
  499. position: absolute;
  500. top: 6rpx;
  501. bottom: 6rpx;
  502. left: 50%;
  503. transform: translateX(-50%);
  504. width: 1rpx;
  505. background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.15) 80%, transparent);
  506. pointer-events: none;
  507. z-index: 1;
  508. }
  509. .cell-main {
  510. font-size: 64rpx;
  511. font-weight: 700;
  512. color: #fbbf24;
  513. text-shadow: 0 0 24rpx rgba(251, 191, 36, 0.5), 0 0 80rpx rgba(251, 191, 36, 0.2);
  514. letter-spacing: 2rpx;
  515. }
  516. .cell-mid {
  517. flex: none;
  518. width: auto;
  519. font-size: 44rpx;
  520. font-weight: 600;
  521. color: #ffffff;
  522. text-shadow: 0 0 16rpx rgba(255, 255, 255, 0.25);
  523. padding: 0 6rpx;
  524. }
  525. .cell-bot4 {
  526. width: 64rpx;
  527. text-align: center;
  528. font-size: 40rpx;
  529. font-weight: 500;
  530. color: #ffffff;
  531. text-shadow: 0 0 12rpx rgba(255, 255, 255, 0.2);
  532. }
  533. .border-right {
  534. border-right: 1rpx solid rgba(255, 255, 255, 0.1);
  535. }
  536. /* ---- 外侧三角排列 ---- */
  537. .outer-tri {
  538. position: absolute;
  539. display: flex;
  540. flex-direction: column;
  541. align-items: center;
  542. z-index: 3;
  543. }
  544. .tri-main {
  545. font-size: 44rpx;
  546. font-weight: 700;
  547. color: #ffffff;
  548. text-shadow: 0 0 18rpx rgba(255, 255, 255, 0.2);
  549. line-height: 1.1;
  550. }
  551. .tri-subs {
  552. display: flex;
  553. gap: 20rpx;
  554. margin-top: 4rpx;
  555. }
  556. .tri-sub {
  557. font-size: 44rpx;
  558. font-weight: 700;
  559. color: rgba(255, 255, 255, 0.75);
  560. }
  561. /* 顶部 — 倒T形线段(向下连接三角形顶点) */
  562. .top-tri {
  563. top: -58rpx;
  564. left: 50%;
  565. transform: translateX(-50%);
  566. position: absolute;
  567. }
  568. .top-tri::after {
  569. content: '';
  570. position: absolute;
  571. bottom: -32rpx;
  572. left: 50%;
  573. transform: translateX(-50%);
  574. width: 1rpx;
  575. height: 26rpx;
  576. background: rgba(255, 255, 255, 0.3);
  577. }
  578. .top-tri .tri-main {
  579. font-size: 52rpx;
  580. color: #fbbf24;
  581. text-shadow: 0 0 28rpx rgba(251, 191, 36, 0.4);
  582. }
  583. /* 左侧 — T形线段(─┬─ 向右连接三角形) */
  584. .left-tri {
  585. top: 28%;
  586. left: 58rpx;
  587. position: absolute;
  588. }
  589. .left-tri::after {
  590. content: '';
  591. position: absolute;
  592. right: -24rpx;
  593. top: 50%;
  594. transform: translateY(-50%);
  595. height: 1rpx;
  596. width: 22rpx;
  597. background: rgba(255, 255, 255, 0.25);
  598. }
  599. .left-tri::before {
  600. content: '';
  601. position: absolute;
  602. right: -14rpx;
  603. top: 50%;
  604. transform: translateY(-50%);
  605. width: 1rpx;
  606. height: 44rpx;
  607. background: rgba(255, 255, 255, 0.2);
  608. }
  609. /* 右侧 — T形线段(─┬─ 向左连接三角形) */
  610. .right-tri {
  611. top: 28%;
  612. right: 58rpx;
  613. position: absolute;
  614. }
  615. .right-tri::after {
  616. content: '';
  617. position: absolute;
  618. left: -24rpx;
  619. top: 50%;
  620. transform: translateY(-50%);
  621. height: 1rpx;
  622. width: 22rpx;
  623. background: rgba(255, 255, 255, 0.25);
  624. }
  625. .right-tri::before {
  626. content: '';
  627. position: absolute;
  628. left: -14rpx;
  629. top: 50%;
  630. transform: translateY(-50%);
  631. width: 1rpx;
  632. height: 44rpx;
  633. background: rgba(255, 255, 255, 0.2);
  634. }
  635. /* 顶部的两外侧数字到 M/N 的短线 */
  636. .top-tri .tri-subs {
  637. position: relative;
  638. }
  639. .top-tri .tri-subs::before {
  640. content: '';
  641. position: absolute;
  642. left: 50%;
  643. top: -18rpx;
  644. transform: translateX(-50%);
  645. width: 96rpx;
  646. height: 1rpx;
  647. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 15%, rgba(255, 255, 255, 0.2) 85%, transparent);
  648. }
  649. .top-tri .tri-subs::after {
  650. content: '';
  651. position: absolute;
  652. left: 50%;
  653. top: -18rpx;
  654. transform: translateX(-50%);
  655. width: 1rpx;
  656. height: 18rpx;
  657. background: rgba(255, 255, 255, 0.2);
  658. }
  659. /* ---- 底部日期 ---- */
  660. .date-footer {
  661. display: flex;
  662. align-items: center;
  663. margin-top: 20rpx;
  664. padding: 0 40rpx;
  665. z-index: 1;
  666. }
  667. .date-group {
  668. display: flex;
  669. flex-direction: column;
  670. align-items: center;
  671. }
  672. .date-divider {
  673. width: 1rpx;
  674. height: 40rpx;
  675. background: rgba(255, 255, 255, 0.08);
  676. margin: 0 24rpx;
  677. }
  678. .input-boxes { display: flex; }
  679. .box {
  680. width: 34rpx;
  681. height: 42rpx;
  682. border: 1rpx solid rgba(255, 255, 255, 0.25);
  683. border-radius: 6rpx;
  684. margin: 0 3rpx;
  685. text-align: center;
  686. line-height: 42rpx;
  687. font-size: 22rpx;
  688. color: #ffffff;
  689. background: rgba(255, 255, 255, 0.08);
  690. }
  691. .label {
  692. font-size: 18rpx;
  693. color: rgba(255, 255, 255, 0.45);
  694. margin-top: 8rpx;
  695. letter-spacing: 2rpx;
  696. }
  697. /* ---- 数字点击详情弹窗 ---- */
  698. .detail-overlay {
  699. position: fixed;
  700. inset: 0;
  701. background: rgba(0, 0, 0, 0.6);
  702. z-index: 100;
  703. display: flex;
  704. align-items: flex-end;
  705. justify-content: center;
  706. animation: fadeIn 0.2s ease-out;
  707. }
  708. @keyframes fadeIn {
  709. from { opacity: 0; }
  710. to { opacity: 1; }
  711. }
  712. .detail-panel {
  713. width: 100%;
  714. background: linear-gradient(180deg, #1a1040 0%, #0f0c2e 100%);
  715. border-radius: 28rpx 28rpx 0 0;
  716. padding: 40rpx 36rpx 60rpx;
  717. position: relative;
  718. animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  719. border-top: 1rpx solid rgba(251, 191, 36, 0.2);
  720. max-height: 60vh;
  721. overflow-y: auto;
  722. }
  723. @keyframes slideUp {
  724. from { transform: translateY(100%); }
  725. to { transform: translateY(0); }
  726. }
  727. .detail-close {
  728. position: absolute;
  729. top: 20rpx;
  730. right: 28rpx;
  731. font-size: 32rpx;
  732. color: rgba(255, 255, 255, 0.3);
  733. width: 50rpx;
  734. height: 50rpx;
  735. display: flex;
  736. align-items: center;
  737. justify-content: center;
  738. }
  739. .detail-num {
  740. font-size: 80rpx;
  741. font-weight: 700;
  742. text-align: center;
  743. text-shadow: 0 0 30rpx currentColor;
  744. margin-bottom: 8rpx;
  745. }
  746. .detail-name {
  747. font-size: 30rpx;
  748. font-weight: 600;
  749. color: #ffffff;
  750. text-align: center;
  751. margin-bottom: 16rpx;
  752. }
  753. .detail-zone-tag {
  754. display: inline-block;
  755. font-size: 20rpx;
  756. padding: 4rpx 16rpx;
  757. border-radius: 20rpx;
  758. text-align: center;
  759. margin: 0 auto 20rpx;
  760. width: fit-content;
  761. }
  762. .tag-main {
  763. background: rgba(251, 191, 36, 0.15);
  764. color: #fbbf24;
  765. border: 1rpx solid rgba(251, 191, 36, 0.2);
  766. }
  767. .tag-left {
  768. background: rgba(245, 158, 11, 0.15);
  769. color: #fbbf24;
  770. border: 1rpx solid rgba(245, 158, 11, 0.2);
  771. }
  772. .tag-right {
  773. background: rgba(74, 144, 217, 0.15);
  774. color: #4A90D9;
  775. border: 1rpx solid rgba(74, 144, 217, 0.2);
  776. }
  777. .tag-father {
  778. background: rgba(74, 144, 217, 0.15);
  779. color: #4A90D9;
  780. border: 1rpx solid rgba(74, 144, 217, 0.2);
  781. }
  782. .tag-mother {
  783. background: rgba(123, 111, 160, 0.15);
  784. color: #7B6FA0;
  785. border: 1rpx solid rgba(123, 111, 160, 0.2);
  786. }
  787. .detail-trait {
  788. font-size: 26rpx;
  789. font-weight: 500;
  790. color: rgba(255, 255, 255, 0.8);
  791. text-align: center;
  792. margin-bottom: 16rpx;
  793. }
  794. .detail-desc {
  795. font-size: 24rpx;
  796. color: rgba(255, 255, 255, 0.5);
  797. line-height: 1.8;
  798. text-align: center;
  799. padding: 0 20rpx;
  800. }
  801. .detail-master {
  802. margin-top: 24rpx;
  803. text-align: center;
  804. font-size: 22rpx;
  805. color: #fbbf24;
  806. background: rgba(251, 191, 36, 0.1);
  807. border: 1rpx solid rgba(251, 191, 36, 0.15);
  808. border-radius: 12rpx;
  809. padding: 12rpx;
  810. letter-spacing: 2rpx;
  811. }
  812. </style>