body { display: flex; justify-content: center; align-items: center; overflow: hidden; } .container { width: 100%; position: relative; } .card { padding: 2.5rem; } .center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; } .hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(20px); transition: var(--transition); position: absolute; top: 0; left: 0; right: 0; } .visible { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); } /* 引导页面样式 */ #guide { padding: 3rem; } #guide h1 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 700; } #guide p { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.6; } .highlight { background: rgba(255, 215, 0, 0.15); padding: 0.25rem 0.75rem; border-radius: 8px; color: var(--accent); font-weight: 600; } .control-link { margin-top: 2rem; padding: 1rem 2rem; background: var(--primary); color: white; border-radius: 12px; font-weight: 500; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; } .control-link:hover { background: var(--primary-dark); transform: translateY(-2px); } /* Splash 页面样式 */ #splash { padding: 4rem; } .splash-logo { width: 180px; height: 180px; margin-bottom: 2rem; background: linear-gradient( 135deg, var(--primary) 0%, var(--primary-dark) 100% ); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(37, 99, 235, 0.4); animation: pulse 2s infinite; } .splash-logo img { max-width: 70%; } .splash-text { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(90deg, var(--accent) 0%, #ffed4e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* 标品展示样式 */ #itemView { width: 100%; padding: 3rem; } .itemMedia { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: var(--transition); max-width: 800px; } .itemMedia:hover { transform: scale(1.02); } .item img, .item video { width: 100%; display: block; border-radius: var(--radius); } .name { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); } .remark { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 600px; line-height: 1.6; } .price-container { position: relative; margin: 2rem 0; } .price { font-size: 4rem; font-weight: 700; color: var(--accent); text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); transition: var(--transition); position: relative; display: inline-block; } .price-update { animation: priceUpdate 0.5s ease-out; } .currency { font-size: 2rem; margin-right: 0.5rem; vertical-align: super; } /* 成交界面样式 */ #dealView { padding: 4rem 3rem; } .deal-icon { font-size: 5rem; margin-bottom: 2rem; animation: celebrate 1s ease-out; } .deal { font-size: 3.5rem; font-weight: 700; color: var(--accent-green); margin-bottom: 2rem; text-shadow: 0 0 20px rgba(0, 200, 83, 0.4); } .finalPrice { font-size: 3rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--accent); } .winner { font-size: 2rem; font-weight: 500; color: var(--text-primary); padding: 1rem 2rem; background: rgba(0, 200, 83, 0.1); border-radius: 12px; border: 1px solid rgba(0, 200, 83, 0.3); } /* 总金额样式 */ .footer { position: fixed; bottom: 20px; right: 20px; background: var(--dark-3); padding: 1rem 1.5rem; border-radius: 12px; font-size: 1.2rem; font-weight: 500; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.5rem; } .footer span { color: var(--accent); font-weight: 700; font-size: 1.4rem; } /* 动画 */ @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); } 70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } } @keyframes priceUpdate { 0% { transform: scale(1); } 50% { transform: scale(1.2); text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); } 100% { transform: scale(1); } } @keyframes celebrate { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } } /* 响应式设计 */ @media (max-width: 768px) { .card { padding: 1.5rem; } .splash-text { font-size: 2.5rem; } .name { font-size: 2rem; } .price { font-size: 3rem; } .deal { font-size: 2.5rem; } .finalPrice { font-size: 2.5rem; } .winner { font-size: 1.5rem; } }