/* 米家众测页面样式 */ /* 页面容器 */ #mijiazhongce-page { background: #f5f5f5; min-height: 100vh; padding-bottom: 80px; } /* 顶部导航 */ .header { background: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .header-left { display: flex; align-items: center; gap: 15px; } .header-left i { font-size: 18px; cursor: pointer; color: #333; } .page-title { font-size: 18px; font-weight: 600; color: #333; } /* 众测产品列表 */ .test-products { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 产品卡片 */ .product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; } .product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); } /* 产品头部 */ .product-header { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; background: #fafafa; border-bottom: 1px solid #f0f0f0; position: relative; } .product-period { font-size: 12px; color: #666; font-weight: 500; } .product-status { font-size: 10px; padding: 2px 6px; border-radius: 8px; font-weight: 500; } .product-status.new { background: #ff6900; color: white; } .product-status.free { background: #4ECDC4; color: white; } .my-test { position: absolute; top: -5px; right: 10px; background: #4CAF50; color: white; font-size: 10px; padding: 2px 6px; border-radius: 0 0 8px 8px; font-weight: 500; } /* 产品图片 */ .product-image { padding: 20px; text-align: center; background: #fafafa; } .product-image img { width: 100%; max-width: 120px; height: auto; border-radius: 8px; } /* 产品信息 */ .product-info { padding: 15px 12px; position: relative; } .status-badge { position: absolute; top: -8px; left: 12px; background: #999; color: white; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500; } .status-badge.ended { background: #999; } .status-badge.active { background: #4CAF50; } .product-name { font-size: 14px; font-weight: 600; color: #333; margin: 8px 0; line-height: 1.3; } .product-details { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; } .market-price { font-size: 11px; color: #666; } .quota { font-size: 11px; color: #666; } /* 申请者信息 */ .applicant-info { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; } .applicant-avatars { display: flex; gap: -8px; } .avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #4A90E2, #667eea); border: 2px solid white; margin-left: -8px; } .avatar:first-child { margin-left: 0; } .avatar:nth-child(2) { background: linear-gradient(135deg, #4ECDC4, #44A08D); } .avatar:nth-child(3) { background: linear-gradient(135deg, #f093fb, #f5576c); } .applicant-count { font-size: 11px; color: #666; font-weight: 500; } /* 响应式设计 */ @media (max-width: 480px) { .test-products { padding: 15px; gap: 12px; } .product-card { border-radius: 10px; } .product-header { padding: 8px 10px; } .product-period { font-size: 11px; } .product-status { font-size: 9px; padding: 1px 4px; } .product-image { padding: 15px; } .product-image img { max-width: 100px; } .product-info { padding: 12px 10px; } .product-name { font-size: 13px; } .market-price, .quota, .applicant-count { font-size: 10px; } .avatar { width: 18px; height: 18px; } } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .product-card { animation: fadeInUp 0.6s ease-out; } .product-card:nth-child(1) { animation-delay: 0.1s; } .product-card:nth-child(2) { animation-delay: 0.2s; } .product-card:nth-child(3) { animation-delay: 0.3s; } .product-card:nth-child(4) { animation-delay: 0.4s; } .product-card:nth-child(5) { animation-delay: 0.5s; } .product-card:nth-child(6) { animation-delay: 0.6s; } /* 特殊样式 */ .product-card:nth-child(2) { position: relative; } .product-card:nth-child(2)::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4CAF50, #45a049); border-radius: 12px 12px 0 0; } /* 0元抽奖特殊样式 */ .product-card:has(.product-status.free) { border: 2px solid #4ECDC4; } .product-card:has(.product-status.free) .product-header { background: linear-gradient(135deg, #4ECDC4, #44A08D); color: white; } .product-card:has(.product-status.free) .product-period { color: white; } /* 滚动优化 */ .test-products { scroll-behavior: smooth; } /* 加载状态 */ .product-card.loading { opacity: 0.6; pointer-events: none; } .product-card.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #f3f3f3; border-top: 2px solid #ff6900; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }