* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Noto Serif SC', serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; } /* 简化的背景装饰元素 */ .cosmic-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: radial-gradient(ellipse at center, #1e2a3a 0%, var(--bg-primary) 70%); overflow: hidden; } .cosmic-star { position: absolute; background: rgba(201, 169, 110, 0.6); border-radius: 50%; animation: twinkle 8s infinite; box-shadow: 0 0 8px rgba(201, 169, 110, 0.4); } @keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } } .taiji-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vmax; height: 80vmax; z-index: -1; opacity: 0.02; animation: rotateTaiji 300s linear infinite; } .taiji { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 60%); clip-path: circle(50% at 50% 50%); } @keyframes rotateTaiji { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } } .app-container { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow: hidden; transition: all 0.5s ease; } /* 移动端优化 - 适当缩小元素 */ @media (max-width: 767px) { .app-container { max-width: 420px; padding: 15px; } .app-header { padding: 20px 10px 10px; } .app-title { font-size: 1.6rem; } .app-subtitle { font-size: 0.8rem; letter-spacing: 0.05em; } .main-content { display: block; } .form-card { padding: 20px; margin: 15px; border-radius: 12px; } .instructions { padding: 15px; margin: 15px; border-radius: 12px; } .form-group { margin-bottom: 15px; } .form-group label { font-size: 0.85rem; margin-bottom: 6px; } .form-group input, .form-group select { padding: 10px 12px; font-size: 14px; border-radius: 6px; } .submit-btn { padding: 12px; font-size: 0.9rem; border-radius: 6px; } .instructions h3 { font-size: 0.9rem; margin-bottom: 10px; } } /* PC端布局优化 */ @media (min-width: 768px) { .app-container { max-width: 1600px; padding: 40px; } .app-header { padding: 60px 30px 50px; } .app-title { font-size: 4.5rem; margin-bottom: 16px; } .app-subtitle { font-size: 1.4rem; letter-spacing: 0.2em; } .main-content { display: grid; grid-template-columns: 1.3fr 1fr; gap: 25px; margin: 0 auto; max-width: 1200px; padding: 0 30px; } .form-card { margin: 0; padding: 40px; border-radius: 20px; } .instructions { margin: 0; height: fit-content; align-self: center; padding: 40px; border-radius: 20px; } .app-footer { padding: 30px; font-size: 0.9rem; } } /* 超大屏幕优化 */ @media (min-width: 1200px) { .app-container { max-width: 1400px; padding: 50px; } .app-header { padding: 80px 40px 60px; } .app-title { font-size: 5.5rem; margin-bottom: 20px; } .app-subtitle { font-size: 1.6rem; } .main-content { gap: 30px; margin: 0 auto; max-width: 1300px; padding: 0 60px; } .form-card { padding: 50px; } .instructions { padding: 50px; } } .bg-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('data:image/svg+xml;utf8,'); opacity: 0.1; z-index: 0; } .app-header { text-align: center; padding: 30px 20px 20px; position: relative; z-index: 1; border-bottom: 1px solid var(--border-color); animation: fadeInDown 1s ease-out; } @keyframes fadeInDown { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } } .app-title { font-family: 'Ma Shan Zheng', cursive; font-size: 2.2rem; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; position: relative; display: inline-block; text-shadow: 0 0 15px rgba(212, 175, 55, 0.3); } .app-title::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: var(--gradient-gold); border-radius: 3px; animation: pulseLine 2s infinite; } @keyframes pulseLine { 0%, 100% { width: 60%; opacity: 0.7; } 50% { width: 70%; opacity: 1; } } .app-subtitle { font-size: 0.9rem; color: var(--text-secondary); font-weight: 300; letter-spacing: 0.1em; animation: fadeIn 1.5s ease-out; } .form-card { background: var(--bg-card); margin: 20px; border-radius: 16px; padding: 30px; border: 1px solid var(--border-color); position: relative; z-index: 1; animation: fadeInUp 1s ease-out; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(201, 169, 110, 0.1); backdrop-filter: blur(20px); overflow: hidden; } .form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-gold); opacity: 0.6; } .form-card::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 50%); z-index: -1; animation: rotate 30s linear infinite; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } } .form-grid { display: grid; gap: 15px; margin-bottom: 25px; } .form-group { display: flex; flex-direction: column; position: relative; } .form-group label { color: var(--text-primary); font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; display: flex; align-items: center; } /* PC端标签优化 */ @media (min-width: 768px) { .form-group label { font-size: 1.1rem; margin-bottom: 12px; } } @media (min-width: 1200px) { .form-group label { font-size: 1.3rem; margin-bottom: 16px; } } .form-group label i { margin-right: 8px; color: var(--primary-gold); } .form-group input, .form-group select { padding: 14px 18px; background: rgba(37, 43, 61, 0.8); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 16px; transition: all 0.3s ease; backdrop-filter: blur(10px); } /* PC端表单控件优化 */ @media (min-width: 768px) { .form-group input, .form-group select { padding: 16px 20px; font-size: 18px; border-radius: 12px; } } @media (min-width: 1200px) { .form-group input, .form-group select { padding: 20px 24px; font-size: 20px; border-radius: 15px; } } .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-gold); background: rgba(37, 43, 61, 0.95); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15), 0 0 20px rgba(201, 169, 110, 0.1); transform: translateY(-1px); } .form-group::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-gold); transition: width 0.3s ease; } .form-group:focus-within::after { width: 100%; } .submit-btn { width: 100%; padding: 16px; background: var(--gradient-gold); color: var(--bg-primary); border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3); letter-spacing: 0.5px; } /* PC端按钮优化 */ @media (min-width: 768px) { .submit-btn { padding: 18px; font-size: 1.2rem; border-radius: 12px; } } @media (min-width: 1200px) { .submit-btn { padding: 22px; font-size: 1.4rem; border-radius: 15px; } } .submit-btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: 0.5s; z-index: -1; } .submit-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4), 0 0 40px rgba(201, 169, 110, 0.2); background: var(--gradient-gold-hover); } .submit-btn:hover::before { left: 100%; } .submit-btn:active { transform: translateY(1px); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); } .instructions { background: rgba(37, 43, 61, 0.7); border-radius: 16px; padding: 25px; margin: 0 20px 20px; border: 1px solid var(--border-color); position: relative; z-index: 1; animation: fadeIn 1.5s ease-out; backdrop-filter: blur(15px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .instructions h3 { color: var(--primary-gold); font-size: 1rem; margin-bottom: 12px; text-align: center; position: relative; display: inline-block; padding: 0 15px; } /* 互动按钮区域样式 */ .interactive-buttons { background: rgba(30, 41, 59, 0.5); border-radius: 12px; padding: 20px; margin: 20px 0 0 0; border: 1px solid var(--border-color); backdrop-filter: blur(5px); animation: fadeIn 1.8s ease-out; } .buttons-title { color: var(--primary-gold); font-size: 1rem; margin-bottom: 15px; text-align: center; font-family: 'Ma Shan Zheng', cursive; position: relative; } .buttons-title::before, .buttons-title::after { content: "◆"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--primary-gold); opacity: 0.6; font-size: 0.8rem; } .buttons-title::before { left: -20px; } .buttons-title::after { right: -20px; } .buttons-grid { display: grid; grid-template-columns: 1fr; gap: 12px; } .interactive-btn { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05)); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px; color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; font-size: 0.9rem; } .interactive-btn:hover { background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1)); border-color: var(--primary-gold); color: var(--primary-gold); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); } .interactive-btn i { font-size: 1rem; color: var(--primary-gold); transition: all 0.3s ease; } .interactive-btn:hover i { transform: scale(1.1); color: var(--primary-gold-light); } .btn-glow { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent); transition: left 0.5s ease; } .interactive-btn:hover .btn-glow { left: 100%; } /* PC端互动按钮优化 */ @media (min-width: 768px) { .interactive-buttons { padding: 30px; margin: 20px 0 0 0; border-radius: 16px; } .buttons-title { font-size: 1.2rem; margin-bottom: 20px; } .buttons-grid { gap: 15px; } .interactive-btn { padding: 15px 20px; font-size: 1rem; border-radius: 10px; } .interactive-btn i { font-size: 1.2rem; } } @media (min-width: 1200px) { .interactive-buttons { padding: 40px; margin: 25px 0 0 0; border-radius: 20px; } .buttons-title { font-size: 1.4rem; margin-bottom: 25px; } .buttons-grid { gap: 18px; } .interactive-btn { padding: 18px 25px; font-size: 1.1rem; border-radius: 12px; } .interactive-btn i { font-size: 1.3rem; } } /* 移动端互动按钮优化 */ @media (max-width: 767px) { .interactive-buttons { padding: 15px; margin: 15px 0 0 0; border-radius: 10px; } .buttons-title { font-size: 0.9rem; margin-bottom: 12px; } .buttons-title::before, .buttons-title::after { font-size: 0.7rem; } .buttons-title::before { left: -15px; } .buttons-title::after { right: -15px; } .buttons-grid { gap: 10px; } .interactive-btn { padding: 10px 12px; font-size: 0.85rem; border-radius: 6px; } .interactive-btn i { font-size: 0.9rem; } } /* PC端说明标题优化 */ @media (min-width: 768px) { .instructions h3 { font-size: 1.3rem; margin-bottom: 16px; } } @media (min-width: 1200px) { .instructions h3 { font-size: 1.5rem; margin-bottom: 20px; } } .instructions h3::before, .instructions h3::after { content: ""; position: absolute; top: 50%; width: 30px; height: 1px; background: var(--border-color); } .instructions h3::before { left: -35px; } .instructions h3::after { right: -35px; } .instruction-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 8px 0; transition: all 0.3s ease; border-radius: 8px; } .instruction-item:hover { transform: translateX(5px); background: rgba(201, 169, 110, 0.05); padding: 8px 12px; } .instruction-number { width: 20px; height: 20px; background: var(--gradient-gold); color: var(--bg-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.7rem; flex-shrink: 0; } .instruction-text { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.5; } .app-footer { text-align: center; padding: 15px; color: var(--text-muted); font-size: 0.7rem; position: relative; z-index: 1; animation: fadeIn 2s ease-out; } .bagua-decoration { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; background: url('./bagua-icon.svg') center/contain no-repeat; opacity: 0.5; animation: rotateSlow 60s linear infinite; } @keyframes rotateSlow { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } } @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } /* 表单验证样式 */ .field-error { color: #dc2626; font-size: 0.75rem; margin-top: 4px; display: none; animation: fadeIn 0.3s ease; } /* 玄幻动画效果 */ .energy-particle { position: absolute; width: 4px; height: 4px; background: radial-gradient(circle, var(--primary-gold), transparent); border-radius: 50%; pointer-events: none; z-index: 10; animation: particleFloat 2s ease-out forwards; } @keyframes particleFloat { 0% { opacity: 1; transform: scale(0) translateY(0); } 50% { opacity: 0.8; transform: scale(1) translateY(-20px); } 100% { opacity: 0; transform: scale(0.5) translateY(-40px); } } .energy-line { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-gold), transparent); pointer-events: none; z-index: 5; opacity: 0; animation: energyFlow 1.5s ease-in-out; } @keyframes energyFlow { 0% { opacity: 0; width: 0; } 50% { opacity: 0.8; width: 100%; } 100% { opacity: 0; width: 100%; } } .form-group.active { position: relative; overflow: visible; } .form-group.active::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient(45deg, transparent, rgba(201, 169, 110, 0.3), transparent, rgba(201, 169, 110, 0.3), transparent ); background-size: 400% 400%; border-radius: 12px; z-index: -1; animation: energyBorder 2s ease-in-out infinite; } @keyframes energyBorder { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } .mystical-glow { position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; background: radial-gradient(circle, rgba(201, 169, 110, 0.3), transparent 70%); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; opacity: 0; animation: mysticalPulse 3s ease-in-out infinite; } @keyframes mysticalPulse { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.5); } } .form-group.filled { box-shadow: 0 0 20px rgba(201, 169, 110, 0.4); } .connection-line { position: absolute; background: linear-gradient(var(--line-angle, 0deg), transparent, rgba(201, 169, 110, 0.6), transparent ); pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.5s ease; } .energy-convergence { position: absolute; width: 200px; height: 200px; border: 2px solid rgba(201, 169, 110, 0.3); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 15; opacity: 0; animation: convergenceRing 2s ease-in-out; } @keyframes convergenceRing { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } } /* 能量汇聚到按钮的特效 */ .energy-stream { position: absolute; width: 3px; background: linear-gradient(to bottom, rgba(201, 169, 110, 0.8), rgba(201, 169, 110, 0.4), transparent ); pointer-events: none; z-index: 20; border-radius: 2px; box-shadow: 0 0 10px rgba(201, 169, 110, 0.6); animation: energyStream 2s ease-in-out forwards; } @keyframes energyStream { 0% { opacity: 0; height: 0; } 30% { opacity: 1; height: var(--stream-length); } 70% { opacity: 0.8; height: var(--stream-length); } 100% { opacity: 0; height: 0; } } .submit-btn.energy-charged { position: relative; overflow: visible; animation: energyCharge 3s ease-in-out infinite; box-shadow: 0 0 20px rgba(201, 169, 110, 0.6), 0 0 40px rgba(201, 169, 110, 0.4), 0 0 60px rgba(201, 169, 110, 0.2); } @keyframes energyCharge { 0%, 100% { transform: translateY(-3px) scale(1); box-shadow: 0 0 20px rgba(201, 169, 110, 0.6), 0 0 40px rgba(201, 169, 110, 0.4), 0 0 60px rgba(201, 169, 110, 0.2); } 50% { transform: translateY(-5px) scale(1.02); box-shadow: 0 0 30px rgba(201, 169, 110, 0.8), 0 0 60px rgba(201, 169, 110, 0.6), 0 0 90px rgba(201, 169, 110, 0.4); } } .submit-btn.energy-charged::before { content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; background: conic-gradient( from 0deg, transparent, rgba(201, 169, 110, 0.3), transparent, rgba(201, 169, 110, 0.3), transparent ); border-radius: 15px; z-index: -1; animation: energyRotate 4s linear infinite; } @keyframes energyRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .energy-orb { position: absolute; width: 8px; height: 8px; background: radial-gradient(circle, var(--primary-gold), transparent); border-radius: 50%; pointer-events: none; z-index: 25; box-shadow: 0 0 15px rgba(201, 169, 110, 0.8); animation: orbFloat 3s ease-in-out forwards; } @keyframes orbFloat { 0% { opacity: 1; transform: scale(0); } 20% { opacity: 1; transform: scale(1); } 80% { opacity: 0.8; transform: scale(1) translateX(var(--orb-x)) translateY(var(--orb-y)); } 100% { opacity: 0; transform: scale(0.5) translateX(var(--orb-x)) translateY(var(--orb-y)); } } .button-energy-field { position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 20px; pointer-events: none; z-index: 10; opacity: 0; animation: energyField 2s ease-in-out; } @keyframes energyField { 0% { opacity: 0; transform: scale(0.8); } 50% { opacity: 0.6; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.3); } } /* 进度指示器样式 */ .loading-progress { text-align: center; padding: 10px; } .progress-text { color: var(--primary-gold); font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; } .progress-bar { width: 100%; height: 4px; background: rgba(212, 175, 55, 0.2); border-radius: 2px; overflow: hidden; margin-bottom: 10px; } .progress-fill { height: 100%; background: var(--gradient-gold); width: 0%; transition: width 0.3s ease; border-radius: 2px; } .progress-steps { display: flex; justify-content: space-between; gap: 5px; } .step { font-size: 0.7rem; color: var(--text-muted); transition: color 0.3s ease; flex: 1; } .step.active { color: var(--primary-gold); font-weight: 500; } .divination-symbols { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; } .symbol { position: absolute; color: rgba(212, 175, 55, 0.05); font-size: 24px; font-weight: bold; animation: float 15s infinite linear; } @keyframes float { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 0.1; } 50% { opacity: 0.15; } 90% { opacity: 0.1; } 100% { transform: translateY(-100px) translateX(20px); opacity: 0; } } /* 八卦符号装饰 */ .bagua-symbols { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0.08; } .bagua-symbol { position: absolute; font-size: 2rem; color: var(--primary-gold); font-weight: bold; animation: baguaFloat 20s infinite linear; } .bagua-symbol:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; } .bagua-symbol:nth-child(2) { top: 10%; right: 10%; animation-delay: 2.5s; } .bagua-symbol:nth-child(3) { top: 30%; left: 5%; animation-delay: 5s; } .bagua-symbol:nth-child(4) { top: 30%; right: 5%; animation-delay: 7.5s; } .bagua-symbol:nth-child(5) { bottom: 30%; left: 5%; animation-delay: 10s; } .bagua-symbol:nth-child(6) { bottom: 30%; right: 5%; animation-delay: 12.5s; } .bagua-symbol:nth-child(7) { bottom: 10%; left: 10%; animation-delay: 15s; } .bagua-symbol:nth-child(8) { bottom: 10%; right: 10%; animation-delay: 17.5s; } @keyframes baguaFloat { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.05; } 25% { transform: translateY(-10px) rotate(90deg); opacity: 0.1; } 50% { transform: translateY(0) rotate(180deg); opacity: 0.08; } 75% { transform: translateY(10px) rotate(270deg); opacity: 0.12; } } /* 五行元素装饰 */ .wuxing-elements { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; pointer-events: none; z-index: -1; opacity: 0.06; } .wuxing-element { position: absolute; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; border-radius: 50%; animation: wuxingRotate 25s infinite linear; } .wuxing-element.wood { top: 0; left: 50%; transform: translateX(-50%); color: #22c55e; background: radial-gradient(circle, rgba(34, 197, 94, 0.1), transparent); } .wuxing-element.fire { top: 20%; right: 0; color: #ef4444; background: radial-gradient(circle, rgba(239, 68, 68, 0.1), transparent); } .wuxing-element.earth { bottom: 0; left: 50%; transform: translateX(-50%); color: #eab308; background: radial-gradient(circle, rgba(234, 179, 8, 0.1), transparent); } .wuxing-element.metal { top: 20%; left: 0; color: #94a3b8; background: radial-gradient(circle, rgba(148, 163, 184, 0.1), transparent); } .wuxing-element.water { bottom: 20%; left: 50%; transform: translateX(-50%); color: #3b82f6; background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent); } @keyframes wuxingRotate { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } } /* 星宿装饰 */ .constellation-decorations { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0.04; } .star-decoration { position: absolute; font-size: 1.5rem; color: var(--primary-gold); font-weight: bold; font-family: 'Ma Shan Zheng', cursive; animation: starTwinkle 12s infinite ease-in-out; } .star-decoration.ziwei { top: 15%; left: 50%; transform: translateX(-50%); animation-delay: 0s; } .star-decoration.tianfu { top: 60%; left: 20%; animation-delay: 4s; } .star-decoration.tianji { top: 60%; right: 20%; animation-delay: 8s; } @keyframes starTwinkle { 0%, 100% { opacity: 0.02; transform: scale(1); } 50% { opacity: 0.08; transform: scale(1.1); } } /* 移动端响应式设计 */ @media (max-width: 768px) { .container { padding: 10px; margin: 10px auto; } .form-card { padding: 20px; margin: 10px 0; border-radius: 15px; } .form-group { margin-bottom: 15px; } .form-group label { font-size: 14px; margin-bottom: 5px; } .form-group input, .form-group select { padding: 12px; font-size: 16px; /* 防止iOS缩放 */ border-radius: 8px; } .submit-btn { padding: 15px 25px; font-size: 16px; width: 100%; margin-top: 10px; } .instructions { padding: 15px; margin-top: 20px; border-radius: 12px; } .instruction-item { padding: 10px; font-size: 14px; gap: 8px; } .cosmic-background { opacity: 0.3; } .taiji-container { width: 60px; height: 60px; top: 10px; right: 10px; } /* 移动端传统元素优化 */ .bagua-symbols { opacity: 0.04; } .bagua-symbol { font-size: 1.2rem; } .wuxing-elements { width: 200px; height: 200px; opacity: 0.03; } .wuxing-element { width: 30px; height: 30px; font-size: 0.9rem; } .constellation-decorations { opacity: 0.02; } .star-decoration { font-size: 1rem; } h1 { font-size: 24px; margin-bottom: 20px; } } @media (max-width: 480px) { .container { padding: 5px; margin: 5px auto; } .form-card { padding: 15px; margin: 5px 0; } .form-group { margin-bottom: 12px; } .form-group label { font-size: 13px; } .form-group input, .form-group select { padding: 10px; font-size: 16px; } .submit-btn { padding: 12px 20px; font-size: 15px; } .instructions { padding: 12px; } .instruction-item { padding: 8px; font-size: 13px; } h1 { font-size: 20px; margin-bottom: 15px; } .taiji-container { width: 50px; height: 50px; } } /* 横屏适配 */ @media (max-height: 500px) and (orientation: landscape) { .cosmic-background { opacity: 0.2; } .taiji-container { display: none; } .container { padding: 10px; } .form-card { padding: 15px; } h1 { font-size: 18px; margin-bottom: 10px; } } /* 表单验证样式 */ .error-message { color: #dc2626; font-size: 12px; margin-top: 5px; display: flex; align-items: center; gap: 4px; } .error-message::before { content: "⚠"; font-size: 14px; } .form-group input.error, .form-group select.error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; } .form-group input:valid, .form-group select:valid { border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); } .loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-right: 8px; } @keyframes spin { to { transform: rotate(360deg); } } @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } .field-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; animation: fadeIn 0.3s ease-in; } .has-error .field-error { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
紫微斗数AI预测推演系统