五行测算

NFC自动输入

請將手機靠近NFC標籤以自動填充數據
position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); z-index: 10000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.5s ease-in-out; } .calculation-overlay.hidden { display: none; } /* 背景特效 */ .calc-bg-stars { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)); background-repeat: repeat; background-size: 200px 200px; animation: twinkling 5s ease-in-out infinite; } .calc-bg-particles { position: absolute; width: 100%; height: 100%; overflow: hidden; } .calc-bg-particles::before { content: ''; position: absolute; width: 10px; height: 10px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; animation: particleFloat 8s ease-in-out infinite; } .calc-bg-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%); animation: glowPulse 3s ease-in-out infinite; } /* 计算内容容器 */ .calculation-content { position: relative; text-align: center; z-index: 1; max-width: 600px; padding: 20px; } /* 主太极图 */ .main-taiji-container { position: relative; width: 200px; height: 200px; margin: 0 auto 30px; animation: taijiRotate 10s linear infinite; } .main-taiji { position: absolute; width: 120px; height: 120px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(90deg, #000 50%, #fff 50%); animation: taijiRotate 4s linear infinite reverse; } .taiji-yin, .taiji-yang { position: absolute; width: 60px; height: 60px; border-radius: 50%; top: 0; left: 50%; transform: translateX(-50%); } .taiji-yin { background: #000; } .taiji-yang { top: 50%; background: #fff; } .taiji-dot-small, .taiji-dot-large { position: absolute; width: 30px; height: 30px; border-radius: 50%; left: 50%; transform: translateX(-50%); } .taiji-dot-small { top: 15px; background: #fff; } .taiji-dot-large { top: 45px; background: #000; } /* 太极环 */ .taiji-ring-1, .taiji-ring-2, .taiji-ring-3 { position: absolute; border-radius: 50%; border: 2px solid rgba(212, 175, 55, 0.3); left: 50%; top: 50%; transform: translate(-50%, -50%); } .taiji-ring-1 { width: 140px; height: 140px; animation: ringPulse 2s ease-in-out infinite; } .taiji-ring-2 { width: 160px; height: 160px; animation: ringPulse 2s ease-in-out infinite 0.5s; } .taiji-ring-3 { width: 180px; height: 180px; animation: ringPulse 2s ease-in-out infinite 1s; } /* 八卦环绕 */ .bagua-ring { position: absolute; width: 240px; height: 240px; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: baguaRotate 20s linear infinite; } .bagua-item { position: absolute; font-size: 24px; color: rgba(255, 255, 255, 0.8); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); } .bagua-1 { top: 0; left: 50%; transform: translateX(-50%); } .bagua-2 { top: 15%; right: 15%; } .bagua-3 { right: 0; top: 50%; transform: translateY(-50%); } .bagua-4 { bottom: 15%; right: 15%; } .bagua-5 { bottom: 0; left: 50%; transform: translateX(-50%); } .bagua-6 { bottom: 15%; left: 15%; } .bagua-7 { left: 0; top: 50%; transform: translateY(-50%); } .bagua-8 { top: 15%; left: 15%; } /* 五行旋转 */ .wuxing-ring { position: absolute; width: 280px; height: 280px; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: wuxingRotate 15s linear infinite reverse; } .wuxing-item { position: absolute; width: 40px; height: 40px; line-height: 40px; text-align: center; font-size: 18px; font-weight: bold; border-radius: 50%; } .wood-item { top: 0; left: 50%; transform: translateX(-50%); background: rgba(76, 175, 80, 0.3); color: #4CAF50; } .fire-item { right: 0; top: 50%; transform: translateY(-50%); background: rgba(244, 67, 54, 0.3); color: #F44336; } .earth-item { bottom: 0; left: 50%; transform: translateX(-50%); background: rgba(255, 193, 7, 0.3); color: #FFC107; } .metal-item { left: 0; top: 50%; transform: translateY(-50%); background: rgba(158, 158, 158, 0.3); color: #9E9E9E; } .water-item { top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(33, 150, 243, 0.3); color: #2196F3; } /* 标题 */ .calc-title-main { margin: 30px 0; animation: titleFadeIn 1s ease-out 0.5s both; } .calc-title-text { font-size: 32px; font-weight: bold; color: #D4AF37; text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); letter-spacing: 8px; margin-bottom: 10px; } .calc-title-sub { font-size: 16px; color: rgba(255, 255, 255, 0.8); letter-spacing: 4px; } /* 进度条 */ .calc-progress-container { margin: 20px 0; display: flex; align-items: center; gap: 15px; } .calc-progress-bar { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; } .calc-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #D4AF37, #FFD700); border-radius: 4px; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); } .calc-progress-percent { width: 50px; font-size: 18px; color: #D4AF37; font-weight: bold; } /* 步骤指示 */ .calc-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 20px 0; } .calc-step-icon { width: 40px; height: 40px; line-height: 40px; text-align: center; font-size: 16px; font-weight: bold; color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); border-radius: 50%; border: 2px solid rgba(212, 175, 55, 0.3); transition: all 0.3s ease; } .calc-step-icon.active { color: #D4AF37; background: rgba(212, 175, 55, 0.2); border-color: #D4AF37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); animation: stepPulse 1.5s ease-in-out infinite; } .calc-step-icon.completed { color: #4CAF50; background: rgba(76, 175, 80, 0.2); border-color: #4CAF50; } .calc-step-line { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.1); margin: 0 10px; } /* 状态文字 */ .calc-status-text { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin-top: 20px; min-height: 30px; transition: all 0.3s ease; } /* 动画关键帧 */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes twinkling { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } } @keyframes particleFloat { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(100px, -50px); } 50% { transform: translate(200px, 100px); } 75% { transform: translate(100px, 200px); } } @keyframes glowPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } } @keyframes taijiRotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } } @keyframes ringPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; } 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; } } @keyframes baguaRotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } } @keyframes wuxingRotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } } @keyframes titleFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes stepPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); } 50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.8); } } /* 响应式设计 */ @media (max-width: 768px) { .main-taiji-container { width: 150px; height: 150px; margin-bottom: 20px; } .main-taiji { width: 90px; height: 90px; } .taiji-yin, .taiji-yang { width: 45px; height: 45px; } .taiji-dot-small, .taiji-dot-large { width: 22px; height: 22px; } .taiji-dot-small { top: 11px; } .taiji-dot-large { top: 34px; } .taiji-ring-1 { width: 105px; height: 105px; } .taiji-ring-2 { width: 120px; height: 120px; } .taiji-ring-3 { width: 135px; height: 135px; } .bagua-ring { width: 180px; height: 180px; } .bagua-item { font-size: 18px; } .wuxing-ring { width: 210px; height: 210px; } .wuxing-item { width: 30px; height: 30px; line-height: 30px; font-size: 14px; } .calc-title-text { font-size: 24px; } .calc-title-sub { font-size: 14px; } .calc-progress-bar { height: 6px; } .calc-progress-percent { width: 40px; font-size: 16px; } .calc-step-icon { width: 30px; height: 30px; line-height: 30px; font-size: 14px; } .calc-status-text { font-size: 16px; } }