/* 移动端基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* 头部导航 */
.mobile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}

/* 主要内容区域 */
.mobile-content {
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* 卡片组件 */
.mobile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.mobile-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 验证状态 */
.verification-status {
    text-align: center;
    padding: 30px 20px;
}

.status-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.status-success {
    color: #2ed573;
}

.status-warning {
    color: #ffa502;
}

.status-danger {
    color: #ff4757;
}

.status-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-subtext {
    color: #666;
    font-size: 14px;
}

/* 产品信息 */
.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.product-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.product-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 溯源信息 */
.trace-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.trace-item:last-child {
    border-bottom: none;
}

.trace-time {
    width: 80px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.trace-content {
    flex: 1;
}

.trace-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.trace-desc {
    color: #666;
    font-size: 14px;
}

/* 按钮样式 */
.mobile-btn {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.btn-success {
    background-color: #2ed573;
    color: white;
}

.btn-warning {
    background-color: #ffa502;
    color: white;
}

/* 抽奖转盘 */
.lottery-container {
    text-align: center;
    padding: 20px;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
}

.lottery-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b 0deg 60deg,
        #4ecdc4 60deg 120deg,
        #45b7d1 120deg 180deg,
        #96ceb4 180deg 240deg,
        #feca57 240deg 300deg,
        #ff9ff3 300deg 360deg
    );
    position: relative;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ff4757;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.wheel-pointer:after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #ff4757;
}

.start-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    transform: scale(1.05);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 用户画像 */
.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: #666;
}

.profile-value {
    font-weight: 500;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .mobile-content {
        padding: 15px;
    }
    
    .mobile-card {
        padding: 15px;
    }
    
    .wheel-container {
        width: 240px;
        height: 240px;
    }
}