/* 美食大转盘样式 */
.food-wheel-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    min-height: 100vh;
}

.food-wheel-header {
    margin-bottom: 3rem;
}

.food-wheel-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.food-wheel-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
}

.wheel {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #4ecdc4 45deg 90deg,
        #45b7d1 90deg 135deg,
        #96ceb4 135deg 180deg,
        #feca57 180deg 225deg,
        #ff9ff3 225deg 270deg,
        #54a0ff 270deg 315deg,
        #5f27cd 315deg 360deg
    );
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 2rem;
}

.wheel.spinning {
    animation: spin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #fff;
    z-index: 10;
}

.spin-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-btn i {
    font-size: 1.2rem;
}

.food-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
}

.food-info-content {
    text-align: center;
}

.food-info-content h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.food-info-content p {
    color: #666;
    line-height: 1.6;
}

.food-card {
    text-align: left;
}

.food-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.food-icon {
    font-size: 3rem;
    color: #667eea;
}

.food-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.food-details p {
    color: #666;
    margin: 0;
}

.nutrition-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.nutrition-info h4 {
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.nutrition-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nutrition-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.nutrition-item p {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.nutrition-item small {
    color: #666;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.5rem;
}

.food-description {
    background: #e8f4fd;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

.food-description h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.food-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 转盘扇区样式 */
.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wheel-segment:hover {
    transform: scale(1.05);
}

/* 动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(var(--final-rotation));
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wheel {
        width: 300px;
        height: 300px;
    }
    
    .food-wheel-title {
        font-size: 2rem;
    }
    
    .wheel-segment {
        font-size: 0.7rem;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-segment {
        font-size: 0.6rem;
    }
    
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
    
    .food-info {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin-loading 1s linear infinite;
}

@keyframes spin-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分享按钮样式 */
.share-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.share-content {
    text-align: center;
}

.share-text {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-email { background: #ea4335; }
.share-copy { background: #6c757d; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 收藏按钮样式 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bookmark-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bookmark-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.bookmark-btn i {
    font-size: 1rem;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 移动端导航优化 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-actions {
        display: none;
    }
}

/* 转盘文字优化 */
.wheel-segment > div {
    text-align: center;
    line-height: 1.2;
}

/* 按钮状态优化 */
.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 转盘指针优化 */
.wheel-pointer {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
